Commit Graph

22 Commits (master)

Author SHA1 Message Date
zhufl 036ae75689 Fix missing print format
This is to:
1. Add missing print format for "%(hook_type)".
2. Add ws between words in log message "notavailable".

Change-Id: Iaee8697c95f66bff0536db9a266158a3cbc89412
4 years ago
rabi b25baa9108 Move required modules from oslo-incubator
Move the required module to heatclient/common.

- heatclient/openstack/common/apiclient/

It also moves some required functions and exceptions from
heatclient/openstack/common/ and

Change-Id: I68704c7fab9417492d8390ad05a9797f78d46907
7 years ago
Chuck Short 29d6c613f6 Graduate to oslo.i18n and cleanup incubator usage
Graduate from Oslo Incubator to oslo.i18n library.
Cleanup of unused Oslo Incubator utils.
Added optional enable_lazy() usage.

Change-Id: I5ec02477f3f52f4d7097669120581e82cced3748
Signed-off-by: Chuck Short <>
7 years ago
Jenkins 090ae32542 Merge "Fill status code for every HTTPException" 7 years ago
Bo Wang 236ba5fa65 Use oslo.utils.reflection to extract class name
The oslo.utils.reflection.get_class_name() handles more variations
of where a class name may come from (on) python 2 and python 3.
Its usage allows getting more accurate class names so we'd better use it.

Change-Id: I97cc7f1e818161c2fe265da1ed1b52add1951c90
7 years ago
ricolin 978eeb3994 Enable pep8 E126 test
Enable E126 continuation line over-indented for hanging indent.

Change-Id: I12ca2d8d610574dfcd528b0e613ec0328f4fb45e
8 years ago
ricolin 6f1542c2ca Enable pep8 E265 test
Enable E265 block comment should start with '# '

Change-Id: I78813e73f8dd800bc58a1d69eedc2c066ccb8c28
8 years ago
Bartlomiej Biernacki 11dfd95c46 Fill status code for every HTTPException
Change-Id: Ib73398f0a555c9ac4534fd3ce4a1c06e51bc5962
Closes-Bug: #1515519
8 years ago
Rakesh H S 04b3880cb4 Poll functionality for stack create action
Poll functionality is required for long running stacks.

When stack-create is passed with --poll argument, it will first print
stack-show output and then continously print the events in log format
until stack completes its action with success/failure.

This patch only implements poll for stack create action.

A new option --poll is added to stack-create.

Partial-Bug: #1420541

Change-Id: Ib7d35b66521f0ccca8544fd18fb70e04eaf98e5a
8 years ago
tengqm 284c1c5b8d Migrate to new oslo_xxx namespace
This patch migrates the namespace of oslo packages from oslo.foobar to
oslo_foobar.  The oslo_incubator code need to be resynced, which will be
submitted in another patch.

Change-Id: Id77207750556b71f20797a0ee6f2cafd62ea30e1
8 years ago
Tetiana Lashchova 6ff27ccabf Add transtlation markers for error messages
Change-Id: Ic44073880b7e65b6530a7314a5a2d65eb4aadb09
Partial-Bug: #1269930
9 years ago
Steven Hardy aea6e7dcbc Move to oslo.serialization
Remove references to the now-removed oslo-incubator jsonutils,
which has been deprecated and replaced with oslo.serialization

Change-Id: I2483f5e1036471a9aae4e3185bf4b2f24afa99ea
PartialBug: 1380629
9 years ago
Chmouel Boudjnah a2ff9eaeed Port to python requests
Since python requests has builtins SSL verification we can get ride of
our own implementation.

Increase tests coverage of heatclient.common.http along the way.

Partial Implements: blueprint python-requests-port
Change-Id: I04a169da2334acc91e538ca02cba79d9765752b5
9 years ago
Chmouel Boudjnah 62e7e0c77e Use jsonutils from oslo incubator
Partial-Bug: #1261224
Change-Id: I9a1e4e661e11a423586869ca504c41028934f8de
10 years ago
Andrew Plunk 68999ba81f Generate a template from a resource
Setup the command line options and calls for generating
a template from an installed resource.

blueprint resource-template

Change-Id: If533bd90b1ec73bbe2603b55a0a7621879d355ec
10 years ago
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
10 years ago
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
10 years ago
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
10 years ago
Angus Salkeld 2a08054f8c Fix some "H" pep errors
And be more specific about which ones we ignore.

Change-Id: I69fd6897957e3dcb5939cf48651a0f1b41b711dd
10 years ago
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
11 years ago
Steve Baker 727d07e667 remove some glanceisms from the docs
Change-Id: Iee3eb218086d3a9810d7f7e0e92500293b90a1f1
11 years ago
Steve Baker 1269bb20c7 Initial import 11 years ago