You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importpylxdclient=pylxd.Client(project="testproj")
c=client.containers.get("u1")
c.config["raw.idmap"] ="uid 1000 1000"c.save(wait=True)
# Uncommenting the following line fixes the error# c = client.containers.get("u1")c.save(wait=True)
Create a restricted project with
restricted.idmap.uid
configured to allow settingraw.idmap
:lxc project create testproj -c restricted=true -c restricted.idmap.uid=1000 lxc profile show default | lxc profile edit default --project testproj lxc init ubuntu:22.04 u1 --project testproj
Run the following python script:
Output:
The issue seems to be that the second
save
sends an outdated value forvolatile.idmap.next
. Re-fetching the instance state fixes this.The text was updated successfully, but these errors were encountered: