66 Commits

Author SHA1 Message Date
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
Mate Lakat
da33982947 Remove hardwired ansolabs urls
Fixes bug 1078618.

The files are no longer available on ansolabs' servers. The files were
put on github, and this change modifies the location used in devstack.

Change-Id: I1f512ad3b52d6b04d0e28ce6a532e11bfede1462
2012-11-14 12:47:17 +00:00
Stef T
f993b2353f Enable Xen/DevStackDomU to have larger disk
* Size of xvda can be specified via xenrc

  * Fixes bug 1076430

Change-Id: Ia4ffef98b01fa9572e43c46275a132b2b1e5f689
2012-11-08 10:49:32 -05:00
Maru Newby
3a87eddc7f Added options to improve offline usage.
* NOVA_ZIPBALL_URL can be set for a XS/XCP install to point to a
   non-standard zipball location.
 * PIP_USE_MIRRORS (default True) can be set to False to stop pip
   from attempting to use mirrors (useful for when using an offline
   eggproxy).

Change-Id: I01a9944fe4c13c8cc8323a703f598bc498491b73
2012-11-07 19:49:12 +00:00
Andrew Melton
98ab500c2c prepare_guest_template.sh fails when there are multiple xs-tools iso's in ISO_DIR
In the case of two iso's ('xs-tools-6.0.2.iso' and 'xs-tools-6.0.2-1111.iso'),
TOOLS_ISO gets set to 'xs-tools-6.0.2-1111.iso xs-tools-6.0.2.iso' This causes
'mount -o loop xs-tools-6.0.2-1111.iso xs-tools-6.0.2.iso $TMP_DIR' to get
called, which fails as it's meant to be called with only one file. This fix
simply sets TOOLS_ISO to the first iso that ls returns.

Change-Id: Id4d883e2b1e33b233c9ee907016b4ce117c28021
2012-09-12 14:06:47 -04:00
Jenkins
7d8f036662 Merge "Install XenServer tools from the iso on XenServer" 2012-08-16 17:15:08 +00: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
d8f1a87a45 Make it easier to use Precise or Oneric with XenServer DevStack
This is a partial fix for bug 1009937

Change-Id: I1fc7059cd812bce1539a5050f60717db4cbd81ef
2012-08-03 12:44:08 +01:00
John Garbutt
7fc6dcd092 Fix bug 1020513 by downloading xenapi plugins from correct place
Change-Id: I2fc9c55b444bac355347f0d53b5971d4b809fbff
2012-07-16 10:02:48 +00:00
Armando Migliaccio
1f8efd93d9 fix syntax error in the if test
switch to using -f rather than -a. This has been overlooked
in a review recently merged. Without this fix, devstack on
XenServer is broken.

Change-Id: I1882cc70528772287241848adea3a520738d4144
2012-06-02 01:47:27 +01:00
Jenkins
e959dbc132 Merge "Move the ubuntu template generator to use Squeeze." 2012-06-01 19:21:06 +00:00
John Garbutt
37826bc8c8 Move the ubuntu template generator to use Squeeze.
Newer versions of XenServer don't have lenny templates, so moving
to use Squeeze.

Change-Id: I95473d4cdc6caad86bc53799fe2ecbedd9223026
2012-05-25 13:09:38 +01:00
John Garbutt
030fb2362f Make devstack work with xcp-xapi package on Ubuntu 12.04
- allow you to configure the xenapi_user (often other than root)
- allow you to disable the guest installer network
- install the plugins in the xcp-xapi location
- use alternate webserver location when adding the preseed file
- skip the centos specific ip forwarding configuration
- make use xcp inventory, if no xensource-inventory is found
- correctly deal with kpartx to mount the VM VDI in manage_vdi

Change-Id: I8d51725fc97f0bcaa27a46f7a7ced13c369c809e
2012-05-22 18:12:43 +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
Jenkins
461203b2c8 Merge "Add script to delete templates" 2012-05-16 20:06:04 +00:00
Renuka Apte
d7ed417fec Add script to delete templates
This is a common operation on XenServer, which seems to be a three
step process.

Change-Id: I125b9c11ace0b3454b7c974f9209aca01cdd7ed2
2012-05-10 15:42:29 -07: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
Jenkins
2468d661c4 Merge "bug 980725: multi_host is always set to True with virtdriver=xenserver" 2012-04-23 19:16:48 +00:00
Armando Migliaccio
7a5f7f2d91 bug 986401: xe vm-shutdown expects running instances in os_install_domU.sh
do not fail if the instance is already halted.

Change-Id: Id080535c1eb008c9fc7335c9004318bbfb41e1f7
2012-04-23 16:57:16 +01:00
Renuka Apte
668d9cb9fd XenServer: Allow static network config for install
Change-Id: Ief24e21fcd8d4cd61296e4b81051d3332314d45c
2012-04-14 23:24:05 -05:00
Jenkins
4d70e9eb44 Merge "XenServer new install: Keep preseed file in dom0" 2012-04-14 23:00:16 +00:00
Renuka Apte
360e29bc0d XenServer new install: Keep preseed file in dom0
Use dom0 to dish out the preseed.cfg file instead of getting it
from anso

Change-Id: I220948ba9a2cd3006b2c050d976dfcb49b8d956e
2012-04-14 14:50:28 -05:00
Renuka Apte
83f8b1abce XenServer: Add script to mount OS domU in dom0
Change-Id: I1ad3d63c55b95f2588007c5e88704022f54e1c06
2012-04-14 14:49:10 -05:00
Renuka Apte
c0ae316430 XenServer new install: modify README
Modify the README to specify the new steps to install Openstack on
XenServer. Specifically, the new install will use a network-installed
Ubuntu VM on the XenServer host and install the OpenStack services on it.
This eliminates the need for the dev machine (which was required
with XenServer 6.0 and above).

