⨯ Error: LXD version "5.21.9" is not supported while following MicroCloud tutorial

Hi, I’m having a bit of bother while trying to follow the default getting started single node tutorial for setting up MicroCloud.

I tried a couple of times, first was with LXD latest/stable (6.x), and then the micro* snaps installed together, and then again with all 4 snaps installed together (so LXD at 5.x).

On my first attempt I got the following error after selecting the internal IP address:

⨯ Error: MicroCeph version “19.2.3” is not supported

On the second attempt when following the tutorial to the letter, I’m getting the following error after selecting the internal IP address:

⨯ Error: LXD version “5.21.9” is not supported

Any idea on what combination of snap versions are needed?

Thanks,

Ian

P.S: Also, you might notice that 2nd time around none of the 4 snaps got marked as “in-cohort” even though I used the --cohort=”+” option when installing them. I’ve found that the cohort option only works if you’re installing an individual snap, or apply it to each snap afterwards via refresh, as I did for the 1st attempt.

Hi, you can find the supported versions here Releases and snaps - MicroCloud documentation 3.4.1.

MicroCloud 3 requires LXD 6.10, MicroCeph tentacle and MicroOVN 26.03.

Regarding the cohort, I just tried using snap version 2.78 and I cannot reproduce this:

root@micro01:~# snap remove --purge microcloud
microcloud removed
root@micro01:~# snap install microcloud --channel 3/stable --cohort="+"
microcloud (3/stable) 3.4.1-2c3a8bb from Canonical✓ installed
root@micro01:~# snap list
Name        Version                   Rev    Tracking         Publisher   Notes
core24      20260824                  2124   latest/stable    canonical✓  base
core26      20261023                  750    latest/edge      canonical✓  base
lxd         6.10.0-b364f30            41172  6/stable         canonical✓  in-cohort,held
microceph   20.2.1+snap2ff1e996db     1904   tentacle/stable  canonical✓  in-cohort,held
microcloud  3.4.1-2c3a8bb             2564   3/stable         canonical✓  in-cohort
microovn    26.03.0-2+snap0b7fa5e9ed  1133   26.03/stable     canonical✓  in-cohort,held
snapd       2.78                      28332  latest/beta      canonical✓  snapd

Thanks for the version info, much appreciated.

The problem with setting cohort happens when you install multiple snaps in one command with that flag, as shown in the tutorial. The cohort flag only applies when you install the snaps one at a time.

As a result, I think the tutorial is a little out of date, and isn’t as smooth sailing as it could be. I’d recommend splitting the single snap install command into 4 lines that includes the currently supported version combinations and cohort flag, e.g:

sudo snap install lxd --channel=latest/stable --cohort="+"
sudo snap install microceph --channel=tentacle/stable --cohort="+"
sudo snap install microovn --channel=latest/stable --cohort="+"
sudo snap install microcloud --channel=3/stable --cohort="+"

That’s what I’d just done after checking the MicroCloud source code to work out the latest expected versions, and got microcloud init past the version check, just before your message popped up pointing me to the requirements doc! :person_facepalming:

Thanks again for all your help.

I’d recommend splitting the single snap install command into 4 lines that includes the currently supported version combinations and cohort flag

Interesting find, thanks for reporting. This is exactly what is documented on MicroCloud tutorial using multiple virtualized cluster members - MicroCloud documentation 3.4.1 for the multi-member tutorial. But I see the single node tutorial uses the single line.

I have just pushed a PR to address this Doc: Install one snap at a time by roosterfish · Pull Request #1651 · canonical/microcloud · GitHub.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.