juju add-cloud fails with confined snap - creating ~/.local/share/juju
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Medium
|
Unassigned |
Bug Description
How to reproduce:
1. Launch a LXD container with jammy on jammy
lxc launch -e ubuntu:jammy juju-confined-
lxc exec juju-confined-
2. install Juju inside the LXD container
$ sudo snap install juju --channel 3.1
3. Configure a cloud
$ cat > clouds.yaml <<EOF
clouds:
maas:
type: maas
auth-types: [oauth1]
endpoint: http://
EOF
$ juju add-cloud --client maas -f clouds.yaml
-> ERROR cannot load ssh client keys: mkdir /home/ubuntu/
WORKAROUND:
execute the following before running `juju add-cloud`
$ mkdir -p ~/.local/
Aug 04 01:44:16 t14 kernel: audit: type=1400 audit(169108105
Aug 04 01:44:16 t14 kernel: audit: type=1400 audit(169108105
Aug 04 01:44:16 t14 kernel: audit: type=1400 audit(169108105
Aug 04 01:44:16 t14 kernel: audit: type=1400 audit(169108105
Aug 04 01:44:17 t14 kernel: audit: type=1400 audit(169108105
summary: |
- juju add-cloud fails inside LXD container + juju add-cloud fails with confined snap - creating ~/.local/share/juju |
Changed in juju: | |
importance: | Undecided → Medium |
status: | New → Triaged |