128 Commits

Author SHA1 Message Date
Matthew Treinish
4c03034ef8 Set default volume backing file size to 10G
This commit changes the default volume backing file size from 5G to
10G. This is already done in devstack-gate because on tempest runs
we would frequently go above 5G. This will mirror the change for all
devstack runs not just in the gate.

Change-Id: I7023237653a28a4bb9413540ad9ecf3dfa588b0a
2013-06-20 17:04:38 -04:00
Dean Troyer
1a6d4492e2 Periodic formatting cleanup
This is the semi-irregular comment and docs cleanup.

No functional changes should be here although some code is moved in a
small attempt to sort functions and get things where they need to be.

Change-Id: Ib4a3e2590c6fbd016c391acc7aef6421e91c0dca
2013-06-11 14:39:27 -05:00
Jiajun Liu
f02be85cc8 specify session name on perform rejoin stack
rejoin-stack.sh would not specify screen session name which will lead
unstack.sh unable to kill the screen session started by rejoin-stack.sh
after hypervisor rebooted. So specify the session name if
rejoin-stack.sh need to start a new sreen session.

fixes bug 1182806

Change-Id: I68635887aa82fa63f3667e0f090ea2836eec7b68
2013-05-28 09:42:10 +00:00
Bob Ball
337bd8176f Move hypervisor-specific code into a case statement
Change-Id: Id799506f180ac81d493f49de140cc079338430aa
2013-05-16 15:49:55 +01:00
Jenkins
9f52cd78f2 Merge "Add XAPI config to quantum rootwrap for XS/XCP." 2013-05-15 16:50:16 +00:00
Jenkins
5f349179f4 Merge "Add pbr to devstack." 2013-05-09 21:58:20 +00:00
Émilien Macchi
b2ef890db3 Add Debian OS support in DevStack
Fix bug #1176216

Change-Id: Ia94c332f02a921a936db249dc3b4a7ae4eff0400
2013-05-09 00:18:37 +02:00
Monty Taylor
5e159496b8 Add pbr to devstack.
It's being used in all of the core projects, so we should install it
at the start so we can ensure that we don't break everything all at
once.

Change-Id: I326d724264803e88315ee9e40f4634836baf6e0b
2013-05-08 14:29:52 -04:00
Maru Newby
a8f7a62f13 Add XAPI config to quantum rootwrap for XS/XCP.
* Supports blueprint xenapi-ovs

Change-Id: I902458ec26cd07e94fe50bb3648efa75658ccba3
2013-05-01 21:12:25 +00:00
hartsocks
a418af9503 fix support for VMware vCenter Driver
Change-Id: Iedd26dbb89731f49718604eb09eb84b3e0b648c0
2013-04-25 13:59:29 -07:00
Dean Troyer
cc6b443545 Formatting cleanups, doc updates and whatnot
Change-Id: Ica8298353be22f947c8e8a03d8dc29ded9cb26dd
2013-04-09 14:05:32 -05:00
Maru Newby
a81dcaa624 Increase flexibility of stackrc repo config.
* Offline use of devstack previously required defining individual
   repo overrides.  This change maintains support for individual
   overrides while adding the ability to override GIT_BASE.

Change-Id: I4ca8b8e69c0fb05a7c9cf2fd4643eac2f7643aa9
2013-04-02 22:57:02 +00:00
Jenkins
24015ed40b Merge "Change default PUBLIC_NETWORK_NAME/DEFAULT_FLOATING_POOL name" 2013-04-02 11:43:25 +00:00
Sean Dague
584d90ec56 add emacs shell-script tagging
for files that don't start with a #! or end in .sh, the added tags
are nice for emacs users to automatically switch to the right mode.

Change-Id: If4b93e106191bc744ccad8420cef20e751cdf902
2013-03-29 14:36:49 -04:00
Aaron Rosen
640f1e4c8d Change default PUBLIC_NETWORK_NAME/DEFAULT_FLOATING_POOL name
This patch changes the default network name/floating pool from nova
to pubic as the name public makes more sense than nova for a public
network.

Change-Id: I4153750c08d1510dbad3051681e8c142a79fe1a1
2013-03-26 22:39:11 -07:00
Oleg Bondarev
1f11f9ac8f Add comments on how to run devstack with Quantum
Fixes bug 1077826

