Quickstart inventory fails saying packages are not installed

Bug #1812324 reported by Jason E. Rist
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Low
wes hayutin

Bug Description

Unable to install using quickstart. Basic install started via:
bash quickstart.sh --clean --teardown all --no-clone -w /home/jrist/.quickstart-galena/ --release master-tripleo-ci 172.16.213.154

Fatal error on create inventory task (tripleo-inventory):
fatal: [127.0.0.1 -> localhost]: FAILED! => {
    "changed": false,
    "checksum": "9c8af0a174d677c1271645fa30dbdbf2dba68e92"
}

MSG:

Aborting, target uses selinux but python bindings (libselinux-python) aren't installed!

Isn't quickstart supposed to take care of this? Installing packages?

I installed the package on the host, and the problem is still showing up:
Updated:
  libselinux-python.x86_64 0:2.5-14.1.el7

Dependency Updated:
  libselinux.i686 0:2.5-14.1.el7 libselinux.x86_64 0:2.5-14.1.el7 libselinux-devel.x86_64 0:2.5-14.1.el7
  libselinux-ruby.x86_64 0:2.5-14.1.el7 libselinux-utils.x86_64 0:2.5-14.1.el7 libsepol.i686 0:2.5-10.el7
  libsepol.x86_64 0:2.5-10.el7 libsepol-devel.x86_64 0:2.5-10.el7

Sorin Sbarnea (ssbarnea)
Changed in tripleo:
assignee: nobody → Sorin Sbarnea (ssbarnea)
status: New → In Progress
Revision history for this message
Sorin Sbarnea (ssbarnea) wrote :

Can you please provide more information about the OS and selinux configuraiton you have? I tried a similar command and I didn't get any errors (CentOS7).

Sorin Sbarnea (ssbarnea)
Changed in tripleo:
status: In Progress → Incomplete
importance: Undecided → Low
Revision history for this message
Jason E. Rist (jason-rist) wrote :

Sure.
[root@galena ~]# uname -a
Linux galena 3.10.0-862.14.4.el7.x86_64 #1 SMP Wed Sep 26 15:12:11 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[root@galena ~]# cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)

Revision history for this message
Jason E. Rist (jason-rist) wrote :

Enforcing

Revision history for this message
Sorin Sbarnea (ssbarnea) wrote :

Please provide more information about how to reproduce because I tested in two systems (os, user, maybe even command to reproduce)

I was no able to identify any where "Fatal error on create inventory task (tripleo-inventory)" comes from as the excerpt is too breaf.

Revision history for this message
Sorin Sbarnea (ssbarnea) wrote :

AFAIK, we do support only permissive for selinux so please test without it (reboot needed i think) and let me know. At least we could rule out this aspect.

On my test system "tripleo-inventory" role succeeded, centos-7.6 but probably less important.

Revision history for this message
Jason E. Rist (jason-rist) wrote :

Trying to install the deps locally (Fedora 29) instead of on the target host.
bash quickstart.sh --install-deps (again, this had already been done, but doing it again)

Revision history for this message
Jason E. Rist (jason-rist) wrote :

Nope, still failing.

Revision history for this message
Jason E. Rist (jason-rist) wrote :
Revision history for this message
Jason E. Rist (jason-rist) wrote :
Revision history for this message
Jason E. Rist (jason-rist) wrote :

Might be an ansible bug

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-quickstart (master)

Fix proposed to branch: master
Review: https://review.openstack.org/631825

Changed in tripleo:
assignee: Sorin Sbarnea (ssbarnea) → wes hayutin (weshayutin)
status: Incomplete → In Progress
Revision history for this message
Jason E. Rist (jason-rist) wrote :

No longer an issue. Thanks to the above patch.

Revision history for this message
Sorin Sbarnea (ssbarnea) wrote :

This bug is related to https://github.com/ansible/ansible/issues/45852 which seems to be the main reason why we encountered it.

Still, we had to workaround it because Ansible bug is not yet fixed and even when it will be fixed it would likely not be ported back to our version.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-quickstart (master)

Reviewed: https://review.openstack.org/631825
Committed: https://git.openstack.org/cgit/openstack/tripleo-quickstart/commit/?id=af27ea248dcd93f490d36b966b768b3834edb405
Submitter: Zuul
Branch: master

commit af27ea248dcd93f490d36b966b768b3834edb405
Author: Wes Hayutin <email address hidden>
Date: Fri Jan 18 09:37:49 2019 -0700

    install both python-libselinux versions on py3 env

    Ansible is not detecting that python-libselinux
    is installed when only the python3-libselinux
    package is installed. Neat.

    Closes-Bug: #1812324
    Change-Id: I2492329880bf8c6e5cf4efc97900792b956bac4e

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-quickstart 2.1.1

This issue was fixed in the openstack/tripleo-quickstart 2.1.1 release.

Changed in tripleo:
milestone: none → train-1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.