Debian Codegraph @

doc/source/user/host-info.rst

raw
1 ================
2 Host Information
3 ================
4
5 To enable negotiation of features between a service host (typically a compute
6 node) and the network provider host, os-vif exposes some objects that describe
7 the host running the plugins.
8
9 Host Information Objects
10 ========================
11
12 The following objects encode the information about the service host.
13
14 HostInfo
15 --------
16
17 This class provides information about the host as a whole. This currently means
18 a list of plugins installed on the host. In the future this may include further
19 information about the host OS state.
20
21 HostPluginInfo
22 --------------
23
24 This class provides information about the capabilities of a single os-vif
25 plugin implementation that is installed on the host. This currently means a
26 list of VIF objects that the plugin is capable of consuming. In the future this
27 may include further information about resources on the host that the plugin
28 can/will utilize. While many plugins will only ever support a single VIF
29 object, it is permitted to support multiple different VIF objects. An example
30 would be openvswitch which can use the same underlying host network
31 functionality to configure a VM in several different ways.
32
33 HostVIFInfo
34 -----------
35
36 This class provides information on a single VIF object that is supported by a
37 plugin. This will include the versioned object name and the minimum and maximum
38 versions of the object that can be consumed.
39
40 It is the responsibility of the network provider to ensure that it only sends
41 back a serialized VIF object that satisfies the minimum and maximum version
42 constraints indicated by the plugin. Objects outside of this version range will
43 be rejected with a fatal error.
44
45 Negotiating networking
46 ======================
47
48 When a service host wants to create a network port, it will first populate an
49 instance of the HostInfo class, to describe all the plugins installed on the
50 host. It will then serialize this class to JSON and send it to the network
51 manager host. The network manager host will deserialize it back into a HostInfo
52 object. This can then be passed down into the network driver which can use it
53 to decide how to configure the network port.
54
55 If the os-vif version installed on the network host is older than that on the
56 service host, it may not be able to deserialize the HostInfo class. In this
57 case it should reply with an error to the service host. The error message
58 should report the maximum version of the HostInfo class that is supported. the
59 service host should then backlevel its HostInfo object to that version before
60 serializing it and re-trying the port creation request.
61
62 The mechanism or transport for passing the plugin information between the
63 network and service hosts is left undefined. It is upto the user of os-vif to
64 decide upon the appropriate approach.