| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
TrivialFix
Change-Id: Iea9913ec7934ec0879a724ad3f90d52fab8bca48
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Class base.Resource defines __eq__() built-in function, but does
not define __ne__() built-in function, so self.assertEqual works
but self.assertNotEqual does not work at all in this test case in
python2. This patch fixes it by defining __eq__() built-in function
of class base.Resource.
Change-Id: I13ed9ddd6ae6ef074232b33695916bc83930dcf0
Closes-Bug: #1586268
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Add 'deletion_time' column in following cases:
1. if specify --show-deleted when list stack
2. show stack
Change-Id: I4348d03b3433c4962f51aa124ea27dc0c55c71c1
DependsOn: I8c55fe7f6a899ca66aa3fef15c93195c03c5aa11
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | | |
Change-Id: I1614916518c20be9842a7cb7a60f996467b6e398
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Pass session or auth_token based on whether using
a session or not. SessionClient can't accept
auth_token in kwargs.
Change-Id: Ib30aeac0ec0a12faf1ae874b0a97e936f12cd61a
Closes-Bug: #1597691
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Base classes of commands are defined in cliff,
but have been encapsulated again in osc-lib for
all plugin clients. So use osc-lib instead of
cliff.
Change-Id: I0e430457af3033ebf56e47f85c0cfd71d2227cf7
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
osc-lib is a package of common support modules for writing
OSC plugins. All common functions, classes such as exceptions,
utils, logs and so on have been moved from openstackclient to
osc-lib.
So use osc-lib instead of openstackclient.
Change-Id: I14323d43d0e5b41ce0611590f5f6a375cdc3dc2d
|
| |/
|/|
| |
| |
| |
| |
| | |
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure
Change-Id: I5a7ecb69e9624d37b88da7b7e5e53f8a9906cd0b
|
|/
|
|
|
|
|
|
| |
Python3 do not use dict.iteritems, which would raise AttributeError: 'dict'
object has no attribute 'iteritems'.
Change-Id: I75f5954ce0d5573f69a22799dacb74b918028115
Closes-Bug: #1596124
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
A command which prints failed resources in the stack to help debug
stack issues.
Failed resources are added by recursing from the top level stack into
failed nested stack resources. A failed nested stack resource is only
added to the failed list if it contains no failed resources so that the
user only sees root-cause failed resources.
As an added convenience to debugging deployment resources, deployment
outputs deploy_stdout and deploy_stderr are printed as well (the full
outputs are printed when --long is specified).
The output is a yamlish format where the key is a dot-delimited resource
name path and the value is a dict of resource information.
Change-Id: Ifa44175d8dbab2f7b62691b839e1696e3af7f4f3
Closes-Bug: #1585820
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This file has become difficult to maintain with conditionals
everywhere to handle the different http clients.
This change replaces the http mocking code with calls to a handful of
mock methods, and deletes what is left unused.
Change-Id: Id2339b63a90f4805afe94f89f4c2715834588c61
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
SessionClient can not json serialize TemplateFiles object.
We should do them explictly.
Change-Id: Ia67562ae9a13c0975cb5c39532c0dc413d82c4c3
Closes-Bug: #1589519
|
|\ \ \ \
| |_|/ /
|/| | | |
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This change registers a "dot" formatter for the stack resource list
command. It generates the text for a graphviz dot diagram which can be
rendered as an image with this example usage:
openstack stack resource list --format dot -n3 my_stack | dot -Tsvg -o my_stack.svg
Nested resources are fully supported by creating nodes for top-level
resources then linking stack resources to a subgraph representing the
nested stack.
Change-Id: I4b899287eaf818137d60cb278db2d86598aa6794
|
|\ \ \ |
|
| | |/
| |/|
| | |
| | |
| | |
| | | |
Closes-Bug: #1586884
Change-Id: If05100b9c7efd0570b28d8d80419c05de0c2d16b
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Add new option to osc resource-type-show, which
allows to print description of specified resource type.
Change-Id: I99347a1aa01cea3fe7e9686e06c7d8180e6551b1
Depends-on: #I148bb7764af4db45b75ce63d7fa58daa210b3ed4
Closes-bug: #1558049
|
|\ \ \ \
| |/ / /
| | / /
| |/ /
|/| | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Add new option to osc resource-type-list, which
allows to print description of each resource type.
Change-Id: I34ca4531fb0c9f4896f55011ae234771e9ef965f
Depends-on: Ia92699e5ca60a891e9704c468e447e1053be7609
Closes-bug: #1558049
|
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The original fakes included a lot of unneeded pasted code from
openstackclient. This change replaces the client with a single
MagicMock, and deletes unused fakes classes.
Since the base client is a magic mock, a significant amount of mock
object creation has been replaced with the magic equivalent.
This change actually revealed a faulty test,
test_deployment_config_delete_failed should be asserting that deleting
the derived config is best-effort and does not raise an error.
Change-Id: I11be97603b2d42ea70dde7d936e11d15e7f5709e
|
| |
| |
| |
| |
| |
| | |
Fix typo WRT physical_resource_id in help messages.
Change-Id: Ica89b13cc9cd2b355cf65c7ccb329518e5c745bd
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Currently "stack event list" overrides the value formatter to use for
the default log formatting style. This change creates a formatter
namespace for event list so that it can have its own custom list of
formatters.
This means that the 'log' formatter is now registered and is the
default. The formatter expects event objects rather than dicts, and
so ignores the columns argument.
The intention is that this will be the first of more custom formatters
for event list, making the effort to establish this pattern worth it.
Change-Id: I22f884f871d7467c8abadec477b3e732eb8c2150
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This allows redirects to use fully qualified location
from response header and removes the check to prohibit
redirects to different project(required for super admin
actions).
Change-Id: I46876189e96375922c4f0bf30452b7c4980fe39c
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This removes the redundant auth discovery
and use generic auth plugins.
Change-Id: Ibf96a188363467e74879018e31c0d8729c6cdeee
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| | |
move heatclient to keystoneauth as keystoneclient's auth session,
plugins and adapter code has been deprecated [1].
[1] http://docs.openstack.org/releasenotes/python-keystoneclient/mitaka.html#deprecation-notes
Change-Id: Iedd7ceb97d39ab3ecccf8786aad8b5f45d15175e
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This change moved the required parameters so that it
is more easily visible to the user what is required.
Change-Id: I888960d2c83c96af80414c61dfd5faf38478f3fa
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
fnmatch is not thread safe in python <2.7.10, let's use the safe
one in oslo.utils
Change-Id: I489271f8fca94b1a1cb3ad30790042fe7468338c
ref: https://hg.python.org/cpython/rev/fe12c34c39eb
|
|\ \ \ \ |
|
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This is an internal-only fix, as it does not change any external APIs. A
bit of obfuscation was occurring in the
'template_utils.process_template_path' function call. First we try to
retrieve the template from a urllib call. If that fails, then we try to
make a request with the custom request_object function. If the
request_object function failed to retrieve the template as well, it
would report back 'ERROR: None'. I left both of the calls in this
function, but I made the first exception bubble up back to the caller,
since it is more helpful to the user.
The new error message should report back the following when a template
cannot be found:
<urlopen error [Errno 2] No such file or directory:
'/root/python-heatclient/test.yaml'>
Closed Bug: #1570229
Change-Id: I29e19172322c18559aa476744f7ff3530e689bd0
|
|\ \ \ \ |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
An assertion was added that compared the JSON dumped environment against
the string version of an environment file that was read in. The problem
is that there is no guarantee that dumped string will retain the same
order as the original string. This was seen in a failing CI run on an
unrelated change [1], manifesting itself as:
2016-03-30 20:12:57.278 | File
"/home/jenkins/workspace/gate-python-heatclient-python34/heatclient/tests/unit/test_template_utils.py",
line 413, in test_process_multiple_environments_and_files_tracker
2016-03-30 20:12:57.278 | files['file:///home/my/dir/env1.yaml'])
2016-03-30 20:12:57.278 | File
"/home/jenkins/workspace/gate-python-heatclient-python34/.tox/py34/lib/python3.4/site-packages/testtools/testcase.py",
line 362, in assertEqual
2016-03-30 20:12:57.278 | self.assertThat(observed, matcher,
message)
2016-03-30 20:12:57.279 | File
"/home/jenkins/workspace/gate-python-heatclient-python34/.tox/py34/lib/python3.4/site-packages/testtools/testcase.py",
line 447, in assertThat
2016-03-30 20:12:57.279 | raise mismatch_error
2016-03-30 20:12:57.279 | testtools.matchers._impl.MismatchError: !=:
2016-03-30 20:12:57.279 | reference = '{"resource_registry":
{"OS::Thingy1": "file:///home/b/a.yaml"}, "parameters": {"param1":
"value1"}}'
2016-03-30 20:12:57.279 | actual = '{"parameters": {"param1":
"value1"}, "resource_registry": {"OS::Thingy1":
"file:///home/b/a.yaml"}}'
This patch changes the assertion to parse the files version of the
environment into a dict for the comparison.
[1]
http://logs.openstack.org/34/270934/7/check/gate-python-heatclient-python34/deed567/console.html
Change-Id: I23fa0fddc9de933587e3b66c579dfd31ea49a2bd
|
|\ \ \ \ \
| |_|/ / /
|/| | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
tempest-lib is deprecated, replace it with tempest.lib.
Closes-Bug: #1553047
Change-Id: Icc17203a83513a1770dc845978550ff856dd8594
|
| |_|/ /
|/| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Adds the "openstack stack environment show" command.
Depends-On: I7e3577dfc854018245d79afdfee45a9d250d73a7
Change-Id: I7ef4858738964198bc4614122be4bab8f49b1b5f
Implements: blueprint environment-show
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Change-Id: I84aa5ed9dc2b8aee089de3b1e1810552b8f2dd96
Depends-On: I7e3577dfc854018245d79afdfee45a9d250d73a7
Implements: blueprint environment-show
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This changes:
1. Add "--pre-delete" argument for cmd "heat hook-clear" to
clear pre-delete hooks.
2. Add "--pre-delete" argument for osc cmd
"openstack stack hook clear" to clear pre-delete hooks.
3. Support to poll pre-delete hooks for "heat hook-poll" and
"openstack stack hook poll".
Change-Id: Ic5a6e1b7588e3f9ad49eaaf8085f18ec74fc629e
Closes-Bug: #1567814
|
|\ \ \ \ |
|
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
When called without the required arguments, the allowed arguments are
output to the screen. The order of those arguments is dictated by when
they are added to the parser.
Before this change, -t (a required parameter) was at the start of the
list. This obfuscated the required parameter list when the help output
was displayed:
usage: openstack stack create [-h]
[-f
{html,json,json,shell,table,value,yaml,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent]
[--prefix PREFIX] -t <template>
[-e <environment>] [--timeout <timeout>]
[--pre-create <resource>]
[--enable-rollback]
[--parameter <key=value>]
[--parameter-file <key=file>] [--wait]
[--tags <tag1,tag2...>] [--dry-run]
<stack-name>
Notice how the -t appears in the middle of the optional arguments. This
change moves it to the end so that it is more easily visible to the user
what is required:
usage: openstack stack create [-h]
[-f
{html,json,json,shell,table,value,yaml,yaml}]
[-c COLUMN] [--max-width <integer>]
[--noindent]
[--prefix PREFIX] [-e <environment>]
[--timeout <timeout>] [--pre-create
<resource>]
[--enable-rollback] [--parameter
<key=value>]
[--parameter-file <key=file>] [--wait]
[--tags <tag1,tag2...>] [--dry-run]
-t <template>
<stack-name>
Change-Id: I4e17650622dc8e206dc1aa39e4102f16429ac353
|
|\ \ \ \ |
|