Project

Profile

Help

Issue #1572

Yum install python crane raising SE Linux errors

Added by paji@redhat.com almost 6 years ago. Updated over 2 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

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

Associated revisions

Revision 5b23dbb0 View on GitHub
Added by pcreech almost 6 years ago

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

Revision f06704f6 View on GitHub
Added by pcreech almost 6 years ago

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

History

#1 Updated by paji@redhat.com almost 6 years ago

  • Version - Crane set to master

#2 Updated by jortel@redhat.com almost 6 years ago

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

#3 Updated by pcreech almost 6 years ago

  • Status changed from NEW to POST
  • Assignee set to pcreech

#4 Updated by bmbouter almost 6 years ago

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

#5 Updated by pcreech almost 6 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.

#6 Updated by pcreech almost 6 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

#7 Updated by pthomas@redhat.com almost 6 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

#8 Updated by pcreech almost 6 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

#9 Updated by pcreech almost 6 years ago

  • Status changed from POST to MODIFIED

#10 Updated by dkliban@redhat.com almost 6 years ago

  • Status changed from MODIFIED to 5

#11 Updated by semyers over 5 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE

#12 Updated by bmbouter over 2 years ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF