Bug 2035472
Summary: | When adding a qcow2 image to a cinder backed glance_store, the incremental volume extend is broken | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Rajat Dhasmana <rdhasman> |
Component: | python-glance-store | Assignee: | Cyril Roelandt <cyril> |
Status: | CLOSED ERRATA | QA Contact: | Tzach Shefi <tshefi> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 16.1 (Train) | CC: | apevec, lhh, tshefi |
Target Milestone: | z8 | Keywords: | Triaged |
Target Release: | 16.1 (Train on RHEL 8.2) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | python-glance-store-1.0.2-1.20220110223455.bc62bb4 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-03-24 11:03:21 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 2009039, 2037037, 2037039 | ||
Bug Blocks: |
Description
Rajat Dhasmana
2021-12-24 07:30:29 UTC
Verified on: python3-glance-store-1.0.2-1.20220110223456.el8ost.noarch On a deployment with Glance over Cinder over Netapp NFS. Left Cinder's default raw volumes, Using this large image: (overcloud) [stack@undercloud-0 ~]$ qemu-img info windows_server_2012_r2_standard_eval_kvm_20170321.qcow2 image: windows_server_2012_r2_standard_eval_kvm_20170321.qcow2 file format: qcow2 virtual size: 12.2 GiB (13096714240 bytes) disk size: 11.2 GiB cluster_size: 65536 Format specific information: compat: 0.10 compression type: zlib refcount bits: 16 First attempt, lets upload to glance as a qcow2 (overcloud) [stack@undercloud-0 ~]$ glance image-create --name Windows.qcow2 --disk-format qcow2 --container-format bare --file windows_server_2012_r2_standard_eval_kvm_20170321.qcow2 --progress [=============================>] 100% +------------------+----------------------------------------------------------------------------------+ | Property | Value | +------------------+----------------------------------------------------------------------------------+ | checksum | a05ead3a04ae663da77eee5d2cb2fa73 | | container_format | bare | | created_at | 2022-03-07T14:41:41Z | | direct_url | cinder://6dc44b30-20ce-4c6b-9f94-11edc235a11b | | disk_format | qcow2 | | id | 79934905-be78-49f0-8604-fd45dbe87f13 | | min_disk | 0 | | min_ram | 0 | | name | Windows.qcow2 | | os_hash_algo | sha512 | | os_hash_value | 9bd12698b1cb46e09243fd5704e14292e7393c84a4de178f536caaf21b9222c94d5080cbec69eafe | | | 69fd7a7694fe14d792425c5fbb89a89727d2d2615e62890a | | os_hidden | False | | owner | 8cd92774d2a24296b519b8f6382781c6 | | protected | False | | size | 12001017856 | | status | active | | stores | default_backend | | tags | [] | | updated_at | 2022-03-07T14:45:16Z | | virtual_size | Not available | | visibility | shared | +------------------+----------------------------------------------------------------------------------+ (overcloud) [stack@undercloud-0 ~]$ cinder list --all +--------------------------------------+----------------------------------+-----------+--------------------------------------------+------+-------------+----------+-------------+ | ID | Tenant ID | Status | Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+----------------------------------+-----------+--------------------------------------------+------+-------------+----------+-------------+ | 6dc44b30-20ce-4c6b-9f94-11edc235a11b | 2332dec9e9d34e51bc0a9e7e57930439 | available | image-79934905-be78-49f0-8604-fd45dbe87f13 | 12 | tripleo | false | | +--------------------------------------+----------------------------------+-----------+--------------------------------------------+------+-------------+----------+-------------+ Great image uploaded successfully, due to the image's large disk size of 11.2 GiB, which is way larger than the default 1 GiB initial volume size, we expected and as shown below on log indeed had to extend/resize the backing Cinder volume several time again and again. Cinder volume log reports several resize cycles: root@controller-2 cinder]# grep -irn resize cinder-volume.log 7386:2022-03-07 14:44:07.295 47 DEBUG oslo_concurrency.processutils [req-a695ff01-6346-4821-9ec4-304a48e378a3 074c1b76b6f74ca1b0cfd85192181f00 2332dec9e9d34e51bc0a9e7e57930439 - default default] Running cmd (subprocess): qemu-img resize -f raw /var/lib/cinder/mnt/de7de858b94dc496d8c1a0c52a2c79a8/volume-6dc44b30-20ce-4c6b-9f94-11edc235a11b 8G execute /usr/lib/python3.6/site-packages/oslo_concurrency/processutils.py:372 7387:2022-03-07 14:44:07.314 47 DEBUG oslo_concurrency.processutils [req-a695ff01-6346-4821-9ec4-304a48e378a3 074c1b76b6f74ca1b0cfd85192181f00 2332dec9e9d34e51bc0a9e7e57930439 - default default] CMD "qemu-img resize -f raw /var/lib/cinder/mnt/de7de858b94dc496d8c1a0c52a2c79a8/volume-6dc44b30-20ce-4c6b-9f94-11edc235a11b 8G" returned: 0 in 0.019s execute /usr/lib/python3.6/site-packages/oslo_concurrency/processutils.py:409 7408:2022-03-07 14:44:22.585 47 DEBUG cinder.volume.drivers.netapp.dataontap.nfs_base [req-acfd0a0a-fb5a-437c-a523-51b317ecfe8b 074c1b76b6f74ca1b0cfd85192181f00 2332dec9e9d34e51bc0a9e7e57930439 - default default] Checking file for resize _resize_image_file /usr/lib/python3.6/site-packages/cinder/volume/drivers/netapp/dataontap/nfs_base.py:651 7412:2022-03-07 14:44:22.666 47 DEBUG oslo_concurrency.processutils [req-acfd0a0a-fb5a-437c-a523-51b317ecfe8b 074c1b76b6f74ca1b0cfd85192181f00 2332dec9e9d34e51bc0a9e7e57930439 - default default] Running cmd (subprocess): qemu-img resize -f raw /var/lib/cinder/mnt/de7de858b94dc496d8c1a0c52a2c79a8/volume-6dc44b30-20ce-4c6b-9f94-11edc235a11b 9G execute /usr/lib/python3.6/site-packages/oslo_concurrency/processutils.py:372 7413:2022-03-07 14:44:22.685 47 DEBUG oslo_concurrency.processutils [req-acfd0a0a-fb5a-437c-a523-51b317ecfe8b 074c1b76b6f74ca1b0cfd85192181f00 2332dec9e9d34e51bc0a9e7e57930439 - default default] CMD "qemu-img resize -f raw /var/lib/cinder/mnt/de7de858b94dc496d8c1a0c52a2c79a8/volume-6dc44b30-20ce-4c6b-9f94-11edc235a11b 9G" returned: 0 in 0.019s execute /usr/lib/python3.6/site-packages/oslo_concurrency/processutils.py:409 I know the bug was about uploading about qcow2, but I already have this large source image, lets retest with a raw source image just for fun. qemu-img convert -f qcow2 -O raw windows_server_2012_r2_standard_eval_kvm_20170321.qcow2 windows_server_2012_r2_standard_eval_kvm_20170321.raw (overcloud) [stack@undercloud-0 ~]$ glance image-create --name Windows.raw --disk-format raw --container-format bare --file windows_server_2012_r2_standard_eval_kvm_20170321.raw --progress [=============================>] 100% +------------------+----------------------------------------------------------------------------------+ | Property | Value | +------------------+----------------------------------------------------------------------------------+ | checksum | ff159818151720930f5790aa65a36f06 | | container_format | bare | | created_at | 2022-03-07T14:47:51Z | | direct_url | cinder://5250e594-0488-46d7-a94c-0a94a6527a0c | | disk_format | raw | | id | 727d9f61-66c7-4cc3-948d-69e6a28876ad | | min_disk | 0 | | min_ram | 0 | | name | Windows.raw | | os_hash_algo | sha512 | | os_hash_value | daff8b086e029322a410345f104e2cbaafd61e248827400d123c3dfe983f5890b5633d9dcc06eba5 | | | 9fc74c3eaacc047148c5c31c594a2db55c8712efae244555 | | os_hidden | False | | owner | 8cd92774d2a24296b519b8f6382781c6 | | protected | False | | size | 13096714240 | | status | active | | stores | default_backend | | tags | [] | | updated_at | 2022-03-07T14:51:04Z | | virtual_size | Not available | | visibility | shared | +------------------+----------------------------------------------------------------------------------+ (overcloud) [stack@undercloud-0 ~]$ cinder list --all +--------------------------------------+----------------------------------+-----------+--------------------------------------------+------+-------------+----------+-------------+ | ID | Tenant ID | Status | Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+----------------------------------+-----------+--------------------------------------------+------+-------------+----------+-------------+ | 5250e594-0488-46d7-a94c-0a94a6527a0c | 2332dec9e9d34e51bc0a9e7e57930439 | available | image-727d9f61-66c7-4cc3-948d-69e6a28876ad | 13 | tripleo | false | | | 6dc44b30-20ce-4c6b-9f94-11edc235a11b | 2332dec9e9d34e51bc0a9e7e57930439 | available | image-79934905-be78-49f0-8604-fd45dbe87f13 | 12 | tripleo | false | | +--------------------------------------+----------------------------------+-----------+--------------------------------------------+------+-------------+----------+-------------+ Again successfully upload to Glance over cinder over netapp nfs. As we noted above extend is no longer broken and works with both qcow2 as well as raw images, good to verify. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Red Hat OpenStack Platform 16.1.8 bug fix and enhancement advisory), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2022:0986 |