]> git.proxmox.com Git - pve-cluster.git/commit
api/join: avoid using an IPv6 address as worker task ID
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 30 Jul 2018 12:31:00 +0000 (14:31 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 31 Jul 2018 06:23:54 +0000 (08:23 +0200)
commit8c4e30d3840d247ef677df8ad49eae9627ba6c7f
tree264504dc3a20b03fab5214a85243e7b7ca5f77de
parent9d561a74abb7dddeac2bd4fa26d60a1db74c6c18
api/join: avoid using an IPv6 address as worker task ID

We used the hostname of the node over which we joined a cluster as
worker ID, which is then encoded in it's task UPID - a unique ID with
encoded information, separated by colons.
While this is no problem for normal hostnames, or IPv4 addresses, the
hostname can also be an IPv6 address - which is also separated by
colons. This throws of the upid_decode method.

While the, from a user POV, best solution would probably be to
connect and query the cluster name from the join peer it is much
simpler to just omit the ID to avoid such problems.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
data/PVE/API2/ClusterConfig.pm