init rack can't find secrets
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Alberto Donato | ||
3.2 |
Fix Released
|
Critical
|
Alberto Donato | ||
3.3 |
Fix Released
|
High
|
Alberto Donato |
Bug Description
The edge snap fails to add a controller with a secrets file error.
I installed MAAS in an LXC container with:
snap install maas --channel=
Then tried:
sudo maas init rack --maas-url ... --secret ...
Which gave the following error:
Traceback (most recent call last):
File "/snap/
sys.
File "/snap/
options.
File "/snap/
raise exc
File "/snap/
self.
File "/snap/
set_
File "/snap/
secret_
File "/usr/lib/
with self.open(mode='w', encoding=encoding, errors=errors) as f:
File "/usr/lib/
return io.open(self, mode, buffering, encoding, errors, newline,
File "/usr/lib/
return self._accessor.
FileNotFoundError: [Errno 2] No such file or directory: '/var/snap/
I also tried in a fresh lxc container using the 3.1 snap and it worked fine.
This looks like the same error that was resolved in 2.8: https:/
Related branches
- Alberto Donato (community): Approve
- MAAS Lander: Needs Fixing
-
Diff: 12 lines (+1/-0)1 file modifiedsnap/hooks/install (+1/-0)
- MAAS Lander: Approve
- Anton Troyanov: Approve
-
Diff: 12 lines (+1/-0)1 file modifiedsnap/hooks/install (+1/-0)
Changed in maas: | |
milestone: | none → 3.2.0 |
importance: | Undecided → Critical |
status: | New → Triaged |
Changed in maas: | |
status: | Triaged → In Progress |
assignee: | nobody → Alberto Donato (ack) |
Changed in maas: | |
milestone: | 3.2.0 → none |
no longer affects: | maas/3.2 |
Changed in maas: | |
milestone: | none → 3.3.0 |
Changed in maas: | |
milestone: | 3.2.0 → 3.2.0-beta6 |
status: | Fix Committed → Fix Released |