438 Commits

Author SHA1 Message Date
Mate Lakat
f652e0fb6d xenapi - quantum: L2 agents for dom0 and domU
This patch makes it easier to support the all-in-one installation of
XenServer with Quantum:
- separate agents for domU and dom0 openvswitches. The domU agent's name
  is "q-domua", and the dom0 agent is called "q-agt"
- create a physnet1 physical network to connect those openvswitches

Note: This patch depends on the quantum patch:

    https://review.openstack.org/15022

For a diagram, see:
    http://goo.gl/BuAdg

Change-Id: Iff851438553528b9051edd380ecbb2c0415cbf78
2013-05-24 18:23:53 +01:00
Mate Lakat
9e32677927 xenapi - cleanup network configuration
The Xenserver/XCP part of devstack was configuring the hypervisor's
connectivity to the outer world, by adding VLANs, and physical
interfaces to the virtual networks. It added a lot of complexity, and
made it hard to get started with XenServer. This patch removes that
extra complexity, so it is left as an exercise for the user.

Related to blueprint blueprint xenapi-devstack-cleanup

Change-Id: If3367335c3da8621d0afe1f6cae77511fbdbb3e2
2013-05-24 12:07:56 +01:00
Jenkins
b4057a4c50 Merge "xenapi - use management network to reach OS VM" 2013-05-24 11:04:04 +00:00
Mate Lakat
d3740f70b5 xenapi: Ubuntu installation repository/proxy fix
Get rid of UBUNTU_INST_REPOSITORY, use UBUNTU_INST_HTTP_HOSTNAME and
UBUNTU_INST_HTTP_DIRECTORY instead. User can also specify
UBUNTU_INST_HTTP_PROXY to utilize a proxy for the OpenStack VM
installation. The answer file will be edited to contain the specified
values. Also get rid of the magic, undocumented MIRROR variable.

This is related to blueprint xenapi-devstack-cleanup

Change-Id: Ic9fc564c4ad0f43e2e536854335ebe14791d0255
2013-05-14 11:37:07 +01:00
Mate Lakat
8644676846 xenapi - use management network to reach OS VM
Devstack used the HOST_IP_IFACE to reach the OpenStack VM through ssh.
This patch changes this behavior, so that the IP address of the
interface connected to the management network will be used.

Related to blueprint xenapi-devstack-cleanup

Change-Id: I7f34d973870792d60a33ea512901d9b0d422150b
2013-05-12 18:41:40 +01:00
Mate Lakat
0b3804bff7 xenapi - cleanup
Add error on unitialised variable to the scripts. This way some issues
were identified. Also modify README with fresh variables. The patch
includes:
 - Add SWIFT_HASH to the README
 - Add XENAPI_CONNECTION_URL to the README
 - Add VNCSERVER_PROXYCLIENT_ADDRESS to the README
 - Introduce UBUNTU_INST_IFACE which is the OpenStack VM interface used
   for the netinstall. It defaults to eth3. Previously this parameter
   was set by the combination of HOST_IP_IFACE and the undocumented
   NETINSTALL_IP
 - get rid of NETINSTALL_IP
 - xenrc includes CLEAN_TEMPLATES
 - xenrc no longer tries to change directory
 - remove chrooting from prepare_guest.sh (STAGING_DIR was always / )
 - remove DO_TGZ variable from prepare_guest.sh
 - use arguments to call prepare_guest.sh, instead of env vars
 - Fix backslash escaping in prepare_guest_template.sh

NOTE: networking is about to be addressed in a separate change.

Related to blueprint xenapi-devstack-cleanup

Change-Id: Ie9a75321c7f41cc9a0cc051398d1e6ec2c88adfa
2013-05-12 17:27:13 +01:00
Jenkins
d2930a5286 Merge "Correcting comment for HOST_IP_IFACE" 2013-05-01 07:41:14 +00:00
Bob Ball
2634be00b8 Correcting comment for HOST_IP_IFACE
Change-Id: I4c3438dc1168401c193841976cf8ba8534b33679
Fixes: bug #1174455
2013-04-29 23:35:57 +01:00
Ian Wienand
7919d851a9 RHEL6 support rpms
Install some rpms required for operation on RHEL6.  Additionally,
remove some system packages that interfere with pip installs.

