Commit Graph

16 Commits

Author SHA1 Message Date
Huan Xie 61c451e896 Change neutron firewall driver to ovs
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
2018-06-07 10:21:43 +00:00
Huan Xie 5d1dcba0e8 Enable neutron ovs agent (q-domua) polling mode
We have disabled pollling mode due to a known bug in nova
with XenAPI driver. Now we have a patch to fix that bug,
so, enable polling mode accordingly.

Depends-On: I221e89686c8e9041651f5affc4e3542d75ff55bc
Change-Id: Ic9ad9c84debf82f4115428e9361bbf41324c1b9c
2017-11-27 08:12:17 +00:00
Huan Xie d1dec09446 Set host=${dom0_hostname} in related conf
As we have two ovs agent running in domU, we must set different
value for host configuration item. Currently, its value is
${dom0_hostname}-nova for nova, neutron and ceilometer service,
but we found tempest is using hypervisor's name when try to live
migrate VM, see bug https://bugs.launchpad.net/tempest/+bug/1716623.
This patch is to change our devstack plugin to set host item
with value ${dom0_hostname} for n-cpu, q-domua and ceilometer,
then it's align with hypervisor's name

Closes-bug: 1716623
Change-Id: I6a5b77a91898b602ec328afad6567973a2132759
2017-09-13 05:15:42 +00:00
Jenkins 59605dde90 Merge "Install conntrack and create image/kernel dir in Dom0" 2017-06-07 13:49:23 +00:00
Huan Xie e291f25596 Install conntrack and create image/kernel dir in Dom0
We are moving files from devstack/tools/xen/ to os-xenapi repo,
but I found devstack/lib/nova_plugins/hypervisor-xenserver file
will use some functions in tools/xen/functions, e.g.
- create_directory_for_images
- create_directory_for_kernels
- install_conntrack_tools
Once we remove all files under tools/xen to os-xenapi, devstack
will fail to deploy nova-compute service as it cannot find files
in tools/xen anymore. Thus, I made this patch to let our devstack
plugin to trigger the above functions. So we can safely remove
the whole folder tools/xen and some functions in devstack repo

Change-Id: I712ee74ce945859ba5118e09b7d9436ca2686cb7
2017-06-06 22:41:07 -07:00
jianghua wang ab4f0a6995 Make plugin installation supporting both master and stable branches
Change-Id: I3f298d02bfd60590d325031e70a93d18737c93a2
2017-05-31 09:44:26 +00:00
Huan Xie 4d578d0772 Devstack plugin add support of install ceilometer
Currently using the ceilometer repo's devstack plugin can install
ceilometer, but the computing inspector is not xenapi and thus
cannot using ceilometer with XenServer. This patch is to add xenapi
related configuration in ceilometer.conf and start
ceilometer-acompute service if it is enabled

Change-Id: If19aaf4eb529f918c01bb3e41e21746732a8498a
2017-05-09 22:56:06 -07:00
Huan Xie 849a063a02 Update copyrights for new added files in this repo
https://wiki.openstack.org/wiki/LegalIssuesFAQ said about copyrights,
this patch is to change the new added files' copyrights from
'OpenStack Foundation' to 'Citrix Systems'

Change-Id: Iec9dab76bf9906d865c54c3c9a2df0eb1fb73761
2017-05-08 03:41:15 -07:00
Huan Xie 64b35fd828 Use os-xenapi for neutron dom0 plugin
We are replacing XenAPI to os-xenapi in neutron project, when the
patch https://review.openstack.org/#/c/402330/ merged, we should
delete installing XenAPI for neutron project. This patch is to add
such cleanup

Depends-On: Ia958c366189386b1b5abbadbb4d74950aaa23bb2

Change-Id: If9af036b59122b7d074946103ed0b22b375f4a0e
2017-04-06 04:10:36 -07:00
Huan Xie 4ae9af402b Use default br-int for ovs-agent in Dom0
The default L2 bridge br-int is used commonly in Neutron project
and it will be created by ovs-agent, there is no need for use to
create a specific intergation network and corresponding integration
bridage. This patch is to use the default br-int for ovs-agent in
compute node (Dom0 in XenServer case) to make sure we are align
with others

Change-Id: I675565e1ea6c887d40d7a53f62968c4aa385ecca
2017-03-22 18:51:10 -07:00
Huan Xie befb1601f6 Enable neutron VxLAN
1. Set ovs-agent (q-domua) configurations in ml2_conf.ini.domU
including enable iptables in dom0 for ovs native mode
2. Enable VxLAN by configuring the tunnel between dom0 and domU
and enable port 4789 in dom0
3. Install neutron dom0 plugin
4. Configure nova.conf to use the XenAPIOpenVswitchDriver

Note:
I also made a patch I8a31c81d9475387fe4ed7030b70b26098e588771
in devstack, which removed the duplicated code added in this
patch, we can also monitor that patch's CI test result

Change-Id: Ic816404c84f6a8899d01a77cb67fbfb421653e6b
2017-03-19 22:59:04 -07:00
Huan Xie beb6df6390 Set default value for host
We have two ovs agent running in our DevstackDomU, one for
compute node (q-domua) and one for controller node (q-agt),
actually, we should configure different values for item
[DEFAULT] host = XXX in ml2_conf.ini.domU which is for q-domua
and also in nova.conf, this patch is to re-configure th
default value

Change-Id: Ifac47e84ad3f6469cd12ba4c8ba7a3e2101750ae
2017-02-21 00:11:44 -08:00
Jianghua Wang daf2dfc7c7 Move image configuration from devstack to os-xenapi.
Use override-defaults to override the upstream default variables.

Change-Id: I0e110bece77b7e4e99e75810680882cfe8344948
2017-02-21 12:05:45 +08:00
Bob Ball 7aee2d3eaa Set defaults for Tempest
Depends-On: I01c419a8cb053038c15d44415b9154f83e981b9c
Change-Id: I8822b92c048ae027af60798435ef0aedf89e5733
2017-02-09 07:41:23 +00:00
Huan Xie 54012d4137 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
2017-01-17 01:05:00 -08:00
Huan Xie 53a513f34a Add devstack-plugins in os-xenapi
When changed to use os-xenapi, we also need to change the way
we install OpenStack by DevStack. This patch use the plugins
mechanisem DevStack provided, we can install the extra/specific
parts besides what DevStack already done.
1. Add devstack folder and scripts for devstack-plugin
2. Install Dom0 plugins
3. Add TODOs, we can configure XenServer+Neutron specific items
   in devstack-plugin in the future

Change-Id: I6dc783eeb5c95e5fe81d907154aa2e880d6bac9e
2017-01-04 18:22:34 -08:00