1915 Commits

Author SHA1 Message Date
Steven Hardy
9531cbf586 Update tools/integration.sh script to new docs tree
Update location to refer to the new fedora getting started guide

Change-Id: I507e1102a1979debd975fa6601e5385b1a47a756
2013-04-29 18:05:10 +01:00
Jenkins
746877fe2e Merge "Do not initialize anything during import phase" 2013-04-29 11:59:25 +00:00
Mark McLoughlin
117e73ba57 Remove engine_topic configuration option
Fixes bug #1173575

This is currently broken since heat-engine always listens to the
'engine' topic and there isn't actually a good use case for this to be
configurable, so let's kill it.

Change-Id: I35c0292c921f81857f80a7f111df5ac330d54ecf
2013-04-27 13:27:26 +01:00
Mark McLoughlin
e28a34f560 Send RPCs to 'engine' topic not 'engine.$host'
Fixes bug #1173573

We currently send engine RPCs to the 'engine.$host' topic means that
it is impossible to run heat-api and heat-engine on different
machines because you can't configure heat-api with the hostname of
heat-engine.

Fix this simply by sending RPCs to 'engine' which heat-engine. We have
always listened on this topic, so there is no backwards compat
concerns.

This is somewhat related to the multiple-engines blueprint, but
doesn't really help or hinder it.

Change-Id: Ibd4dc948ace4476bfa8e7fdc86e948a622416e58
2013-04-27 13:25:34 +01:00
Jenkins
25b82f0a70 Merge "Consolidated api-paste.ini file" 2013-04-26 03:54:43 +00:00
Jenkins
d437d86885 Merge "Propagate deletion errors with exceptions" 2013-04-26 03:54:40 +00:00
Jenkins
fd6a00567b Merge "Mock delete_network in Quantum unit tests" 2013-04-26 03:54:36 +00:00
Jenkins
39d17a68f0 Merge "Mark resources as failed when creation aborted" 2013-04-26 03:54:34 +00:00
Jenkins
33bd7263d9 Merge "Propagate creation errors with exceptions" 2013-04-26 03:54:32 +00:00
Jenkins
a2e8cabd2a Merge "Move ec2token defaults from paste.ini to .conf" 2013-04-24 18:39:23 +00:00
Jenkins
b4263e9eb6 Merge "Optionally allow ec2token config to come from .conf" 2013-04-24 18:29:25 +00:00
Clint Byrum
a60f6d4569 Do not initialize anything during import phase
The structure of the program is compromised by doing too much logic in
the import phase. We can read the code more cleanly if we can see where
the intended initialization code is called. This may make tests slightly
more tedious to write, but that should be handled by writing generic
fixtures which can be reused for exactly this purpose.

Change-Id: I1d221e2f90d1f6e89717a37d2128caabd077d30a
2013-04-24 10:03:06 -07:00
Steve Baker
c0c1768e4a Consolidated api-paste.ini file
Load a single api-paste.ini file, specified by config
Delete unused paste.ini files
Update docs for new paste.ini and config arrangement

There will be a corresponding devstack change, and once this is in
I will email the packagers on the packaging implications

Change-Id: Ic10b1a486094d15bfd832f0f934e6268ec323085
2013-04-24 09:18:15 +12:00
Steve Baker
28b60667e2 Move ec2token defaults from paste.ini to .conf
paste.ini files can now be considered not user-editable
(in normal circumstances)

Change-Id: Ia2a6d784ed2fad009de9e77717e6e0dc00c5e2f4
2013-04-24 07:38:27 +12:00
Steve Baker
a4d2b3edbd Optionally allow ec2token config to come from .conf
Just like keystoneclient.middleware.auth_token
first checks paste.ini file then .conf file when fetching
a config value

Change-Id: I9db9744d0ab12fcf486de9a9d3f8e870a4ff66de
2013-04-24 07:37:20 +12:00
Zane Bitter
841ca88d1b Propagate deletion errors with exceptions
Change-Id: Ib8380f6d985e328c56d53b326700d6c9df636f40
2013-04-23 13:36:51 +02:00
Zane Bitter
f7c7d106fd Mock delete_network in Quantum unit tests
Change-Id: I0a1f0e56ed84aa4efcdf7c65c7c634f738bdddda
2013-04-23 13:36:51 +02:00
Zane Bitter
2570ef9ccd Mark resources as failed when creation aborted
Previously resources would be left in the CREATE_IN_PROGRESS state in the
event of a timeout or the thread being cancelled (due to a delete being
requested while the stack was still being created). We should instead put
these resources into the CREATE_FAILED state when this occurs, thus
creating an event with the reason.

Change-Id: I05956aa9ef26941b79cef9dbf0cb6a347047d199
2013-04-23 13:36:51 +02:00
Zane Bitter
9e90af14cf Propagate creation errors with exceptions
Change-Id: I567f1901e1203930d282620112368ac32440b9ed
2013-04-23 13:36:51 +02:00
Zane Bitter
f3be3d90b3 Assert on Resource double-create()
There's no valid case in which we should be creating a resource multiple
times.

