Project

Profile

Help

Maintenance: Planio will be observing a scheduled maintenance window this Tuesday, November 5, 2024 from 03:00 UTC until 06:30 UTC to perform urgent network maintenance in our primary data center. Your Planio account will be unavailable during this maintenance window.

Issue #1572

closed

Yum install python crane raising SE Linux errors

Added by paji@redhat.com almost 9 years ago. Updated over 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - Crane:
master
Platform Release:
Target Release - Crane:
2.0.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Check the errors in the install command there..

$ cat /etc/redhat-release 
CentOS Linux release 7.1.1503 (Core)
$ getenforce
Disabled
[vagrant@katello-pulp-nightly ~]$ sudo yum install python-crane
Loaded plugins: fastestmirror, priorities, pulp-profile-update
......
.......
Loading mirror speeds from cached hostfile
 * base: mirrors.lga7.us.voxel.net
 * epel: mirror.symnds.com
 * extras: mirror.symnds.com
 * updates: repos.mia.quadranet.com
36 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package python-crane.noarch 0:2.0.0-0.4.beta.git.1.c0fd503.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================================================
 Package                                  Arch                               Version                                                       Repository                                    Size
==============================================================================================================================================================================================
Installing:
 python-crane                             noarch                             2.0.0-0.4.beta.git.1.c0fd503.el7                              pulp-2.8-nightly                             1.3 M

Transaction Summary
==============================================================================================================================================================================================
Install  1 Package

Total download size: 1.3 M
Installed size: 4.0 M
Is this ok [y/d/N]: y
Downloading packages:
python-crane-2.0.0-0.4.beta.git.1.c0fd503.el7.noarch.rpm                                                                                                               | 1.3 MB  00:00:01     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : python-crane-2.0.0-0.4.beta.git.1.c0fd503.el7.noarch                                                                                                                       1/1 
SELinux:  Could not downgrade policy file /etc/selinux/targeted/policy/policy.29, searching for an older version.
SELinux:  Could not open policy file <= /etc/selinux/targeted/policy/policy.29:  No such file or directory
/sbin/load_policy:  Can't load policy:  No such file or directory
libsemanage.semanage_reload_policy: load_policy returned error code 2.
SELinux:  Could not downgrade policy file /etc/selinux/targeted/policy/policy.29, searching for an older version.
SELinux:  Could not open policy file <= /etc/selinux/targeted/policy/policy.29:  No such file or directory
/sbin/load_policy:  Can't load policy:  No such file or directory
libsemanage.semanage_reload_policy: load_policy returned error code 2.
ValueError: Could not commit semanage transaction
  Verifying  : python-crane-2.0.0-0.4.beta.git.1.c0fd503.el7.noarch                                                                                                                       1/1 

Installed:
  python-crane.noarch 0:2.0.0-0.4.beta.git.1.c0fd503.el7                                                                                                                                      

Complete!

Related issues

Related to Crane - Story #1166: As a user, I can install a crane-selinux rpmCLOSED - WONTFIX

Actions
Actions #1

Updated by paji@redhat.com almost 9 years ago

  • Version - Crane set to master
Actions #2

Updated by jortel@redhat.com almost 9 years ago

  • Target Release - Crane set to 2.0.0
  • Triaged changed from No to Yes
Actions #3

Updated by pcreech over 8 years ago

  • Status changed from NEW to POST
  • Assignee set to pcreech
Actions #4

Updated by bmbouter over 8 years ago

  • Related to Story #1166: As a user, I can install a crane-selinux rpm added

Added by pcreech over 8 years ago

Revision 5b23dbb0 | View on GitHub

Don't run selinux commands if selinux is disabled

Don't run selinux commands if selinux is disabled

closes #1572 https://pulp.plan.io/issues/1572

Actions #5

Updated by pcreech over 8 years ago

I verified that this is due to selinux being disabled and attempting to run the semanage commands in the spec file on install.

The pr referenced above addresses this issue.

Actions #6

Updated by pcreech over 8 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #7

Updated by pthomas@redhat.com over 8 years ago

  • Status changed from MODIFIED to ASSIGNED

I see the following error on installing python-crane

 Installing : python-crane-2.0.0-0.6.beta.git.1.dddce74.el7.noarch         7/7 
/var/tmp/rpm-tmp.kExmE9: line 1: [: /usr/sbin/selinuxenabled: integer expression expected

Added by pcreech over 8 years ago

Revision f06704f6 | View on GitHub

Fix bash syntax on selinuxenabled check

Fix the bash syntax on the /usr/sbin/selinuxenabled check that prevent selinux from running.

This version is identical to the one in pulp's pulp.spec file.

closes #1572 https://pulp.plan.io/issues/1572

Actions #8

Updated by pcreech over 8 years ago

  • Status changed from ASSIGNED to POST

I had a syntax issue on the selinuxenabled if statement. I've updated it to mimic the one in pulp's spec file.

https://github.com/pulp/crane/pull/56

Actions #9

Updated by pcreech over 8 years ago

  • Status changed from POST to MODIFIED
Actions #10

Updated by dkliban@redhat.com over 8 years ago

  • Status changed from MODIFIED to 5
Actions #11

Updated by semyers over 8 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE
Actions #12

Updated by bmbouter over 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF