Commit Graph

59 Commits

Author SHA1 Message Date
Andreas Jaeger 81eb842140 Retire repository
Fuel repositories are all retired in openstack namespace, retire
remaining fuel repos in x namespace since they are unused now.

This change removes all content from the repository and adds the usual
README file to point out that the repository is retired following the
process from
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project

See also
http://lists.openstack.org/pipermail/openstack-discuss/2019-December/011675.html

A related change is: https://review.opendev.org/699752 .

Change-Id: I5a23c6a1f8cd3b055b686e16714a8ff5ccf23d86
2019-12-18 19:48:13 +01:00
Huan Xie dce4954d10 Check conntrack backup log in Dom0
When enable conntrack-tools, we will change the conntrackd.conf
file, but there is an error, current code is checking the DomU
to see whether the backup file exist, however this check should
in Dom0, this patch is to fix this problem

Change-Id: Ib9de2a2707785b04b38173e1d3bccadfa11b753e
2017-05-09 18:11:46 -07:00
Huan Xie 6689a9f9c9 Enable VxLAN with XenServer
1. Remove the restriction of vxlan on yaml file
2. Configure iptables in Dom0 to enable vxlan port 4789
3. Move br-mesh from compute node to Dom0
4. Add mos-vxlan.service to take use of systemctl and make
   sure when XenServer host reboot, the br-mesh and related
   configurations is still there
5. Persist iptables rules
6. Add cleanup of br-mesh if it exist in in Dom0 when the
   neutron network type is not vxlan

Change-Id: I1ab8ca56714167a2e20513b0f9b0ed4a82d9648e
2017-05-01 18:34:32 -07:00
Huan Xie 9a2beb2950 Deprecate XenServer 6.5 on MOS10
We will depracate support of XenServer 6.5 since MOS10, this patch
is to implement this via:
(1) Add XCP version check in compute_pre_test.py to make sure
the minimal XCP version is 2.1.0
(2) Replace the guest tool to xe-guest-utilities_7.0.0-24_all.deb
(3) Update related documents to only support XS7.0 and XS7.1

Change-Id: I0a0420d158faf18de3534f501dd2a25d818cc9be
2017-04-21 03:32:12 -07:00
jianghua wang e50e18ab2a Fix error for patching
If MOS picked some fix from upstream, the patches may be not
needed any more. We need avoid error for this case. The fix
is to make it to skip patching fix which has already existed.

Change-Id: I2b2a2cf1a01d24701b94fd00e2e815869f078cdd
Closes-Bug: #1683288
2017-04-18 06:50:03 +00:00
Huan Xie 3009f637e2 Support install suppack multi times
When add a new VM to current MOS environment, our plugins script
compute_post_deployment.py will be triggered and it will try to
install the supplemental packages and got the exception like:
"This update has already been applied", this patch is to add the
acceptable return code 1 when execute xe-install-supplemental-pack

Change-Id: Ie4e4328ed85938a6f98b272858ce3a39f9d564d4
2017-03-09 18:24:12 -08:00
jianghua wang fdf8795844 Use sysctl to enable net.ipv4.ip_forward separately
Use sysctl to enable net.ipv4.ip_forward separately instead of
reloading the whole sysctl.conf.

Change-Id: Ia334793972a5357edfe29d7dba2d448273a72c75
2017-03-08 17:37:06 +08:00
Huan Xie beae63e184 Support vif hotplug in Mitaka
I have made a patch to apply several new patch file in nova-compute,
see https://review.openstack.org/#/c/430030/, but these patch files
are based on newton or ocata, for vif hotplug, the attach_interface
API changed, there is a new parameter added after mitaka, see
https://review.openstack.org/#/c/147126/, so this patch is to remove
parameter context so it can be compatible with mitaka

