Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[yoga] Add test to check ceph keys #1190

Conversation

rodrigogansobarbieri
Copy link
Contributor

For https://review.opendev.org/897549

(cherry picked from commit 912f33e) (cherry picked from commit e242121) (cherry picked from commit d1a5ab4) (cherry picked from commit e23e14b)

For https://review.opendev.org/897549

(cherry picked from commit 912f33e)
(cherry picked from commit e242121)
(cherry picked from commit d1a5ab4)
(cherry picked from commit e23e14b)
check_keyring(self.application_name)
# new key
check_keyring('nova-compute-ceph-auth-c91ce26f')

def test_930_check_virsh_default_network(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check_keyring is referring to variable "unit" that is from global space. It should be passed into check_keyring() as an argument.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

omg yes, that slipped by, we will need to fix it in master and bobcat as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually, I just tested the logic and that coding problem does not affect the result at all

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep no worries, can just fix on master if we get time

@dosaboy dosaboy merged commit a7ca37c into openstack-charmers:stable/yoga Mar 7, 2024
2 checks passed
openstack-mirroring pushed a commit to openstack/charm-nova-compute that referenced this pull request Mar 11, 2024
This change reworks previous changes [1] and [2] that had
been respectively reverted and abandoned.

When using the config libvirt-image-backend=rbd, VMs
created from image have their disk data stored in ceph
instead of the compute node itself.

When performing live-migrations, both nodes need to
access the same ceph credentials to access the VM's
disk in ceph, but this is currently not possible
if the nodes involved pertain to different
nova-compute charm apps.

This patch changes app name sent to ceph to
'nova-compute-ceph-auth-c91ce26f', a unique name common to
all nova-compute apps, allowing all nova-compute apps to
use the same ceph auth.

This change also ensures newly deployed nodes install
the old credentials first on ceph-joined hook,
and then supercedes it with the new credentials
on ceph-changed hook, therefore also retaining
the old credentials.

[1] https://review.opendev.org/889642
[2] https://review.opendev.org/896155

Closes-bug: #2028559
Related-bug: #2037003

Func-Test-Pr: openstack-charmers/zaza-openstack-tests#1190

Change-Id: I1ae12d787a1f8e7761ca06b5a80049c1c62e9e90
(cherry picked from commit 650f3a5)
(cherry picked from commit 28233f9)
(cherry picked from commit ecaf801)
(cherry picked from commit 8c3549d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants