99 Commits

Author SHA1 Message Date
Scott Moser
cde655acb0 replace use of cirros 0.3.0 with 0.3.1
cirros 0.3.1 images have several significant improvements over 0.3.0, including:
 * newer kernel (3.2.0-25.40)
 * support for more filesystems (vfat, iso9660)
 * support for configdrive (config-drive-v2) as a datasource
 * acpi reboot/shutdown
 * curl with https support (previously there was no way to get https urls)

Change-Id: Idd7bef0cebb941f77d1cead9dc990fa0b03ff46b
2013-02-20 12:33:39 -05:00
Vishvananda Ishaya
58e2134964 Add option to make screen starting more robust.
We have seen a number of failures in ci where a host is overloaded
and the 1.5 second sleep before stuffing data into screen is not
long enough. This means the service doesn't start and tests fail.

This change adds a config option to allow us to turn off the developer
friendly option to stuff text into the screen. When SCREEN_DEV is
set to False it will use a simple exec in screen instead of stuff.
This should be far more reliable because we don't have to wait
for bash to start.

Change-Id: I7f1b5dbf5329b23507cb767d54a2795be0d73e01
2013-02-12 09:12:45 -08: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
Daniel P. Berrange
d10e12f133 Add support for setting up nova-spicehtml5proxy
Add a new service 'n-spice' which is off by default, but can
be enabled to turn on SPICE support in the Nova libvirt driver.
Also if neither n-novnc or n-xvnc are enabled, then disable
VNC support. This allows running in a SPICE only environment.

The spice-html5 repo will be checked out to support the Horizon
client integration

Change-Id: If74fad33a7b491450afd823758d35b06ebe72cb9
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2013-01-17 14:36:58 +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
Clint Byrum
df1cf94cf0 Fixing python-heatclient's git repo path.
heatclient was moved to the official openstack repo.  Thanks Simon
Pasquier for the patch.

Change-Id: I561bf1ea11f1c74b5e75ab93170bd367ba36f90f
Fixes: bug #1096922
2013-01-10 11:12:45 -08:00
Yunhong, Jiang
e583d9b8f9 Add ceilometer client in devstack
Ceilometer client CLI is helpful to develop ceilometer related code. Add
it to devstack also involve more developer to use it.

Change-Id: I4147e50c00cb520ec15d63a0c34524ba8cb6654f
Signed-off-by: Yunhong, Jiang <yunhong.jiang@intel.com>
2013-01-09 10:33:41 +08:00
Devananda van der Veen
7611c894b5 Add fake env support to baremetal
Use bm_poseur to create VM and network bridge
so that, in the absence of physical hardware,
baremetal driver still has something to manipulate.

Change-Id: Id80ede13a35e4380f358b47f08d41ff98ea9d70f
2012-12-28 10:56:17 -08:00
Devananda van der Veen
f35cf91a1d adding support for baremetal hypervisor
New files for baremetal driver:
- lib/baremetal
- files/apts/baremetal

Adds two dependencies:
- google shell-in-a-box
- diskimage-builder

Enable by setting both:
  VIRT_DRIVER=baremetal
  ENABLED_SERVICES="$ENABLED_SERVICES,baremetal"

Change-Id: Ibf6fe1671a759a449c9eb0df47751d1b31ade591
2012-12-28 11:33:58 -06:00
Jenkins
60ffc61650 Merge "Add TLS support for keystone via proxy" 2012-12-12 19:57:02 +00:00
Jenkins
7e527946ea Merge "enable tempest by default" 2012-12-12 17:52:54 +00:00
Dean Troyer
c83a7e125f Add TLS support for keystone via proxy
* Adds lib/tls to create test CA/certs
* Start proxy if 'tls-proxy' is enabled
* Configure keystone service catalog for TLS
* Tear down proxy in unstack.sh
* Set auth protocol and ca-cert chain in openrc
* Add DATA_DIR to stackrc

This is the first in a series of patches to enable TLS support
for the service API endpoints.

Change-Id: Ia1c91dc8f1aaf94fbec9dc71da322559a83d14b6
2012-12-11 17:08:54 -06:00
Sean Dague
77f076a56d enable tempest by default
turn on tempest by default, as that will provide the end users
with a testing environment to use with openstack out of the box.

