Please confirm
Distribution
Ubuntu
Distribution version
22.04
Output of snap list --all lxd core20 core22 core24 snapd
Name Version Rev Tracking Publisher Notes
core20 20260105 2717 latest/stable canonical✓ base,disabled
core20 20260211 2769 latest/stable canonical✓ base
core22 20260225 2411 latest/stable canonical✓ base
core24 20260317 1587 latest/stable canonical✓ base
lxd 5.0.6-e49d9f4 38469 5.21/stable canonical✓ disabled,in-cohort,held
lxd 5.21.4-1374f39 38368 5.21/stable canonical✓ in-cohort,held
snapd 2.74.1 26382 latest/stable canonical✓ snapd
System info
Kernel version: 5.15.0-174-generic
LXC version: 6.0.4
LXD version: 5.21.4
Storage backend: zfs
Instance log
n/a
Expected behavior
When sending API request from AMS to LXD to do container copy, the InstancesPost object doesn't have an value for architecture.
req := api.InstancesPost{}
req.Name = targetName
req.Source.Type = "copy"
req.Source.Source = sourceName
req.Type = api.InstanceTypeContainer
The architecture should not be changed during copy, so it is expected that LXD server can retrieve it from the source container, rather than using the value in the request object.
Actual behavior
An error is returned, showing empt in architecture field.
Error: Architecture isn't supported
Steps to reproduce
Use the above code and not set architecture value.
Information to attach
Please confirm
Distribution
Ubuntu
Distribution version
22.04
Output of
snap list --all lxd core20 core22 core24 snapdSystem info
Kernel version: 5.15.0-174-generic
LXC version: 6.0.4
LXD version: 5.21.4
Storage backend: zfs
Instance log
n/a
Expected behavior
When sending API request from AMS to LXD to do container copy, the InstancesPost object doesn't have an value for architecture.
The architecture should not be changed during copy, so it is expected that LXD server can retrieve it from the source container, rather than using the value in the request object.
Actual behavior
An error is returned, showing empt in architecture field.
Steps to reproduce
Use the above code and not set architecture value.
Information to attach
dmesg)lxc config show <instance> --expanded)/var/log/lxd/lxd.logor/var/snap/lxd/common/lxd/logs/lxd.log)--debug--debug(or uselxc monitorwhile reproducing the issue)