In certain scenarios the default poll interval of 5s used by
`openstack stack create --wait` command is too short.
Setting the poll interval was supported in heat CLI with
`heat stack-create --poll N` but is missing in OSC plugin.
This patch adds an optional argument `--poll N` (N defaults to 5) to the
`openstack stack create` command.
Change-Id: Id279d92ea890032f280e453b795ede2818ffbb8c
Story: 2004863
Task: 29106
If files-container option is specified:
- All template/env files would be fetched by the heat engine
relative to the files_container and no local files other
than the root template would be sent to server.
- Relative path of environment files would be sent in the
environment_files list.
Also adds the option to template validate.
Change-Id: I1a703ab8798a003365be650886bb78be5af472b7
Story: #1755453
Task: 19319
Add files from adopt file into create fields. This allow us to
adopt nested stack which the template defined in files.
Story: #1700744
Task: #17263
Change-Id: I2b473791186949d49be59ee790185b3e394c7000
There can be situations where the auth_type=token_endpoint, we
should use the appropriate attributes from the auth plugin when
creating heatclient.
Change-Id: Ic929f6ceaa92002eb2b3443934d1f541758e4dda
Closes-Bug: #1632341
This adds a new --no-rollback option for stack cancel.
Usage: openstack stack cancel --no-rollback <stack_name>
Change-Id: I46252823701779e3a3c6867bc470d5532cf9d7a7
Related-Bug: #1709041
This patch add `--converge` argument for osc stack update. This
flag will be used as the trigger for observe on reality.
implements bp get-reality-for-resources
depends-on: I151b575b714dcc9a5971a1573c126152ecd7ea93
Change-Id: If35e1b9234cab173b3c46601bbd331aceebcbcb3
Added --show-nested support in `openstack stack update`.
The work is based on `heat stack-update` implementation.
Closes-Bug: #1720085
Change-Id: I50c8f5ac9ba4cb7e478af03ff4c1f099270ae226
Due to Python buffering sys.stdin and sys.stdout, the read can be shown
before text prompt.
Change-Id: I86d9ec62f7791da276585ce74a48162315effa7b
Signed-off-by: Joe Borg <joe@josephb.org>
Add optional arguments '--yes' or '-y' in osc cli `openstack stack
snapshot delete`. There is no judgement before use that cli
So propose to add it in case that we delete the snapshot unintentionally.
Closes-Bug: #1642874
Change-Id: If7b515dff64a18f56046b890279c2c59b0ab9dc7
This passes event filters to the server side. It only matters for
event_time with limit now, but this fixes that case, and the case for
resource_type as well.
Change-Id: Ide8f0481cf031cc61d4bb43d1d92109d42326e95
This fixes the error messages when trying to do a openstack software
deployment show with a wrong id.
Change-Id: I23c427e33b28b327563769106fcadd20ff599454
Heat supports exporting data of stack preparing
for abandon stack. This change supports
'openstack stack export' in client.
Change-Id: I5d3778f307d10174dbb738548282f7495bd9c825
* Whenever a stack is created/updated/adopted, a call to show the
stack is made. Do not resolve the outputs when showing the stack in
this case because:
* If we are not waiting (there is no --wait arg) for the stack to
complete after a create/update/adopt command and immediately
showing the stack, resolving the outputs is just incurring a
pointless processing hit on the server (ultimately heat-engine)
and delaying a response to the client.
* Whether we --wait or or not, we only show "short" stack info which
doesn't include outputs anyway. So, let's avoid the
processing/time overhead of resolving the outputs. (In theory,
with --wait we might want to show "long" output with stack outputs
afterwards, but that would be additional functionality that should
be handled in a different patch)
* Add the --no-resolve-outputs option to "stack show" which already
exists in the legacy heat stack-show command.
Change-Id: Id0661b11fd3cece0df3981488de6976219556d7e
Closes-Bug: #1659896
Closes-Bug: #1659899
Show 'project'/'Project' info in heatclient
if heat server returns 'project' info of stacks.
Change-Id: I7d95ae96a678ef41bcd3d5379f204db83e4b585c
Closes-Bug: #1652412
Add short form '-y' for '--yes', mainly because I'm lazy.
Change-Id: Ia82f64246a191a1615ba1d886f80caa5f52cc835
Signed-off-by: Russell Bryant <rbryant@redhat.com>
With osc client plugin, we don't seem to use server side
env merging for stack create and update. However, it's
there for template validation.
This patch brings it in sync with heat cli.
Change-Id: I8973fa499c51ca5f789efa6fb5c07bb6302324d7
Related-Bug: #1645686
argparse doesn't like the formatting of the sort metavar in event list,
so restore the previous format and explain it instead.
Change-Id: I3e1881ffe3d5af281369f6513e1ef2f04d18fe57
Closes-Bug: #1646773
Updated headers for the following commands
openstack orchestration service list, openstack
orchestration template version list, and
openstack orchestration template function list
to keep syncronized with other Openstack commands headers
Change-Id: I57f03369a501080356e5292582654cd703803b96
Closes-Bug: #1643492
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 <chuck.short@canonical.com>
Heat's other openstack commands are using append for such feature.
This patch changes property option from KeyValueAction into append
to make them consistent.
Change-Id: I34ef34c8fa1ece4e12e20a328a70fa8b389c29d2
Closes-bug: #1639107
Add 'with_condition_func' filter param for API
template-function-list, if the param set to true,
the response will include the condition functions.
Change-Id: Ia7b4da71ed5c3da105dd23917e4921a96e445026
Closes-Bug: #1625505
Currently help string of <resource> tells "Name or ID of resource" which
is wrong - resource-show doesn't accepts ID's of resources.
Change-Id: I8b8f6c937e1119c90c0ef473c3784c0523593481
Related-bug: #1620291
We should not use endpoint_override by default and rather
use service_type with session. This also refactors some of
the associated code.
However, if one wants to override the endpoint they can pass
endpoint_override to the client constructor along with session.
Change-Id: I7c27d8ff827de3b4bb3e70457c0b6a3f47b6d7bb
Co-Authored-By: Rabi Mishra <ramishra@redhat.com>
Closes-Bug: #1621505