Change-Id: I74160a25cfbc6325eea30c81df36e6acbb938bfd
2012-12-10 16:49:20 -05:00
Dean Troyer
60e9c0ab22 Quantum cleanups
* Set base default env vars in lib/quantum
* Rename common dirs to match devstack conventions
  Q_CONF_FILE -> QUANTUM_CONF
  QUANTUM_CLIENT_* -> QUANTUMCLIENT_*

Change-Id: I7a2a92b50ef953195f078ac62cb975f28892c05c
2012-12-10 11:29:56 -06:00
Steven Hardy
9a27dd8dd5 heat : heat repo moved to openstack
Main heat repo has now moved under the github openstack project
Note the old checkout will require removal to trigger stack.sh to
re-clone it from the new location

Change-Id: I4163e35cad7c319961d42f0c53a68ec6244508ed
Signed-off-by: Steven Hardy <shardy@redhat.com>
2012-12-03 14:02:43 +00:00
Jenkins
ff828ce3f6 Merge "Revert "Remove python-openstackclient."" 2012-11-27 18:33:40 +00:00
Dean Troyer
9f61d29e66 Revert "Remove python-openstackclient."
This reverts commit 6e3330967c5c7be73a8ffee3779c214768683c56

This is in fact useful to an admittedly small population.  And if I had not been on vacation I'd have -2'd it...
2012-11-26 18:56:20 +00:00
Jenkins
1008e2cf0d Merge "Remove python-openstackclient." 2012-11-21 13:38:55 +00:00
Dan Smith
d57ccf0271 Add nova-conductor service
This is a new service for nova that will soon be required for
n-cpu to function.

Change-Id: I9a2e62f25200a47233a7796084ad8ebabc852c59
2012-11-19 17:45:10 -05:00
James E. Blair
6e3330967c Remove python-openstackclient.
It's not used.

Change-Id: I00deaa9ebcd844dd9c3c9d2560d11ad37589d847
2012-11-16 16:41:26 -08:00
Dean Troyer
c1b486a520 Simplify database selection
Do not require every script that sources stackrc to also
source lib/databases.

* Move use_databases() to functions
* Set DATABASE_TYPE in stackrc
* Allow setting DATABASE_TYPE in localrc to work
  (use_database() essentially just sets DATABASE_TYPE at this stage
  so continuing to use it is equivalent)
* Validate DATABASE_TYPE in stack.sh.
* Change sudo to postgresql user to go through root to eliminate
  password prompt
* fix use_database error condition

Change-Id: Ibb080c76e6cd7c6eebbb641a894d54b1dde78ca6
2012-11-15 11:48:18 -05:00
Joe Gordon
6fd2811726 Remove support for nova-volume
* nova-volume has been removed in Grizzly
* part of delete-nova-volume

Change-Id: Iba91d69950767823d77aaaa93243b0f476dbb04d
2012-11-14 13:21:58 -08:00
Lianhao Lu
af5cd77e18 Change the ceilometer's git repository.
Changed the ceilometer's git repository from stackforge/ceilometer.git
to openstack/ceilometer.git.

Change-Id: I8cf1854641fc7df318f42a56ba061c93614728aa
2012-11-12 16:36:42 +08:00
Steve Baker
32761a4961 Install and configure python-heatclient.
This uses the new REST API. It installs a client executable called 'heat'.
The old heat client in the heat repo has been renamed to heat-cfn.

Change-Id: I7bc8662c531e3639cc940a44df96ff426ac3aada
2012-11-05 13:09:49 +13:00
Andrew Laski
6e7e1c941a Don't enable osapi_volume if n-vol not enabled.
Enabling cinder removes osapi_volume from enabled_apis in nova.conf but
if neither cinder or n-vol are enabled it should not be there.  It seems
that volume code is being removed from nova so osapi_volume should not
be enabled by default.

Fixes bug #1073701

Change-Id: I626a941f434b1c8c1a73b32318e21c99445b5541
2012-10-31 17:01:45 -04:00
Nachi Ueno
fda946e3eb Added ping_check and ssh_check functions and use it in exercise.sh
Change-Id: I69d41c9db527f60f250b6af36b2d8e9d0dd39684
2012-10-25 21:52:31 -07:00
Yoshihiro Kaneko
602cf9bd68 Add support for the Quantum Ryu plugin.
This patch allows using the Quantum Ryu plugin.
Ryu plugin lets Quantum link Open vSwitch and Ryu OpenFlow controller[1].

Ryu OpenFlow controller is not Openstack component, but I added some
processing that is related with Ryu to stack.sh for the convenience of
the person who intend to try the plugin.

