charm-cinder/unit_tests
Trent Lloyd ba8d8fc3e1 Add identity-credentials relation support
Implement support for the identity-credentials relation as an
alternative way to get keystone credentials when we are not registering
a service endpoint via the identity-service relation.

This solves an issue where the image volume cache does not work when the
cinder volume service is deployed as a second cinder application
('cinder-volume') having enabled-services=volume set.

Previously the following items were missing from cinder.conf:
cinder_internal_tenant_project_id
cinder_internal_tenant_user_id

Resulting in the image cache not functioning with the following warnings:
Unable to get internal tenant context: Missing required config
parameters.
Unable to get Cinder internal context, will not use image-volume cache.

As there are now two possible interfaces to keystone ('identity-service'
and 'identity-credentials') any existing bundles that don't specify the
interface 'identity-service' when relating to keystone will fail to
deploy and will need to be updated.

Closes-Bug: #1978452
Change-Id: Ieef500c9c55eb3968b3e2e231a8ff6e2a5ec148d
2023-01-20 14:53:39 +08:00
..
__init__.py Use unittest.mock instead of mock 2021-12-15 10:56:43 +00:00
test_actions_cinder_manage.py Check if the newhost exists instead of currenthost 2022-04-25 16:22:53 +08:00
test_actions_openstack_upgrade.py Use unittest.mock instead of mock 2021-12-15 10:56:43 +00:00
test_actions.py Use unittest.mock instead of mock 2021-12-15 10:56:43 +00:00
test_cinder_contexts.py Add support to configure scheduler_default_filters 2022-01-25 11:04:40 +10:30
test_cinder_hooks.py Add identity-credentials relation support 2023-01-20 14:53:39 +08:00
test_cinder_utils.py Retry online_data_migrations until exit code 0 or 2. 2022-10-07 17:09:24 -03:00
test_cluster_hooks.py Use unittest.mock instead of mock 2021-12-15 10:56:43 +00:00
test_utils.py Use unittest.mock instead of mock 2021-12-15 10:56:43 +00:00