1915 Commits

Author SHA1 Message Date
Jenkins
118da28080 Merge "Remove "deny from all" line in wordpress config" 2013-02-21 10:48:45 +00:00
Steven Hardy
c8d1481c1e heat : bump oslo-config version to fix import error
New oslo config patch causes services to fail to launch, with
"ImportError: No module named oslo.config", bumping to
oslo-config-2013.1b4.tar appears to fix the problem

fixes bug 1131135

Change-Id: I460564be19fc97bd54bb59c759c1148e7ead774b
2013-02-21 10:35:27 +00:00
Jenkins
a3daa3fd99 Merge "Use oslo-config-2013.1b3" 2013-02-21 08:49:28 +00:00
Angus Salkeld
cc4b37cc77 Add an attribute to InstanceGroup and AutoScalingGroup to return the ips
This is so you can make a custom loadbalancer that can reference the
group's instance ip's.

fixes bug #1131025
Change-Id: I32d76d3627704ad503e2ec06bf0da39cf79f33d2
2013-02-21 14:44:28 +11:00
Jeff Peeler
902b83ed52 Remove "deny from all" line in wordpress config
(Missed file in 067323878522df12484c02211e852609185cb4fb)

Fixes bug: #1123053

Change-Id: I7c8d8312bfc61c3b31c845bc6d50a296125bdee7
Signed-off-by: Jeff Peeler <jpeeler@redhat.com>
2013-02-20 20:20:35 -05:00
sdake
5890ca32b2 Update GettingStarted with link to prebuilt images
Update prebuilt images usage instructions

Show how to register the prebuilt image with glance

Change-Id: I27d032644dc7062a9cb5c88ed95c08ed146a3665
2013-02-20 14:37:32 -07:00
Jenkins
2d44d736af Merge "heat engine : Add support rollback support for stack updates" 2013-02-20 19:37:29 +00:00
Jenkins
26c11f4b73 Merge "heat engine : Update stack dependencies during update" 2013-02-20 19:33:44 +00:00
Jenkins
84f478f235 Merge "heat engine : fail update immediately on resource update failure" 2013-02-20 19:33:36 +00:00
Jenkins
525a574a89 Merge "heat common : Add ResourceUpdateFailed exception type" 2013-02-20 18:55:23 +00:00
Jenkins
303908b635 Merge "Add config for boto https_validate_certificates" 2013-02-20 17:49:04 +00:00
Steven Hardy
aa2e3d013d heat engine : Add support rollback support for stack updates
Adds support for rolling back failed stack updates

blueprint update-rollback

Change-Id: Ie90e37751365a8ef0ed24757c15f4020ee33ab8a
2013-02-20 16:26:02 +00:00
Steven Hardy
d1a7c3fec6 heat engine : Update stack dependencies during update
We need to update the stack dependencies each time we modify the
resources list, otherwise in the event of a failure, the resources
returned from the iterator methods don't match with those found via
getitem/contains (which is important for rollback)

blueprint update-rollback

Change-Id: Ia47f84291f50c33fc052b7b33fa0c1f9e8430ab4
2013-02-20 16:25:44 +00:00
Steven Hardy
24a47ad695 heat engine : fail update immediately on resource update failure
When doing an update, we want to fail immediately, instead of
collecting the resource update errors and continuing.  This is
particularly important for update rollback, where we want to
declare failure ASAP to simplify and speed up the rollback

blueprint update-rollback

Change-Id: I56133254036d8aac592dcf3cda2ca7928cc02fa9
2013-02-20 15:40:22 +00:00
Steven Hardy
5be6ce6b50 heat common : Add ResourceUpdateFailed exception type
blueprint update-rollback

Change-Id: I357f9f5b7db727f968ab385c9da8042e5dce7154
2013-02-20 15:40:13 +00:00
Jenkins
a6502e4038 Merge "heat engine : avoid returning empty resource error strings" 2013-02-19 21:29:57 +00:00
Jenkins
0a8e70ef3a Merge "Missing policy json files from tarball" 2013-02-19 21:26:05 +00:00
Clint Byrum
14358bb9e1 Add config for boto https_validate_certificates
Boto does not, by default, validate https ceritificates on endpoints. We
now provide a way to specify it in the heat configuration along side
is_secure. Heat deployers may also need to turn this off if boto ever
does make it default and they want to use self signed certs.

Fixes bug #1130345

Change-Id: I09b684dd28a8a57c6ce514d1df1e699e7c8b182e
2013-02-19 12:23:40 -08:00
Jenkins
80799fa903 Merge "Use 2013.1 for Grizzly release version info in setup.py" 2013-02-19 19:02:30 +00:00
Steven Hardy
2f4b981cd4 heat engine : avoid returning empty resource error strings
Avoid the possibility of returning an empty string (when Exceptions
have not got a string message), or parser.py will treat the error
as success and the resource operation failure will not be correctly
reflected in the resource state.

