-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
17.1.7 (Release Skipped)
-
None
-
0
-
False
-
-
False
-
?
-
rhos-workloads-compute
-
None
-
-
-
-
Important
Summary:
- Upon investigation, it was discovered that the volumes attached to the instance are in an inconsistent state.
- The volume `6fc5c484-9004-41c9-8855-3d7ec5a9cedb` is reported as available in the Cinder database but is still listed as attached to the instance in the Nova database.
- Additionally, there are no corresponding entries in the Cinder `volume_attachment` table for these volumes.
- The Nova database still holds block device mapping entries for these volumes, indicating an inconsistency between Nova and Cinder.
Additional context
- The customer reported an issue with an instance unable to start after shelve/unshelve operations, resulting in an "Unexpected API Error."
- The error log pointed to a `nova.exception.NovaException` indicating the inability to find a host for the instance.
- It was identified that the volumes attached to the instance are inconsistent, with one volume reported as available but still attached in Nova's block device mapping.
- Attempts to detach the volumes failed, with one volume being a root device and the other instance-related errors.
openstack server remove volume cbe6ac79-1e76-4760-88cc-472a5f4fe440 6fc5c484-9004-41c9-8855-3d7ec5a9cedb --os-compute-api-version 2.20
Cannot detach a root device volume (HTTP 400) (Request-ID: req-85bb6a6f-32ec-40b3-9f3e-20afa639fd3d)
openstack server remove volume cbe6ac79-1e76-4760-88cc-472a5f4fe440 0b0c8da9-b12e-4e0e-8a41-64db6f76e262
Unexpected API Error. Please report this at
http://bugs.launchpad.net/nova/
and attach the Nova API log if possible.
<class 'nova.exception.InstanceNotReady'> (HTTP 500) (Request-ID: req-3fe12b3b-282b-4b79-9b8e-9dfd0013de36)