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

kvm-test: set cloud-config disk after real disks #2082

Merged

Conversation

Chris-Peterson444
Copy link
Contributor

Ensure that the disks used for installation are passed to kvm first and not the disk with cloud-config/autoinstall data. Sometimes curtin will put paths to disk in the fstab like:

/dev/disk/by-path/pci-000n-xxxx/by-uuid/UUID

and when we reboot without the cloud-config disk the path to the install disk will change since the number of pci devices connected to the machine has technically changed. We can make this a little more stable by letting the cloud-config drive be the last drive attached.

Ensure that the disks used for installation are passed to kvm first
and not the disk with cloud-config/autoinstall data. Sometimes
curtin will put paths to disk in the fstab like:

    /dev/disk/by-path/pci-000n-xxxx/by-uuid/UUID

and when we reboot without the cloud-config disk the path to the
install disk will change since the number of pci devices connected
to the machine has technically changed. We can make this a little more
stable by letting the cloud-config drive be the last drive attached.
@ogayot
Copy link
Member

ogayot commented Sep 16, 2024

I've never run into this issue I think. Is it something new in Oracular?

@Chris-Peterson444
Copy link
Contributor Author

Yeah I hadn't run into it until recently. Definitely feels like like something new in Oracular.

@Chris-Peterson444 Chris-Peterson444 merged commit 207edf1 into canonical:main Sep 16, 2024
12 checks passed
@Chris-Peterson444 Chris-Peterson444 deleted the kvm-test-rearrange-disks branch September 16, 2024 21:25
@dbungert
Copy link
Collaborator

I've never run into this issue I think. Is it something new in Oracular?

Not completely at least. I ran into a conflict here with grub and upgrade testing during mantic, where grub was keeping track of the relevant device but I had changed the device due to kvm-test drive ordering. The LP bug escapes me at the moment.

@ogayot
Copy link
Member

ogayot commented Sep 20, 2024

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.

3 participants