Change-Id: I273ce59d7bf066e73d524f61b8ad048599101dab
2013-04-29 11:46:57 +10:00
Mate Lakat
fe586b1cbe xenapi: /boot/guest should point to local SR
Fixes bug 1037516

This patch creates a directory os-guest-kernels inside the local SR, and
sets up /boot/guest to be a symlink to that directory. This way
OpenStack won't pollute Dom0's filesystem.

Change-Id: If8dfe24355bd782a401fed0f2c4b423efd9c11ba
2013-04-03 15:33:33 +01:00
Mate Lakat
57e3da9b76 xenapi: Extract plugin installation functions
This change extracts the plugin installation functions, and covers the
extracted functions with tests. Use:

    ./test_funtions.sh run_tests

to run the tests.

Change-Id: I1d78d9e8cc4d52ee2df83d07e4c74dda4805f21a
2013-03-25 15:12:58 +00:00
Dean Troyer
b3236914f1 Mova nova configuration initialization
* Move shared volume configuration from stack.sh to stackrc
* Move Nova network and vnc/spice configuration settings from stack.sh
  into lib/nova
* Rename NET_MAN to NETOWRK_MANAGER to match nova.conf attribute name

Change-Id: I9bd2955def553499aa832eda1f0959afe494206a
2013-03-18 11:16:38 -05:00
Jenkins
fcb578edfb Merge "XenAPI: run DomU on a virtual kernel" 2013-03-14 21:15:58 +00:00
Mate Lakat
6e207ce25c XenAPI: run DomU on a virtual kernel
Fixes bug 1154506.

Change-Id: I6e2f576a6de19db70f2a88278f9c043a433f4cec
2013-03-13 09:42:58 +00:00
Mate Lakat
a8bf0f23e0 Small Refactors
Rename TOP_DIR to THIS_DIR, change the order of variable definitions.

Change-Id: I96c12c5102e658ec76ab5176c3207fb641dae078
2013-03-07 18:37:31 +00:00
Isaku Yamahata
8c43809ef6 package: consolidate get_packages logic
Refactor get_package logic.
With this refactoring, code like
"if is_ubuntu; then install_package xxx elif is_fedora..."
can be simplified later.

Change-Id: I489bfd4cc12cc6b0b8201837f2bfb78c6881c82c
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2013-02-26 17:39:05 +09:00
Jenkins
b82ba4360f Merge "Remove excessive verbosity to make log files easier to debug" 2013-02-23 23:12:34 +00:00
Dean Troyer
0f2d954b82 Fix create_userrc.sh private key hang
tools/create_userrc.sh hangs in a couple of mv commands now that
private keys are created with mode 400.  mv is prompting to
override the permissions, so let's just -f it all.

Change-Id: I8fbb24da6582edcff741653ffdf8bf683b79851a
2013-02-20 17:55:04 -06:00
Bob Ball
7fcc157b3f Remove excessive verbosity to make log files easier to debug
Change-Id: I8e10c706662b6e82e3d00aeaa436dbe0ec6a0ffd
2013-02-20 15:56:25 +00:00
Jenkins
098b272cf7 Merge "Disable non-dhcp resolv.conf" 2013-02-11 18:11:15 +00:00
Dean Troyer
48352ee7c0 Create tools/install_prereqs.sh
* Factor system package prereq installs out to tools/install_prereqs.sh
* Set minimum time between runs with PREREQ_RERUN_HOURS
  default = 2 hours
* Create export_proxy_variables
* Force an update with install_prereqs.sh -f or by setting
  FORCE_PREREQ=true

Fixed an issue with exit/return in tools/install_prereqs.sh

