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.
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
Also adds the option to template validate.
There can be situations where the auth_type=token_endpoint, we
should use the appropriate attributes from the auth plugin when
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
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.
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.
* 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.
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.
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
Graduate from Oslo Incubator to oslo.i18n library.
Cleanup of unused Oslo Incubator utils.
Added optional enable_lazy() usage.
Signed-off-by: Chuck Short <firstname.lastname@example.org>
Heat's other openstack commands are using append for such feature.
This patch changes property option from KeyValueAction into append
to make them consistent.
Add 'with_condition_func' filter param for API
template-function-list, if the param set to true,
the response will include the condition functions.
Currently help string of <resource> tells "Name or ID of resource" which
is wrong - resource-show doesn't accepts ID's of resources.
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.
Co-Authored-By: Rabi Mishra <email@example.com>