It is possible to delete online node from db via cli without any restriction

Bug #1435281 reported by Egor Kotko
6
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.

Tags: cli
Changed in fuel:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-fuelclient (master)

Reviewed: https://review.openstack.org/166150
Committed: https://git.openstack.org/cgit/stackforge/python-fuelclient/commit/?id=3624051242c83fdbdd1df9a0e466797c06b75043
Submitter: Jenkins
Branch: master

commit 3624051242c83fdbdd1df9a0e466797c06b75043
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
    Change-Id: I0c9e27450c09eb7ea6224ffc30c9284427cd5d1c

Changed in fuel:
status: In Progress → Fix Committed
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.