Commit Graph

79 Commits (56bfe7541d5fb61490623bc394ed02ffe3c94b6e)

Author SHA1 Message Date
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
Simon Pasquier 9354f84e59 "heat stack-create" doesn't return the error message from server
Change-Id: Icef10df6547e5830abb17edf5ed8c622b3b021b5
Fixes: bug #1163335
2013-04-02 17:54:22 +02:00
Jenkins 8eaba00143 Merge "Always pass username, even for --token-only" 2013-04-01 19:35:37 +00:00
Jenkins f3a7dde3c1 Merge "Display resource metadata as indented json" 2013-04-01 19:33:10 +00:00
Jenkins 11f24ff425 Merge "Don't use human readable heading labels in tables" 2013-04-01 19:33:09 +00:00
Jenkins bbf58d1a41 Merge "Return the body as a string instead of an iterable." 2013-04-01 17:56:12 +00:00
Steve Baker bcd0a35ba0 Display resource metadata as indented json
displaying as a pretty table wasn't pretty.

Change-Id: Ia25dd7d08b46b6b497f13707430664718f01d1cc
Fixes: bug #1160689
2013-03-27 16:15:13 +13:00
Steve Baker 58b96efe95 Don't use human readable heading labels in tables
This is in line with what other OS clients do.
Fixes: bug #1160689

Change-Id: Icbf053bd93ecdbeeb2ea791c32199225803d09be
2013-03-27 16:15:13 +13:00
Steve Baker a5d6df0630 Return the body as a string instead of an iterable.
Heat REST API will never return an application/octet-stream so
this removes some dead code.

Change-Id: Ia0d35c898ba92924ba82d50f1cfde14b299569e5
2013-03-27 16:15:13 +13:00
Steve Baker 1f2227807f Always pass username, even for --token-only
Change-Id: I3cf164a2d6573fe1f8d3e610c859bfa5ad19aaed
Fixes: bug #1160648
2013-03-27 16:12:55 +13:00
Dirk Mueller 3740ae9fcb Allow for prettytable 0.7.x as well
Relax requirements to >= 0.6, < 0.8, as 0.7.x seems to
work as well. Lower has been raised to 0.6 to match openstack-common/requirements

Change-Id: Ic8ce818016ae7d9fbfeb1548b612f8d9e8ae7c42
2013-03-15 17:42:45 +01:00
Angus Salkeld 841ded0a5a Remove warlock from pip-requires as it is not used
This is a hangover from copying from glanceclient

Change-Id: Id81035b5432b65e776217f6b3e7e62c4447d4541
Signed-off-by: Angus Salkeld <>
2013-03-07 15:57:44 +11:00
Steven Hardy b6ff6d2eec Change --disable-rollback option to --enable-rollback
Due to bug 1131303, the engine default is changing to disable
rollback by default, so we instead need an option to allow
users to enable this functionality

fixes bug 1144630

Change-Id: I509e616e20a3e4750ffcefe6e72c52e5f60445bc
2013-03-04 20:45:52 +00:00
Steve Baker ec0a708c99 Don't add 'dev' to tag_build
Change-Id: I3b37b4bf29fab29ffcb471b7f9f4707c8d5882fe
2013-02-27 10:34:38 +13:00
Steven Hardy f1baa757c3 heatclient : Add --disable-rollback option
Adds -D/--disable-rollback option to align with new heat-cfn

Change-Id: I4a997df0b63d19a25f2047710809a80520187f9f
Signed-off-by: Steven Hardy <>
2013-02-18 18:12:02 +00:00
Steven Hardy 776f25099e heatclient : correct timeout parameter name
The timeout parameter needs to be timeout_mins to match the
engine API or the parameter will not be recognized by the

fixes bug 1129348

Change-Id: I489364a2abed376f35bf2da24915db30c982e61b
Signed-off-by: Steven Hardy <>
2013-02-18 18:11:46 +00:00
Dirk Mueller 84b7969b72 Return the exit code from tox to callers of
Invoking PIPESTATUS appears to be volatile in my environment,
after the if condition it is already again 0, even if it was
non-zero before. Capture the result permanently in a variable
and use that one consistently.

Also handle the just-pep8 case correctly.

Change-Id: Icca8c00c8d2189da1a133db277c9071c2d6c880b
2013-02-11 18:05:10 +01:00
Ian Main bcaf6c4d93 Add switch to disable token authentication.
This patch allows you to disable token authentication with keystone so
that the client can be used with other backends in heat.

Change-Id: I4b35df82a782ddbc8532e85a7b9d532b327d010a
Signed-off-by: Ian Main <>
2013-01-31 17:37:07 -08:00
Angus Salkeld 8f268e44cd Don't log at all if debugging is not turned on
Else the http module prints this out on each command - yuk

"INFO Starting new HTTP connection (1):"

Change-Id: I6e8900106051914b7ddc0a216c6a7864f4ea38e0
2013-01-25 12:03:01 +11:00
Steve Baker 7f50a72aac Fixes required for packaging
- Add versioninfo to the data_files
- Excludes for

Part of blueprint rpm-package
Change-Id: Ia629c9e08d070785d8ee0984913e62064e94ebb4
2013-01-10 12:51:19 +13:00
Jenkins 706cbdb57b Merge "Switch to using version.canonical_version_string" 2013-01-09 20:01:11 +00:00
Jenkins 15be62b7f7 Merge "Update to latest oslo-incubator" 2013-01-09 20:00:28 +00:00
Steve Baker b1b545581d Relax the required version of prettytable.
Also add httplib2, iso8601.

