hard to tell when the package is not actually installed with the norpm provider

Bug #1669666 reported by Alex Schultz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Alex Schultz

Bug Description

If the norpm provider is used via OS::TripleO::Services::TripleoPackages and a package is not actually isntalled, puppet will still attempt to 'install' it but will usually fail for some other reason. We should throw a warning if the norpm provider is used and an install is actually attempted so we can identify the situations where puppet is trying to install a package but won't due to the norpm provider.

As an example,
http://logs.openstack.org/95/440795/1/check/gate-tripleo-ci-centos-7-scenario002-multinode-upgrades-nv/d7f8544/logs/postci.txt.gz#_2017-03-02_21_50_26_000

In this case, the upgrade process uses norpm but if the upgrade scripts missed installing the nova-placement-api package. Puppet indicated it tried to install it, but the apache setup failed because the file was not actually there.

Notice: /Stage[main]/Nova::Wsgi::Apache_placement/Nova::Generic_service[placement-api]/Package[nova-placement-api]/ensure: created
...
Error: /Stage[main]/Nova::Wsgi::Apache_placement/Openstacklib::Wsgi::Apache[placement_wsgi]/File[placement_wsgi]: Could not evaluate: Could not retrieve information from environment production source(s) file:/usr/bin/nova-placement-api

tags: added: ocata-backport-potential
Changed in tripleo:
status: Confirmed → Triaged
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-tripleo (master)

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

Changed in tripleo:
assignee: nobody → Alex Schultz (alex-schultz)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-tripleo (master)

Reviewed: https://review.openstack.org/441212
Committed: https://git.openstack.org/cgit/openstack/puppet-tripleo/commit/?id=2be36167fd223d95a71d557afa9d26bf950e21c8
Submitter: Jenkins
Branch: master

commit 2be36167fd223d95a71d557afa9d26bf950e21c8
Author: Alex Schultz <email address hidden>
Date: Fri Mar 3 09:21:59 2017 -0700

    Throw warnings for norpm actions

    If the norpm provider attempts to do any install/update/remove actions,
    we should throw a warning in the logs so people are aware that the
    action did not actually take place.

    Change-Id: Ieee5cac3412c709ba6b39316e455d7708cc9d22e
    Closes-Bug: #1669666

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-tripleo (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/443371

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-tripleo (stable/ocata)

Reviewed: https://review.openstack.org/443371
Committed: https://git.openstack.org/cgit/openstack/puppet-tripleo/commit/?id=8a5301685bc1122d46f071f798c4d9d628cc1e92
Submitter: Jenkins
Branch: stable/ocata

commit 8a5301685bc1122d46f071f798c4d9d628cc1e92
Author: Alex Schultz <email address hidden>
Date: Fri Mar 3 09:21:59 2017 -0700

    Throw warnings for norpm actions

    If the norpm provider attempts to do any install/update/remove actions,
    we should throw a warning in the logs so people are aware that the
    action did not actually take place.

    Change-Id: Ieee5cac3412c709ba6b39316e455d7708cc9d22e
    Closes-Bug: #1669666
    (cherry picked from commit 2be36167fd223d95a71d557afa9d26bf950e21c8)

tags: added: in-stable-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/puppet-tripleo 7.0.0

This issue was fixed in the openstack/puppet-tripleo 7.0.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/puppet-tripleo 6.4.0

This issue was fixed in the openstack/puppet-tripleo 6.4.0 release.

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.