Change-Id: I5f86aa7929754e04ec4a959053c3fb871e3cda76
2012-04-14 13:57:21 -05:00
Renuka Apte
0af143b34e XenServer: new build and install scripts
Change-Id: Ia13a9c8073e59edf98415ba5b9f3a9cbd1453d32
2012-04-13 23:23:47 -05:00
Renuka Apte
836955f825 XenServer: change install script for new install process
Change-Id: Iee64e19fb21c1c633b5a2df7c4c154702f2a4526
2012-04-13 15:00:18 -07:00
Armando Migliaccio
4f27a72029 bug 980725: multi_host is always set to True with virtdriver=xenserver
set MULTI_HOST according to the value as defined in localrc or other rc files.

Change-Id: Ifc5d0fff06bffd39ab4ff1c1a6fa5d4ab10b9e27
2012-04-13 12:33:49 +01:00
Renuka Apte
4c889349b7 Script for Ubuntu 11.10 on Xenserver
This script creates a template for an Ubuntu 11.10 VM on Xenserver.
This is not officially supported by Citrix, but is useful, as most
of the Openstack development and instructions are based on it.

Change-Id: I8457f88ebe1065429d4c03de11d7ab0ef22f357a
2012-04-11 12:30:41 -07:00
Renuka Apte
6325907aa5 Fix typo in prepare_dom0.sh
Change-Id: I9ad4ff3f9490822428e12eadd454fe2c51affa71
2012-03-21 14:42:30 -07:00
Anthony Young
b3e2f3399c Some tweaks for xen + devstack.
* Import functions for git_clone (allows RECLONE for xen plugins)
 * Fix a potential xvas path issue
 * Tweaks to docs

Change-Id: I34f5c57a53884dfe944f3b0eb8896c57e348e389
2012-03-16 17:07:48 -07:00
Jenkins
8ebe0308e3 Merge "Remove trailing whitespaces in regular file" 2012-03-13 18:15:47 +00:00
Hengqing Hu
3b719e50fb Remove trailing whitespaces in regular file
Change-Id: I5faf840dd6649afcb53e91f1d033447f9729cee1
2012-03-09 16:04:56 +08:00
Renuka Apte
c56885ad31 Improve devstack docs for Xenserver
Minor fixes to scripts

Fixes bug 943508

Change-Id: Iaf12b9d67efa78623e8253599010f60192b4af64
2012-03-08 13:58:28 -08:00
Renuka Apte
3993816fe6 Remove hardcoding of flat network bridge
Change-Id: I66210ba438c1d8a2c12223b8895581127130ad5f
2012-03-01 16:07:23 -08:00
Renuka Apte
7bf87af343 Fix troubles with git cloning https
Some xenservers get errors because git is not configured with
curl and expat, and because of invalid SSL certs.

Change-Id: Ibe7062255b90559b0d6ca5f52e33ec56451505df
2012-02-14 15:30:34 -08:00
Renuka Apte
0d44b8bd63 Remove cloning of devstack
Now that we have split the scripts, we should not clone devstack.
We now require users to copy the xva over.

Change-Id: Ie7cb4858c3e5860ab5c990c5ed1f88462c6953dd
2012-02-14 15:30:34 -08:00
Renuka Apte
e98cc1220e Multiple vpx for xen, post splitting of script
Ensure building, installing multiple nova vms works after we
split the build script as build nova vm, install nova vm.

Change-Id: Iadb6e181caec511325a30727bf9e9c79e8afea5a
2012-02-14 15:30:34 -08:00
Renuka Apte
ce59d643f5 Add logging for prepare_guest
Change-Id: I2dc31acb56ee64c0c69e614a2fc96ae6b31b2ffa
2012-02-14 15:30:34 -08:00
root
b115341253 Generalize xen network config
Allow dhcp for IP addresses.
dhclient3 bug workaround.
Refactor code to improve network creation logic.

Change-Id: Ia3e2e65bbe8b68cf4832595cb7c283c3dc84db19
2012-02-14 15:30:34 -08:00
Anthony Young
1188904eee Separate out build_xva process so that it can be run on a machine besides dom0
Change-Id: I3a6e1ef874c83d79d09a8df1f086ec06d39db2df
2012-02-06 14:28:34 -08:00
Anthony Young
ce11691488 Add nova's new vnc support to devstack
* Fixes 917933
 * Use cloudbuilders/master for noVNC
 * s/n-nvnc/n-novnc/g

Change-Id: I45361489a584325ed6a7fbcf3026e8ff0b25e667
2012-01-19 16:24:24 -08:00
Anthony Young
419770faad Changes to make devstack work with the essex + xen
Change-Id: If932d82ec72494d871ad65ae863947816e719624
2012-01-11 17:45:40 -08:00
Anthony Young
fa4ecc6e2b destroy orphaned vdis 2011-11-11 10:23:22 -08:00
Anthony Young
40b5737c4d fix comment 2011-11-05 00:30:07 -05:00
Anthony Young
346e49131b add script that demonstrates separation of head abd compute roles when using xen 2011-11-05 00:22:47 -05:00
Anthony Young
af6ed6b1b5 source stackrc 2011-11-02 07:50:27 -05:00
Anthony Young
2cec3dc846 unpause paused instances before terminating 2011-11-02 07:03:38 -05:00
Anthony Young
f0dca55a29 fix typos 2011-11-01 14:23:14 -07:00
Anthony Young
1de18c6250 Changes to make exercise.sh work with xen 2011-11-01 14:22:26 -05:00
Anthony Young
a1a90773a0 copy over ssh keys and other env 2011-10-31 15:32:38 -07:00