It is possible to delete online node from db via cli without any restriction
Bug #1435281 reported by
Egor Kotko
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
Medium
|
Przemyslaw Kaminski |
Bug Description
Currently it is possible to delete online node from cluster db without any restriction:
fuel node --node 1 2 --delete-from-db
Need to add some special key for cli command to separate deletion online and offline nodes.
Changed in fuel: | |
status: | New → In Progress |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/166150 /git.openstack. org/cgit/ stackforge/ python- fuelclient/ commit/ ?id=3624051242c 83fdbdd1df9a0e4 66797c06b75043
Committed: https:/
Submitter: Jenkins
Branch: master
commit 3624051242c83fd bdd1df9a0e46679 7c06b75043
Author: Przemyslaw Kaminski <email address hidden>
Date: Fri Mar 20 10:08:15 2015 +0100
Warn about deleting from DB node that is not offline
The --force parameter can be used to force the removal. Otherwise error is
printed and script exits without doing anything.
Usage:
fuel node --node-id 1 2 --delete-from-db
fuel node --node-id 1 --delete-from-db --force
Also, fixed illogical use of check_errors in run_cli_command function.
Implements blueprint node-removal-task
Closes-Bug: #1435281 7ea6224ffc30c92 84427cd5d1c
Change-Id: I0c9e27450c09eb