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

Backports (stable-5.21) #13645

Merged
merged 82 commits into from
Jun 21, 2024
Merged

Conversation

tomponline
Copy link
Member

No description provided.

roosterfish and others added 9 commits June 21, 2024 11:23
Signed-off-by: Stéphane Graber <[email protected]>
(cherry picked from commit 1687b0ee25c89f9a0579eaa6d227d36a17958052)
Signed-off-by: Julian Pelizäus <[email protected]>
License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]>
(cherry picked from commit 2287217e353cd05afafb9a09e70da6d372d0cc25)
Signed-off-by: Julian Pelizäus <[email protected]>
License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]>
(cherry picked from commit 93d810473d2332f913fd3b56df5d73337216b416)
Signed-off-by: Julian Pelizäus <[email protected]>
License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]>
(cherry picked from commit 712070bed5081224ab8a7aa4a463094c2510cde2)
Signed-off-by: Julian Pelizäus <[email protected]>
License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]>
(cherry picked from commit 3a98ba7f207ca715161d0a475ac34b37c757eb4e)
Signed-off-by: Julian Pelizäus <[email protected]>
License: Apache-2.0
This allows joining a cluster by explicitly specifying the cluster_token field.

Signed-off-by: Stéphane Graber <[email protected]>
(cherry picked from commit a47d14fdeac0d2fb4544553b7a4973e62816a68d)
Signed-off-by: Julian Pelizäus <[email protected]>
License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]>
(cherry picked from commit a47d14fdeac0d2fb4544553b7a4973e62816a68d)
Signed-off-by: Julian Pelizäus <[email protected]>
License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]>
(cherry picked from commit a47d14fdeac0d2fb4544553b7a4973e62816a68d)
Signed-off-by: Julian Pelizäus <[email protected]>
License: Apache-2.0
@tomponline tomponline self-assigned this Jun 21, 2024
@github-actions github-actions bot added Documentation Documentation needs updating API Changes to the REST API 5.21 LTS labels Jun 21, 2024
@tomponline
Copy link
Member Author

@ru-fu please can you check f607306 as I had to solve a merge conflict due to the core trust password removal occurring after you landed this change, but in 5.21 we aren't removing trust password.

@ru-fu
Copy link
Contributor

ru-fu commented Jun 21, 2024

@ru-fu please can you check f607306 as I had to solve a merge conflict due to the core trust password removal occurring after you landed this change, but in 5.21 we aren't removing trust password.

Thanks - the change looks good!
There is one short phrase missing, but it doesn't really add much, so it's better to leave it out to stay consistent between versions.

stgraber and others added 2 commits June 21, 2024 13:37
Signed-off-by: Stéphane Graber <[email protected]>
(cherry picked from commit de3006a3f0a88f97af9b7c8a54aadd67dc5c2a6f)
Signed-off-by: Julian Pelizäus <[email protected]>
License: Apache-2.0
@tomponline tomponline force-pushed the stable-5.21 branch 4 times, most recently from 166a2ab to 20c046e Compare June 21, 2024 12:49
This new stage allows removing cluster configuration options before they are getting
loaded for the first time.

Signed-off-by: Julian Pelizäus <[email protected]>
roosterfish and others added 25 commits June 21, 2024 13:58
This function waits until the given path doesn't exist anymore.

Signed-off-by: Julian Pelizäus <[email protected]>
…ount

This is critical as LXD might already try to mount the volume if two actions
are executed right after another without much delay.
That might cause the volume which is about to be removed to be discovered again.

When requesting the path to a specific volume together with mapVolume set to true,
the cleanup hooks should also contain a step to unmap the volume again from the system.

Signed-off-by: Julian Pelizäus <[email protected]>
When deleting the storage pool on LXD, all the volumes are already unmapped from the system.
As part of those unmap operations the NVMe/TCP connection already gets disconnected if no more vols are mapped to this host.

Signed-off-by: Julian Pelizäus <[email protected]>
This is not an issue if LXD has a single storage pool pointing to PowerFlex.

If there are multiple LXD storage pools that point to the same PowerFlex storage cluster (same NVMe/TCP connection),
this change of the lock ensures that multiple LXD storage pools can freely map/unmap volumes to this host
and disconnect/connect the NVMe/TCP connection in case there aren't any volumes mapped to the host (regardless of the storage pool).

Signed-off-by: Julian Pelizäus <[email protected]>
This reverts commit f8180de.

It's possible now that we require Go 1.22+. Fixes canonical#13048

Signed-off-by: Simon Deziel <[email protected]>
Add API instructions for working with projects.

Signed-off-by: Ruth Fuchss <[email protected]>
Signed-off-by: Thomas Parrott <[email protected]>
@tomponline tomponline marked this pull request as ready for review June 21, 2024 13:27
@tomponline tomponline requested a review from roosterfish June 21, 2024 13:27
Copy link
Contributor

@roosterfish roosterfish left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@tomponline tomponline merged commit e5101ce into canonical:stable-5.21 Jun 21, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5.21 LTS API Changes to the REST API Documentation Documentation needs updating
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants