tempest tests failing with "Cannot complete the requested action because chassis NN contains nodes."

Bug #1371755 reported by aeva black
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ironic
Fix Released
Critical
Unassigned

Bug Description

Tempest tests' tearDownClass call is failing randomly with an error that the chassis can not be deleted because it contains nodes. Ironic does not cascade-delete nodes when deleting a chassis, so this error is valid, and indicates that tempest should have cleaned up the nodes prior to deleting the chassis.

For example:

http://logs.openstack.org/23/122423/3/check/check-tempest-dsvm-ironic-pxe_ssh-postgres/04c7358/console.html#_2014-09-19_12_38_13_592

2014-09-19 12:38:13.592 | tearDownClass (tempest.api.baremetal.admin.test_nodes.TestNodes)
2014-09-19 12:38:13.593 | ----------------------------------------------------------------
2014-09-19 12:38:13.593 |
2014-09-19 12:38:13.593 | Captured traceback:
2014-09-19 12:38:13.593 | ~~~~~~~~~~~~~~~~~~~
2014-09-19 12:38:13.593 | Traceback (most recent call last):
2014-09-19 12:38:13.593 | File "tempest/api/baremetal/admin/base.py", line 81, in tearDownClass
2014-09-19 12:38:13.593 | delete_method(u, ignore_errors=exc.NotFound)
2014-09-19 12:38:13.594 | File "tempest/services/baremetal/base.py", line 37, in wrapper
2014-09-19 12:38:13.594 | return f(*args, **kwargs)
2014-09-19 12:38:13.594 | File "tempest/services/baremetal/v1/base_v1.py", line 180, in delete_chassis
2014-09-19 12:38:13.594 | return self._delete_request('chassis', uuid)
2014-09-19 12:38:13.594 | File "tempest/services/baremetal/base.py", line 173, in _delete_request
2014-09-19 12:38:13.594 | resp, body = self.delete(uri)
2014-09-19 12:38:13.595 | File "tempest/common/rest_client.py", line 225, in delete
2014-09-19 12:38:13.595 | return self.request('DELETE', url, extra_headers, headers, body)
2014-09-19 12:38:13.595 | File "tempest/common/rest_client.py", line 435, in request
2014-09-19 12:38:13.595 | resp, resp_body)
2014-09-19 12:38:13.595 | File "tempest/common/rest_client.py", line 484, in _error_checker
2014-09-19 12:38:13.595 | raise exceptions.BadRequest(resp_body)
2014-09-19 12:38:13.595 | BadRequest: Bad request
2014-09-19 12:38:13.596 | Details: {u'error_message': u'{"debuginfo": null, "faultcode": "Client", "faultstring": "Cannot complete the requested action because chassis 14 contains nodes."}'}

aeva black (tenbrae)
Changed in ironic:
status: New → Triaged
importance: Undecided → Critical
milestone: none → juno-rc1
Revision history for this message
Dmitry Tantsur (divius) wrote :
Changed in ironic:
status: Triaged → Fix Committed
Revision history for this message
aeva black (tenbrae) wrote :

This was incorrectly categorized (by me) in Ironic, instead of in Tempest (where it was actually fixed).

Closing it here since it is odd to have an unassigned+fix_committed bug with no commits in the project.

Changed in ironic:
status: Fix Committed → Won't Fix
milestone: juno-rc1 → none
status: Won't Fix → Fix Released
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.