Currently experiencing new issues, now unable to create a VM…which worked last week.
The command is:
lxc launch ubuntu some-vm-name --vm
Output:
Creating the instance
The local image ‘ubuntu’ couldn’t be found, trying ‘ubuntu:’ instead.
Error: Failed instance creation: Create instance from image: Failed to run: rbd --id lxd –
cluster ceph --image-feature layering clone rbd-lxc-
aa0.a1f/image_8bac6546bbc5cfbe5c490f2c991cff8cff1428b57fb9a74d33a64cb6dff66601.
block@readonly rbd-lxc-aa0.a1f/virtual-machine_perfect-goldfish.block: 2020-02-20
20:52:14.788395 7f79f77fe700 -1 librbd::image::OpenRequest: failed to set image
snapshot: (2) No such file or directory 2020-02-20 20:52:14.788599 7f7a224f4100 -1
librbd: error opening parent image: (2) No such file or directory
rbd: clone error: (2) No such file or directory
3.21 has the new ceph implementation so I suspect it’s a different issue.
I first suspected it was a bug related to ceph credentials, but looking again above, that seems unlikely to be the case.
In your output above, I only see image_8bac6546bbc5cfbe5c490f2c991cff8cff1428b57fb9a74d33a64cb6dff66601.block which is lacking its snapshot (@readonly) and also appears to be lacking the non-block part of the image.
Alright. I’ll need to think of a way to test a newer build as we have semi-production stuff running currently on the cluster so generally need to wait for a new release to hit snap.
root@aa1-cptef101-n2:/home/ubuntu# lxc launch ubuntu ubuntu-vm --vm
Creating ubuntu-vm
The local image 'ubuntu' couldn't be found, trying 'ubuntu:' instead.
Error: Failed instance creation: Locate image
8bac6546bbc5cfbe5c490f2c991cff8cff1428b57fb9a74d33a64cb6dff66601 in the cluster:
image not available on any online node
The image is in lxc image ls, however:
Error: failed to notify peer 10.224.1.13:8443: Failed to delete image from peer node: Failed
to run: rbd --id lxd --cluster ceph --pool rbd-lxc-aa0.a1f children --image
image_8bac6546bbc5cfbe5c490f2c991cff8cff1428b57fb9a74d33a64cb6dff66601
_ext4.block --snap readonly: rbd: error opening image
image_8bac6546bbc5cfbe5c490f2c991cff8cff1428b57fb9a74d33a64cb6dff66601
_ext4.block: (2) No such file or directory
Can you show rbd du --pool rbd-lxc-aa0.a1f? It may be a pre-fix image and so be misisng the _ext4 part or has it all the way at the end, so may just need a quick rename to line it up.
Ok, so to make things consistent with the pattern expected by my fix, you’d want to rename:
image_8bac6546bbc5cfbe5c490f2c991cff8cff1428b57fb9a74d33a64cb6dff66601 to image_8bac6546bbc5cfbe5c490f2c991cff8cff1428b57fb9a74d33a64cb6dff66601_ext4
image_8bac6546bbc5cfbe5c490f2c991cff8cff1428b57fb9a74d33a64cb6dff66601.block to image_8bac6546bbc5cfbe5c490f2c991cff8cff1428b57fb9a74d33a64cb6dff66601_ext4.block
This should then fix the no such file or directory error.