Dear Ganeti experts,
I am trying to disable an instance network interface, so I don't cause an IP address conflict when starting a cloned instance (restored with a new name using gnt-backp import.)
To verify the ID of the instance NIC, I do:
[root@quinoa-a ~]# gnt-instance info foremantest1a | grep -A 9 'NICs:'
NICs:
- nic/0:
MAC: aa:00:00:65:57:6f
IP: None
mode: bridged
link: br0
vlan:
network: None
UUID: 1011bc8a-61c5-46fc-9e66-7c640cc86e92
name: None
Then, I try disabling the NIC with this:
[root@quinoa-a ~]# gnt-instance modify --net 0:modify,link=down foremantest1a
Failure: prerequisites not met for this operation:
error type: environment_error, error details:
Error checking bridges on node 'quinoa-a.intranet.psfc.coop': Missing bridges down
Not getting the syntax correct, I try removing the NIC instead, with this:
[root@quinoa-a ~]# gnt-instance modify --net 0:remove foremantest1a
Failure: prerequisites not met for this operation:
error type: wrong_input, error details:
Instance allocation to group {'name': 'default', 'ndparams': {}, 'diskparams': {}, 'ipolicy': {}, 'serial_no': 1, 'alloc_policy': 'preferred', 'networks': {}, 'ctime': 0, 'mtime': 1708450693.446535, 'uuid': '0697c830-e36d-4299-aecb-8e8efa4a6de1', 'tags': []} (default) violates policy: nic-count value 0 is not in range [1, 8]
...which is also unsuccessful.
Does anyone know the correct syntax for disabling or removing an instance NIC?
SYSTEM INFO
OS: Rocky 8.10
Ganeti 3.0.2
Hypervisor: KVM 6.2.0
Disk repl: DRBD 8.4.10
Many thanks.