[NFS] Server resize failed when using volume from image
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Invalid
|
Medium
|
Jean Pierre Roquesalane | ||
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Description: When resizing an instance, an error is thrown to the user:
Error resizing server: 17a238f3-
Error resizing server
Steps to reproduce:
1. Create a bootable volume from an existing image
openstack volume create --image cirros-
2. Create an instance attached to that volume
openstack server create --flavor m1.small --volume volboot --network public server1
3. Resize the server
openstack server resize --flavor m1.medium --wait server1
In the nova compute logfile, we can see an error which refers to the disk format
.
Jan 10 20:29:09 e2e-os-pstorenfs105 nova-compute[
{"direct"
,"driver"
After a first analysis, it seems that during the creation of the volume, qemu-img convert qcow2 file format to raw and never converts it back to qcow2. Attachement information then mistmatches and server resize is failing.
It's an NFS environment.
Changed in cinder: | |
assignee: | nobody → Jean Pierre Roquesalane (jproque15130) |
tags: | added: cache image nfs nova qcow2 |
Changed in cinder: | |
importance: | Undecided → Medium |
summary: |
- Server resize failed when image volume cache enabled + [NFS] Server resize failed when image volume cache enabled |
Changed in cinder: | |
status: | New → In Progress |
Below is the actions executed by cinder at the time of the failure:
Jan 13 02:47:52 e2e-os-pstorenfs105 cinder- volume[ 369491] : INFO cinder. volume. manager [req-387efd2d- a695-4f9f- 850e-aa55cb0c98 90 req-5dd551a8- 1c4c-404f- b232-ef9ca40033 5d admin None] Terminate volume connection completed successfully. volume[ 369491] : DEBUG cinder. volume. manager [req-387efd2d- a695-4f9f- 850e-aa55cb0c98 90 req-5dd551a8- 1c4c-404f- b232-ef9ca40033 5d admin None] Deleting attachment 09b84254- c092-4cfc- 9af9-c08a6f770e fb. {{(pid=369491) attachment_delete /opt/stack/ new/cinder/ cinder/ volume/ manager. py:4998} } volume[ 369491] : DEBUG cinder. volume. drivers. nfs [req-387efd2d- a695-4f9f- 850e-aa55cb0c98 90 req-771ac965- 6761-482d- bd2c-e2ec2c2b1a 39 admin None] Initializing connection to volume 00d0f8b9- 98e4-4d00- b697-24097efd1a 9f. Connector: {'platform': 'x86_64', 'os_type': 'linux', 'ip': '10.228.225.105', 'host': 'e2e-os- pstorenfs105' , 'multipath': True, 'initiator': 'iqn.2005- 03.org. open-iscsi: 37fab0269180' , 'do_local_attach': False, 'uuid': '0801a08f- 93fd-4be3- 8a20-b3607ffd0c 14', 'system uuid': '422a6a69- 7f46-aab6- c409-74221f8028 af', 'nvme_native_ multipath' : False, 'mountpoint': '/dev/vda'} {{(pid=369491) initialize_ connection /opt/stack/ new/cinder/ cinder/ volume/ drivers/ nfs.py: 138}} volume[ 369491] : DEBUG oslo_concurrenc y.processutils [req-387efd2d- a695-4f9f- 850e-aa55cb0c98 90 req-771ac965- 6761-482d- bd2c-e2ec2c2b1a 39 admin None] Running cmd (subprocess): /usr/bin/python3.8 -m oslo_concurrenc y.prlimit --as=1073741824 --cpu=60 -- sudo cinder-rootwrap /etc/cinder/ rootwrap. conf env LC_ALL=C qemu-img info --output=json --force-share /opt/stack/ data/cinder/ mnt/0f31b785b44 925eea1ad3ce3b8 eff927/ volume- 00d0f8b9- 98e4-4d00- b697-24097efd1a 9f {{(pid=369491) execute /usr/local/ lib/python3. 8/dist- packages/ oslo_concurrenc y/processutils. py:384} } volume[ 369491] : DEBUG oslo_concurrenc y.processutils [req-387efd2d- a695-4f9f- 850e-aa55cb0c98 90 req-771ac965- 6761-482d- bd2c-e2ec2c2b1a 39 admin None] CMD "/usr/bin/python3.8 -m oslo_concurrenc y.prlimit --as=1073741824 --cpu=60 -- sudo cinder-rootwrap /etc/cinder/ rootwrap. conf env LC_ALL=C qemu-img info --output=json --force-share /opt/stack/ data/cinder/ mnt/0f31b785b44 925eea1ad3ce3b8 eff927/ volume- 00d0f8b9- 98e4-4d00- b697-24097efd1a 9f" returned: 0 in 0.560s {{(pid=369491) execute /usr/local/ lib/python3. 8/dist- packages/ oslo_concurrenc y/processutils. py:422} } volume[ 369491] : DEBUG cinder. volume. drivers. nfs [req-387efd2d- a695-4f9f- 850e-aa55cb0c98 90 req-771ac965- 6761-482d- bd2c-e2ec2c2b1a 39 admin None] NfsDriver: conn_info: {'driver_ volume_ type': 'nfs', 'data': {'export': '172.16. 20.10:/ openstack- nfs1', 'name': 'volume- 00d0f8b9- 98e4-4d00- b697-24097efd1a 9f', 'options': None, 'format': 'raw'}, 'mount_point_base': '/opt/stack/ data/cinder/ mnt'} {{(pid=369491) initialize_ connection /opt/stack/ new/cinder/ cinder/ volume/ drivers/ nfs.py: 164}} volume[ 369491] : DEBUG cinder. volume. manager [req-387efd2d- a695-4f9f- 850e-aa55cb0c98 9...
Jan 13 02:47:52 e2e-os-pstorenfs105 cinder-
Jan 13 02:47:53 e2e-os-pstorenfs105 cinder-
Jan 13 02:47:53 e2e-os-pstorenfs105 cinder-
Jan 13 02:47:54 e2e-os-pstorenfs105 cinder-
Jan 13 02:47:54 e2e-os-pstorenfs105 cinder-
Jan 13 02:47:54 e2e-os-pstorenfs105 cinder-