Change-Id: I7f767c21d87d61c13ba5d272f869628210dc5d02
2017-03-06 02:10:33 -08:00
Jenkins e0bf851c8f Merge "Add nova compute patches" 2017-03-03 09:05:44 +00:00
Jianghua Wang e068e237aa Fix PEP8 issues in destroy_cached_images.py
This script was copied from nova:
tools/xenserver/destroy_cached_images.py
But it complains some PEP8 issues when run with flake8. So let's
fix it. Please note also remove eventlet.monkey_patch, so it's
not needed at here. Actually at the beginning of main(), it will
invoke utils.monkey_patch() instead.

Change-Id: Ie2d0f9acd78b16ae27948aef1a5599d313caa48e
2017-03-02 13:15:21 +08:00
Huan Xie e4ab4f95bc Add nova compute patches
There are some important patches in nova computes introduced recently,
this patch it to apply these patches and add corresponding Change_Id:

compute node:
1. live-migration-iscsi.patch
2. support-vif-hotplug.patch
3. fix-rescue-vm.patch
4. live-migration-vifmapping.patch
5. assert_can_migrated.patch

controller node:
1. live-migration-vifmapping-controller.patch

Change-Id: Ib0bfb97fa61323d101ea49faaf410d1576ca111b
2017-03-01 20:11:09 -08:00
Jenkins 4b76575684 Merge "Add a patch for ceilometer to fit MOS9.2" 2017-03-01 17:15:11 +00:00
Jenkins 02eec2cfef Merge "Support both Ely and Dundee in MOS9" 2017-02-28 09:55:34 +00:00
Jianghua Wang 3eeb90cedb Add a patch for ceilometer to fit MOS9.2
In MOS9.2, it added a new function purge_inspection_cache() in
compute pollsters. Each pollsters' get_samples will invoke
self.inspector.purge_inspection_cache() firstly. But xenaip
doesn't define this function, so it will get the following error:
AttributeError: 'XenapiInspector' object has no attribute
'purge_inspection_cache'.
As this function doesn't exist in upstream, let's just apply a
patch to define a empty purge_inspection_cache(). So that it's
able to get samples successfully.

Change-Id: I1177c24651715566850c6fde67f74959b01c7e12
2017-02-28 14:32:44 +08:00
Huan Xie 2142efbe52 Support both Ely and Dundee in MOS9
Ely has changed the way of building supplemental package, this patch
is to support both Ely and Dundee with MOS9
1. Change build-xenserver-suppack.sh to build ely package
2. Change the source code to install correct supplemental package

Change-Id: Ieafb9f1c407b05c92bbf6769d35d8ccef06fc5f5
2017-02-27 21:40:31 -08:00
Jianghua Wang e50779856a Support Image caching
Enable image caching and add the tool to clean cached images which
are not used anymore.

Change-Id: I533b55fd10121b8c461091c72eff01525b0455db
Closes-Bugs: #1645290
2016-12-27 20:41:49 +08:00
Jenkins 1c98684f16 Merge "Rotate conntrackd's log files" 2016-12-27 06:54:58 +00:00
Bob Ball b2b88d8eca Increase timeout vlaue for installing guest utilities
Change-Id: Ib0da3fcd4fd65c69bce2aaa83b9585e56a361d9c
2016-12-16 13:01:11 +00:00
Jianghua Wang 95a67bb757 Rotate conntrackd's log files
We should rotate conntrackd's log files to avoid FS filled up.

Change-Id: I6d9e40a372b49f2f014fb63440aed0028b4df494
2016-12-13 04:55:31 +00:00
Jenkins 3343ca5819 Merge "Avoid the cronjob filling up dom0's FS" 2016-11-09 10:58:12 +00:00
Jianghua Wang 0e86f0a35f Avoid the cronjob filling up dom0's FS
Change-Id: I710b054c3f9295cf9cae5bc92a1dbfdb43d4055c
2016-11-09 17:03:00 +08:00
John Hua bccc176701 Conditionally reconfig multipath
In MOS 9.1 /etc/multipath.conf doesn't exist by default. So the reconfiguration
should depend on the existence of /etc/multipath.conf.

