Install XenAPI for neutron

Although we changed nova project to use os-xenapi, neutron
project hasn't, so we need to install XenAPI in domU for
neutron (neutron-rootwrap-xen-dom0), this patch is to add
installing XenAPI via pip

Change-Id: Ied0da7769049ea87e68c7ac8cdfd9d143629402d
This commit is contained in:
Huan Xie 2017-01-17 01:05:00 -08:00
parent 53a513f34a
commit 54012d4137
1 changed files with 2 additions and 0 deletions

View File

@ -50,6 +50,8 @@ function install_plugins {
tar -czf - -C $plugin_dir/plugins/xenserver/xenapi/etc/xapi.d/plugins/ ./ |
$ssh_dom0 "tar -xzf - -C $dom0_plugin_dir && chmod a+x $dom0_plugin_dir/*"
else
# TODO(huanxie): delete "pip_install_gr xenapi" when neutron changed to use os-xenapi
pip_install_gr xenapi
tar -czf - -C $plugin_dir/os_xenapi/dom0/etc/xapi.d/plugins/ ./ |
$ssh_dom0 "tar -xzf - -C $dom0_plugin_dir && chmod a+x $dom0_plugin_dir/*"
fi