"Different channel detected" error with an air-gapped deployment
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Undecided
|
Christian Grabowski |
Bug Description
MAAS controllers info shows an error as "Different channel detected" when MAAS snap is installed in an air-gapped environment.
How to reproduce:
1. In a focal VM, install snaps in the following steps
sudo snap install maas-test-db
snap download --channel 3.1/stable maas
sudo snap ack maas_*.assert
sudo snap install maas_*.snap
2. Confirm the tracking channel is empty (since it's air-gapped)
$ snap list
Name Version Rev Tracking Publisher Notes
core18 20211215 2284 latest/stable canonical✓ base
core20 20220114 1328 latest/stable canonical✓ base
lxd 4.0.8 21835 4.0/stable/… canonical✓ -
maas 3.1.0-10901-
maas-cli 0.6.5 13 latest/stable canonical✓ -
maas-test-db 12.4-17-g.9e70484 54 3.0/stable canonical✓ -
snapd 2.54.2 14549 latest/stable canonical✓ snapd
3. Configure the rest and open a Web UI
sudo maas init region+rack --database-uri maas-test-db:///
sudo maas createadmin
Then, there is a controller in unhealthy state with an error as "Different channel detected"
Related branches
- MAAS Lander: Approve
- Alberto Donato (community): Approve
-
Diff: 94 lines (+41/-10)2 files modifiedsrc/maasserver/models/controllerinfo.py (+19/-10)
src/maasserver/models/tests/test_controllerinfo.py (+22/-0)
Changed in maas: | |
assignee: | nobody → Christian Grabowski (cgrabowski) |
Changed in maas: | |
status: | Triaged → In Progress |
Changed in maas: | |
milestone: | none → next |
status: | In Progress → Fix Committed |
Changed in maas: | |
milestone: | next → 3.2.0-beta1 |
Changed in maas: | |
status: | Fix Committed → Fix Released |
Able to reproduce, in an air-gapped system, there is no channel, making the version comparison flag different versions. As an aside, MAAS should still be able to function properly in this state.