Change-Id: I2784642fc49f6ea01f131f63be011ba1fc81acf6
2016-11-09 14:30:54 +08:00
John Hua 7533f8c80a Fix novnc cache
In MOS 9 the memcache isn't enabled for consoleauth by default and for a
multi-controller environment the authentication will be failed because token
cannot be retrieved from memcache.

This fix also moves the deprecated settings from DEFAULT section to vnc or cache.
And the nova-compute.conf on controller actually never been used thus is removed.

Change-Id: Ic9438172b6c1ed5074aaa0b6d0e036287efe1982
Related-Bug: #1576218
2016-11-04 17:02:57 +08:00
John Hua d7a7c1cbbc Convert controller post script to python
The old script is based on shell and not convenient to use in some cases. Some
functions in utils script might also need to be adjusted.

Change-Id: Ie1c9417363b07074f879e62b8856a455efb281c9
2016-11-04 10:26:00 +08:00
John Hua 10874d8672 Fix execute and file patching
The old execute() will silently ignore error regardless if it is in
allowed_return_codes. And the old file patching will get return code 1 when
running for the second time. The new implementation will firstly check if the
base file can be reversed(by dry-run). If it is so, then the patch will not be
applied.

Change-Id: I055428ec4b142ac9caa9b21a1609e2718e06aaf2
2016-11-02 15:13:59 +08:00
Jenkins 9c28fdb53a Merge "Avoid except exit due to no TestVM image" 2016-10-21 06:26:12 +00:00
Bob Ball f8f24eb9aa Add a tasks version number for each task.
MOS 9.1 requires the task version to be listed

Change-Id: I89fbb446b793a5e7b5b53ac5be825943834ba011
2016-10-17 11:02:40 +01:00
Jianghua Wang fe83d703aa Avoid except exit due to no TestVM image
The controller_post_deployment.sh is run with "-e" which means it
will exit directly if any error occured. The command of "grep"
will return non-zero if it find no line with the pattern. So this
script will exit unexpectedly if there is no TestVM image exists.

Change-Id: Ie5ca9e89e1687787a5173e2ea8cedffd8eb9bfdd
2016-10-14 11:18:01 +08:00
Jianghua Wang 77897d0ca5 Fix race condition for pcs
If run "pcs resource restart" while some resources are still in
restarting or initiating stage, it may result into failures for both.
So change code to wait until all ocf resources are started before
invoking "pcs resource restart" to restart p_ceilometer-agent-central.

Change-Id: Ief3557462ed8a017bd4cc69336181147ed61244d
2016-10-14 10:41:54 +08:00
Jianghua Wang f2b2df6676 Re-enable ceilometer service after applying some patches
Enable the ceilomeer service so that users can choose to use this
service.

Change-Id: I4cf30ea63cc773e7e05173174b65bcff12d04258
2016-10-10 08:48:46 +00:00
Jianghua Wang 2db7b079e9 Apply two patches for ceilomter services
Apply two ceilometer patches:
1. fix the issue that some *.rate meters are always zero;
   - https://review.openstack.org/#/c/367743/
2. add supporting on two meters network.incoming.bytes and
   network.outgoing.bytes:
   - https://review.openstack.org/#/c/367714/
   These two meters depends a nova fix on bandwidth, so also
   apply this nova fix.
   - https://review.openstack.org/#/c/365838/

Change-Id: I5f9a5f1a7e0912fc2fe47c17bb36a56947161615
2016-10-10 08:48:28 +00:00
Jenkins 7eb25589da Merge "Exclude network.service.* polling meters" 2016-10-10 08:44:20 +00:00
Jianghua Wang dc82f8f482 Exclude network.service.* polling meters
Currently we don't enable the vpn or lb service, so it will report
error: "Unable to discover resources: 404 Not Found". So let's add
them into the exclusion list.

