parse error in '/etc/pve/datacenter.cfg' - 'migration': invalid format - format error#012migration.

Thomas Jagoditsch

Renowned Member
Jan 22, 2016
9
0
66
58
hi all,

i rebuilt our cluster with 5.1 and im happy so far.
one thing that bugs me is the above error. https://pve.proxmox.com/pve-docs/datacenter.cfg.5.html states that
migration: [type=]<secure|insecure> [,network=<CIDR>]

For cluster wide migration settings.

network=<CIDR>
CIDR of the (sub) network that is used for migration.

type=<insecure | secure> (default = secure)
Migration traffic is encrypted using an SSH tunnel by default. On secure, completely private networks this can be disabled to increase performance.
my datacenter.cfg:
Code:
keyboard: de
migration: insecure, network=10.101.103.0/24
i tried with type=insecure, too ...
still i get the error both in the logs, via mail and while migration. obviously the stated network is not used for migration.
what did i do wrong ?

tia,tja...
 
It looks like you do not run latest version.? Please check with:

> pveversion -v
 
tx tom for the fast reply.
Code:
proxmox-ve: 5.1-32 (running kernel: 4.13.13-2-pve)
pve-manager: 5.1-41 (running version: 5.1-41/0b958203)
pve-kernel-4.13.4-1-pve: 4.13.4-26
pve-kernel-4.13.13-2-pve: 4.13.13-32
libpve-http-server-perl: 2.0-8
lvm2: 2.02.168-pve6
corosync: 2.4.2-pve3
libqb0: 1.0.1-1
pve-cluster: 5.0-19
qemu-server: 5.0-18
pve-firmware: 2.0-3
libpve-common-perl: 5.0-25
libpve-guest-common-perl: 2.0-14
libpve-access-control: 5.0-7
libpve-storage-perl: 5.0-17
pve-libspice-server1: 0.12.8-3
vncterm: 1.5-3
pve-docs: 5.1-12
pve-qemu-kvm: 2.9.1-5
pve-container: 2.0-18
pve-firewall: 3.0-5
pve-ha-manager: 2.0-4
ksm-control-daemon: 1.2-2
glusterfs-client: 3.8.8-1
lxc-pve: 2.1.1-2
lxcfs: 2.0.8-1
criu: 2.11.1-1~bpo90
novnc-pve: 0.6-4
smartmontools: 6.5+svn4324-1
zfsutils-linux: 0.7.3-pve1~bpo9
ceph: 12.2.2-pve1
 
your syntax is wrong, please use something like this:

Code:
migration: type=insecure,network=10.101.103.0/24
 
thx tom,

it was the additional space in the line between the comma "," and "network", i double checked now.

works:
Code:
migration: type=insecure,network=10.101.103.0/24
raises error:
Code:
migration: type=insecure, network=10.101.103.0/24

guten rutsch und ein gutes 2018 !
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!