Change-Id: Id90edd3a09ec15d3814a322ac0b7ec75fd0be54a
2013-04-23 13:36:51 +02:00
Zane Bitter
f12a2a326d Fix issues with EIP unit test
The resource was not being destroyed correctly, but errors were ignored.

Change-Id: I1caa9d092f58f458bd6da46f4cba4ad027b1fd38
2013-04-23 13:36:51 +02:00
Zane Bitter
f3454692fb Get rid of create state in Instance
We don't want to store any state in the Instance object, instead take
advantage of the new mechanism whereby the result of handle_create() is
passed to check_active().

This makes the autoscaling code uglier for now (since it must still store
the instance state in the instance), but this will go away when we move to
using co-routines to create resources in parallel.

Change-Id: Ib11c8da22900453eb9713eba5106859c8a09dbe2
2013-04-23 13:21:33 +02:00
Jenkins
9bd13ec4d5 Merge "Clean up metadata refresh unit test" 2013-04-23 10:59:47 +00:00
Jenkins
2b408a1ed9 Merge "Get rid of create state in Autoscaling" 2013-04-23 10:59:45 +00:00
Jenkins
818f9e7c67 Merge "Fix pyflakes-bypass for PyFlakes 0.7" 2013-04-23 10:31:00 +00:00
Steve Baker
a25804014b Remove service _user, _password, _tenant from context
These are not currently used anywhere in heat-engine, and I'm
not comfortable with the service password going over the (controller)
network.

If heat-engine needs access to these in the future then they can always
be configured in heat-engine.conf, or the operation can be performed
in the api and the results put into the context.

Change-Id: I81aab6b5a2c9aa7d6412531f70108857cbfa637b
2013-04-23 10:29:02 +12:00
Steve Baker
419a3d953e Move heat-api auth_token conf from paste.ini
keystone auth_token middleware now allows heat to have auth_token
configuration in heat-api.conf. Moves the example of
auth_token configuration from heat-api-paste.ini to heat-api.conf.
This simplifies user configuations and users is no longer required
to edit heat-api-paste.ini.

This does not break backward compatibility. auth_token first
tries the configurations in /etc/heat/heat-api-paste.ini and then the
above configurations. Thus a user who already uses heat-api-paste.ini
does not need to change it.

Change-Id: Ia0a4d912cd7380094e121ee4af733277ca4d812e
Blueprint: keystone-middleware
2013-04-23 10:29:02 +12:00
Steve Baker
cfda18b43e Subclass keystone middleware to set headers
Replace old forked auth_token with a subclass
of keystoneclient middleware.

The advantages of moving to keystoneclient middleware:
- can use v3 (or v2) keystone api
- PKI tokens
- token revocation

The subclass sets the following headers to be consumed by our
request context filter:
- X-Admin-User
- X-Admin-Pass
- X-Admin-Tenant-Name
- X-Auth-Url

The need to override _build_user_headers should be a short-term thing,
X-Admin-* isn't actually used currently, and there are a few options
that need to be discussed for getting X-Auth-Url to the engine.

Change-Id: Iacc5046fbf559724a4ae0bd6091d662e23d65544
Blueprint: keystone-middleware
2013-04-23 10:28:58 +12:00
Dirk Mueller
f83b7eaf09 Improve Python 3.x compatibility
Mechanical translation of the deprecated except x,y:
construct. the except x as y: construct works with
all python 2.6+ versions

Change-Id: Iad349b8079a01bbd66a22800ae2fcdfcde03b377
2013-04-23 00:12:22 +02:00
Zane Bitter
78f0da46f2 Fix pyflakes-bypass for PyFlakes 0.7
Don't make assumptions about argument types, get the line number from the
message object.

Fixes bug #1171420

Change-Id: Id0b1b254a1561941dea8ab5bb23aea1f936e7f0b
2013-04-22 18:24:56 +02:00
Mark McLoughlin
4ce8855fbc Simplify rpc client calls
We always pass host=None to _engine_topic() which means that we always
construct a topic using CONF.engine_topic and CONF.host.

And since RpcProxy methods falls back to the topic supplied to its
constructor, we never need to explicitly pass it.

We can safely remove the _engine_topic() method and the passing of an
explicit topic to RpcProxy methods and replace it with constructing the
correct topic at construction time, without causing any functional
changes.

While we're at it, replace the last use of the variable name FLAGS with
CONF.