Fixes bug 1090403

Change-Id: Ibc2bb3391754907dae9a4c705a53634926739b5b
2013-01-09 13:12:46 +13:00
Steve Baker bc972b214e Switch to using version.canonical_version_string
Change-Id: Id095c61325b0d64bc77b742abf72958aeb4cde4d
2013-01-09 11:23:12 +13:00
Steve Baker 712e1726ad Update to latest oslo-incubator
The included changes to are required for
correctly generating the versioninfo file.

Change-Id: I3534f4de099dc6d7462d896e9b18a8f776ee4daf
2013-01-09 11:22:22 +13:00
Steve Baker c7130de0a9 Display a better error message on HTTP exception
Instead of just getting the HTTP code, the message from the actual
exception is printed to the console

Change-Id: I43265e1e01e3e972e444778b3058637c0e1fd441
2012-12-11 13:48:55 +13:00
Steve Baker e1ce4162e4 Fix git repo url
Change-Id: I81e02b80445b4a5a277f94e01478a156e56fd071
2012-12-04 13:15:33 +13:00
Jenkins 85b8a6e752 Merge "Deprecate commands and add unified cli replacements." 2012-12-03 23:26:30 +00:00
Jenkins 8179af9b50 Merge "remove some glanceisms from the docs" 2012-12-03 23:26:04 +00:00
Steve Baker 03f9f84abf Deprecate commands and add unified cli replacements.
This is to bring into line with

Here is the mapping, as displayed by 'heat help'
    create              DEPRECATED! Use stack-create instead
    delete              DEPRECATED! Use stack-delete instead
    describe            DEPRECATED! Use stack-show instead
    event               DEPRECATED! Use event-show instead
    event-list          List events for a stack
    event-show          Describe the event
    gettemplate         DEPRECATED! Use template-show instead
    list                DEPRECATED! Use stack-list instead
    resource            DEPRECATED! Use resource-show instead
    resource-list       Show list of resources belonging to a stack
    resource-metadata   List resource metadata
    resource-show       Describe the resource
    stack-create        Create the stack
    stack-delete        Delete the stack
    stack-list          List the user's stacks
    stack-show          Describe the stack
    stack-update        Update the stack
    template-show       Get the template for the specified stack
    template-validate   Validate a template with parameters
    update              DEPRECATED! Use stack-update instead
    validate            DEPRECATED! Use template-validate instead
    help                Display help about this program or one of its

Change-Id: I1a296de2b935be6cc28fcc49ef8ee7ae333abf1a
2012-12-04 12:04:56 +13:00
Steve Baker 727d07e667 remove some glanceisms from the docs
Change-Id: Iee3eb218086d3a9810d7f7e0e92500293b90a1f1
2012-12-04 11:51:34 +13:00
Steve Baker 400553ead1 add some pypi meta info
Change-Id: I2a7c9e015ac7af35518c2303efcf0c40e9a0f3ee
2012-12-04 10:57:28 +13:00
Jeremy Stanley 95a0894a38 Update .gitreview for org move.
* .gitreview: The python-heatclient project moved from the heat-api
org to openstack, so this updates the gerrit remote URL accordingly.

Change-Id: I97d8433ceb61cc227ca139ec26f5e30b8daa4052
2012-12-02 17:48:42 +00:00
Jenkins 224eafa18e Merge "Pass template as a string if it is not JSON." 2012-11-27 23:35:55 +00:00
Steve Baker 23478147aa Support for events list and details
This also replaces resource_id with resource_name in the
resources API.

Change-Id: Ia5ccec5d94fb8106be2dfe89976db0fceeb73b58
2012-11-28 11:58:11 +13:00
Steve Baker 97b24ccb27 Use python-keystoneclient 0.2 series
This is required to not clash with keystone git master

Change-Id: I775e9f1b02d4ae15323db8930b1adeb4b8296970
2012-11-28 11:58:11 +13:00
Steve Baker 3d122cfb54 Pass template as a string if it is not JSON.
Test for JSON is whether the first character is '{'

Change-Id: I109d5f12d3874517561631eefac514342761714b
2012-11-26 14:01:04 +13:00
Steve Baker 03e5e7e3c1 Ignore heatclient/versioninfo
Change-Id: I862cbc8e6b37ea90d3e13bfba1e94a20819ccec6
2012-11-26 13:45:36 +13:00
Steve Baker f5ffc5f254 Implement client resource support.
CLI now supports commands:

Change-Id: I6c366279456f35e40928fc8f3654ab63ae0af6ca
2012-11-20 11:38:19 +13:00
Dan Radez cfb2205a96 adding test coverage for common/http, improving the redirect handling 2012-11-13 18:34:22 -05:00
Jenkins 116e1afd36 Merge "Support name or id for stack operations." 2012-11-13 19:53:20 +00:00
Jenkins b5aba71647 Merge "Pass username and password as well as token." 2012-11-13 19:49:09 +00:00
Steve Baker c14e082d78 Support name or id for stack operations.
Includes the followig changes:
- move format_parameters to common/
- Separate columns for ID and Name in list pretty print table
- Accept ID or Name for all operations
- Fix from radaz to correctly respond to redirects

Change-Id: Ie2d7c03f682d43454cb1348188fa56ad001e1bb1
2012-11-13 14:19:50 +13:00