This bug was initially created as a copy of Bug #2049130 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-1.20220110223456.el8ost.noarch On a deployment with Glance over Cinder over Netapp iSCSI, I was able to successfully upload three images to glance: (overcloud) [stack@undercloud-0 ~]$ glance image-show e24b5dee-b169-4895-a2b6-9de22fa9eb9a +----------------------------------+----------------------------------------------------------------------------------+ | Property | Value | +----------------------------------+----------------------------------------------------------------------------------+ | checksum | 443b7623e27ecf03dc9e01ee93f67afe | | container_format | bare | | created_at | 2022-03-02T10:35:07Z | | direct_url | cinder://d3cbbc2e-f129-41e5-88b7-ff5b497ad697 | | disk_format | qcow2 | | id | e24b5dee-b169-4895-a2b6-9de22fa9eb9a | | min_disk | 0 | | min_ram | 0 | | name | cirros | | os_hash_algo | sha512 | | os_hash_value | 6513f21e44aa3da349f248188a44bc304a3653a04122d8fb4535423c8e1d14cd6a153f735bb0982e | | | 2161b5b5186106570c17a9e58b64dd39390617cd5a350f78 | | os_hidden | False | | owner | 19d5920d1789476d9c3541e3da5574aa | | owner_specified.openstack.md5 | | | owner_specified.openstack.object | images/cirros | | owner_specified.openstack.sha256 | | | protected | False | | size | 12716032 | | status | active | | stores | default_backend | | tags | [] | | updated_at | 2022-03-02T10:35:21Z | | virtual_size | Not available | | visibility | public | +----------------------------------+----------------------------------------------------------------------------------+ And another larger qcow2 image this time: (overcloud) [stack@undercloud-0 ~]$ glance image-create --disk-format qcow2 --container-format bare --file rhel-8.5-update-2-x86_64-kvm.qcow2 --name rhel8.5 --progress [=============================>] 100% +------------------+----------------------------------------------------------------------------------+ | Property | Value | +------------------+----------------------------------------------------------------------------------+ | checksum | 6e494d2b830cd2f2372364b035e93598 | | container_format | bare | | created_at | 2022-03-02T10:42:45Z | | direct_url | cinder://d2594f15-3f72-468b-a9a0-dce6a69a930e | | disk_format | qcow2 | | id | 0d5a60dd-f44b-4bb7-9408-804af7eb6f1f | | min_disk | 0 | | min_ram | 0 | | name | rhel8.5 | | os_hash_algo | sha512 | | os_hash_value | 5bda0e42020f8d8e3d547de633e69c5ff442aa0b59d92e81d5bb6142fc95f4678049f72264689077 | | | 26c66d42f8498730f5ec5add9cb7f52dfe1f716410b78fa2 | | os_hidden | False | | owner | 19d5920d1789476d9c3541e3da5574aa | | protected | False | | size | 779681792 | | status | active | | stores | default_backend | | tags | [] | | updated_at | 2022-03-02T10:43:04Z | | virtual_size | Not available | | visibility | shared | +------------------+----------------------------------------------------------------------------------+ And a third raw image just for good measure: (overcloud) [stack@undercloud-0 ~]$ qemu-img convert -f qcow2 -O raw rhel-server-7.9-update-3-x86_64-kvm.qcow2 rhel-server-7.9-update-3-x86_64-kvm.raw (overcloud) [stack@undercloud-0 ~]$ glance image-create --disk-format raw --container-format bare --file rhel-server-7.9-update-3-x86_64-kvm.raw --name rhel79.raw --progress [=============================>] 100% +------------------+----------------------------------------------------------------------------------+ | Property | Value | +------------------+----------------------------------------------------------------------------------+ | checksum | 22cf8f39e5a73121cea04afcc9f42e54 | | container_format | bare | | created_at | 2022-03-02T10:50:51Z | | direct_url | cinder://b0e8c679-4198-4120-b1f4-c9c1cc1775b8 | | disk_format | raw | | id | 66f78082-24df-4f24-97b4-8f4884b9c6ee | | min_disk | 0 | | min_ram | 0 | | name | rhel79.raw | | os_hash_algo | sha512 | | os_hash_value | 31f351121f2be43f8852a9a221621d6ade8005af946058a549015a1397276682dee8c3f31ac2bb40 | | | 40903e2a9cd763e74548eb2483764c6bc498cb4350990a3c | | os_hidden | False | | owner | 19d5920d1789476d9c3541e3da5574aa | | protected | False | | size | 10737418240 | | status | active | | stores | default_backend | | tags | [] | | updated_at | 2022-03-02T10:54:02Z | | virtual_size | Not available | | visibility | shared | +------------------+----------------------------------------------------------------------------------+ (overcloud) [stack@undercloud-0 ~]$ glance image-list +--------------------------------------+------------+ | ID | Name | +--------------------------------------+------------+ | e24b5dee-b169-4895-a2b6-9de22fa9eb9a | cirros | | 66f78082-24df-4f24-97b4-8f4884b9c6ee | rhel79.raw | | 0d5a60dd-f44b-4bb7-9408-804af7eb6f1f | rhel8.5 | +--------------------------------------+------------+ (overcloud) [stack@undercloud-0 ~]$ cinder list --all +--------------------------------------+----------------------------------+-----------+--------------------------------------------+------+-------------+----------+-------------+ | ID | Tenant ID | Status | Name | Size | Volume Type | Bootable | Attached to | +--------------------------------------+----------------------------------+-----------+--------------------------------------------+------+-------------+----------+-------------+ | b0e8c679-4198-4120-b1f4-c9c1cc1775b8 | 47260dd2be754759875b0f01b67e8799 | available | image-66f78082-24df-4f24-97b4-8f4884b9c6ee | 10 | tripleo | false | | | d2594f15-3f72-468b-a9a0-dce6a69a930e | 47260dd2be754759875b0f01b67e8799 | available | image-0d5a60dd-f44b-4bb7-9408-804af7eb6f1f | 1 | tripleo | false | | | d3cbbc2e-f129-41e5-88b7-ff5b497ad697 | 47260dd2be754759875b0f01b67e8799 | available | image-e24b5dee-b169-4895-a2b6-9de22fa9eb9a | 1 | tripleo | false | | +--------------------------------------+----------------------------------+-----------+--------------------------------------------+------+-------------+----------+-------------+ As seen above, all three images are active, were successfully uploaded to Glance over Cinder, 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