The control domain id of slave nodes in xenserver pools is not 0,
so the old cmd would fail. Change the cmd to fix it.
Change-Id: I2814a1421fd5825d88609057b48fa61254a944cc
Closes-Bug: #1783238
The built-in named 'file' has been removed since Python 3.0 [1]
This patch replaces it by 'open' which is the same under Python 2 and 3.
[1] https://docs.python.org/release/3.0/whatsnew/3.0.html#builtins
Change-Id: Id39efad099358a76743693cc6e32bddca57e8e45
When neutron firewall driver changed to iptables_hybrid, the CI
always fail, change it back as our OVS backend is 2.3.2 which
doesn't support such function
Change-Id: Ieacba606afcf7fb026dfa892da4ededa8ef8a4a2
We can support non-FS based SR with the supporting on VDI streaming
feature. And VDI steaming will be the default image handler. So
this commit is to change the installation script to allow no-FS
SR types. For the VDI streaming feature, please check the depends-on.
Depends-On: I0ad8e34808401ace9b85e1b937a542f4c4e61690
Change-Id: Iea687f17ab12e30e8dc55cbecdcfd8991d402fc8
We will manage the eventlet version using constraints now. See the
thread starting at
http://lists.openstack.org/pipermail/openstack-dev/2018-April/129096.html
for more details.
In order to change the requirements file we also need to fix the lower
constraints settings so that they comply with policy, so this patch also
includes those changes.
Change-Id: If5be7eb462360c92c7274ddb4f204631bdc02555
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
As uploading image, it will compress the vdh file and generate the
gzipped tar file. This commit will change it to use default compress
level as 6; and also allow the API's user to specify a customizing
compress level basing on demand.
Change-Id: If343326d7a501b25662fecb0b57d7637acabe250
In XenServer's dom0 (e.g. XS7.0/7.1), the module of future is
not available. So this commit is to avoid using *future*. Instead
it import check_output from different modules basing if *future*
module is available of not.
Change-Id: Ib75b2b7965e63033ea933f7cb4a4a54a2f48ef75
Partial-Bug: #1762130
If the SR is not the default one, the nova option of "sr_matching_filter"
can be used to get proper SR. In order to support it with VDI streaming,
we should add a new parameter - sr_ref which will be passed down by
nova code.
Change-Id: I624ee58f9c630f1712e066f3523ee6db45775e5c
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.
Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.
Add openstack-tox-lower-constraints job to the zuul configuration.
See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.
Change-Id: Ife046ce4b1056284d1151c84f83697d5690aff62
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Now os-xenapi is compatible with both python2 and python3.
This patch is to change the package of os-xenapi as universal.
Change-Id: Ia1314de1b49e17c841b9cc7bf5677dbc092ca62d
We had some change in source code (glance.py) to make os-xenapi
be compitable with both py2 and py3. But the modules in the UT
have not been changed accordingly. So some mocks on module's
method don't take effective.
This commit is to fix the failures in test_glance.
Change-Id: I42cbe4f5dc5cec5d28394b9502196ff9c9bb8761
Closes-Bug: 1757928
The top README will show in the package home in pypi. With this
*Devstack Installaction* guide in the README, it makes the page
messed-up. I think it's better to move it to the sub directory
where the relative installation tools are located.
Change-Id: Iff4bdc5353f76c14d03f7b6d3a12b46e06fd8c71
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
Fixes os_xenapi/dom0/etc/xapi.d/plugins/*.py wrt Python 3 compatibility,
also remove some tests in os_xenapi/tests/plugins/test_glance.py that
are too Py2 centric.
Change-Id: Iab721f6a47dc023f01670076ef7d1de107a913ae
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 introduces a command which can be invoked by kolla
playbook to bootstrap XenAPI - xenapi_bootstrap. This command
will invoke some modules's functions to do needed boostrap
tasks. At the moment it includes:
* configure himn
* configure iptalbes to allow traffic
* install xapi plugins to dom0
* gather XenAPI facts and save them into a file
The facts file will used others e.g. kolla deployment can
get facts from it and populate relative configures basing
on the facts.
Change-Id: Ie2d7d40f2755580aac4a10f3d302190a8bd4fe6f
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
When deploy OpenStack on XenServer, we need install some XAPI
plugins to dom0. This commit is to add utils for this purpose.
If the os-xenapi version is different from the os-xenapi which
contains the utils. Users can specify the version to the utils.
So that the utils will download the right version of os-xenapi
and copy plugins from there. Otherwise the utils will by default
copy plugins from current installed packages.
Change-Id: I269a444b952f63fd73b3825b23dc95d6e825ce8f