Fuel CLI doesn't really deletes nodes

Bug #1539706 reported by Ivan Ponomarev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
High
Fuel Python (Deprecated)
8.0.x
Invalid
High
Fuel Python (Deprecated)
Mitaka
Invalid
High
Fuel Python (Deprecated)

Bug Description

Step to reproduce:
1) Deploy 3 controller 1 compute
2) Shutdown one node offline and wait when it goes offline
3) Delete this node from CLI
[root@nailgun ~]# fuel --env 1 node remove --node 1
Nodes with ids [1] were removed from environment with id 1.
4) List nodes on CLI/UI

Expected result:
Node should be deleted.
node_deletion task should exists

Actual result:
Node still in list.
node_deletion task not in task list
Retrying for deletion return:
[root@nailgun ~]# fuel node remove --node 1
400 Client Error: Bad Request (Can't unassign nodes with ids <nailgun.db.sqlalchemy.models.node.Node object at 0x61d1810> if they not assigned.)

  release: "8.0"
  api: "1.0"
  build_number: "496"
  build_id: "496"
  fuel-nailgun_sha: "934c2d11b234193c6ac8e41cd1388df0ed3583e0"
  python-fuelclient_sha: "4f234669cfe88a9406f4e438b1e1f74f1ef484a5"
  fuel-agent_sha: "e40bcfbb1f5518d7a464cc330909cf09b84e7c20"
  fuel-nailgun-agent_sha: "b2bb466fd5bd92da614cdbd819d6999c510ebfb1"
  astute_sha: "b81577a5b7857c4be8748492bae1dec2fa89b446"
  fuel-library_sha: "b91e96e848057be4acadd10c2b55a6529387fe51"
  fuel-ostf_sha: "ab5fd151fc6c1aa0b35bc2023631b1f4836ecd61"
  fuel-mirror_sha: "351d568fa3b3e4dd062054b91d766aa54d379867"
  fuelmenu_sha: "234cb4cbb30fbd2df00f388c28f31606d9cae15f"
  shotgun_sha: "63645dea384a37dde5c01d4f8905566978e5d906"
  network-checker_sha: "a43cf96cd9532f10794dce736350bf5bed350e9d"
  fuel-upgrade_sha: "616a7490ec7199f69759e97e42f9b97dfc87e85b"
  fuelmain_sha: "6b993b3004e8d97d840b672d6c1d44c320975cd9"

Tags: area-python
Changed in fuel:
status: New → Confirmed
Revision history for this message
Vladimir Kuklin (vkuklin) wrote :

This bug is invalid because you should have used

`fuel node --node-id 1 --delete-from-db` and taken care of this node by yourselves

Revision history for this message
Ivan Ponomarev (ivanzipfer) wrote :

@vkuklin
You want say that node can't be deleted from CLI like from UI?
I mean when you delete offline node from UI the other nodes starts redeploy process, how can I do this by CLI
Or it should be described in cocs

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.