It's not a bug, if you have specific requirement which is related to
image visibility in different domains then you can submit your
requirement in form of spec and implement the support as new feature.
** Changed in: glance
Status: New => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/2115414
Title:
Glance policy doesnt support domain_id
Status in Glance:
Invalid
Bug description:
Hi,
Like other openstack services, support for domain_id exists but not
for glance. Looking into the latest glance policy.yaml
https://docs.openstack.org/glance/latest/configuration/glance_policy.html
i see only project_id is supported. I would like to report
domain_name, domain_id, project_name, etc is not supported. Is this
restricted by default ?
Is it due to this spec :
https://opendev.org/openstack/glance/src/branch/stable/2024.2/glance/api/policy.py#L184
Would adding the below help support the above ?
def __iter__(self):
for key in self._target_keys:
yield key
for key in getattr(self.target, 'extra_properties', {}).keys():
yield key
for alias in ['project_id', 'domain_name', 'domain_id',
'project_name']:
yield alias
def key_transforms(self, key):
transforms = {
'id': 'image_id',
'project_id': 'owner',
'member_id': 'member',
'domain_name': 'domain_name',
'domain_id': 'domain_id',
'project_name': 'project_name',
}
return transforms.get(key, key)
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/2115414/+subscriptions
--
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp