deploy storage with constraints on lxd error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
High
|
Unassigned |
Bug Description
When I deploy a charm on my lxd requesting a root disk constraint, it fails with not much helpful messages.
Here is my charm code: https:/
Juju version: 2.9.18-ubuntu-amd64 (snap)
Controller version: 2.9.16 and 2.9.18
lxd cloud: 4.0.8 21835 4.0/stable (snap)
===========
juju deploy ./scp_ubuntu-
Located local charm "scp", revision 25
Deploying "scp" from local charm "scp", revision 25
========
Model Controller Cloud/Region Version SLA Timestamp
rafaelbackpssh iceberg-default iceberg/default 2.9.18 unsupported 00:15:37+01:00
App Version Status Scale Charm Store Channel Rev OS Message
scp waiting 0/1 scp local 25 ubuntu waiting for machine
Unit Workload Agent Machine Public address Ports Message
scp/13 waiting allocating 18 waiting for machine
Machine State DNS Inst id Series AZ Message
18 down pending focal Failed creating instance record: Failed initialising instance: Failed loading storage pool: No such object
If I deploy without the "root-disk" constraint - it works just fine. Its only when I use the "root-disk" constraint. Do I have something mis-configured in my storage-pools?
$ juju list-storage-pools
Name Provider Attributes
loop loop
lxd lxd
lxd-btrfs lxd driver=btrfs lxd-pool=juju-btrfs
lxd-zfs lxd driver=zfs lxd-pool=juju-zfs zfs.pool_
rootfs rootfs
tmpfs tmpfs
==== On the lxd-remote =======
$ lxc storage list iceberg:
+------
| NAME | DRIVER | SOURCE | DESCRIPTION | USED BY |
+------
| juju | dir | /var/snap/
+------
| juju-btrfs | btrfs | /var/snap/
+------
| juju-zfs | zfs | /var/snap/
+------
| lxdhosts | zfs | lxdhosts | | 18 |
+------
==== On the lxd-remote =======
$ zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
juju-zfs 80M 136K 79.9M - - 5% 0% 1.00x ONLINE -
lxdhosts 556G 229G 327G - - 38% 41% 1.00x ONLINE -
Changed in juju: | |
milestone: | 2.9-next → none |
Here is a juju status