The domain_id will not override the domain_name values and this needs further investigation for why we do see failures.
My current hunch says that the default values for domain_id are not working out so the authentication request is only partially correct (hence a 401).
The workflow is as follows:
1. First swift store driver checks for existence of "glance-swift-store.conf" file https://github.com/openstack/glance_store/blob/5736659fe0edb4c8fd4d583a77017dc8beba774b/glance_store/_drivers/swift/utils.py#L121
2. This being true for your case, _load_config is called https://github.com/openstack/glance_store/blob/5736659fe0edb4c8fd4d583a77017dc8beba774b/glance_store/_drivers/swift/utils.py#L147
3. Defaults are passed, when configs are read from file
https://github.com/openstack/glance_store/blob/5736659fe0edb4c8fd4d583a77017dc8beba774b/glance_store/_drivers/swift/utils.py#L151
and
https://github.com/openstack/glance_store/blob/5736659fe0edb4c8fd4d583a77017dc8beba774b/glance_store/_drivers/swift/utils.py#L100-L107
4. Config values are used here and then passed to ks client https://github.com/openstack/glance_store/blob/5736659fe0edb4c8fd4d583a77017dc8beba774b/glance_store/_drivers/swift/utils.py#L163-L173
The domain_id will not override the domain_name values and this needs further investigation for why we do see failures.
My current hunch says that the default values for domain_id are not working out so the authentication request is only partially correct (hence a 401).
The workflow is as follows:
1. First swift store driver checks for existence of "glance- swift-store. conf" file https:/ /github. com/openstack/ glance_ store/blob/ 5736659fe0edb4c 8fd4d583a77017d c8beba774b/ glance_ store/_ drivers/ swift/utils. py#L121
2. This being true for your case, _load_config is called https:/ /github. com/openstack/ glance_ store/blob/ 5736659fe0edb4c 8fd4d583a77017d c8beba774b/ glance_ store/_ drivers/ swift/utils. py#L147
3. Defaults are passed, when configs are read from file
https:/ /github. com/openstack/ glance_ store/blob/ 5736659fe0edb4c 8fd4d583a77017d c8beba774b/ glance_ store/_ drivers/ swift/utils. py#L151
and
https:/ /github. com/openstack/ glance_ store/blob/ 5736659fe0edb4c 8fd4d583a77017d c8beba774b/ glance_ store/_ drivers/ swift/utils. py#L100- L107
4. Config values are used here and then passed to ks client https:/ /github. com/openstack/ glance_ store/blob/ 5736659fe0edb4c 8fd4d583a77017d c8beba774b/ glance_ store/_ drivers/ swift/utils. py#L163- L173