Hi,
In a project with features.profiles: "true"
appear several errors at the time of work with profiles. Project DMZS with two containers and four profiles:
magasix@lxd:~$ lxc project show DMZS
description: ""
config:
features.images: "false"
features.profiles: "true"
name: DMZS
used_by:
- /1.0/containers/sext?project=DMZS
- /1.0/containers/sint?project=DMZS
- /1.0/profiles/FW?project=DMZS
- /1.0/profiles/default?project=DMZS
- /1.0/profiles/dmzext?project=DMZS
- /1.0/profiles/dmzint?project=DMZS
- /1.0/profiles/intranet?project=DMZS
Problem#1: I can not assign a new profile to the container
If I try to change the profile of the container sint from dmzint to dmzext I’ll receive a error “Profile doesn’t exist:”, but profile dmzext exists.
magasix@lxd:~$ lxc info sint
Name: sint
Location: none
Remote: unix://
Architecture: x86_64
Created: 2018/10/26 18:05 UTC
Status: Stopped
Type: persistent
Profiles: dmzint
magasix@lxd:~$ lxc profile assign sint dmzext
Error: Profile doesn't exist: dmzext
magasix@lxd:~$ lxc profile show dmzext
config: {}
description: ""
devices:
eth0:
name: eth0
nictype: bridged
parent: dmzext
type: nic
root:
path: /
pool: default
type: disk
name: dmzext
used_by:
- /1.0/containers/sext?project=DMZS
If I create a new container with the profile dmzext there’s no problem:
magasix@lxd:~$ lxc launch xenial64 sext01 -p dmzext
Creating sext01
Starting sext01
magasix@lxd:~$ lxc profile show dmzext
config: {}
description: ""
devices:
eth0:
name: eth0
nictype: bridged
parent: dmzext
type: nic
root:
path: /
pool: default
type: disk
name: dmzext
used_by:
- /1.0/containers/sext?project=DMZS
- /1.0/containers/sext01?project=DMZS
Problem#2: I can not modify a profile previously assigned to a container
I enter into the editor but when I exit it I enter in a loop.
magasix@lxd:~$ lxc profile edit dmzint
Config parsing error: The following containers failed to update (profile change still saved):
- sint: Profile doesn't exist: dmzint
Press enter to open the editor again
Config parsing error: The following containers failed to update (profile change still saved):
- sint: Profile doesn't exist: dmzint
Press enter to open the editor again
Config parsing error: The following containers failed to update (profile change still saved):
- sint: Profile doesn't exist: dmzint
Press enter to open the editor again
Config parsing error: The following containers failed to update (profile change still saved):
- sint: Profile doesn't exist: dmzint
Press enter to open the editor again
If I modify the profile some times appears messages like this:
Config parsing error: ETag doesn't match: ac3bc9229df20427970a0e80deb3f521420098928ab8ba9c25d41d4c89eba6a0 vs f6f1361a8c1c28e4691dd19cd9c09d0049f4d8625c838acfaeeaed41a6bceb3e
Press enter to open the editor again
Config parsing error: ETag doesn't match: ac3bc9229df20427970a0e80deb3f521420098928ab8ba9c25d41d4c89eba6a0 vs f6f1361a8c1c28e4691dd19cd9c09d0049f4d8625c838acfaeeaed41a6bceb3e
Press enter to open the editor again
If I exit with CTRL+C the changes persists.
I see that you are working in the project feature but I don’t know if you experiment these issues
Salutes