Change-Id: I5922da6325fdde61be67c75068e0ce1a65d3e7da
2016-10-07 07:53:52 +00:00
Bob Ball 55315baea2 Improve error condition handling in controller deployment
Change-Id: Idd1a9a82649824e22114c7e4ca172fc6868145c1
2016-09-30 11:34:56 +01:00
Jenkins edb20ee64e Merge "Check for HIMN using dhcp discovery" 2016-09-12 08:23:42 +00:00
Jenkins 503618c33f Merge "Disable ceilomter." 2016-09-09 09:18:59 +00:00
Jenkins 3057f7fc58 Merge "Add support of conntrack-tools in Dom0" 2016-09-08 10:30:23 +00:00
Bob Ball 01402e857c Check for HIMN using dhcp discovery
A future plan for this plugin is to not require the HIMN XC
plugin but to support adding the network just in XenCenter
(with hidden objects displayed). Therefore the fuel plugin
should try to auto detect the HIMN as the MAC would not be
written to XenStore.

Change-Id: I7bb120ab79b486fa5ee201385e91c3c450454527
2016-09-08 10:45:05 +01:00
Jianghua Wang af9a2f2c7b Disable ceilomter.
Change-Id: I217c2a38100a93b5e463c971ea6df53d9ae2273a
2016-09-08 15:15:47 +08:00
Jenkins fc8f604e5a Merge "Check hotfixes for given platform" 2016-09-07 13:14:07 +00:00
Huan Xie c78ebe6e8b Add support of conntrack-tools in Dom0
1. Only support conntrack-tools with XS7.0 and above
2. Install conntrack-tools
3. Start conntrackd service
4. Appply neutron-ovs-agent patch in compute node
5. Add make conntrack-tools.iso in Makefile

Change-Id: I6d4569b1325c290525c17a5c560d3862c1c3de15
2016-09-07 09:09:03 +00:00
John Hua 3f4b41c802 Check hotfixes for given platform
Hotfixes are platform specific, thus needed to be specified in branding.inc.

Change-Id: Ifb753c3cab3618471a8b642d42ecf9a815e3da28
2016-09-07 16:16:31 +08:00
John Hua 74239788a8 Use log.info rather than log.err
Sometimes stderr may have output and showing it with ERROR may cause
misinterpretation.

Change-Id: I92b00feeed3bc3c8394f5bf54035b9b588c97c00
2016-09-06 16:35:29 +08:00
Bob Ball b772bc52ef Refactor and fix pep8 failures.
Create a utils.py file, and move all common code there
Add flake8 checking to Makefile (requires "pip install flake8")
Fixed all flake8 failures (except XenAPI.py, which is excluded)

Change-Id: I5ca50930ffadcb021719f746b7750d7af9839844
2016-09-05 09:15:19 +01:00
Jenkins ec49295492 Merge "Build the ISO as part of the makefile" 2016-08-31 10:03:27 +00:00
Jenkins 576cde7689 Merge "Silence patch output" 2016-08-31 02:19:15 +00:00
John Hua c60e97f59d Build the ISO as part of the makefile
Change-Id: Id2be52de5c8b86af1ca76cb0e70cd0ed80bac3a2
2016-08-31 02:02:43 +00:00
Jenkins 039d0ad335 Merge "Enable ceilometer" 2016-08-30 10:49:46 +00:00
Jianghua Wang ad57f30d59 Enable ceilometer
In order to enable ceilometer, need add xenapi specific setup in
ceilometer's configure file and update the impatible list.
Note ceilometer is an option service, the users can choose if
enable it or not.
This patch also contains a patch to fix an error on polling cpu_util.

Change-Id: I0b60494aa1d4511b18d6582f15d454af43b8500c
2016-08-30 10:52:38 +08:00
John Hua a860fc500d Put pre-test earlier after network configuration
Change-Id: I1ea8a6a898913b6a7b13fdf31e5a242cf04bf821
Related-bug: 1587454
2016-08-30 10:09:10 +08:00