Migration failed - changing feature flags is only allowed for root@pam

pr0j3ctx

Renowned Member
May 4, 2016
9
0
66
43
Hello,

today I tried the new Datacenter Manager. It looks very good and seems to work.

I`ve tested migration. Basically it works great. I migrated the running Datacenter Manager VM to another Remote. No lag. Great!

But If i try to migrate some Containers with features like nfs or something else. I get this message.

2025-01-29 15:04:31 ERROR: migration aborted (duration 00:00:05): error - tunnel command '{"firewall-config":null,"cmd":"config","conf":"arch: amd64\ncores: 2\nfeatures: nesting=0\nhostname: testwan1\nlock: migrate\nmemory: 1024\nnameserver: 9.9.9.9\nnet0: name=eth0,bridge=vmbr0,gw=10.0.21.2,hwaddr=0A:00:00:21:00:10,ip=10.0.21.10/24,ip6=dhcp,link_down=1,tag=21,type=veth\nonboot: 1\nostype: ubuntu\nrootfs: prxpool:subvol-21010-disk-0,size=4G\nsearchdomain: dlan.site\nswap: 0\nunprivileged: 1\n"}' failed - failed to handle 'config' command - 403 Permission check failed (changing feature flags (except nesting) is only allowed for root@pam)

I added the remotes with root login. But it seems, that the tunnel uses another user?

Is this an issue or i am doing something wrong?

Greats pr0
 
Hi @pr0j3ctx,

you did nothing wrong, could you please share your CT config and Logs of the Migration?
Did you change the storage destination to a existing one?
Good morning,

I´ve used detailed mapping and configured the correct storage and network.

Code:
2025-01-30 06:13:13 remote: started tunnel worker 'UPID:kvm12:00053CA2:0054A67B:679B0A69:vzmtunnel:21010:root@pam!pdm-admin:'
tunnel: -> sending command "version" to remote
tunnel: <- got reply
2025-01-30 06:13:13 local WS tunnel version: 2
2025-01-30 06:13:13 remote WS tunnel version: 2
2025-01-30 06:13:13 minimum required WS tunnel version: 2
2025-01-30 06:13:13 websocket tunnel started
2025-01-30 06:13:13 shutdown CT 21010
2025-01-30 06:13:14 starting migration of CT 21010 to node 'kvm12' (192.168.5.12)
tunnel: -> sending command "bwlimit" to remote
tunnel: <- got reply
2025-01-30 06:13:14 found local volume 'prxpool:subvol-21010-disk-0' (in current VM config)
tunnel: -> sending command "disk-import" to remote
tunnel: <- got reply
tunnel: accepted new connection on '/run/pve/21010.storage'
tunnel: requesting WS ticket via tunnel
tunnel: established new WS for forwarding '/run/pve/21010.storage'
full send of prxpool/subvol-21010-disk-0@__migration__ estimated size is 1.00G
total estimated size is 1.00G
TIME        SENT   SNAPSHOT prxpool/subvol-21010-disk-0@__migration__
tunnel: -> sending command "query-disk-import" to remote
tunnel: done handling forwarded connection from '/run/pve/21010.storage'
tunnel: <- got reply
2025-01-30 06:13:16 volume 'prxpool:subvol-21010-disk-0' is 'prxpool:subvol-21010-disk-0' on the target
2025-01-30 06:13:16 mapped: net0 from vmbr0 to vmbr0
tunnel: -> sending command "config" to remote
tunnel: <- got reply
2025-01-30 06:13:16 ERROR: error - tunnel command '{"firewall-config":null,"cmd":"config","conf":"arch: amd64\ncores: 2\nfeatures: nesting=0\nhostname: testwan1\nlock: migrate\nmemory: 1024\nnameserver: 9.9.9.9\nnet0: name=eth0,bridge=vmbr0,gw=10.0.21.2,hwaddr=0A:00:00:21:00:10,ip=10.0.21.10/24,ip6=dhcp,link_down=1,tag=21,type=veth\nonboot: 1\nostype: ubuntu\nrootfs: prxpool:subvol-21010-disk-0,size=4G\nsearchdomain: xxx.site\nswap: 0\nunprivileged: 1\n"}' failed - failed to handle 'config' command - 403 Permission check failed (changing feature flags (except nesting) is only allowed for root@pam)
2025-01-30 06:13:16 aborting phase 1 - cleanup resources
2025-01-30 06:13:16 ERROR: found stale volume copy 'prxpool:subvol-21010-disk-0' on node 'kvm12'
tunnel: -> sending command "quit" to remote
tunnel: <- got reply
2025-01-30 06:13:17 start final cleanup
2025-01-30 06:13:17 start container on source node
2025-01-30 06:13:18 ERROR: migration aborted (duration 00:00:05): error - tunnel command '{"firewall-config":null,"cmd":"config","conf":"arch: amd64\ncores: 2\nfeatures: nesting=0\nhostname: testwan1\nlock: migrate\nmemory: 1024\nnameserver: 9.9.9.9\nnet0: name=eth0,bridge=vmbr0,gw=10.0.21.2,hwaddr=0A:00:00:21:00:10,ip=10.0.21.10/24,ip6=dhcp,link_down=1,tag=21,type=veth\nonboot: 1\nostype: ubuntu\nrootfs: prxpool:subvol-21010-disk-0,size=4G\nsearchdomain: xxx.site\nswap: 0\nunprivileged: 1\n"}' failed - failed to handle 'config' command - 403 Permission check failed (changing feature flags (except nesting) is only allowed for root@pam)
TASK ERROR: migration aborted

Code:
arch: amd64
cores: 2
features: nesting=0
hostname: testwan1
memory: 1024
nameserver: 9.9.9.9
net0: name=eth0,bridge=vmbr0,gw=10.0.21.2,hwaddr=0A:00:00:21:00:10,ip=10.0.21.10/24,ip6=dhcp,link_down=1,tag=21,type=veth
onboot: 1
ostype: ubuntu
rootfs: prxpool:subvol-21010-disk-0,size=4G
searchdomain: xxx.site
swap: 0
unprivileged: 1

The logs says thats only allowed except nesting . But onliy nesting is used. Maybe nesting=0 is not needed and could be deleted?

Greats pr0
 
For my understanding:
You have created the remotes with their appropriate root user, if this is not the case I would try that again with the root user.
I have also read that the migration is carried out with the same user (via API token).

I would also look at your target, are there any sings of your CT?
Volumes and Configs? If so try to delete those :)