Instructions for using Ryu plugin:
1. Enable services: "q-svc", "q-agt", "q-dhcp", "q-l3", "quantum", "ryu"
2. Set Q_PLUGIN to "ryu"
3. Set an internal network interface name to connect br-int on plural
   hosts to RYU_INTERNAL_INTERFACE (optional)

Example localrc:
  disable_service n-net
  enable_service q-svc q-agt q-dhcp q-l3 quantum ryu
  Q_PLUGIN=ryu
  RYU_INTERNAL_INTERFACE=eth1

[1] http://osrg.github.com/ryu/

Change-Id: Ic1da132fa421f1c70c10a319ee3239831b0f956f
2012-10-19 07:00:32 +00:00
Dean Troyer
4a43b7bd90 Cosmetic, comment and text cleanups
* functions
* stack.sh
* stackrc
* unstack.sh

A recent commit to stack.sh broke the RST formatting done by shocco to
produce the HTML-formatted files on devstack.org.  A bunch of comment
and spacing fixes were done (ala pep8 if there were such a thing for
shell scripts).

The only non-comment changes made were to the content of some error
messages.

Fixes bug 1042271

Change-Id: Id1c74cf25c03c4f18ed741f8026e36b0d4a598dd
2012-08-28 21:12:47 -05:00
Steve Baker
bfdad75eda Add support to optionally launch the heat service.
This allows the heat service to be started as a devstack service.

Heat is disabled by default, and can be enabled with this in your localrc:
ENABLED_SERVICES+=,heat

There is now a repo of heat-enabled images here:
https://github.com/heat-api/prebuilt-jeos-images/downloads

These can be added to the IMAGE_URLS in your localrc.

After devstack is launched, a template can be invoked with:
nova keypair-add --pub_key $HOME/.ssh/id_rsa.pub heat_key
heat -d create wordpress \
--template-file=../heat/templates/WordPress_Single_Instance.template \
--parameters="InstanceType=m1.tiny;DBUsername=wpuser;DBPassword=wppassword;\
KeyName=heat_key;LinuxDistribution=F16"

Change-Id: I07591295eb2b9eb7868b1577dd3c24b19812a689
2012-08-22 17:02:21 +12:00
John H. Tran
93361643c6 Add ceilometer
Implements bug 1023972. Add mongodb and pymongo installation.

Change-Id: I631dc8a37f3269e55112ec5a5f375d3a2fd3a604
2012-08-14 13:29:22 -07:00
Gary Kotton
37dda8d7a5 Remove Quantum V1 support
The update includes the following:
1. Removal of melange support (this is replaced by Quantum)
2. Removal of Quantum V1 support. This is all now pure V2.

Change-Id: Ief3982fe8fa7402eef5db3e115df741c2cc9f4d1
2012-08-08 13:52:51 -04:00
Devananda van der Veen
c0c6f00698 enable testing of openvz guests
This patch adds several options to allow using OpenVZ virt layer.
- modifies stack.sh and stackrc to recognize a new VIRT_TYPE option
- set IMAGE_URLS to an openvz image, if VIRT_TYPE == openvz

It also makes a few changes to some tests so that some implicit
defaults (such as the guest user account) can be overridden.

Change-Id: I0dde2dffbf3848fac1dd27eb37af84c0ac73d9aa
2012-08-03 18:15:01 -07:00
Jenkins
68b5a6a397 Merge "Add ability to override base git location." 2012-08-02 18:33:19 +00:00
Jenkins
13b7c22053 Merge "Define DEST in stackrc" 2012-08-02 01:34:15 +00:00
Monty Taylor
d5b18ecb72 Add ability to override base git location.
Change-Id: I823cf5ac467e903677783aee082785ec85c36186
2012-07-26 11:15:24 -05:00
John Griffith
d586e1c2b9 Change default volume service to Cinder
* Modifies stackrc to load Cinder instead of n-vol by default
  * Depends on https://review.openstack.org/#/c/9746/
  * Depends on https://review.openstack.org/#/c/9747/

Change-Id: I1fcb4bd274311d048dee54826b6408e5abb493d2
2012-07-25 14:10:01 -06:00
Eoghan Glynn
9cb1776a92 2.5x increase in default volume backing file size
The current default volume backing file size of ~2Gb seem unfeasibly
small and precludes running exercises that require multiple volumes
and/or snapshots to be created.

We increase this to ~5Gb.

