Hi all,
I'm experiencing an issue where something keeps modifying my /etc/pve/datacenter.cfg file, specifically deleting the migration: entry I add.
I add this line:
The configuration works for a while, but after some time, the entry disappears (no migration: present), causing my replication and migrations to use the default interface instead of the one I want.
I set up audit logging on the file and found the following entries:
It appears that chef-client is making these changes. The process runs as root and seems to overwrite the file multiple times.
Why would chef-client modify /etc/pve/datacenter.cfg?
How can I prevent such changes and ensure the configuration remains as intended?
Any advice or insights would be appreciated!
I'm experiencing an issue where something keeps modifying my /etc/pve/datacenter.cfg file, specifically deleting the migration: entry I add.
I add this line:
Code:
migration: type=insecure,network=127.67.0.0/27
I set up audit logging on the file and found the following entries:
Code:
type=SYSCALL msg=audit(1732690591.733:456): arch=c000003e syscall=89 success=no exit=-22 a0=7ffd0244da40 a1=7ffd0244e260 a2=3ff a3=55550083 items=1 ppid=1325 pid=2636763 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="chef-client" exe="/opt/chef/embedded/bin/ruby" subj=unconfined key="datacenter_cfg_change"ARCH=x86_64 SYSCALL=readlink AUID="unset" UID="root" GID="root" EUID="root" SUID="root" FSUID="root" EGID="root" SGID="root" FSGID="root"
Why would chef-client modify /etc/pve/datacenter.cfg?
How can I prevent such changes and ensure the configuration remains as intended?
Any advice or insights would be appreciated!