fixes bug 1130270

Change-Id: I1c55dea1f9615cd4b037802ff8c1066694bffea6
2013-02-19 18:17:02 +00:00
sdake
04288ce01a Missing policy json files from tarball
The tarball is missing files:
heat/tests/policy/deny_stack_user.json
heat/tests/policy/notallowed.json

Fixes: bug #1130119

Change-Id: I4614c759044e0eedb9dab5f7cbe8d71f4cbdc38e
2013-02-19 08:58:34 -07:00
Steven Hardy
54defea528 heat engine : Implement rollback for stack create
Implement stack rollback for create_stack, so if a stack
creation fails we automatically rollback (ie delete) the
stack

NOTE : this option defaults to on, so use the --disable-rollback
option to the CLI tools if you want to disable this feature

blueprint stack-rollback

Change-Id: I70a3822426706d0787e571517e059baff1406c0f
2013-02-19 10:59:48 +00:00
Steven Hardy
5bf32e30d0 heat engine : Only create periodic task on CREATE_COMPLETE
Only create the stack periodic watcher task if the stack create
completed successfully, since we don't want a watcher task if
the stack ended up rolling back (or just in CREATE_FAILED state)

Change-Id: I5592fa106f740eb2e1dcf40e98a2656627715b6f
2013-02-19 10:59:48 +00:00
Steven Hardy
fd85eb5f44 make stack_delete_after decorator tolerate deleted stacks
Make the stack_delete_after decorator try/except so it doesn't cause a
test failure if the test has already done a delete during the test

Change-Id: I4a5e096478ece0de02cc910366a5d361d5ee45e0
2013-02-19 10:44:11 +00:00
Jenkins
bca6e21601 Merge "Provide unit test coverage for AWS::EC2::SecurityGroup" 2013-02-19 00:55:29 +00:00
sdake
c1c56fb438 Use 2013.1 for Grizzly release version info in setup.py
setup.py does not have a default version number specified.

Fixes Bug: #1129620

Change-Id: I4fd0ae02ad445aa1bdd25a67aead1e52fd731e3e
2013-02-18 17:26:50 -07:00
Steve Baker
01a6f6f6d2 Provide unit test coverage for AWS::EC2::SecurityGroup
There were some issues that testing revealed, includes fixes
for those.

Fixes bug 1129577

Change-Id: I31b02c7fc9179b61b74dd18a38e15d126b406f80
2013-02-19 12:55:09 +13:00
Steven Hardy
df6bd799da heat cli : Add --disable-rollback option to heat-cfn
When rollback is implemented it will default on, like aws
so this option allows stack rollback on create to be disabled

blueprint stack-rollback

Change-Id: I02fcaaa656219b1c65729cecdd473e0a5bd86036
2013-02-18 20:21:10 +00:00
Steven Hardy
76cd4260b1 heat tests : delete stacks from DB in parser tests
The tests which store a stack in the DB should delete it
at the end of the test, otherwise any cut/paste test
which uses the same stack name will always fail

Change-Id: Ib2e26480924bfe65a2f6fe8ae55076466394bcee
2013-02-18 20:21:10 +00:00
Steven Hardy
ab8cbf3d32 heat api : Handle DisableRollback parameter in cfn API
Previously we ignored DisableRollback for create/update,
pass it to the engine since the engine API now supports it

blueprint stack-rollback

Change-Id: I926d843a88449fa61b665bd1b47946724f6d2ce5
2013-02-18 20:21:10 +00:00
Steven Hardy
fa5e93df10 make engine api handle string or bool disable_rollback
Allow API's to pass string or bool format True/False flag
for the disable_rollback argument to the engine RPC API

Change-Id: I1886263ac2487c4cb36c8bd93fd1d09b04abe813
2013-02-18 20:21:10 +00:00
Jenkins
f66871a404 Merge "Add information about using the python-heatclient to the documentation" 2013-02-18 20:17:36 +00:00
Jenkins
9d98e0b3c2 Merge "Implement RouteTable and subnet association" 2013-02-18 19:49:45 +00:00
Ian Main
d0dde5b4a9 Throw a proper error if the flavor is missing.
I ran into a bug which caused a bt when the flavor is missing on the
targetted system.  This patch makes it throw a proper exception and a
useful error message.

Fixes: bug #1129388
Change-Id: I545fce32732522053e2a4a113a02883a89045910
Signed-off-by: Ian Main <imain@redhat.com>
2013-02-18 11:07:51 -08:00
sdake
d5622fee4b Add information about using the python-heatclient to the documentation
Adds information about using python-heatclient.

Fixes Bug: #127498

