fuel puppets needs to know if this is first deployment

Bug #1517466 reported by Michał Górniak
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
Wishlist
Fuel Python (Deprecated)

Bug Description

Hey,
when we make deploy in fuel we know on what node we are (controller, primary-controller, compute, etc) but we don't know if those deploy is first deploy of this enviroment.

The problem is, we can have some operations which we want run only once. And currently we don't have those option. If someone will remove/add controller all tasks will be run one more time, we can try make some local locks but if we remove primary controller we will lose it.

My case is like this:
i create plugin for SDN and i need to remove and add one more time defaults network(but only once during first deploy).
Currently during each redeploy i will make those operation again and it can cause deploy fail because for example someone will attach those nets to instance so i wont be able to remove it.

Ilya Kutukov (ikutukov)
Changed in fuel:
milestone: none → 8.0-updates
assignee: nobody → Fuel Library Team (fuel-library)
importance: Undecided → Medium
importance: Medium → Wishlist
status: New → Confirmed
tags: added: area-library area-plugins
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

Moved to the python team as only the Nailgun backend may "know" if deployment is the first one or not. Library of puppet manifests should not have such info.

tags: added: area-python
removed: area-library
Changed in fuel:
assignee: Fuel Library Team (fuel-library) → Fuel Python Team (fuel-python)
tags: added: life-cycle-management
Revision history for this message
Matthew Mosesohn (raytrac3r) wrote :

In general, Puppet is used to create and ensure resources with idempotency. If you have an exec in puppet, you can add an "unless" or "onlyif" statement that can be used to see "Was this already created?" If you have some example code, we can help you improve the task so it can be run over and over.

Re-implementing task based workflow in hardcoded nailgun or astute tasks is a bad approach and we've been moving away from that for over a year now.

Changed in fuel:
status: Confirmed → Incomplete
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

Agreed, non-idempotant tasks is not a CM way at all

Ilya Kutukov (ikutukov)
Changed in fuel:
milestone: 8.0-updates → 8.0
Dmitry Pyzhov (dpyzhov)
tags: removed: area-plugins
Maciej Relewicz (rlu)
Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Michał Górniak (p4cket)
Revision history for this message
Dmitry Pyzhov (dpyzhov) wrote :

No new updates for a month. Looks like it is not a bug.

Changed in fuel:
assignee: Michał Górniak (p4cket) → Fuel Python Team (fuel-python)
status: Incomplete → Invalid
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.