Commit Graph

18 Commits

Author SHA1 Message Date
naichuans 12c68d0210 os-xenapi: change dom0 uuid get function
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
2018-07-24 02:14:19 +00:00
Jianghua Wang 7d248c9c92 Remove the restriction that SR must be FS based SR
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
2018-04-27 01:36:46 +00:00
Jianghua Wang e2888457c5 Update README for devstack tool to support LTSR only
Change-Id: I464384d9ae6c3fb634df311dec81bbaff6521316
2018-04-09 08:35:37 +00:00
Jianghua Wang f45f75b406 Move the Devstack installation guide to sub dir: tools
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
2018-03-12 10:28:35 +00:00
Andreas Jaeger 626f116b84 Avoid tox_install.sh for constraints support
We do not need tox_install.sh, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/tox_install.sh file.

This follows https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh.

Change-Id: Ic5526236cdeed92a1eb1c1693293e1122636359f
2017-12-01 14:58:01 +01:00
jianghua wang f233553c16 Should enable n-novnc service for compute node
We should enable n-novnc for all compute nodes; otherwise the VMs
booted on the compute nodes which diabled n-novnc cannot be accessed
via novnc console.

Change-Id: Iae16217aa92013edc0e647c3b1f6a376ee88bf92
2017-09-22 02:20:35 +00:00
naichuans ca0d98297d os-xenapi: xe cmd failed after set disable journaling to true
need to add "resident-on" to filter dom0 VM uuid

Change-Id: Ie4fb9bac2e65b84949a6f7e1c686a910c6fcced6
2017-09-07 04:03:42 +00:00
naichuans 0685eaf59a os-xenapi: FS journaling flag failed to pass
Because of wrong parameter written, FS journaling disable flag failed
to pass to install_on_xen_host script. Disable failed.

Change-Id: Ifa1d428c098b747c5ef1cf38c9ecf877668365d6
2017-09-05 10:03:26 +00:00
naichuans 18cadbe951 os-xenapi: Support deploying devstack in xapi-pool
Currently the install script would exit if the host is pooled,
need to modify the script to support install devstack on the
pooled host.

Change-Id: I3ff5c1c62dbc54fd389ed4622ec60c1b07c2f1c8
2017-09-04 10:19:32 +00:00
naichuans 59eec59cff os-xenpai: add option to disable FS journaling
Add option "-r DISABLE_JOURNALING" to control if FS journaling
would be disable or not.

Change-Id: I0aeddf949a325be630110ece7593c40b7bc80404
2017-08-30 07:25:36 +00:00
jianghua wang 5078424491 Enable dstat service on all nodes
1. fix a bug which will result into the dstat service is not enabled
   in the node_type of "all"
2. add dstat into the service list for compute nodes.

Change-Id: Ia8e66cebf70e0ebe537885dd9fa81f6a849a4273
2017-08-18 09:49:54 +00:00
jianghua wang cbe86763cc Use singleconductor mode
This is a workaround for bug/1709594.
By default CELLSV2_SETUP is superconductor mode which will
isolate the local conductor from the nova_api database. But
XenAPI's live migration without block migration will result
compute service (rpc local conductor) to access nova_api. The
live migration will always fail.

Before fixing that bug, we will keep using singleconductor for
CELLSV2_SETUP.

Change-Id: I485af666d52392d722cb2eb191ce26cdbef0344d
2017-08-12 06:31:27 +01:00
Jianghua Wang 0ce6489379 Avoid using sudo in non-interactive execution
By default, sudoers has "requiretty" settings. So it will report
the following error when run sudo in non-interactive script:

sudo: sorry, you must have a tty to run sudo

Actually for the operation on journald.conf in $STAGING_DIR doesn't
require sudo. So let's run it without sudo.

Change-Id: Iea8132f329af122c10d963b88f1aa03814da6593
2017-08-11 03:24:52 +00:00
Jianghua Wang ca220e8e11 Persist journald log storage
Change-Id: I7ca4cad54f40933d3ca88c754c71ad8e30a66ca0
2017-08-10 06:21:35 +00:00
Huan Xie d3df14b688 Support installing and testing multi-host OS
1. This patch refined install-devstack-xen.sh script to support
multi-host devstack environment installation, so you can use this
script to install an all-in-one OS env or multi-host OS env.
2. Changed local.conf to make network from VLAN to VxLAN which
is much more convenient for multi-host OS env.
3. Changed README.rst, make the local.conf sample to use neutron
VxLAN

Change-Id: I0e7f1ca39dc33e199c93786a95c386093fd6df53
2017-06-26 19:16:58 -07:00
naichuans 84168e27f0 os-xenapi: fix ssh failure and modify jeos template name
Ssh to a remote xenserver host on a linux client would be failed
because the keys haven't been copy to xenserver, move keys copy
codes to right place.
At the same time, modify the jeos template name to
jeos_template_for_ubuntu

Change-Id: I770ed2e0ced4451c6a2ff28e47088b16a6fc08b3
2017-06-22 02:25:04 +00:00
naichuans 85a588e382 os-xenapi: remove install dependence with devstack 2:
Part two: configure ubuntu DomU VM and introduce
install-devstack-xen.sh
Move tools/xen from devstack to os-xenapi which will be the center
place to hold some XenServer/XenAPI specify source code.

This part is used to configure a DomU VM and  install devstack on
domu VM

Change-Id: I20f4663d987266d6ff6d57c5eb3c4447d51f9162
2017-06-19 08:15:54 +00:00
Tony Breeds 1baf2e31e7 Add Constraints support
Adding constraints support to libraries is slightly more complex than
services as the libraries themselves are listed in upper-constraints.txt
which leads to errors that you can't install a specific version and a
constrained version.

This change adds constraints support by also adding a helper script to
edit the constraints to remove os-xenapi.

Change-Id: I250d70b15c47c76f5ae73cb1059815ef0b9e63c9
2016-12-21 12:45:47 +11:00