[NFS] Nova raises error on server resize command
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Invalid
|
Low
|
Unassigned | ||
OpenStack Compute (nova) |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
[env] devstack
[OS] Ubuntu 20.04.4 LTS
[driver] generic-nfs
Nova raises error when changing the parameters of the instance and connected disk with the type volume generic-nfs.
Execution steps for this case:
1. Create a new volume with image and with type generic-nfs
2. Create a new instance with boot volume.
3. Do something interactive with the guest like get its console output.
4. Modify server disk and RAM to other provided flavor via openstack cli "server resize --flavor FLAVOR INST"
/etc/cinder/
[generic-nfs]
volume_
nfs_qcow2_
nfs_snapshot_
nfs_sparsed_
nas_host=nas_ip
nas_share_
nas_secure_
nas_secure_
volume_
(openstack) server list
| ID | Name | Status | Networks | Image | Flavor |
+------
| 78355147-
(openstack) volume show genericVolume
| Field | Value |
| attachments | [] |
| availability_zone | nova |
| bootable | true |
| consistencygroup_id | None |
| created_at | 2022-07-
| description | |
| encrypted | False |
| id | b2ed4de3-
| migration_status | None |
| multiattach | False |
| name | genericVolume |
| os-vol-
| os-vol-
| os-vol-
| os-vol-
| properties | |
| replication_status | None |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | attaching |
| type | generic-nfs |
| updated_at | 2022-07-
| user_id | b55ef3ba9767425
| volume_
(openstack) server resize --flavor 2 testGenericInst
<email address hidden> output
Jul 13 03:17:08 ubuntu nova-compute[991]: : libvirt.
Jul 13 03:17:08 ubuntu nova-compute[991]: ERROR nova.virt.
Jul 13 03:17:08 ubuntu nova-compute[991]: ERROR nova.virt.
Jul 13 03:17:08 ubuntu nova-compute[991]: ERROR nova.virt.
Jul 13 03:17:08 ubuntu nova-compute[991]: ERROR nova.virt.
Jul 13 03:17:08 ubuntu nova-compute[991]: ERROR nova.virt.
Jul 13 03:17:08 ubuntu nova-compute[991]: ERROR nova.virt.
Jul 13 03:17:08 ubuntu nova-compute[991]: ERROR nova.virt.
Jul 13 03:17:08 ubuntu nova-compute[991]: ERROR nova.virt.
Jul 13 03:17:08 ubuntu nova-compute[991]: ERROR nova.virt.
Jul 13 03:17:08 ubuntu nova-compute[991]: ERROR nova.virt.
Jul 13 03:17:08 ubuntu nova-compute[991]: ERROR nova.virt.
Jul 13 03:17:08 ubuntu nova-compute[991]: ERROR nova.virt.
Jul 13 03:17:08 ubuntu nova-compute[991]: ERROR nova.virt.
Jul 13 03:17:08 ubuntu nova-compute[991]: ERROR nova.virt.
Jul 13 03:17:08 ubuntu nova-compute[991]: ERROR nova.virt.
Jul 13 03:17:08 ubuntu nova-compute[991]: ERROR nova.virt.
Jul 13 03:17:08 ubuntu nova-compute[991]: ERROR nova.virt.
Jul 13 03:17:08 ubuntu nova-compute[991]: ERROR nova.virt.
qemu-img info ./volume-
image: ./volume-
file format: raw
virtual size: 1 GiB (1073741824 bytes)
disk size: 56.4 MiB
tags: | added: image nfs |
tags: | added: nova resize |
Changed in cinder: | |
importance: | Undecided → Low |
Greetings,
As far as I understand, the generic-nfs tend to format raw volumes instead of qcow2, so I do not think this problem is an issue with Cinder.
I am not sure I understand why it is mandatory to use a qcow2 volume during instance resizing, I think nova could use the raw volume.
Please let me know if this is not correct and if you need my input again.
Sofia