Change-Id: I9a62090ad2f900b9b150cacb9cb02b326cb46972
2013-02-08 10:35:43 -06:00
Mate Lakat
ec06efc607 Disable non-dhcp resolv.conf
Fixes: bug #1119268
Change-Id: Icf7d420a31eb7a0cb46b2e59a4328f6b640deb57
2013-02-08 10:50:34 +00:00
Jenkins
f96b762a84 Merge "Improved feedback for domU install on XS" 2013-02-02 01:20:29 +00:00
Bob Ball
a814f22ce4 Minor fix to readme - corrected indentation for some commands
Change-Id: I0a16c59d258be4ce8bb8cdebfb3d1cbc30ce9d54
2013-01-31 15:21:43 +00:00
Bob Ball
63c6c2b006 Improved feedback for domU install on XS
Change-Id: I5b9d07493eb334169fb2643047a014f56ee265fa
2013-01-29 13:23:49 +00:00
Dean Troyer
74759aa17a Remove DEFAULT_STACK_USER, just use STACK_USER
STACK_USER needs to be set for more than just stack.sh, there
was no real distinction for using DEFAULT_STACK_USER instead
of just setting STACK_USER directly in stackrc and allowing it
to be overridden in localrc.

Change-Id: I9e8d70db29bb421f1ce3dbf40a5ad299cc7ea785
2013-01-25 11:09:17 -06:00
Maru Newby
2298ca4f70 Add limited support for Quantum+OVS on XS/XCP.
* Add priliminary support for running the OVS L2 and DHCP agents
   in domU:
   * Configure Nova to use the correct vif driver and integration
     bridge.
   * Configure the ovs agent to target the dom0 integration bridge.
   * Install a xapi plugin supporting dom0 execution of ovs agent
     commands.
 * Config doc: http://wiki.openstack.org/QuantumDevstackOvsXcp
 * Supports blueprint xenapi-ovs

Change-Id: If5ab07daab1dc3918004eb4bfb6fed6cab0a71fd
2013-01-14 21:33:49 +00:00
Jenkins
fec9355fd2 Merge "Fix "sudo: sorry, you must have a tty to run sudo"" 2013-01-12 20:35:13 +00:00
Attila Fazekas
91b8d13eda Fix "sudo: sorry, you must have a tty to run sudo"
On many systems the requiretty sudoers option is turned on by default.
With "requiretty" option the sudo ensures the user have real tty access.

Just several "su" variant has an option for skipping the new session creation step.

Only one session can posses a tty, so after a "su -c" the sudo will not
work.

We will use sudo instead of su, when we create the stack account.

This change adds new variable the STACK_USER for
 service username.

Change-Id: I1b3fbd903686884e74a5a22d82c0c0890e1be03c
2013-01-11 09:15:30 +01:00
Dean Troyer
ca80217123 Add tools/make_cert.sh
This allows use of either the DevStack CA or creating another CA
independent of stack.sh.

Change-Id: I055679b5fd06e830c8e6d7d7331c52dd8782d0b6
2013-01-10 01:56:23 -06:00
Attila Fazekas
5b813bc489 Fix role creation in tools/create_userrc.sh
* use role-create instead of tenant-create
* add some missing quote

Change-Id: I3e263bfbfe63a35c5a95248f05d78bd6a1c2e593
2013-01-08 16:51:05 +01:00
Sean Dague
b73e247ad4 Revert "Create tools/install_prereqs.sh"
This reverts commit 7be0b04

This work breaks the ability to do multi database installs,
revert until there is a working solution here, as this is going
to make fixing postgresql in tempest impossible.

Change-Id: I39a2b78542fe60233806d1005186ce1b31d4be17
2013-01-02 14:00:58 -05:00
Jenkins
3a30b06daf Merge "Create tools/install_prereqs.sh" 2013-01-02 13:25:22 +00:00
Jenkins
cf37f6a0f2 Merge "Add generic account rc creater" 2012-12-27 22:19:38 +00:00
Attila Fazekas
22ef573172 Add generic account rc creater
* Creates account rc files for all tenant user
* Able to create new accounts
* The rc files contains certificates for image bundle
* euca related steps can be simpler in the future

Change-Id: I917bffb64e09a5d85c84cde45777c49eaca65e64
2012-12-20 18:01:13 +01:00
Dean Troyer
7be0b047dc Create tools/install_prereqs.sh
* Factor system package prereq installs out to tools/install_prereqs.sh
* Set minimum time between runs with PREREQ_RERUN_HOURS
  default = 2 hours
