You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xapi/design/management-interface-on-vlan.md
+20-3Lines changed: 20 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ revision_history:
9
9
description: Initial version
10
10
- revision_number: 2
11
11
description: Addition of `networkd_db` update for Upgrade
12
+
- revision_number: 3
13
+
description: More info on `networkd_db` and API Errors
12
14
---
13
15
14
16
This document describes design details for the
@@ -80,12 +82,18 @@ Updating networkd_db program
80
82
----------------------------
81
83
82
84
`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.
84
86
85
87
Steps to be followed:
86
88
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`.
89
97
90
98
Additional VLAN parameter for Emergency Network Reset
@@ -194,6 +202,15 @@ This must be perfomed on slaves first and lastly on Master, As changing manageme
194
202
- Call `Host.management_reconfigure` on each slave then lastly on master.
195
203
- Call `pool.recover_slaves` on master inorder to recover slaves which might have lost the connection to master.
196
204
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.
0 commit comments