Nova will not detect when extending volume online fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
In Progress
|
Low
|
hulina |
Bug Description
Description
===========
Extending volume in-use may fail, in that case, CLI "nova instance-
https:/
nova extends volume will fail ,however CLI "nova instance-action vmid req-id" returns success,that's wrong
===========
1.create volume-backend VM
compute]# nova boot --flavor 1 --nic net-id=
+------
| Property | Value |
+------
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-STS:vm_state | building |
| OS-SRV-
| OS-SRV-
| accessIPv4 | |
| accessIPv6 | |
| adminPass | TbPSQRBic9NQ |
| config_drive | |
| created | 2019-09-
| description | - |
| flavor:disk | 1 |
| flavor:ephemeral | 0 |
| flavor:extra_specs | {} |
| flavor:
| flavor:ram | 512 |
| flavor:swap | 0 |
| flavor:vcpus | 1 |
| hostId | |
| host_status | |
| id | fe3c831c-
| image | Attempt to boot from volume - no image supplied |
| key_name | - |
| locked | False |
| locked_reason | - |
| metadata | {} |
| name | VM |
| os-extended-
| progress | 0 |
| security_groups | default |
| server_groups | [] |
| status | BUILD |
| tags | [] |
| tenant_id | 92cd1d753cf54f3
| trusted_
| updated | 2019-09-
| user_id | 85c12fb6eada44b
+------
2.Setting specific scenarios to trigger exceptions in
https:/
for example :insert 'extended_
https:/
pass objects.
3. extend instance's volume
root@controller compute]# cinder list
+------
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+------
| 53bc2318-
+------
[root@controller compute]# cinder extend 53bc2318-
[root@controller compute]# cinder list
+------
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+------
| 53bc2318-
+------
4.volume extend successfully in cinder , check extending result in nova, it shows success,In fact,extending volume in nova failed
[root@controller compute]# nova instance-
+------
| Action | Request_ID | Message | Start_Time | Updated_At |
+------
| create | req-c3220c13-
| extend_volume | req-9c233e67-
+------
[root@controller compute]# nova instance-action fe3c831c-
+------
| Property | Value |
+------
| action | extend_volume |
| events | [{u'event': u'compute_
| | u'finish_time': u'2019-
| | u'host': u'controller', |
| | u'hostId': u'b7bbc1111bdc0
| | u'result': u'Success', |
| | u'start_time': u'2019-
| | u'traceback': None}] |
| instance_uuid | fe3c831c-
| message | - |
| project_id | ade79e9fbd42422
| request_id | req-9c233e67-
| start_time | 2019-09-
| updated_at | 2019-09-
| user_id | 647971cd085b448
+------
[root@controller compute]# journalctl -a --unit <email address hidden> |grep req-9c233e67-
Logs:
Sep 06 14:42:42 controller nova-compute[
Sep 06 14:42:42 controller nova-compute[
Sep 06 14:42:42 controller nova-compute[
Changed in nova: | |
assignee: | nobody → hulina (sharonhu) |
tags: | added: compute volumes |
Changed in nova: | |
status: | New → In Progress |
importance: | Undecided → Low |
Related fix proposed to branch: master /review. opendev. org/680648
Review: https:/