Skip to content

Commit 80ab2d4

Browse files
committed
More info on networkd_db and API Errors
Signed-off-by: Sharad Yadav <[email protected]>
1 parent 7ee6a5a commit 80ab2d4

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

xapi/design/management-interface-on-vlan.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ revision_history:
99
description: Initial version
1010
- revision_number: 2
1111
description: Addition of `networkd_db` update for Upgrade
12+
- revision_number: 3
13+
description: More info on `networkd_db` and API Errors
1214
---
1315

1416
This document describes design details for the
@@ -80,12 +82,18 @@ Updating networkd_db program
8082
----------------------------
8183

8284
`networkd_db` provides the management interface info to the host installer during upgrade.
83-
It reads `/var/lib/xcp/networkd.db` file to output the Management Interface information. Here we need to update the networkd_db to handle the VLAN information.
85+
It reads `/var/lib/xcp/networkd.db` file to output the Management Interface information. Here we need to update the networkd_db to output the VLAN information when vlan bridge is a input.
8486

8587
Steps to be followed:
8688

87-
1. Update the bridge info to provide `port.interfaces` for the management VLAN as well.
88-
2, Update the iface info to provide `ipv4_conf` or `ipv6_conf` with `dhcp` or `static` mode.
89+
1. Currently VLAN interface IP information is provided correctly on passing VLAN bridge as input.
90+
`networkd_db -iface xapi0` this will list `mode` as dhcp or static, if mode=static then it will provide `ipaddr` and `netmask` too.
91+
2. We need to udpate this program to provide VLAN ID and parent bridge info on passing VLAN bridge as input.
92+
`networkd_db -bridge xapi0` It should output the VLAN info like:
93+
`interfaces=`
94+
`vlan=vlanID`
95+
`parent=xenbr0` using the parent bridge user can identify the physical interfaces.
96+
Here we will extract VLAN and parent bridge from `bridge_config` under `networkd.db`.
8997

9098
Additional VLAN parameter for Emergency Network Reset
9199
-----------------------------------------------------
@@ -194,6 +202,15 @@ This must be perfomed on slaves first and lastly on Master, As changing manageme
194202
- Call `Host.management_reconfigure` on each slave then lastly on master.
195203
- Call `pool.recover_slaves` on master inorder to recover slaves which might have lost the connection to master.
196204

205+
### API errors
206+
207+
Possible API errors that may be raised by `pool.management_reconfigure`:
208+
209+
- `INTERFACE_HAS_NO_IP` : the specified PIF (`pif` parameter) has no IP configuration. The new API checks for all PIFs on the new Network has IP configured. There might be a case when user has forgotten to configure IP on PIF on one or many of the Hosts in a Pool.
210+
211+
New API ERROR:
212+
- `REQUIRED_PIF_NOT_PRESENT` : the specified Network (`network` parameter) has no PIF present on the host in pool. There might be a case when user has forgotten to create vlan pif on one or many of the Hosts in a Pool.
213+
197214
CP-Tickets
198215
----------
199216

0 commit comments

Comments
 (0)