We usually use a period-separated hierarchical module name as
the logger's name. But we have three scripts are using a hardcoded
name. This commit is to change them to use __name__ to make them
consistent with others. By using the period-separated hierarchical
module name, it's easier to know which module generated the log
lines so it's also easier to get the file name.
Change-Id: I373ce9b44caf2b9baffb753e6db7ad8789219f4b
Sometime we need to know if a domu's interface is conneted
to a same bridge (network) as dom0's interface. This commit
is to add bridge name for each ipv4 entry in the xenapi facts.
Change-Id: I8a6e1507cfa2c935b18e2fed04abaa06df9b0e51
This commit is to gather domU's vifs in facts. So that the compute
VM's interfaces' vif information will be included in the xenapi_facts.
When deploy OpenStack on XenServers, the vif information can be used
by deployment scripts (e.g. in Kolla-ansible, it can use the vif's
bridge to support provider networks by setting the bridge mappings).
Change-Id: I9a6bebe19ed488bb2173d5dc2daa14e236411243
This commit is to add dom0's IPs in the xenapi facts. So that
kolla-ansible can use the proper IP address for vxlan tunnel or
other places when require dom0's IPs.
Change-Id: Iede11b4a529ff1885b588bf01d7ff15dc6185092
This commit contains the following changes:
1. remove it from cmd; as there is no need to expose this as a
separate command. Making this as an util which will be invoked
by xenapi_bootstrap.
2. rename the general function of get_hostname to be get_remote_hostname
and move it to common_functions.
3. change the keywords for the facts items to make it more clear.
Change-Id: Ie786b3085c29f9a1faf2c51a1a704ded1010af7b
This commit is to add a new command - get_xenapi_facts
which will gather facts for XenAPI. When deploy OpenStack
on XenServer, the facts can be used by deploy approach(e.g.
kolla-ansible).
Change-Id: Ia606d6ddc651cfa0b75fa34d8f14bc156d9dbe27
Add utils to do HIMN configuration. If the local HIMN interface
is up and gets IP address allocated, we can get the interface
via checking if the local interface has an IP belong to the same
network as the dom0's HIMN IP which should be supplied. Otherwise
read xenstore to get mac address and find the interface via mac.
After identified the interface, we populate the ifcfg file to
ensure this interface will be up in the future across boots.
Change-Id: I5f8cd53710edb714f0c4c1dc50c1d4472f2e365f
Depends-on: Ia363afc1fc932bf44a7ac956a5bc27978bb47868