121 Commits

Author SHA1 Message Date
Steve Baker
529d429d49 Implement Stack status and action properties
This splits the stack_status back to an action and status,
as it is represented internally in heat-engine.

It assumes there will not be an action which contains an _.

This change is needed for code (such as tempest) which assumes a
convention of all openstack client resources having a status property.

Change-Id: If00db5508bf8469b1106cac20b8fc10f7e1a854d
2013-08-02 14:45:25 +12:00
Jenkins
cae2c0fd7b Merge "Parse error object (in json format) returned by heat-api" 2013-07-30 05:09:12 +00:00
Jianing YANG
2b83260feb Parse error object (in json format) returned by heat-api
With this fix, heatclient will display a clear error message when
encounter an server-side error. Additionally, the corresponding
traceback will be displayed when "--verbose" is set.

Change-Id: I99b828465f61478a3c63fcf549d044a62523be1f
2013-07-26 20:52:04 +08:00
Jenkins
e5d68a48af Merge "Set credentials headers if there is no auth token." 2013-07-22 17:23:49 +00:00
Jenkins
34993c6b69 Merge "Validate heat url is supplied for --os-no-client-auth." 2013-07-22 17:22:48 +00:00
Steve Baker
78c98ee91b Set credentials headers if there is no auth token.
Credentials will be set instead of a token for all invocations where
--os-no-client-auth is specified.

Change-Id: I35a81a9518833ce9758228266deb36c8073f9fb8
2013-07-19 14:09:34 +12:00
Steve Baker
0254ad50a2 Validate heat url is supplied for --os-no-client-auth.
Currently an obscure error is returned if --heat-url is not
specified.

Change-Id: Ia9fbb694f38e583a0cf1898f576a894d1007f697
2013-07-19 13:15:49 +12:00
Jenkins
a49cf4c148 Merge "Cleanup in preperation for release." 2013-07-16 23:42:39 +00:00
Steve Baker
3f1b15cdce Cleanup in preperation for release.
Change-Id: Iaeb926b929d4f8210ebbfa310134b1fb50dce276
2013-07-17 10:42:28 +12:00
JUN JIE NAN
e14758686f Display yaml format for stack deployed via hot template
Determine hot template and display yaml format for it, display json
format for others.

Change-Id: Ie8d72c222a992ee0048897d040e8bc88fcf51760
Fixes: bug #1201482
2013-07-16 14:01:14 +08:00
Jenkins
b417688d21 Merge "Only set X-Auth-User, X-Auth-Key on stack create/update." 2013-07-16 03:22:00 +00:00
Angus Salkeld
710f7512bb Make the parameter checking consistent.
Make format_parameters() raise CommandError with
the same message. Rather than raise MalformedRequestBody
and then catch that and raise CommandError. This just
simplifies things.

Change-Id: Ic05af32dd916e953e6b162daccc4525cb4734a46
2013-07-16 12:24:35 +10:00
Jenkins
ff2033a8c1 Merge "Rename README.md to README.rst" 2013-07-14 22:13:07 +00:00
Dirk Mueller
43b6b0cdc4 Rename README.md to README.rst
The content looks more like restructured text to me,
and it seems to be more common amongst OpenStack projects.

Change-Id: Iba8c21985c055f1712069a6e70d345bb920381bf
2013-07-14 18:29:08 +02:00
Dirk Mueller
011fff3416 Raise requirements to be in sync with OpenStack/Requirements
Mainly due to the testing deps being outdated. Also
fixes client capping.

Fixes LP Bug #1200214

Change-Id: I39c18144bc19189513fc4c1f9712b8938bd719cf
2013-07-14 18:16:28 +02:00
Jenkins
a4208dc54d Merge "Fix "heat validate" (add needed environment option)" 2013-07-11 11:03:34 +00:00
Lin Hua Cheng
cb5b027d76 Update upper bound of keystoneclient version.
This is the intermediate step so that we can update the the lower
bound of keystoneclient in openstack-requirements.