Change-Id: Iefdc6b78a068975ac45b10d6b53210cb283d2ef8
2013-04-22 11:42:52 +01:00
Jenkins
feb98c5c26 Merge "Pass data from handle_create() to check_active()" 2013-04-14 20:07:21 +00:00
Jenkins
f982c315cc Merge "Updated OpenShift template" 2013-04-13 17:12:45 +00:00
Angus Salkeld
7dbf505e15 Fix the exception message in stack_resource.get_output()
Change-Id: Ifa81e3e9062e3e731ff1989f41f390171c203c71
2013-04-12 17:07:59 +10:00
Krishna Raman
7b1bf192cc Updated OpenShift template
OpenShift Origin images require a lot of packages. So, although the OpenShift
Origin HEAT template can be adapted to run with JEOS images, they would take
> 25 min to spin up. Instead, I have opted to create heavier images to speed up
machine creation. @See https://github.com/sdake/heat-jeos/pull/49

Change-Id: I371d28a9833a48a6b588f907cce3298b30552e90
2013-04-11 22:37:04 -07:00
Jenkins
e346a21add Merge "uses os.urandom instead of Crypto.Random for backward compatibility" 2013-04-11 22:05:36 +00:00
Zane Bitter
9316876095 heat-cfn: Handle parameters with = in them
Change-Id: Iee193169ec3dd583158ad929df20541ec210149b
2013-04-11 20:08:24 +02:00
Giulio Fidente
5a3e5b2cd2 uses os.urandom instead of Crypto.Random for backward compatibility
Crypto.Random has been introduced by pycrypto 2.1 but in RHEL6 and
derivates you will only find pycrypto 2.0.1

Change-Id: Ib601981b0b8fcb5b3e8fc8761ee05adf7f6574fa
2013-04-11 17:31:53 +02:00
Angus Salkeld
4e426f92ea Update the README to point to docs.openstack.org/developer/heat
Change-Id: I056b84b437e4c7522dd61af780eb3e60dd0775c6
2013-04-10 19:14:42 +10:00
Jenkins
09dace6e0e Merge "Update to the latest loopingcall from oslo." 2013-04-10 06:43:07 +00:00
Zane Bitter
0f6e437e88 Clean up metadata refresh unit test
The stack was not being fully created, because the calls to the mock
functions were not present for the second instance.

Change-Id: I894473533eb40133e4c22facbbee749a971cec89
2013-04-09 22:28:38 +02:00
Zane Bitter
ea58e3fd0b Get rid of create state in Autoscaling
Avoid storing the state of instances that are currently being created in
the instance group resource itself. Instead, ensure that they are returned
from handle_create() and take advantage of that result being passed back in
to check_active().

Change-Id: Ie2c75eaee620aa0599665168bfb92b345128d392
2013-04-09 22:28:38 +02:00
Zane Bitter
bfdee58d2e Pass data from handle_create() to check_active()
All resources that implement check_active() will require some state to be
retained from the call to handle_create(). Saving this as state in the
Resource object results in repeated, ugly, and potentially error-prone
code.

Instead, allow a subclass-defined state object returned from
handle_create() to be passed to check_active(). This ensures that the state
is limited in scope to where it is meaningful (during the create
operation), and that it will be garbage-collected at the appropriate time,
even if an unexpected exception occurs e.g. because a thread is cancelled.

Change-Id: I9d690b44a066aaf33970562a2b9a55c633a7d4e8
2013-04-09 22:28:38 +02:00
Steven Hardy
cb4115edc5 heat templates : Update Wordpress config for F18 guests
F18 contains apache 2.4 which requires a different syntax to enable
non-local access to the wordpress install

fixes bug #1166897

Change-Id: Ia63cceeba35904f05a1b4cf76fc075d3cdc7cd86
2013-04-09 17:59:08 +01:00
Steven Hardy
092222de42 heat : Getting started updates for grizzly
Update GettingStarted to drop references to F16/essex and add the
password sed which is required when running grizzly installed via
tools/openstack on Fedora

Change-Id: I08d265e2e2388b54a6aa9f47c4930c32f71f3e93
2013-04-09 10:32:13 +01:00
Steven Hardy
011d8397b4 heat : cloudwatch paste.ini credentials incorrect
The cloudwatch paste config should specify service/heat
like the other API services, not admin/admin

Change-Id: I0590c88edd6b544aba467ab171dd7f610b50c380
2013-04-09 10:12:19 +01:00
Steven Hardy
57975d377a heat tools : openstack script fixes for grizzly
Update tools/openstack so it works with the grizzly preview repo
(tested on F18 with both grizzly repo and folsom distro packages)

fixes bug #1164605

Change-Id: I347a53c9be677131dad37f9fbeb1ed5eb9cb810b
2013-04-09 10:12:18 +01:00
Jenkins
c6e812d4fe Merge "Remove paste config for non-existant cache filters" 2013-04-09 05:35:05 +00:00
Jenkins
d5c258c1de Merge "Remove unused and deprecated auth-context filter" 2013-04-09 05:35:02 +00:00
Michael Still
6e65b881c0 Update to the latest loopingcall from oslo.
This needs threadgroup as well, as it uses loopingcall.

Change-Id: Idfa68519c9e263830c9e6a16c2e1bfbd8c89069d
2013-04-09 15:07:17 +10:00