Commit Graph

39 Commits

Author SHA1 Message Date
Bob Ball 1725b5aaba Add branding and version number templating support
Note: This changes the build method, and so the CI will be broken.  Once this
patch set is merged, the CI can be updated to store the documentation and RPM
built by the Makefile, and also updated to use the RPM from the new location

Change-Id: Ic1721f161c42fb323a7d3fd730dcff1dd76ba583
2016-08-08 10:03:01 +01:00
John Hua ac57c42f6a Refix suppack builder and platform version
Apart from the readme need to be updated, the platform version also
need to be corrected. And as xenserver-nova-suppack-builder is modified,
a earlier branch of the repo needs to be specified.

Change-Id: Id858f5c1a58cc359739cb23e4e954ba86a93c7bb
2016-07-21 14:41:16 +08:00
John Hua fcb6739083 Use platform version to determine compatibility
Change-Id: I75ae8d5dbfa1c8cc10d444674a1be03fb8a178cd
2016-07-20 15:50:48 +08:00
John Hua 0fa17d68fc Fix potential security issues
Fix below potential security risks so can pass bandit test:

* Any input should be quoted for subprocess call
* Temp file should not use fixed name
* Use yaml.safe_load to prevent arbitrary objects

Change-Id: I71b4afb5805c8b1d7ead626f7fa2e15a687811fa
Closes-Bug: 1590761
2016-06-20 10:25:29 +00:00
Jenkins 38b0fb1766 Merge "Static routes should always be added." 2016-06-07 07:13:14 +00:00
Bob Ball ee86d2d0f0 Static routes should always be added.
Even if the route exists on the current host, we are re-writing the
script run by udev, so the static routes must always be added to the
script.

Also, always check fixed strings rather than regular expressions
for the networks (which contain periods!)

Change-Id: I94cfd53506a915309095da0f5f8b9db397f81892
2016-06-06 18:08:16 +01:00
Huan Xie 41b51c7a46 Add image cache fix patch
Change-Id: Ied268116885ede707a57c10990c5321af40c74ad
2016-06-06 03:50:58 -07:00
John Hua a7c2224505 Replace static-routes with udev rules
When host is restarted, static-routes won't be able add route rules
because HIMN isn't brought up. Thus we need to use udev to add
those route rules back. As tested there is time gap between udev is
triggered and HIMN is ready, a 5-sec sleep is added just in case.

Change-Id: Ifa3260107265f400bde2a33640d4da2fc9f32ddf
(cherry picked from commit a28e0bbdc3)
2016-06-03 03:10:27 +00:00
John Hua e5ba504ea0 Add ssh-key
sshpass will be removed as it is not necessary and it is not
included in the Ubuntu repo mirror list by default and may block
installation.

Change-Id: I347297aba72fbeb07cc4113e5ea21acd2e59652d
2016-05-16 15:26:38 +08:00
Jenkins 7bb457fe28 Merge "Fix problem when pub and prv use the same network" 2016-05-11 13:44:30 +00:00
Huan Xie 2c61d29f58 Fix problem when pub and prv use the same network
Change-Id: I5454d1c7de3ddc4f7bfcd84ba1b041f29a90ff41
2016-05-09 00:24:44 -07:00
Huan Xie fcef0029a7 sed need to match whole 'phy' and 'aio'
Change-Id: I74f185025690ef43139c216609f74cb722a048e3
2016-05-06 03:11:28 -07:00
Huan Xie a7b6339ad8 apply sm patch
Change-Id: I34f1f1ada154f0dec3edb571853306144870e34e
2016-05-05 23:54:29 -07:00
Jenkins ce24cf3ba7 Merge "Accept all packets from HIMN" 2016-05-04 15:38:26 +00:00
John Hua a9ef299a63 Add Dundee support
To support Dundee as XenServer 7.0 (or RTM as 6.6), below changes
required to be addressed

* blacklist-bridge is renamed
* Production version increases
* Hotfix XS65ESP1013 is no longer needed

Change-Id: Ib154f8d2ff47400889ca8720b35035434c1f1e08
2016-04-29 18:01:27 +08:00
John Hua 68e6ceb57a Accept all packets from HIMN
In MOS 8.0, compute node will drop packets at input stage thus
the packets forwarded from HIMN will not get a chance to be
masqueraded which will happen at postrouting stage. It is the
reason why Dom0 fails to connect to Cinder's iScSi target.

This change will make sure all packets flown from HIMN will be
accepted to prevent similar situations from happening.

Change-Id: Icd427ba1e133a55204af6b5a8ad203b73f5f5ad6
2016-04-29 15:38:03 +08:00
Jianghua Wang c30bc7f8db plugin-xenserver: Apply patch to speed up writing config drive
This is to apply a patch to address the following problem:
bug: #1567857
When writing config drive, dd by default uses 512B as the block
size. It costs more than 3mins to write the 64M config drive.
It's longer than expected: Some health checking(fuel's heat
checking) on XenServer may failed due to timeout. So we need
improve the performance via specifying a bigger block size
with dd.

Change-Id: I97e121800567efbce66ce1de8f8cbf9c788d12e5
2016-04-10 20:17:03 -07:00
John Hua ae6a94b784 Fix novnc proxy scheme
In MOS 7.0 services and horizon go with https by default, while
then in 8.0 it turns to http. Thus the setting of novnc proxy needs
to be altered.

