Closed just-doks closed 11 months ago
@gabrielmougard please can you look into this one when you can, thanks
@gabrielmougard did you confirm if this is an issue yet or not? Thanks
@tomponline Could this be a backport issue to 5.0.2
?
On lxd 5.0.2
there is no flag --property
/-p
. Even lxc config get --help
does not contain it, however, it is described in docs under 5.0 stable
.
On lxd 5.18
:
$ lxc config get c1 ephemeral --property
false
$ lxc config set c1 ephemeral=true --property
$ lxc config get c1 ephemeral --property
true
Similar for the source.wipe
.
For lxc create storage <storange_name> <driver>
, I am not aware of -f
flag in any of the versions.
The use the -f option to force
part of the error is coming from mkfs.btrfs
and isn't coming from LXD.
The source.wipe
option has been backported to stable-5.0 but has not been released yet. It will be in LXD 5.0.3.
Required information
Issue description/steps to reproduce
Hello. Let me describe, what I did and what I got after that:
sudo apt install lxd
;sudo apt install btrfs-progs
;sudo lxd init
;sudo lxc launch images:debian/12 deb-container
;First issue: flag
--property
doesn't work.sudo lxc config get deb-container name --property
;Error: unknown flag: --property
; I expected to getdeb-container
.How to reproduce: just do everything I described above.
Second issue: flag
-f
& optionstorage.wipe=true
don't work.sudo lxc storage create pool2 btrfs source=/dev/vg1/lv1-5gb
; Response:Error: Failed to format block device: Failed to run: mkfs.btrfs -L pool2 /dev/vg1/lv1-5gb: exit status 1 (ERROR: /dev/vg1/lv1-5gb appears to contain a partition table (dos) ERROR: use the -f option to force overwrite of /dev/vg1/lv1-5gb)
; 1.2. Then I tried to set recommended optionsource.wipe=true
but I got another error: Command:sudo lxc storage create pool2 btrfs source=/dev/vg1/lv1-5gb source.wipe=true
Response:Error: Invalid option "source.wipe"
; 1.3. When I tried to use recommended flag-f
I got one more error: Command:sudo lxc storage create pool2 btrfs source=/dev/vg1/lv1-5gb -f
; Response:Error: unknown shorthand flag: 'f' in -f
; I expected to get a ready to use storage pool.By running command:
sudo wipefs -af /dev/vg1/lv1-5gb
- this solves the problem, but the issue is still there.How to reproduce:
I reported about those issues to debian maintainers, but they think I should report about it here. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1052318
Information to attach
The output of "lxc info":
Any relevant kernel output (
dmesg
) NoContainer log (
lxc info NAME --show-log
) NothingContainer configuration (
lxc config show NAME --expanded
):Main daemon log (at /var/log/lxd/lxd.log or /var/snap/lxd/common/lxd/logs/lxd.log) Attached (at least I did it) lxd.log
lxc monitor
while reproducing the issue) Useless