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

Use shorter dev names on older LXD releases #208

Merged
merged 3 commits into from
Jun 26, 2024

Conversation

simondeziel
Copy link
Member

No description provided.

Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
tomponline
tomponline previously approved these changes Jun 25, 2024
@simondeziel
Copy link
Member Author

@tomponline the detection works but the storage-disks-vm test fails just a bit later:

+ echo '::warning::5.21/edge detected, using a shorter name'
Warning: 5.21/edge detected, using a shorter name
+ LONG_DEVICE_NAME=notSoLongName
+ lxc init ubuntu-minimal-daily:24.04 v2 --vm
Creating v2
+ lxc config device add v2 notSoLongName disk source=/opt/lxd-test-restricted/allowed1 path=/mnt/bar1
Device notSoLongName added to v2
+ lxc start v2
+ waitInstanceReady v2
+ set +x
+ lxc exec v2 -- mountpoint /mnt/bar1
/mnt/bar1 is a mountpoint
+ lxc config device remove v2 notSoLongName
Error: Failed to stop device "notSoLongName": Failed to detach path device after 10s: Chardev 'lxd_notSoLongName' is busy
+ cleanup
Test failed

@simondeziel
Copy link
Member Author

simondeziel commented Jun 25, 2024

Should I convert the hot-unplug to a cold unplug when working around?

@simondeziel simondeziel force-pushed the long-names-older-releases branch 2 times, most recently from 7f41726 to 03e8c3c Compare June 25, 2024 19:18
@simondeziel
Copy link
Member Author

@tomponline I ended up disabling all the disk hot plug/unplug part of the storage test which I think is OK for a temporary workaround.

It's currently as green as it gets considering the ZFS vol activation regression that should be addressed by canonical/lxd#13662. There's also the ZFS rounding issue that's still not completely backported all the way down to 5.0/edge.

@simondeziel simondeziel marked this pull request as ready for review June 25, 2024 20:04
@tomponline
Copy link
Member

tomponline commented Jun 25, 2024

I ended up disabling all the disk hot plug/unplug part of the storage test which I think is OK for a temporary workaround.

Can we keep hotplug part of tests? Just not hot unplug, i don't think we will ever back port the fix to 5.0

@tomponline
Copy link
Member

There's also the ZFS rounding issue that's still not completely backported all the way down to 5.0/edge.

It should be now since canonical/lxd#13659

Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
@simondeziel
Copy link
Member Author

I ended up disabling all the disk hot plug/unplug part of the storage test which I think is OK for a temporary workaround.

Can we keep hotplug part of tests? Just not hot unplug, i don't think we will ever back port the fix to 5.0

Sure, done.

@tomponline tomponline merged commit 28aafc1 into canonical:main Jun 26, 2024
77 of 94 checks passed
lxc config device remove v2 "${LONG_DEVICE_NAME}"
sleep 1
! lxc exec v2 -- mountpoint /mnt/bar2 || false # Just tests for mountpoint disconnected, not unmount.
if [ "${LONG_DEVICE_NAME}" = "notSoLongName" ]; then
Copy link
Member

Choose a reason for hiding this comment

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

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.

2 participants