openstack::repo::uca class breaks apt::ppa class

Bug #1287316 reported by Clayton O'Neill
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
puppet-openstack
New
Undecided
Unassigned

Bug Description

If the openstack::repo::uca class is included on a Ubuntu 12.04 or earlier node that also has the apt::ppa define included then a dependency cycle will be created. For example, if the following class is included:

    class landscape::facts {
      apt::ppa { 'ppa:landscape/landscape-api': }
     }

Then the following error will result:

    Error: Could not apply complete catalog: Found 1 dependency cycle:
    (Exec[add-apt-repository-ppa:landscape/landscape-api] => Exec[apt_update] => Package[python-software-properties] => Exec[add-apt-repository-ppa:landscape/landscape-api])
    Try the '--graph' option and opening the resulting '.dot' file in OmniGraffle or GraphViz

This is caused by the following line:

    Exec['apt_update'] -> Package<||>

This line forces all packages to depend on the apt_update resource executing, but the apt::ppa define requires the `python-software-properties` package, and must be run before `apt_update`.

This line also introduces the potential problem that it will realize all virtual package on the node, even ones introduced outside of the openstack module, potentially causing other unexpected problems.

Changed in puppet-openstack:
status: New → In Progress
assignee: nobody → Clayton O'Neill (clayton-oneill)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-openstack (stable/havana)

Fix proposed to branch: stable/havana
Review: https://review.openstack.org/77716

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

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

Revision history for this message
Simon Pasquier (simon-pasquier) wrote :

Hi Clayton, are you still working on this one?

Changed in puppet-openstack:
status: In Progress → New
assignee: Clayton O'Neill (clayton-oneill) → nobody
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.