Remove external package, service, class references from manifests

Bug #1489897 reported by Bogdan Dobrelya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
puppet-neutron
Opinion
Undecided
Unassigned

Bug Description

When deploying classes foo (init.pp) and foo::bar (bar.pp) from PO modules in separate puppet runs, there should be no external packages, services, classes references, like Service[foo], Package[foo] for some class foo::bar. At least for packages and services, this issue may be resolved
with <||> collectors instead.

Not sure how to resolve this for Class[foo] references from a class foo::bar

Changed in puppet-openstack:
assignee: nobody → Bogdan Dobrelya (bogdando)
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

To be more clear, here is example:
If user wants to deploy by separate puppet runs the following classes:
class {'neutron':}, class {'neutron-server':}, class {'neutron::plugins::ml2':} class { 'neutron::agents::ml2::ovs':}

she will have to 'unbind' external Class['Neutron'] reference with very ugly hack like this:
# Remove external class dependency and restore required ones
Service <| title == 'neutron-ovs-agent-service' |> {
  require => undef
}
Neutron_plugin_ml2<||> ~> Service['neutron-ovs-agent-service']
File['/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini'] ~>
Service<| title == 'neutron-ovs-agent-service' |>

Changed in puppet-neutron:
assignee: nobody → Bogdan Dobrelya (bogdando)
no longer affects: puppet-openstack
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-neutron (master)

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

Changed in puppet-neutron:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on puppet-neutron (master)

Change abandoned by Bogdan Dobrelya (<email address hidden>) on branch: master
Review: https://review.openstack.org/218797
Reason: Abandoning until times then bp atomic-classes-orchestration will be accepted

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by Bogdan Dobrelya (<email address hidden>) on branch: master
Review: https://review.openstack.org/218825
Reason: Abandoning until times then bp atomic-classes-orchestration will be accepted

Changed in puppet-neutron:
status: In Progress → Opinion
assignee: Bogdan Dobrelya (bogdando) → 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.