When trying to create a glance image we see the following error. The configuration is glance is using cinder as a backend. 2022-02-01 12:22:04.020 25 ERROR glance.common.wsgi TypeError: temporary_chown() got an unexpected keyword argument 'backend'
Verified on: python3-glance-store-1.0.2-2.20220111043148.el8ost.noarch.rpm On a deployment with Glance over Cinder, over netapp iSCSI with multipath enabled: We successfully uploaded a cirros qcow2 image: (overcloud) [stack@undercloud-0 ~]$ glance image-show e8cf1375-c6cc-4e59-bfea-a84b2a4bec55 +----------------------------------+----------------------------------------------------------------------------------+ | Property | Value | +----------------------------------+----------------------------------------------------------------------------------+ | checksum | 443b7623e27ecf03dc9e01ee93f67afe | | container_format | bare | | created_at | 2022-02-13T12:47:48Z | | direct_url | cinder://abcbdf43-73f3-42b5-8545-f32f90fdcddb | --> Cinder backed. | disk_format | qcow2 | | id | e8cf1375-c6cc-4e59-bfea-a84b2a4bec55 | | min_disk | 0 | | min_ram | 0 | | name | cirros | | os_hash_algo | sha512 | | os_hash_value | 6513f21e44aa3da349f248188a44bc304a3653a04122d8fb4535423c8e1d14cd6a153f735bb0982e | | | 2161b5b5186106570c17a9e58b64dd39390617cd5a350f78 | | os_hidden | False | | owner | 055c71e6d74b444a8a637a12826e4491 | | owner_specified.openstack.md5 | | | owner_specified.openstack.object | images/cirros | | owner_specified.openstack.sha256 | | | protected | False | | size | 12716032 | | status | active |---> Active | stores | default_backend | | tags | [] | | updated_at | 2022-02-13T12:48:06Z | | virtual_size | Not available | | visibility | public | +----------------------------------+----------------------------------------------------------------------------------+ (overcloud) [stack@undercloud-0 ~]$ cinder service-list +------------------+--------------------------+------+---------+-------+----------------------------+-----------------+ | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | +------------------+--------------------------+------+---------+-------+----------------------------+-----------------+ | cinder-backup | controller-1 | nova | enabled | up | 2022-02-13T12:50:08.000000 | - | | cinder-scheduler | controller-0 | nova | enabled | up | 2022-02-13T12:50:04.000000 | - | | cinder-scheduler | controller-1 | nova | enabled | up | 2022-02-13T12:50:06.000000 | - | | cinder-scheduler | controller-2 | nova | enabled | up | 2022-02-13T12:50:06.000000 | - | | cinder-volume | hostgroup@tripleo_netapp | nova | enabled | up | 2022-02-13T12:50:00.000000 | - | --> The netapp iSCSI backend. +------------------+--------------------------+------+---------+-------+----------------------------+-----------------+ Now lets try again with a larger qcow2 image, also worked fine: (overcloud) [stack@undercloud-0 ~]$ glance image-create --name rhel7.9 --disk-format qcow2 --container-format bare --file rhel-server-7.9-update-9-x86_64-kvm.qcow2 +------------------+----------------------------------------------------------------------------------+ | Property | Value | +------------------+----------------------------------------------------------------------------------+ | checksum | 82dea14f2fac8b27009c5f926f885f5a | | container_format | bare | | created_at | 2022-02-13T12:55:09Z | | direct_url | cinder://d204bf63-ed07-48ea-b210-04cca43f9df9 | | disk_format | qcow2 | | id | ae3a7a0f-059f-42e0-94cb-43ab300a4239 | | min_disk | 0 | | min_ram | 0 | | name | rhel7.9 | | os_hash_algo | sha512 | | os_hash_value | 5076869a5a0bed649fbfcb3373d1d85090bc315c1c9ccf714307dbe20b2b52f6af9ebc1657f0d3c0 | | | 2dd11775966d67165f3530a8fb176b0ddfccc850059fbb31 | | os_hidden | False | | owner | 055c71e6d74b444a8a637a12826e4491 | | protected | False | | size | 845833216 | | status | active |--> active image. | stores | default_backend | | tags | [] | | updated_at | 2022-02-13T12:55:28Z | | virtual_size | Not available | | visibility | shared | +------------------+----------------------------------------------------------------------------------+ Now this time lets try with a raw image: (overcloud) [stack@undercloud-0 ~]$ qemu-img convert -f qcow2 -O raw rhel-server-7.9-update-9-x86_64-kvm.qcow2 rhel-server-7.9-update-9-x86_64-kvm.raw (overcloud) [stack@undercloud-0 ~]$ glance image-create --name rhel7.9.raw --disk-format raw --container-format bare --file rhel-server-7.9-update-9-x86_64-kvm.raw +------------------+----------------------------------------------------------------------------------+ | Property | Value | +------------------+----------------------------------------------------------------------------------+ | checksum | 1e45e025443492de8d6e4b38ec265abe | | container_format | bare | | created_at | 2022-02-13T13:01:49Z | | direct_url | cinder://c8f12ad0-16b6-415c-a82b-f52628429946 | | disk_format | raw | | id | 2628daec-9274-42e3-8a87-1f0aed015948 | | min_disk | 0 | | min_ram | 0 | | name | rhel7.9.raw | | os_hash_algo | sha512 | | os_hash_value | 9266d25c2b74881526a5807fd594d4a145db99cde1e52fdbbefcade841daaefffa18cef0eb131760 | | | 06369a91e5c6e7d72f1df2ae68d24d889e057236b9d59e77 | | os_hidden | False | | owner | 055c71e6d74b444a8a637a12826e4491 | | protected | False | | size | 10737418240 | | status | active |--> Also active. | stores | default_backend | | tags | [] | | updated_at | 2022-02-13T13:04:45Z | | virtual_size | Not available | | visibility | shared | +------------------+----------------------------------------------------------------------------------+ Looking good, I happened to have the same version deployed on a second environment this time Glance over Cinder over Netapp NFS. Lets retest again: (overcloud) [stack@undercloud-0 ~]$ glance image-create --name rhel7.9 --disk-format qcow2 --container-format bare --file rhel-server-7.9-update-9-x86_64-kvm.qcow2 +------------------+----------------------------------------------------------------------------------+ | Property | Value | +------------------+----------------------------------------------------------------------------------+ | checksum | 82dea14f2fac8b27009c5f926f885f5a | | container_format | bare | | created_at | 2022-02-13T20:30:16Z | | direct_url | cinder://f140997d-049d-45e4-8faa-724ff9bf3e26 | | disk_format | qcow2 | | id | 08e23643-e366-426d-84c0-8362ed8136c9 | | min_disk | 0 | | min_ram | 0 | | name | rhel7.9 | | os_hash_algo | sha512 | | os_hash_value | 5076869a5a0bed649fbfcb3373d1d85090bc315c1c9ccf714307dbe20b2b52f6af9ebc1657f0d3c0 | | | 2dd11775966d67165f3530a8fb176b0ddfccc850059fbb31 | | os_hidden | False | | owner | 9f5853b196334a2cba5b83259839ee4e | | protected | False | | size | 845833216 | | status | active | | stores | default_backend | | tags | [] | | updated_at | 2022-02-13T20:30:52Z | | virtual_size | Not available | | visibility | shared | +------------------+----------------------------------------------------------------------------------+ Again with raw format this time: (overcloud) [stack@undercloud-0 ~]$ glance image-create --name rhel7.9.raw --disk-format raw --container-format bare --file rhel-server-7.9-update-9-x86_64-kvm.raw +------------------+----------------------------------------------------------------------------------+ | Property | Value | +------------------+----------------------------------------------------------------------------------+ | checksum | 1e45e025443492de8d6e4b38ec265abe | | container_format | bare | | created_at | 2022-02-13T20:32:14Z | | direct_url | cinder://0d26b988-982a-4cb9-9adf-6c3fae462afb | | disk_format | raw | | id | 3d0b245e-84d7-4ca9-bcc0-d029cc1b2290 | | min_disk | 0 | | min_ram | 0 | | name | rhel7.9.raw | | os_hash_algo | sha512 | | os_hash_value | 9266d25c2b74881526a5807fd594d4a145db99cde1e52fdbbefcade841daaefffa18cef0eb131760 | | | 06369a91e5c6e7d72f1df2ae68d24d889e057236b9d59e77 | | os_hidden | False | | owner | 9f5853b196334a2cba5b83259839ee4e | | protected | False | | size | 10737418240 | | status | active | | stores | default_backend | | tags | [] | | updated_at | 2022-02-13T20:34:46Z | | virtual_size | Not available | | visibility | shared | +------------------+----------------------------------------------------------------------------------+ Good to verify, having shown that we successfully managed to upload/create 5 images on Glance While Glance is backed by Cinder, which itself is backed by either Netapp iSCSI or NFS.
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 (Release of components for Red Hat OpenStack Platform 16.2.2), 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:1001