Issue with creating a snapshot volume because root volume cannot be detached

Solution In Progress - Updated -

Issue

  • We have to patch the Openstack VMs from RHEL 7.4 to RHEL 7.6. As part of patching, we need to create the snapshot of root volume. However it failing with below error:
root@undercloud:~/bin#  nova volume-detach vm_hostname_01 56e0e1fe-bc73-4d15-83d3-b09adaa7a45e
ERROR (Forbidden): Can't detach root device volume (HTTP 403) (Request-ID: req-aed80755-d975-4b92-b01b-8f8cd8dbeff5)
root@undercloud:~/bin# nova show vm_hostname_01
+--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+
| Property                             | Value                                                                                                                         |
+--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+
| Caniff_Lab_BM7 network               | 10.10.10.10                                                                                                                 |
| OS-DCF:diskConfig                    | AUTO                                                                                                                          |
| OS-EXT-AZ:availability_zone          | nova                                                                                                                          |
| OS-EXT-STS:power_state               | 4                                                                                                                             |
| OS-EXT-STS:task_state                | -                                                                                                                             |
| OS-EXT-STS:vm_state                  | stopped                                                                                                                       |
| OS-SRV-USG:launched_at               | 2019-05-01T13:09:20.000000                                                                                                    |
| OS-SRV-USG:terminated_at             | -                                                                                                                             |
| Test Network network                 | 10.10.10.10, 10.10.10.11                                                                                                      |
| accessIPv4                           |                                                                                                                               |
| accessIPv6                           |                                                                                                                               |
| config_drive                         |                                                                                                                               |
| created                              | 2019-05-01T13:09:01Z                                                                                                          |
| description                          | vm_hostname_01                                                                                                                   |
| flavor                               | flavor (fc4d8112-610d-4b0a-a332-ebba91be1aa4)                                                                      |
| hostId                               | 2814eb61ab29cc7c0912dc255b8fa4b397dae7ed0e3b72cf4ba11a29                                                                      |
| id                                   | 07d81e47-6d7f-4f53-8343-b3f5109cee13                                                                                          |
| image                                | Attempt to boot from volume - no image supplied                                                                               |
| key_name                             | DMOY29-178                                                                                                                    |
| locked                               | False                                                                                                                         |
| metadata                             | {}                                                                                                                            |
| name                                 | vm_hostname_01                                                                                                                   |
| os-extended-volumes:volumes_attached | [{"id": "56e0e1fe-bc73-4d15-83d3-b09adaa7a45e", "delete_on_termination": false}, {"id": "1b6ad6a4-ea2e-4e67-8d6e-53e3bd4b7ca8"|
| security_groups                      | default                                                                                                                       |
| status                               | SHUTOFF                                                                                                                       |
| tenant_id                            | c4e91855e18f4e39a044a806caef89b0                                                                                              |
| updated                              | 2019-11-28T14:24:49Z                                                                                                          |
| user_id                              | d72e3fc44f0a4c258c32d4c6eeac76f8                                                                                              |
+--------------------------------------+-------------------------------------------------------------------------------------------------------------------------------+

Environment

  • Red Hat OpenStack Platform 14.0 (RHOSP)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In