81 Commits

Author SHA1 Message Date
Jenkins
7a51891cb4 Merge "Remove support for nova-volume" 2012-11-14 21:58:47 +00: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
Jenkins
69f8729233 Merge "Provide credentials via ceilometer config file" 2012-11-14 21:11:58 +00:00
Jenkins
b459d0e3ba Merge "Make exercise.sh with quantum work" 2012-11-14 16:30:55 +00:00
Eoghan Glynn
14246ac16b Provide credentials via ceilometer config file
Fixes bug 1076831

Previously we passed these credentials to the ceilometer central
agent via the OS_* environment variables.

Since these credentials are now needed by the compute agent also,
and have already leaked into the config file to enable the keystone
auth token middleware, we now switch over to using the config file
only and drop the environment variable usage.

Change-Id: I0298d711905a99aa5355fe034bb0e51e53b3be21
2012-11-14 16:27:52 +00:00
Nachi Ueno
5db5bfa28f Make exercise.sh with quantum work
- added support for quantum-debug command
- added ping and ssh method for quantum

Change-Id: Iebf8a0e9e2ed2bb56bee6533e69827e6caa2bc82
2012-11-13 10:40:59 -08:00
Jenkins
f5c221525d Merge "Install and configure python-heatclient." 2012-11-10 12:53:31 +00:00
Jay Pipes
71cf53a9f6 Set the rabbit_durable_queues to match local consumers
Due to a problematic bug in Glance (https://bugs.launchpad.net/glance/+bug/1074132),
I was unable to get stack.sh to complete successfully. The workaround on the
Glance bug was to set the rabbit_durable_queues value to match the setting
of the local Rabbit consumers and exchanges.

This patch merely looks for any consumer or exchange that
is durable and ensures that the default durable_rabbit_queues
config option of False is set to True in that case.

Change-Id: Ia5a165a5a06d11d1fe6492ca32139972d49d3a1e
2012-11-09 10:42:40 -05:00
Dean Troyer
4d3049e7cd Configure Cinder for syslog if enabled
Change-Id: I3d2770cd2c3e3b93c0f26de359e5b0cb166826c1
2012-11-07 11:47:57 -06:00
Jenkins
35dee27042 Merge "Add CINDER_SECURE_DELETE flag." 2012-11-06 14:33:42 +00:00
Jenkins
5fb0d0a7b6 Merge "Finish configuring ceilometer authentication" 2012-11-06 11:59:26 +00:00
James E. Blair
213c416878 Add CINDER_SECURE_DELETE flag.
Defaults to true which means no change in behavoir.  Adds option
to disable secure delete as in https://review.openstack.org/15477.

Change-Id: I2b19ed4223460b550026ad4975080c0079c8b433
2012-11-06 09:38:36 +01:00
Doug Hellmann
4a2b1c6611 Finish configuring ceilometer authentication
Copy the policy.json file for ceilometer into place
and configure the API service to find it.

Create a service user for ceilometer when the service
is enabled.

Use the service user for the admin_user and admin_password
in the ceilometer config file so the middleware can
verify tokens.

Change-Id: I39be13da0c86704d35e0ce3dc3d27fd38d787058
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2012-11-05 06:54:36 -05: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
Jenkins
308beccc24 Merge "Add PostgreSQL support to devstack" 2012-11-04 12:34:31 +00:00
Jenkins
00bd761474 Merge "Configure PKI cache dirs" 2012-11-04 12:31:07 +00:00
Terry Wilson
428af5a257 Add PostgreSQL support to devstack
This patch adds an interface for supporting multiple database backend
types and implemnts support for PostgreSQL. It also adds a function,
use_exclusive_service, which serves as a base for enabling a service
that conflicts with other services. The use_database function uses it,
and it might also be useful for selecting messaging backends.

MySQL is still selected by default. Tested on Fedora 17 and Ubuntu
12.04 with MySQL and PostgreSQL. Implements blueprint postgresql-support

Change-Id: I4b1373e25676fd9a9809fe70cb4a6450a2479174
2012-11-03 18:19:21 -04:00
Jenkins
98b26ab358 Merge "Don't enable osapi_volume if n-vol not enabled." 2012-10-31 22:26:55 +00: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
Dean Troyer
bc071bcef0 Configure PKI cache dirs
* Configure Cinder, Glance, Keystone, Nova to put cached credentials
  from keystone.auth_token into /var/cache/<service>

It is not obvious to me that having each of these service share a
credentials cache is a good idea.  It does appear to work but this
patch takes the conservative approach of putting each service's cache
in a distinct directory.

More importantly it gets them out of $HOME!

Change-Id: If88088fc287a2f2f4f3e34f6d9be9de3da7ee00d
2012-10-31 13:23:39 -05:00
Jenkins
9d10103888 Merge "If heat is enabled, replace nova flavors." 2012-10-29 16:25:34 +00:00
Jenkins
3cc39134a8 Merge "Add a variable to control keystone token format" 2012-10-29 16:25:05 +00:00
Steve Baker
bad9d89fa0 If heat is enabled, replace nova flavors.
All heat users will need to run heat/tools/nova_create_flavors.sh as an admin
user. This change runs nova_create_flavors.sh if heat is enabled.

This saves the hassle of switching to an admin user and running this every time
devstack is started.

Flavors are changed in heat_init, so heat_init is deferred until after nova
is running.

Change-Id: I4576c83f5ef55809567e40e56c25eb0e1bbe6d45
2012-10-27 07:05:33 +13:00
David Kranz
867cf42ebd Clean database when configuring ceilmeter.
Change-Id: If9e35f645b35fbe2e2550930da6b909a40f309b1
2012-10-26 13:32:22 -04:00
Doug Hellmann
4de55e9be4 Add a variable to control keystone token format
This change lets the developer running devstack
control the token format used by keystone through
setting KEYSTONE_TOKEN_FORMAT in their localrc
file.

Change-Id: Ic1265fcb10b8de112891f61d5e07312322148ec2
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2012-10-26 12:24:28 -04:00
Jenkins
1bc811b055 Merge "Fix quantum typo" 2012-10-26 15:31:15 +00:00
Jenkins
e33dfd553e Merge "ceilometer: build the configuration file from scratch" 2012-10-26 15:28:18 +00:00
Eoghan Glynn
1fcc6a1fc9 Modify nova config for ceilometer if enabled
If ceilometer is enabled, nova instance usage auditing and the
appropriate notification drivers should be automatically enabled,
as opposed to relying on manual reconfiguration and service restart.

Change-Id: I41643a1418a87942be7b2b7979797ff5eb7e5479
2012-10-25 17:37:10 +01:00
Jenkins
9f8da4b09b Merge "Clean up local state paths" 2012-10-25 11:36:18 +00:00
Jenkins
58ffa670cd Merge "Remove unused nova.conf option image_service" 2012-10-25 01:15:59 +00:00
Jenkins
cf59999019 Merge "Extract create_nova_conf() from init_nova()" 2012-10-24 21:17:45 +00:00
Julien Danjou
4b3e4e529f ceilometer: build the configuration file from scratch
Stop using the one from nova. Fix the keystone_authtoken default
auth_protocol.

Change-Id: Id9b30a4105a7187966c3953958477967cf58fe9b
2012-10-24 17:57:15 +02:00
Joe Gordon
0921c453e4 Remove unused nova.conf option image_service
FLAGS.image_service was removed in:
[3aaa0b103447d56f8d3b259c693cd9a3a8dcbe36] Cleanup of image service code

Change-Id: Ie566f972e2c196228cd83edda0924b5a679a63a6
2012-10-23 17:10:56 -07:00
Dean Troyer
1331445b6f Clean up local state paths
Puts additional state and lock paths for swift, quantum and nova
into $DATA_DIR/project that can be set independently of $DEST.

Change-Id: I2cca701856d3caa7fe472fefdd8b070a3c7f3adf
2012-10-23 16:36:27 -05:00
Dean Troyer
5a4148d33a Fix quantum typo
Change-Id: Ib6343f5c6b7dedb8bda33110460372bc52b6c6a7
2012-10-23 15:47:01 -05:00
Dean Troyer
da7b8091b9 Extract create_nova_conf() from init_nova()
Allows creating a new nova.conf without wiping the database,
say, during an upgrade.

Change-Id: I7703b54bc3a32485b3cdab8d6185f93a6675040d
2012-10-22 11:08:26 -05: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
Steve Baker
bb421bed58 Configure and launch Heat REST API.
This is a REST API in the same style as other OpenStack APIs.

This also creates a new endpoint for the REST API which uses the
serivce type 'orchestration'. The old endpoint now has the service
type 'cloudformation'.

This matches the pattern where the native openstack API gets a
generic service type while the emulated EC2 API gets a specific
type (eg, object-store, s3).

There will be breakage for the time period where only one of this
change and https://review.openstack.org/#/c/14263/ are approved,
since keystone will have the incorrect service type for that period.

Change-Id: I6a0d51a63da8017d375b4c065c4c9079dfca8fe3
2012-10-10 13:32:16 +13:00
Sean Dague
d093121f3a clone tempest if enabled
add auto cloning of the tempest tree if it's an enabled service
just reduces one step in getting tempest up in a new environment

Change-Id: Ia8a2feee96f26dffe96c87d572a31735d90cdabb
2012-10-05 13:36:11 -04:00
Dean Troyer
3cf1ffbcdd Fix NOVA_CONF usage
NOVA_CONF now includes NOVA_CONF_DIR, fix remaining usage in lib/nova

Change-Id: I750d6e3ad73bed5c8a911f6dfe61770bbc804704
2012-10-03 10:49:15 -05:00
Doug Hellmann
53a5f42e78 Fix ceilometer configuration
Correct the use of NOVA_CONF to find the source file
for the ceilometer configuration files.

Set up notifications and RPC to use the classes from
ceilometer.openstack.common instead of nova.openstack.common.

Run the ceilometer compute agent under "sg libvirtd"
so it has permission to talk to libvirt.

Change-Id: I75b2e563d654f4f89b182e146e54572618f25261
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2012-10-02 22:26:39 -04:00
Jenkins
e0ed68f51f Merge "Move Nova to lib/nova" 2012-09-28 21:11:35 +00:00
Dean Troyer
bf67c19c30 Move Nova to lib/nova
The next in a line of changes to break down stack.sh and make
it a bit more manageable.

Part of blueprint devstack-modular

Change-Id: I3fae739996aad0b340dae72ef51acd669a3ab893
2012-09-27 17:21:50 -05:00
Eoghan Glynn
ad80eadb08 Config for ceilometer gathering from glance
Some changes are required so that ceilometer can gather usage data
from glance (notification & polling) out-of-the-box in devstack:

 - configure glance to emit notifications if rabbitmq or qpid
   is enabled

 - configure the ceilometer collector to consume notifications
   on the default glance topic (glance_notifications.*)

 - pass credentials to ceilometer central agent so that it
   authtenticate polling calls to glance

Change-Id: I0eac223eddb615266e28447b18fcaaadcd40dddf
2012-09-27 17:55:37 +01:00
Eoghan Glynn
c6cc585f97 Ensure correct cinder dir is written to tgt config
The wrong directory was being placed in the tgtd config.

This change will allow https://review.openstack.org/13633 to gate.

Change-Id: Icbf7b5ecc9bc53ccc2aed0cacb9f5f61abe8f882
2012-09-25 18:16:59 +01:00
Jenkins
8ca43bacc4 Merge "Implement screen process stop() function" 2012-09-24 20:33:17 +00:00
Doug Hellmann
c5259b4ab5 Fix test for creating ceilometer conf dir
Fix the test run before the ceilometer configuration
directory is created so that the dir is made if
it does not exist.

Change-Id: I2d6acd4fe7959f976ce99582aed69a49fc3f212e
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
2012-09-22 10:52:31 -04:00
Dean Troyer
699a29f72d Implement screen process stop() function
Implements screen process stop in ceilometer, cinder, glance, heat, n-vol

Change-Id: Ic5e02926f026d0e6f4b39846bfe77634dd414c60
2012-09-21 14:02:38 -05:00
Dean Troyer
73f6f25b87 Move glance to lib/glance
The next in a line of changes to break down stack.sh and make
it a bit more manageable.

Part of blueprint devstack-modular

Change-Id: Ie0104f0de281497f2c10f653aebb8e7cbedc4204
2012-09-18 15:46:09 -05:00
Dean Troyer
7903b795dd Add non-verbose output mode
Set VERBOSE=False to turn off the noise of stack.sh output.  All
output still is written to the logfile if LOGFILE is set.

Rebased

Change-Id: I316bc4d68c997ec907a48e720e2f7778428d935b
2012-09-17 19:38:23 +00:00