wrong order of execution of cloud-init modules. 'write_files' is executed before 'runcmd'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
High
|
Mikhail Zhnichkov | ||
Mitaka |
Won't Fix
|
High
|
Sergey Slipushenko |
Bug Description
it's expected that 'write_files' will be executed at the very end of cloud-init and it must be likely the last module to be executed by cloud-init. At least, it shall be executed before 'runcmd'
cloud-init modules will be executed by the order they were defined in cloud.cfg:
Eg. http://
having 'write_files' processed before 'runcmd' could indicate a node to be completely provisioned while it's not true. 'runcmd' could be executed and interfere with the first tasks of granular deployment.
in other words, this is the root cause of https:/
provided fix for #1536924 only mitigates the issue.
Changed in fuel: | |
importance: | Undecided → Medium |
importance: | Medium → High |
assignee: | nobody → Fuel Python Team (fuel-python) |
status: | New → Confirmed |
tags: | added: area-python tech-debt |
Changed in fuel: | |
assignee: | Fuel Python Team (fuel-python) → Sergey Slipushenko (sslypushenko) |
Changed in fuel: | |
assignee: | Sergey Slipushenko (sslypushenko) → Alexander Saprykin (cutwater) |
assignee: | Alexander Saprykin (cutwater) → Sergey Slipushenko (sslypushenko) |
Changed in fuel: | |
milestone: | 9.0 → 10.0 |
Changed in fuel: | |
assignee: | Sergey Slipushenko (sslypushenko) → Fuel Python (Deprecated) (fuel-python) |
Changed in fuel: | |
assignee: | Fuel Python (Deprecated) (fuel-python) → Fuel Sustaining (fuel-sustaining-team) |
Changed in fuel: | |
assignee: | Fuel Sustaining (fuel-sustaining-team) → Mikhail Zhnichkov (mzhnichkov) |
2016-02-05 15:27:33,779 - util.py[DEBUG]: Writing to /var/lib/ cloud/instances /nocloud/ sem/config_ write_files - wb: [420] 19 bytes cloud/instances /nocloud/ sem/config_ write_files' >) files.py[ WARNING] : Undecodable permissions None, assuming 420 agent/config. yaml - wb: [420] 36 bytes agent/config. yaml to 0:0 files.py[ WARNING] : Undecodable permissions None, assuming 420 systemtype - wb: [420] 6 bytes systemtype to 0:0
2016-02-05 15:27:33,780 - helpers.py[DEBUG]: Running config-write-files using lock (<FileLock using file '/var/lib/
2016-02-05 15:27:33,780 - cc_write_
2016-02-05 15:27:33,781 - util.py[DEBUG]: Writing to /etc/nailgun-
2016-02-05 15:27:33,782 - util.py[DEBUG]: Changing the ownership of /etc/nailgun-
2016-02-05 15:27:33,782 - cc_write_
2016-02-05 15:27:33,782 - util.py[DEBUG]: Writing to /etc/nailgun_
2016-02-05 15:27:33,783 - util.py[DEBUG]: Changing the ownership of /etc/nailgun_
Feb 5 15:27:40 node-5 [CLOUDINIT] util.py[DEBUG]: Writing to /var/lib/ cloud/instances /nocloud/ sem/config_ runcmd - wb: [420] 20 bytes cloud/instances /nocloud/ sem/config_ runcmd' >) cloud/instances /nocloud/ scripts/ runcmd - wb: [448] 178 bytes
Feb 5 15:27:40 node-5 [CLOUDINIT] helpers.py[DEBUG]: Running config-runcmd using lock (<FileLock using file '/var/lib/
Feb 5 15:27:40 node-5 [CLOUDINIT] util.py[DEBUG]: Shellified 5 commands.
Feb 5 15:27:40 node-5 [CLOUDINIT] util.py[DEBUG]: Writing to /var/lib/
Feb 5 15:27:54 node-5 [CLOUDINIT] util.py[DEBUG]: Running command ['/var/ lib/cloud/ instance/ scripts/ runcmd' ] with allowed return codes [0] (shell=False, capture=False)