Multiple chassis delete breaking in between the operation.

Bug #1644591 reported by abdul nizamuddin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-ironicclient
In Progress
Medium
M V P Nitesh

Bug Description

multiple chassis delete will not complete if any one of the chassis contains node.
For example :

# ironic node-show 98a44c27-0cb5-43ea-b77f-624c75a7860d
+------------------------+--------------------------------------+
| Property | Value |
+------------------------+--------------------------------------+
| chassis_uuid | a024b04a-37fe-446e-b79d-84ed9fa049d7 |
| clean_step | {} |
| console_enabled | False |
| created_at | 2016-11-24T05:00:52+00:00 |
| driver | pxe_ipmitool |
| driver_info | {} |
| driver_internal_info | {} |
| extra | {} |
| inspection_finished_at | None |
| inspection_started_at | None |
| instance_info | {} |
| instance_uuid | None |
| last_error | None |
| maintenance | False |
| maintenance_reason | None |
| name | None |
| network_interface | |
| power_state | None |
| properties | {} |
| provision_state | available |
| provision_updated_at | None |
| raid_config | |
| reservation | None |
| resource_class | |
| target_power_state | None |
| target_provision_state | None |
| target_raid_config | |
| updated_at | None |
| uuid | 98a44c27-0cb5-43ea-b77f-624c75a7860d |
+------------------------+--------------------------------------+

# ironic chassis-list
+--------------------------------------+--------------------------------------------------+
| UUID | Description |
+--------------------------------------+--------------------------------------------------+
| a024b04a-37fe-446e-b79d-84ed9fa049d7 | Chassis with Node |
| b513aa04-cdcc-49bb-83d3-ac0890319f3f | Chassis without Node |
| d91c991f-9f46-4de8-9bed-47e5867925ae | Chassis without Node |
+--------------------------------------+--------------------------------------------------+

# ironic chassis-delete b513aa04-cdcc-49bb-83d3-ac0890319f3f a024b04a-37fe-446e-b79d-84ed9fa049d7 d91c991f-9f46-4de8-9bed-47e5867925ae
Deleted chassis b513aa04-cdcc-49bb-83d3-ac0890319f3f
Cannot complete the requested action because chassis a024b04a-37fe-446e-b79d-84ed9fa049d7 contains nodes. (HTTP 400)

Now here 3rd argumment should have deleted as it does not contain any node but it is not deleting it.

Vladyslav Drok (vdrok)
Changed in python-ironicclient:
status: New → Confirmed
importance: Undecided → Medium
Changed in python-ironicclient:
assignee: nobody → abdul nizamuddin (abdul-nizamuddin)
Changed in python-ironicclient:
status: Confirmed → Triaged
M V P Nitesh (m-nitesh)
Changed in python-ironicclient:
assignee: abdul nizamuddin (abdul-nizamuddin) → M V P Nitesh (m-nitesh)
Revision history for this message
Thomas Maddox (thomas-maddox) wrote :

Are you currently working on this bug?

Revision history for this message
M V P Nitesh (m-nitesh) wrote :

Yes Thomas Maddox , i'm working on this

Changed in python-ironicclient:
status: Triaged → In Progress
Revision history for this message
Ruby Loo (rloo) wrote :

Hi m-nitesh, I don't see any patch for this, and it's been 6 months. I'm going to unassign you, and reset the status of this. If you are working on it, please add a link to the code patch, and reassign to yourself. Thanks.

Changed in python-ironicclient:
assignee: M V P Nitesh (m-nitesh) → nobody
status: In Progress → Triaged
Changed in python-ironicclient:
assignee: nobody → M V P Nitesh (m-nitesh)
status: Triaged → In Progress
Revision history for this message
M V P Nitesh (m-nitesh) wrote :

Hi Ruby Loo,
I've put the patch for this in April only, I've written the closes-bug wrongly,
today i've updated it.
Please go through the patch https://review.openstack.org/#/c/455662

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.