cinder image_upload_use_internal_tenant conflicts with image_upload_use_cinder_backend
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
New
|
Undecided
|
Unassigned |
Bug Description
Hi, I find a confict bug in the cinder, When we use image_upload_
ok, the code in the cinder/
The following code in this function, `image_
```
def _clone_
# it will be override became same pointer
if self.driver.
if internal_ctx:
# it will be override
# create a image volume, but use internal_ctx
...
# the image volume would belong to internal tenant, just like the admin that is often used
# ok, that's fine, it's still look like normal
# But in the code below, When updating cinder_url to image_location, the token will be the token of the internal_tenant
uri = 'cinder://%s' % image_volume.id
# retrieve store information from extra-specs
store_id = volume.
if store_id:
try:
# Image will not be found, because it's internal_tenant token
except (exception.
```
So ,I think it should be modified, use copy.deepcopy to aovid this situation. `image_
ok, Even though I am using the admin user as internal_tenant, but in the Glance,it only uses the admin user as a normal user and will not find images previously created by other tenant.
my openstack version is wallaby, but the master still like this
description: | updated |
description: | updated |
I think I know why internal_tenant is used. If I am an administrator, I don’t want non-admin users to know that there is such a process. This will cause non-admin users to ask questions - why are there these and other things in my cloud disk list? Cloud disk starting with 'image-'.