Change-Id: I1a675dec62941107cbcd9503d16fd13651aab55a
2016-03-29 11:20:26 +08:00
Huan Xie 5178863ce7 Fuel plugins: Apply patchset to support neutron security group
Change-Id: Ic20774f23ebd4d08c7f3102029058a7cc977d029
2016-03-24 04:37:24 -07:00
Huan Xie 7fbd82239e Fuel plugins: Add support for using neutron vlan network
1. Enable Linux bridge in Dom0 so that neutron security group can work
2. Config vif driver as OpenVswitch driver in nova-compute.conf
3. Config integration bridge in nova-compute.conf
4. Config xenapi connection information in neturon rootwrap.conf
5. Config root_helper and bridge_mappings in ml2_conf.ini in compute node
6. Replace novaplugins-kilo.iso, use xenserverplugins-liberty.iso instead.
   xenserverplugins-liberty.iso contains both nova and neutron Dom0 RPM,
   which also match with stable/liberty.
7. Add scripts build-xenserver-suppack.sh for building Dom0 plugin ISO,
   in this ISO, netwrap and xenhost will be replaced with the ones in our
   patchset folder.
   Changes in netwrap is used for supporting neutron security group
   Changes in xenhost is used for supporting OVS interim bridge

Change-Id: I7c1bc1a841877bccb019fa72407df92872831dac
2016-03-24 04:36:03 -07:00
Huan Xie 192fe804fa MOS8.0 Make changes to let it work with liberty
1. change glance image-create command's param
2. fix file injection problem

Change-Id: Ibdda7c626605f85a0d0e7452452e82d6e07f9641
2016-03-24 01:53:48 -07:00
John Hua 7cdd4ddcf3 Fix HIMN_IP typo
Change-Id: I21347b9adb4ab7e43dd49f6a05a7f42249f0b45b
2016-02-24 13:22:12 +08:00
John Hua 3cfd23c9c1 Reinstall log rotate script on dom0
We need to copy https://git.openstack.org/cgit/openstack/nova/tree/
tools/xenserver/rotate_xen_guest_logs.sh to dom0 and then add a
cronjob to run it every minute.

Change-Id: I5aba6bb2bc18cd659c5ede171e7e4b2d7abb65e9
Closes-Bug: #1521483
2016-01-29 19:49:52 +08:00
John Hua 7b01f345c6 Fix novnc proxy configuration
The guest consoles are not visible through the horizon UI because
novnc proxy is set to compute node by default thus a port forwarding
to dom0 is required. Besides, Mirantis uses an internal host name -
"public.fuel.local" - as the novnc's base url which cannot be
resolved by users therefore need to be replaced with the real public
IP address.

Change-Id: I819d13dca1a8263247fe443606095ba33b142756
Closes-Bug: #1513551
2016-01-29 19:14:28 +08:00
John Hua c44842113e Fix file injection
By enabling config drive in compute nodes.

Change-Id: Ia85b33f2c0a57702cb82c013d1f022c448e83d8f
Closes-Bug: #1533582
2016-01-18 18:56:48 +08:00
John Hua 25b23e9200 Change log root path
From /tmp/ to /var/log/fuel-plugin-xenserver/

Change-Id: I9eb784a03e1b803355879a0d4fe47f17c49a55f7
2016-01-11 10:22:41 +08:00
John Hua 25c39e4d0d Raise exception when fatal error occurs
In order to stop installation when some fatal errors like
configuraion files missing, cannot find himn, hotfix not
installed happen.

Change-Id: I41e11a0d0acd200387a42a2de8d8b1947a3fa319
Closes-Bug: #1531552
2016-01-07 10:14:54 +08:00
John Hua d50641477a Migrate to Fuel 7.0
Migration basically will include kilo-based nova plugin, new release
file, new deployment task file and new metadata file. As fuel plugin
builder 3.0.0 will support post-install script, the customized fuel
plugin builder (https://github.com/citrix-openstack/fuel-plugins)
will be useless for XenServer Fuel Plugin building.

Change-Id: I129b2f429165ef805ac3e8f6bf57383b09876e60
2015-11-18 14:33:15 +08:00
John Hua c80ded539c Trigger an error when hotfix is not installed or password is wrong
Hotfix XS65ESP1013 is to fix Cinder volume when iSCSI is used. It
is necessary to check whether this hotfix is installed and exit
deployment if not. And docs are also updated to make sure user will
do so in advance.

Besides, if password of XenServer is wrong, an alert with error
message will also be needed.

Change-Id: I2b7d5b1b127e8a0e232537a4baa5f401f9be0854
Closes-Bug: #1508474
Closes-Bug: #1508996
2015-11-06 20:53:35 +08:00
John Hua aca5fb9bf7 Persist iptable and route rules
Change-Id: I9a749edba21db535f0b9845f037b533c7f26086a
2015-09-25 17:36:35 +08:00
Bob Ball b98455c045 Rename based on the new repository
Change-Id: I111a7f0067fad87ca895c1d09fdf4e4d442ed900
2015-09-25 08:08:18 +01:00
Bob Ball 561b715d14 Optionally install the supplemental pack
Add a checkbox to the UI that allows the user to state that the
supplemental pack need not be installed

Change-Id: I82081e82cd9666a8b2e4af381b6fb203f2f03ffb
2015-09-25 08:08:18 +01:00
John Hua 70d5153547 Use vm-data from XenStore for HIMN discovery 2015-08-27 14:25:59 +08:00
John Hua c635d15839 device 9 not fixed to eth9 2015-08-26 12:57:38 +08:00
John Hua 9e8601d90b Fix HIMN eth to eth9 2015-08-25 17:14:21 +08:00
John Hua 7a49c5b546 Unfix HIMN to an auto increment eth number 2015-08-25 14:52:33 +08:00
John Hua bf2bb0f77d Build in xenapi sdk 2015-08-24 16:10:35 +08:00
John Hua ba2a7989d1 Localize XenAPI.py 2015-08-14 10:53:09 +08:00
John Hua 8fe052a0eb Refactor to fuel plugin structure 2015-08-13 14:06:30 +08:00