Change-Id: I1b73bfaafdf404634fc321b4e536f65b6dd65a3a
2013-07-10 14:44:59 -07:00
Angus Salkeld
2198a76839 Fix "heat validate" (add needed environment option)
since it calls template-validate it needs that same options.

Change-Id: Ic024707240af59b862146d4f478e495a93b5cd7a
2013-07-08 14:58:14 +10:00
Steve Baker
42592898c3 Only set X-Auth-User, X-Auth-Key on stack create/update.
All heat operations can be performed with only a token.

User credentials are required for stack create/update as they are
stored for later stack operations.

This change prevents credentials unnecessarily being sent over the wire.

Change-Id: I5ad18067c5db8ada9994d131e98f27af70a7ca06
2013-07-05 10:10:20 +12:00
Jenkins
9cba3dab02 Merge "Format resource required_by in resource-show." 2013-07-03 22:45:52 +00:00
Jenkins
8dd6074d88 Merge "Unit tests for pretty table special formatters." 2013-07-03 22:35:18 +00:00
Steve Baker
5320a3a49a Format resource required_by in resource-show.
This change has no effect if the resource details contains
no requires key (such as for older API versions).

Change-Id: I5bce5cf6a7c7cd3f531453cd126fb7b7b3e227ef
2013-07-04 09:18:35 +12:00
Steve Baker
f535cf99d0 Unit tests for pretty table special formatters.
Change-Id: If07b4a5fc0c4ae2eecf486433134864270757945
2013-07-04 09:18:32 +12:00
Steven Hardy
0a23b8bd55 Add support for suspend/resume actions
Adds support for action-suspend and action-resume

blueprint stack-suspend-resume

Change-Id: If82e6b19756d3eae8a379141ae1f25565895e262
2013-07-03 17:04:39 +01:00
Angus Salkeld
7774ac3217 Upload provider templates referenced in the environment.
blueprint provider-upload
Change-Id: I3cbfe90dd8b4d152837666fa7f50b4b4a33bee27
2013-06-29 20:54:38 +10:00
Angus Salkeld
a77fd1348d Fix all but H302 hacking rules.
Change-Id: Iac329617428b851df42579d5bd0b299d2f6e2c0a
2013-06-27 13:22:07 +10:00
Angus Salkeld
2fcd4570f3 Fix all the pep8 E* and F* errors.
Change-Id: I34bab949e4795073544c64c9796237c60ace4d65
2013-06-27 13:13:14 +10:00
Dirk Mueller
61ce60358e Fix various smaller pep8 issues
Change-Id: Icc015418e0e231311ac0a0cc507fa3f8842d8811
2013-06-20 20:43:19 +02:00
Jenkins
f524528770 Merge "Stop passing path to VerifiedHTTPSConnection" 2013-06-16 23:59:48 +00:00
Steve Baker
dc91ee54f8 flake8 ignore build directory.
Change-Id: I5c1b436dac7bb558f2c2c02c0d7de51751305e91
2013-06-17 11:54:26 +12:00
Bryan D. Payne
f75b0d9422 Stop passing path to VerifiedHTTPSConnection
This class doesn't expect this argument.  Passing the argument causes the
client to break on all HTTPS connections.

Change-Id: I56f02b3a8943ff9a8b9e7855796fd527683514f3
Fixes: bug #1190111
2013-06-13 12:23:10 -07:00
Jenkins
0e559f5e43 Merge "Include .testr.conf in source tarball" 2013-06-12 03:14:57 +00:00
Monty Taylor
e8d3b3a59b Remove explicit distribute depend.
Causes issues with the recent re-merge with setuptools. Advice from
upstream is to stop doing explicit depends.

Change-Id: Ie4c3eb42351f1ba5caa9b092db8f544d5a0cd7ba
2013-06-11 11:32:13 -07:00
Dirk Mueller
0697675e12 Include .testr.conf in source tarball
In order to run tests in the release tarball,
include the .testr.conf