* Create re_export_proxy_variables

Change-Id: I4a182b1da685f403d6abdd8540d2114796c01682
2012-12-19 12:30:35 -06:00
Mate Lakat
9efcf6042c xenapi: Enhance devstack progress monitoring
Fixes bug 1091299

XenServer - devstack install monitors a log file by tailing it, to see,
if the devstack installation is finished. In some cases this script does
not detect, that the startup script is finished, and just waiting,
causing build failures with timeouts. With this change, the
install_os_domU script monitors, if the run.sh script is still running,
thus guaranteed to exit as soon as run.sh is done.

Change-Id: I24a7a46e93ce26be024096828c7954bc694af2b2
2012-12-19 10:57:45 +00:00
Jenkins
bc81c67839 Merge "Remove tools/configure_tempest.sh" 2012-12-18 08:02:03 +00:00
Vincent Untz
f2a18c065e Two small fixes for openSUSE support
- Use right package files for openSUSE in tools/info.sh
- Use a2enmod to enable the wsgi apache module

Change-Id: I51e3019be32dc0938674c9c8d285a55f5b023707
2012-12-12 16:14:16 +01:00
Vincent Untz
00011c0847 Add is_fedora and exit_distro_not_supported functions
Between is_fedora, is_ubuntu and is_suse, we can make the code a bit
simpler to read. We also use exit_distro_not_supported to identify
places where we need implementation details for new distros.

As "/sbin/service --skip-redirect" is Fedora-specific, guard this with a
is_fedora test too.

Change-Id: Ic77c0697ed9be0dbb5df8e73da93463e76025f0c
2012-12-07 09:06:07 +01:00
Attila Fazekas
6994296bf6 Remove tools/configure_tempest.sh
Related bug #1087203

Change-Id: I2df4601197214d9d50d86876d4a2892b3421217a
2012-12-07 08:36:14 +01:00
Jenkins
e5f8d1228a Merge "Make the standard devstack logging work with XenServer" 2012-12-06 21:27:42 +00:00
John Garbutt
72cffd56bf Make the standard devstack logging work with XenServer
Fixes bug 1087387

Stop redirecting the output in devstack to ensure when
you configure LOGFILE that the devstack scripts keep working

Change-Id: I00dce315f5f79c4fc351d9ab11c504274d998fce
2012-12-06 18:19:29 +00:00
Jenkins
b9520212f5 Merge "Move tempest config to lib/tempest" 2012-12-06 18:12:31 +00:00
Jenkins
9b243b32cc Merge "Remove leftover references to files/pips/" 2012-12-06 16:44:28 +00:00
Attila Fazekas
2aa35174b0 Move tempest config to lib/tempest
* Using iniset
* Config based on the tempest.config.sample
* tools/configure_tempest.sh is pending for removal

Change-Id: Ia42e98ba4b640b89bcd2674008090909d88a2efb
2012-12-06 11:35:04 +01:00
Vincent Untz
c18b965152 Add is_ubuntu function
This replaces all of the [[ "$os_PACKAGE" = "deb" ]] tests, except when
those tests are before straight calls to dpkg.

Change-Id: I8a3ebf1b1bc5a55d736f9258d5ba1d24dabf04ea
2012-12-04 18:30:13 +01:00
Jenkins
22d6799d73 Merge "Add a get_pip_command function" 2012-12-03 17:05:04 +00:00
Vincent Untz
8ec27220c5 Add a get_pip_command function
There are two places where we need to find the right command for pip, so
instead of having one version we fix and a buggy version we forget,
simply use a function :-)

Change-Id: I728c17ad7be5c86690c4d7907f77f1f98ec2b815
2012-12-03 17:00:39 +01:00
Monty Taylor
99fcd8184d A few more NOVA_BIN_DIR cleanups.
Change-Id: I1d1225c894f1857a3723e01f18d0f0dade670dc9
2012-12-02 13:07:39 -08:00