While deploy through CLI we need possibility for enable debug mode

Registered by Sergey Vasilenko

Usually, using CLI, we deploy env by command
# fuel --env=N deploy
we need --debug option, that will do following:

* add "debug: true" to astute.yaml
* start puppet by mcollective with --debug key

Blueprint information

Status:
Complete
Approver:
Dmitry Pyzhov
Priority:
Low
Drafter:
Andrey Danin
Direction:
Approved
Assignee:
Andrey Danin
Definition:
Approved
Series goal:
Accepted for 4.0.x
Implementation:
Implemented
Milestone target:
milestone icon 4.0
Started by
Andrey Danin
Completed by
Andrey Danin

Related branches

Sprints

Whiteboard

We already have the 'debug' flag on the 'OpenStack settings' tab on UI. This flag is propagated to astute.yaml direclty. I can use this flag to run puppet agent in debug mode.

To modify the flag by CLI you should:
# download environment settings
$ fuel settings --env 2 --download

# find and modify the flag in the donwloaded JSON file
# The value you should change is ['editable']['common']['debug']['value'] in the JSON
$vi /root/settings_2.json

# upload the new settings
$ fuel settings --env 2 --upload

I made a pull request with fix for 4.0 https://review.openstack.org/57414

PR for 3.2-fixes:

Gerrit topic: https://review.openstack.org/#q,topic:bp/fuel-enable-debug-in-cli,n,z

Addressed by: https://review.openstack.org/58815
    Run puppet in debug mode if 'debug' fact is set

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.