Change-Id: Ibc931400684a9aff240c097f874ac9d8df0c46c8
2013-06-11 09:02:29 +02:00
Jenkins
5f3e7ef850 Merge "Use Python 3.x compatible except: construct" 2013-06-11 00:13:16 +00:00
Dirk Mueller
798d62e9d3 Use Python 3.x compatible except: construct
Per (propsed) Hacking H203 check, use the
non-deprecated except x as y: construct which
works with any Python version >= 2.6

Change-Id: Ibe58125719ba7fccf68974555a4b93f9dcdad6ae
2013-06-07 15:56:53 +02:00
Jenkins
b1eab178b1 Merge "Add support for environment files" 2013-06-07 00:16:21 +00:00
Jenkins
6aeb0993d9 Merge "Migrate to testr from nose." 2013-06-03 22:43:19 +00:00
Sulochan Acharya
9b1ce21081 Fixes text split for parameters
Make text split only on the first "=" element, this will
allow for values to have multiple "=" in the string.
Also, ensure that key = value pair is honored in parameters,
exit otherwise with error message. Tests included.
Fixes bug #1183842

Change-Id: Ic8897405c61dee49f5927b53f055b0d0686eea7d
2013-05-31 13:40:44 -05:00
Angus Salkeld
44740d8ccb Add support for environment files
env.yaml:
"
parameters:
 KeyName: heat_key
"
heat stack-create foo -e env.yaml -P "<more params here>" -f bla.yaml

blueprint environments
Change-Id: If40d4b6396cc69452bb1e13654ca8bb3d61e24fb
2013-05-31 20:56:30 +10:00
Angus Salkeld
c4174d39ae Migrate to testr from nose.
Change-Id: Ibe0c2eeee9aeb4cb1832456cdc0d080a5a9af175
2013-05-31 20:13:37 +10:00
Monty Taylor
2e6e49f7fa Migrate test base classes to testtools.
This is in prep for testr changes, but also cleans up
several things in the tests where state could leak.

Change-Id: I7f53dcee2f1fcffb622dd475ea8cf433ce43dbb2
2013-05-25 09:27:06 +02:00
Monty Taylor
56bfe7541d Move tests into package dir.
This keeps it consistent with the other heat projects, and gets us
away from having a global 'tests' package.

Change-Id: Ic41b5fc235df0fce0feecfe678f743621e379aec
2013-05-25 08:45:35 +02:00
Monty Taylor
3768432707 Move requirements files to standard names.
Change-Id: Ia27def1cf04aae8fe6e9f19e965b0083638d2201
2013-05-25 08:41:07 +02:00
Monty Taylor
918c4d9d44 Add CONTRIBUTING file.
Change-Id: I07519e58a8ee2b1dc01e9882e50c68db5fa6ebab
2013-05-25 08:39:47 +02:00
Monty Taylor
20bca18e17 Migrate to pbr.
Fixes bug 1179007.

Change-Id: Ic3b99d88cb9c82112f1e2b51867a0da7fb6ec691
2013-05-25 08:39:20 +02:00
Angus Salkeld
2a08054f8c Fix some "H" pep errors
And be more specific about which ones we ignore.

Change-Id: I69fd6897957e3dcb5939cf48651a0f1b41b711dd
2013-05-20 14:08:03 +10:00
Monty Taylor
b343c1c22d Migrate to flake8.
Fixes bug 1172444.

Change-Id: Icd6c41f9f5b799ed0b121dc3a3af9d4304fa0eff
2013-05-18 18:44:15 -07:00
Monty Taylor
fcf75cb484 Cleaned up code in anticipation of flake8.
Change-Id: Id710edb1a82110653e783fed13cd589cab75f38a
2013-05-18 09:37:02 -07:00
Dirk Mueller
d057d6c246 Restore compatibility with PrettyTable < 0.7.2
PrettyTable 0.7.2 defaults to print a table even if
the resultset is empty. Restore previous behavior
to be in line with older prettytable releases.

Change-Id: Iaa9e1cf5444c8daa229aad53e3a3c15038a7d57e
2013-04-29 11:28:39 +02:00