Containers I try to create with the debian/12 and ubuntu/22.04 images are created without the default profile. Other images are adding the default profile just fine.
I noticed this when I was testing the instance creation scriptlet on incus 6.7.
pargo@bastion:~/scriptlet$ incus create images:debian/12 test-debian12
Creating test-debian12
Error: Failed instance creation: Failed instance placement scriptlet: Failed to run: fail: Núcleos de CPU não foram fixados.
pargo@bastion:~/scriptlet$ incus create images:debian/12/cloud test-debian12cloud
Creating test-debian12cloud
pargo@bastion:~/scriptlet$ incus create images:debian/11 test-debian11
Creating test-debian11
pargo@bastion:~/scriptlet$ incus create images:debian/11/cloud test-debian11cloud
Creating test-debian11cloud
pargo@bastion:~/scriptlet$ incus create images:ubuntu/22.04 test-ubuntu2204
Creating test-ubuntu2204
Error: Failed instance creation: Failed instance placement scriptlet: Failed to run: fail: Núcleos de CPU não foram fixados.
pargo@bastion:~/scriptlet$ incus create images:ubuntu/22.04/cloud test-ubuntu2204cloud
Creating test-ubuntu2204cloud
pargo@bastion:~/scriptlet$ incus create images:ubuntu/24.04 test-ubuntu2404
Creating test-ubuntu2404
pargo@bastion:~/scriptlet$ incus create images:ubuntu/24.04/cloud test-ubuntu2404cloud
Creating test-ubuntu2404cloud
pargo@bastion:~/scriptlet$
The failed error message is related to the scriptlet and could be ignored. The main issue I found through the scriptlet on the config request coming out empty as "config": {} and profiles comes out as "profiles": []. It consistently happens on those two images and not on the others.
Could this be an issue on the image server or could it be on my local cluster only?
I tried this and was unable to re-create it. Maybe try deleting the local cached images and see if a refresh works? It’s not exactly a robust solution, but it could be a simple fix?
This is the exact error message. Why does it complain for CPU cores even if this is not about VMs?
You are launching a container, not a VM, anyway. Why?
Also, you are running the incus client with the Portuguese localization.
WHY is there no translated string for the message in the Portuguese localization?
Where does Incus pull this string translation from?
It’s not related to VMs. That error message was thrown by my placement scriptlet. It’s being launched in a project which requires all instances to be restricted to a few CPU cores. I’m the one throwing that error message since the instance configuration is not there (but it’s in the default profile).
Using incus image info I noticed there is a field for profiles. Maybe those were unset for some previously downloaded images and I was getting that problem.