os_nova package installation on CentOS 7 is very slow

Bug #1746602 reported by Major Hayden
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Won't Fix
Undecided
Major Hayden

Bug Description

The distro package installation for the os_nova role is *very* slow on CentOS and usually takes 5-8 minutes. Two packages are installed which are likely not needed:

  container-selinux - adds 30-45 seconds to the install, mainly for Docker
  openstack-selinux - adds 2-3 minutes to the install, mainly for how RDO deploys OpenStack services

These could be moved into an async task or possibly removed entirely.

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

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

Changed in openstack-ansible:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-os_nova (master)

Reviewed: https://review.openstack.org/539688
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-os_nova/commit/?id=0a3ce6116682e0ce745e4606b28ffee8c3407875
Submitter: Zuul
Branch: master

commit 0a3ce6116682e0ce745e4606b28ffee8c3407875
Author: Major Hayden <email address hidden>
Date: Mon Feb 5 12:57:09 2018 -0600

    Optimize SELinux bits in os_nova

    Installing openstack-selinux brings in a *ton* of policies and the
    vast majority do not apply to an OpenStack-Ansible deployment. We
    can bring in the individual policies that we need in each role.

    The openstack-selinux package takes 2-3 minutes to install and it
    brings in container-selinux (which is mainly for Docker) and that
    adds another 30-45 seconds.

    The patch also adds some required SELinux policies for virtlogd to
    work and for the non-KVM qemu gate jobs to function properly.

    Closes-Bug: 1746602
    Change-Id: Ib79cd5f8ebd9cb535c8051a29126262ede2b17d3

Changed in openstack-ansible:
status: In Progress → Fix Released
Revision history for this message
Major Hayden (rackerhacker) wrote :

This needs to go into Pike, too.

Changed in openstack-ansible:
status: Fix Released → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-os_nova 17.0.0.0rc1

This issue was fixed in the openstack/openstack-ansible-os_nova 17.0.0.0rc1 release candidate.

Mohammed Naser (mnaser)
Changed in openstack-ansible:
status: In Progress → Won't Fix
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.