Change-Id: I224db4e00e3c937f3106e9a099b79de789be1fc1
2013-03-25 05:38:48 -07:00
Dean Troyer
b7490da972 Clean up stack.sh config
* Clean up interactive configuration
* Complete moving initialization of service-specific varialbes into the
  service lib/* files.
* Cosmetic cleanups

Change-Id: Iea14359bd224dd5533201d4c7cb1437d5382c4d1
2013-03-20 17:04:23 -05:00
Jenkins
71404ed5a4 Merge "Mova nova configuration initialization" 2013-03-20 21:36:05 +00:00
Jenkins
b28581baf8 Merge "Add run_process() to start services without screen" 2013-03-20 18:10:36 +00:00
Dean Troyer
681f3fddec Add run_process() to start services without screen
* USE_SCREEN defaults to True, set it to False to exec the services
  directly via bash.  SCREEN_DEV is still supported until the CI
  scripts get updated.
* The extra logging file descriptors are properly closed in the child process
  and stdout/stderr are redirected to the log files.
* The screen_rc() call is still present; this means that stack-screenrc will
  have a complete record of what was started and rejoin-stack.sh may be able
  to re-create the setup under screen.
* The python interpreter was unwilling to write to the log files without
  unbufering stdout by using PYTHONUNBUFFERED.  This feels hackish and should
  be investigated further.

Change-Id: I012ed049f2c8b185a2e6929d73edc29e167bc21f
2013-03-20 11:23:13 -05: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
Sean Dague
11277b1f3c turn off swift by default
swift port selection is still really suboptimal. 6011 is often used
by ssh x-forwarding, so if you are sshed into the box with
x-forwarding, then one of the swift services doesn't start.

disable this until we figure out a better path to port selection.

Change-Id: I62b9f96f24118ddfc962715e55b34c05dbe03a1b
2013-03-15 14:06:23 -04:00
Jenkins
08fd641a19 Merge "Enable swift by default." 2013-03-15 14:41:54 +00:00
Chmouel Boudjnah
0c3a5584c6 Enable swift by default.
- Set by default SWIFT_REPLICAS to 1 since this is the most common use
  case when using it in devstack.
- If we have swift_replicas to 1 launch the object container account and
  proxy servers in foreground in screen.
- Allow any s- services if we have just 'swift' in service enabled
  instead of having to specify all s- services to enable swift. This will be
  removed in the future.
- Set object server starting at 6013 instead of 6010 to not conflict
  with remote ssh x11 forwarding.

Change-Id: I890b6953b70283bfa0927fff0cf5e92f3c08455b
2013-03-06 13:16:37 +01:00
Mate Lakat
32e02bafe0 Standardize repository locations
* The variables pointing to repositories were not using the GIT_BASE for
github.com
* Some repositories were missing the .git tail

Change-Id: I551179bed90c04682e8a22985241a4bddca23351
2013-03-05 11:29:58 +00:00
Sean Dague
f3fd44c4be Revert "Enable swift by default."
This reverts commit 5a5cbf7274a6a50bb766ec590cf885430ed5c5d0.

This breaks on a default openstack install on Ubuntu 12.10,
revert for now until this can be cleaned up to work out of the
box.

Change-Id: I185509cc30bd28e920cdab60fc92129949bd6b0d
2013-03-04 17:52:03 -05:00
Chmouel Boudjnah
5a5cbf7274 Enable swift by default.
- Set by default SWIFT_REPLICAS to 1 since this is the most common use
  case when using it in devstack.
- If we have swift_replicas to 1 launch the object container account and
  proxy servers in foreground in screen.
- Allow any s- services if we have just 'swift' in service enabled
  instead of having to specify all s- services to enable swift. This will be
  removed in the future.

Change-Id: I496f79e14f99bd7e9f2c7deee12a4b6e935c3a5b
2013-02-22 18:50:08 +01:00
Jenkins
d0b1c37816 Merge "Deprecate DATABASE_TYPE and use_database" 2013-02-22 12:26:03 +00:00
Dean Troyer
afc29fe5f2 Deprecate DATABASE_TYPE and use_database
Select a database by adding it to ENABLED_SERVICE like the other
services.  This greatly simplifies using the lib/* functions in
places other than stack.sh

Backward-compatibility is maintained or now (into havana at least).

Change-Id: I967e44603b4d69d5d70e1a75a9938172ca434025
2013-02-21 17:32:04 -06:00
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