Unable to add rack controller
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Alberto Donato | ||
2.8 |
Fix Released
|
High
|
Alberto Donato |
Bug Description
When installing a fresh 2.8 deployment with separate region and rack controllers adding the rack controller fails. Steps to reproduce:
1. Setup region controller following https:/
sudo snap install maas --channel=
sudo snap install maas-test-db --channel=
sudo maas init region --database-uri maas-test-db:///
sudo maas createadmin
2. Add rack
sudo maas init rack
MAAS URL [default=http://
Secret:
Secret: 917fce44021b67e
Traceback (most recent call last):
File "/snap/
sys.
File "/snap/
options.
File "/snap/
raise exc
File "/snap/
self.
File "/snap/
set_
File "/snap/
with open(secret_path, "w") as fp:
FileNotFoundError: [Errno 2] No such file or directory: '/var/snap/
Related branches
- Alberto Donato (community): Approve
-
Diff: 151 lines (+24/-47)2 files modifiedsrc/maascli/snappy.py (+14/-16)
src/maascli/tests/test_snappy.py (+10/-31)
- MAAS Lander: Approve
- Adam Collard (community): Approve
-
Diff: 149 lines (+23/-46)2 files modifiedsrc/maascli/snappy.py (+14/-16)
src/maascli/tests/test_snappy.py (+9/-30)
summary: |
- [2.8, snap] Unable to add rack controller + Unable to add rack controller |
Changed in maas: | |
importance: | Undecided → High |
assignee: | nobody → Alberto Donato (ack) |
status: | New → In Progress |
Changed in maas: | |
milestone: | none → 2.9.0b1 |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
Workaround on the rack:
sudo mkdir -p /var/snap/ maas/7328/ var/lib/ maas/ maas/7328/ var/lib/ maas/secret /var/snap/ maas/common/ maas/secret
sudo maas init rack
sudo cp /var/snap/
sudo snap restart maas