Change-Id: Id6b8d122be919d1b0041288e81b735af21958ff7
2012-07-19 12:40:16 +01:00
Dean Troyer
1214d9d05a Define DEST in stackrc
Move the initial definition of DEST so it is available in localrc and
the tools/*.sh scripts.

Change-Id: Ifc1b3cf3c3cd7b732007e83e74710f14f20f7624
2012-07-06 09:39:15 -05:00
Chmouel Boudjnah
c4cd4140d3 Allow removing services explicitly.
- When adding a - (hyphen) at the begining of a service in
  ENABLED_SERVICES the service will be removed explicitly.

Change-Id: I69ce082d13b79aa88426e8012a941c4ae99741f6
2012-06-27 15:51:57 -07:00
Dean Troyer
67787e6b4c Add cinder support
* using the new functional pattern: cinder_XXX functions are in
  lib/cinder
* enable with 'c-api,c-sch,c-vol' in ENABLED_SERVICES, n-vol is still the default
* exercises/volumes.sh runs for cinder and n-vol
* move config to /etc/cinder
* change volume_group to stack-volumes; this also renames the backing file
  to /opt/stack/data/stack-volumes-backing-file.
* removes osapi_volume from nova.conf enabled_apis
* integrates cinder + keystone
* launches c-sch
* tweaks for multi node
* move enabled_apis substitution to init_cinder

18Jun2010
* restored & rebased
* update setup.py to use setup_develop() in lib/cinder

Change-Id: I1e1aa4387031c56e4fa239eb73bea2af8cef0e38
2012-06-20 14:11:19 -06:00
Jenkins
c634ccd707 Merge "Set default image for exercises" 2012-06-14 20:55:15 +00:00
Chmouel Boudjnah
fda9df8795 Install python-swiftclient when installing swift.
- Fixes bug 1002789.

Change-Id: I8ee54652c6a38c7c226c820366897e53807f664d
2012-06-11 22:41:28 +02:00
Dean Troyer
83d475eebe Set default image for exercises
The exercises search for an 'ami' image to run; when multiple images are
loaded this fails.  Rather than try to guess or just use the first one
we set the default image name to the cirros image that we load by default.

Change-Id: Iae91a011ca9c42a7715747a68e0deba0dba20835
2012-06-01 09:33:33 -05:00
Joe Gordon
42b1aa9c13 Fix devstack to support the new pulled out swift3
Change-Id: Ia4f5092e666b581aab4af4851c2848e84817c07a
2012-05-25 15:07:43 +00:00
Anthony Young
220d93848f Update to point noVNC to kanaka/master
* nova-novncproxy was accepted into kanaka/master
 * Fixes bug 994653

Change-Id: I1cb40440e6cfbad9ed28203c45deea9fb9305f91
2012-05-04 10:19:44 -07:00
Andrew Bogott
77a4e3a0f0 Invite python-openstackclient to the party.
(It doesn't do much, yet.)

Change-Id: If625a15d2d979b91b1d5d764b24c63acaf154657
2012-05-01 00:07:29 -05:00
Dean Troyer
45495258d6 Add glance client
* python-glanceclient overrides the old client shipped with glance in /usr/local/bin
* start adding exercises

Change-Id: I460ed5749bca69425f23d328c0537c2ef91f84a4
2012-04-25 21:24:30 -07:00
Chmouel Boudjnah
8da5656ffd Move ENABLED_SERVICES to stackrc.
allow us to do things like that :

ENABLED_SERVICES="$ENABLED_SERVICES,swift"

in localrc instead of having to copy the full config from stack.sh.

Fixes bug 951598.

Change-Id: I17e168473540760bcfa40a752ff2c266bd9b7044
2012-03-10 17:10:00 +01:00
Dean Troyer
0bd2410d46 Move all EC2 cred creation to eucarc
* Remove credential creation from files/keystone_data.sh
* Remove EC2 cert setup from openrc
* Remove sourcing of ec2rc from stackrc
* Collect the above in eucarc
* Allow rc files to be sourced from other directories; based on Chmouel's
  4881 proposal but is simpler and doesn't actually change the directory
* Create S3 endpoint
* Get EC2 and S3 endpoints from Keystone service catalog
* Add EC2 credential checks to exercises/client-env.sh
* exercises/bundle.sh and exercises/euca.sh use eucarc

Updates:
* remove readlink -f to stay bash 3 compatible
* use service catalog
* create S3 endpoint

Fixes bug 949528

Change-Id: I58caea8cecbbd10661779bc2d150d241f4a5822e
2012-03-09 21:41:00 -06:00