12 Commits

Author SHA1 Message Date
Mate Lakat
fb434b28d0 xenapi: Get rid of prompt settings
Remove the setting of prompt from prepare guest, keeping the scripts
smaller.

Change-Id: Ifb2b3aba07831e1552d6a1c6cd2081592c43ccf6
2013-09-24 15:58:37 +01:00
Mate Lakat
b1dc9bd5e4 xenapi: enable block device access for stack user
Although nova is setting the permissions on block devices, sometimes it
fails, and that results in an instance failing to launch. It is only an
issue for 3-part images, and images accessed through block devices. This
patch adds an udev rule, so that devices will be accessible.

fixes bug 1218251

Change-Id: I837ea515457fbfc50e9ce138ea9de9db12baa8be
2013-08-29 11:52:20 +01:00
Mate Lakat
f34cb85135 xenapi: preinstall python netaddr
On our CI system, the devstack instance was reporting errors, that are
related to devstack's address_in_net function - that requires the python
netaddr library to be installed. This patch preinstalls this python
package.

Fixes bug 1097667

Change-Id: I8af199427f06cfdf0a68d96d87fe3e541199dca7
2013-07-12 17:11:07 +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
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
John Garbutt
b6c8714408 Install XenServer tools from the iso on XenServer
Fixes bug 1032122 by ensuring, where possible, we use the tools
shipped with XenServer rather than downloading the tools from
images.ansolabs.com

Change-Id: I4592eca315b4700e73097d678309d00323923c8b
2012-08-03 17:57:41 +01:00
John Garbutt
daadf744ed Improvements to DevStack's XenServer scripts
I have ensured:
- template gets re-used on second run
- template includes XenServer tools, and custom user accounts
- take snapshot before first boot, for easy re-run
- make host_ip_iface work with either eth2 or eth3
- make ssh into domU checks looser
- above is all ground work for improved jenkins tests
- added some more comments to make it scripts clearer

Change-Id: I5c45370bf8a1393d669480e196b13f592d29154f
2012-05-22 18:12:43 +01:00
Armando Migliaccio
1040a65fb9 bug 988550: devstack installer for xenserver to support user-defined ubuntu mirror
add support for local mirrors by:

- making sure the preseed file points to a local mirror.
- the apt sources mounted in the DevStack VM will point automatically to the same mirrror

Change-Id: I33052ac5c10387db7206ce2210ee2cbe9096df47
2012-05-10 01:04:26 +01:00
Renuka Apte
0af143b34e XenServer: new build and install scripts
Change-Id: Ia13a9c8073e59edf98415ba5b9f3a9cbd1453d32
2012-04-13 23:23:47 -05:00
Renuka Apte
ce59d643f5 Add logging for prepare_guest
Change-Id: I2dc31acb56ee64c0c69e614a2fc96ae6b31b2ffa
2012-02-14 15:30:34 -08:00
Anthony Young
3eb8f59d29 some tweaks and doc improvements 2011-10-26 23:11:52 -07:00
Anthony Young
b62b4ca292 Initial commit of xen devstack support 2011-10-26 22:29:08 -07:00