Network migration fail with "failed to parse api response" in network selection

Getting this too with PDM 1.0.2 and the following pvesh output:
Code:
[
   {
      "active" : 1,
      "autostart" : 1,
      "bridge_fd" : "0",
      "bridge_ports" : "vmbr0.54",
      "bridge_stp" : "off",
      "families" : [
         "inet"
      ],
      "iface" : "vmbr2",
      "method" : "manual",
      "method6" : "manual",
      "mtu" : "9000",
      "priority" : 15,
      "type" : "bridge"
   },
   {
      "active" : 1,
      "address" : x.x.x.x",
      "autostart" : 1,
      "bridge_fd" : "0",
      "bridge_ports" : "bond0",
      "bridge_stp" : "off",
      "cidr" : "x.x.x.x/24",
      "families" : [
         "inet"
      ],
      "gateway" : "x.x.x.x",
      "iface" : "vmbr1",
      "method" : "static",
      "method6" : "manual",
      "netmask" : "24",
      "priority" : 14,
      "type" : "bridge"
   },
   {
      "active" : 1,
      "autostart" : 1,
      "bridge_fd" : "0",
      "bridge_ports" : "bond1",
      "bridge_stp" : "off",
      "bridge_vids" : "2-90",
      "bridge_vlan_aware" : 1,
      "families" : [
         "inet"
      ],
      "iface" : "vmbr0",
      "method" : "manual",
      "method6" : "manual",
      "mtu" : "9000",
      "options" : [
         "bridge-vlan-protocol 802.1ad"
      ],
      "priority" : 11,
      "type" : "bridge"
   },
   {
      "active" : 1,
      "address" : "x.x.x.x",
      "autostart" : 1,
      "bridge_fd" : "0",
      "bridge_ports" : "vmbr0.100",
      "bridge_stp" : "off",
      "cidr" : "x.x.x.x/24",
      "families" : [
         null
      ],
      "iface" : "vmbr0_vlan100",
      "method" : "manual",
      "method6" : "manual",
      "netmask" : "24",
      "priority" : 13,
      "type" : "bridge"
   },
   {
      "active" : 1,
      "autostart" : 1,
      "bridge_fd" : "0",
      "bridge_ports" : "vmbr0.48",
      "bridge_stp" : "off",
      "families" : [
         null
      ],
      "iface" : "vmbr0_vlan48",
      "method" : "manual",
      "method6" : "manual",
      "priority" : 12,
      "type" : "bridge"
   }
]
 
this seems suspicious, can you post the /etc/network/interfaces of the host that returns that?
Code:
auto lo
iface lo inet loopback

auto eno1
iface eno1 inet manual

auto eno2
iface eno2 inet manual

auto eno3
iface eno3 inet manual

auto eno4
iface eno4 inet manual

auto enp130s0
iface enp130s0 inet manual

auto enp130s0d1
iface enp130s0d1 inet manual

auto bond0
iface bond0 inet manual
        bond-slaves eno3 eno4
        bond-miimon 100
        bond-mode 802.3ad
        bond-xmit-hash-policy layer3+4

auto bond1
iface bond1 inet manual
        bond-slaves eno1 eno2 enp130s0 enp130s0d1
        bond-miimon 100
        bond-mode 802.3ad
        bond-xmit-hash-policy layer3+4
        mtu 9000

auto vmbr0
iface vmbr0 inet manual
        bridge-ports bond1
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-100
        mtu 9000
        bridge-vlan-protocol 802.1ad

auto vmbr0_vlan48
iface vmbr0_vlan48
        bridge-ports vmbr0.48
        bridge-stp off
        bridge-fd 0

auto vmbr0_vlan100
iface vmbr0_vlan100
        address x.x.x.x/24
        bridge-ports vmbr0.100
        bridge-stp off
        bridge-fd 0

auto vmbr1
iface vmbr1 inet static
        address x.x.x.x/24
        gateway x.x.x.x
        bridge-ports bond0
        bridge-stp off
        bridge-fd 0

auto vmbr2
iface vmbr2 inet manual
        bridge-ports vmbr0.54
        bridge-stp off
        bridge-fd 0
        mtu 9000

auto vmbr3
iface vmbr3 inet manual
        bridge-ports vmbr0.6
        bridge-stp off
        bridge-fd 0
 
You are missing some directives in the vmbr0_vlan100 and vmbr0_vlan48 sections respectively. When configuring an IPv4 address you need to add inet static - when configuring no IP address inet manual is required. Analogous for IPv6, but with inet6 instead of inet.
 
  • Like
Reactions: dcsapak
You are missing some directives in the vmbr0_vlan100 and vmbr0_vlan48 sections respectively. When configuring an IPv4 address you need to add inet static - when configuring no IP address inet manual is required. Analogous for IPv6, but with inet6 instead of inet.
That should not be required as ifupdown2 will figure it out by itself, only the original ifupdown should need it. Is this something that hasn't been implement after the move from the original to version 2 that was done with PVE 7 (?)
 
That should not be required as ifupdown2 will figure it out by itself, only the original ifupdown should need it. Is this something that hasn't been implement after the move from the original to version 2 that was done with PVE 7 (?)

It's not implemented with the parsing logic on our end - so it gets tripped up by the missing directives.