Issue #1572
closedYum install python crane raising SE Linux errors
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
Updated by jortel@redhat.com almost 9 years ago
- Target Release - Crane set to 2.0.0
- Triaged changed from No to Yes
Updated by pcreech almost 9 years ago
- Status changed from NEW to POST
- Assignee set to pcreech
Updated by bmbouter almost 9 years ago
- Related to Story #1166: As a user, I can install a crane-selinux rpm added
Added by pcreech almost 9 years ago
Updated by pcreech almost 9 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.
Updated by pcreech almost 9 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset 5b23dbb008ea13630ac7cf6d66a2ecadfef0efdf.
Updated by pthomas@redhat.com almost 9 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 almost 9 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.
Updated by pcreech almost 9 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.
Updated by pcreech almost 9 years ago
- Status changed from POST to MODIFIED
Applied in changeset f06704f6c161846c35553b16f8e94d61123ca740.
Updated by dkliban@redhat.com almost 9 years ago
- Status changed from MODIFIED to 5
Updated by semyers over 8 years ago
- Status changed from 5 to CLOSED - CURRENTRELEASE
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