Change-Id: I77d161a5a7c8f0bed9653681d8f4b5aa513e7086
2013-02-18 11:18:24 -07:00
Jenkins
ec325a6931 Merge "heat engine : Add support for disable_rollback to engine API" 2013-02-18 17:58:11 +00:00
Jenkins
fb0e683be7 Merge "Make AvailabilityZone parameter available to nova create" 2013-02-18 17:48:24 +00:00
Jeff Peeler
ea8bda21c1 Make AvailabilityZone parameter available to nova create
Looks for the AvailabilityZone property in the instance's
resource section. For example:

"Resources" : {
  "Properties": {
    "AvailabilityZone" : "nova",
...

Fixes bug #1096006

Change-Id: I3333b5f909b27e53f6985713de58dd30efc1a80a
Signed-off-by: Jeff Peeler <jpeeler@redhat.com>
2013-02-18 12:38:05 -05:00
Mark McLoughlin
150d2ca694 Use oslo-config-2013.1b3
The cfg API is now available via the oslo-config library, so switch to
it and remove the copied-and-pasted version.

Add the 2013.1b3 tarball to tools/pip-requires - this will be changed
to 'oslo-config>=2013.1' when oslo-config is published to pypi. This
will happen in time for grizzly final.

Add dependency_links to setup.py so that oslo-config can be installed
from the tarball URL specified in pip-requires.

Remove the 'deps = pep8==1.3.4' from tox.ini as it means all the other
deps get installed with easy_install which can't install oslo-config
from the URL.

Excluded code from oslo-incubator in the pep8 check.

Retain dummy cfg.py file until keystoneclient middleware has been
updated (I18c450174277c8e2d15ed93879da6cd92074c27a).

Change-Id: I4815aeb8a9341a31a250e920157f15ee15cfc5bc
2013-02-18 17:27:14 +00:00
Steven Hardy
b1e5bde791 heat engine : Add support for disable_rollback to engine API
Adds support for a disable_rollback parameter to the engine API
which will allow us to control rollback of create/update

blueprint stack-rollback

Change-Id: I832f26c917d8fc178b925ce49a2366faf6e3dc0e
Signed-off-by: Steven Hardy <shardy@redhat.com>
2013-02-18 14:59:38 +00:00
Steve Baker
4b93f989ef Implement RouteTable and subnet association
Implements blueprint resource-type-routetable
and blueprint resource-type-srta

Change-Id: Idb6e8d060563d22847d100220e9a1750340583a8
2013-02-18 13:11:49 +13:00
Steve Baker
d22734c326 Implement Internet Gateway and VPC attachment
Please note that this takes a different approach for
all VPC resources types. Previously the resource_id matched
the underlying quantum resource UUID (or a composite of the
underlying UUIDs)

This had some problems, including:
- it was resource_id abuse
- it required extra quantum _list and _show calls to get enough
  data to wire up new resources
- it made the already difficult job of mapping VPC <-> quantum
  even harder

The new approach is to store all quantum UUIDs in resource metadata.
The resource id is just the resource name, so resources can easily
fetch other resources from the stack by ref/name then look up
their metadata to find the underlying quantum UUIDs to perform
operations with.

Implements blueprint resource-type-internetgateway

Change-Id: I69937254566b74f173439b3c5ce4c4e8d8c49afa
2013-02-18 09:13:58 +13:00
sdake
b9ed62c6b4 Escape awk + sign so heat-keystone-setup works on Ubuntu 12.04
plus sign needs escaping

Change-Id: Ia03f1eb213c806d13e88a435023ede8511ddfa4f
Fixes: bug #126723
2013-02-15 16:25:34 -07:00
Steve Baker
6f330aed62 Complete tests for NetworkInterface
Previous test was lacking some coverage, and had a hidden error.

Change-Id: I7cd3c98a3b89eef4f84f0e52701ab7f7fccc61f2
2013-02-14 13:12:05 +13:00
Jenkins
6ac385218d Merge "Use physical_resource_name for quantum/vpc resources." 2013-02-13 21:33:45 +00:00
Jenkins
ac920ca66a Merge "ip_version is mandatory for quantum create_subnet" 2013-02-13 21:33:38 +00:00
Jenkins
ed81013036 Merge "Implement VPC Network Interface resource" 2013-02-13 21:33:19 +00:00
Jenkins
6f09686ddb Merge "Add Tags to vpc properties schema (Unimplemented)" 2013-02-13 21:01:13 +00:00
Tomas Sedovic
9c3d6e77f2 Fix policy checks for users without policies
When the User resource doesn't have the `Policies` property specified,
the policy checking code raised an error because it tried to iterate
over `None`.

Change-Id: I1ad0a051c837744d8ec0a343929918c92fa78437
Signed-off-by: Tomas Sedovic <tomas@sedovic.cz>
2013-02-13 11:10:53 +01:00
Steve Baker
710114b0ee Use physical_resource_name for quantum/vpc resources.
This give a bit more namespace seperation for quantum resource names.

Change-Id: I72736b4409937eb8511ef94dc58407aed20a0f67
2013-02-13 14:23:26 +13:00