summaryrefslogtreecommitdiff
path: root/heatclient/v1/shell.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove sixTakashi Kajinami2022-05-091-5/+4
| | | | | | | This library no longer supports Python 2, thus usage of six can be removed. Change-Id: I8d0c1cfd6dff375b3b7756a5b36c95a2df3f04c6
* [goal] Migrate testing to ubuntu focalGhanshyam Mann2020-09-061-1/+1
| | | | | | | | | | | | | | | | | | | | | As per victoria cycle testing runtime and community goal[1] we need to migrate upstream CI/CD to Ubuntu Focal(20.04). Fixing: - bug#1886298 Bump the lower constraints for required deps which added python3.8 support in their later version. - noqa for pep8 C901 check. Closes-Bug: #1886298 Story: #2007865 Task: #40186 [1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal Change-Id: I67b4957cea1ccbd5cdc0314d2eaddef0c24f7dfc
* Update hacking for Python3ussuri-em2.1.0Andreas Jaeger2020-03-311-1/+1
| | | | | | | | | The repo is Python 3 now, so update hacking to version 3.0 which supports Python 3. Fix problems found. Change-Id: I82c745f5b1236844deec4538be84037a64eebeee
* Merge "Cleanup of .keys() from dict_object.keys() *in* operator"Zuul2020-02-211-1/+1
|\
| * Cleanup of .keys() from dict_object.keys() *in* operatorjacky062019-12-051-1/+1
| | | | | | | | Change-Id: I49bb58e5dc2618ee02424315e4e3bf1057a77068
* | Remove mox usage from test_shellZane Bitter2020-02-101-3/+1
|/ | | | Change-Id: I4e1dbb55dbc01ebf18ca80aa63ae492a1a8f47ae
* Load files from adopt file when adopt stackricolin2018-07-201-1/+5
| | | | | | | | | 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
* [policy in code] Change policy descriptionricolin2017-10-201-1/+2
| | | | | | | Now we also support get policy from policies in code. Depends-On: I610115dc1974b2182ce673bb086a1da15b022de3 Change-Id: I46d03c3303b3116e749effeecefe48949473daeb
* Fixing read before prompt bugJoe Borg2017-07-261-3/+3
| | | | | | | | 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 '-y' in CLI:snapshot-deletericolin2017-05-171-1/+22
| | | | | | | | | There is no judgement before use the cli: heat snapshot-delete. So I add it. Partial-Bug: #1642490 Depends-On: If7b515dff64a18f56046b890279c2c59b0ab9dc7 Change-Id: I6e82630816e54aa2d98c3653ab43b865f445e881
* Remove log translationsliyi2017-03-231-14/+12
| | | | | | | | | | | | Log messages are no longer being translated. This removes all use of the _LE, _LI, and _LW translation markers to simplify logging and to avoid confusion with new contributions. See: http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html Change-Id: I601eee9f1fca65d5fb53e6b75482b74283908a29
* Show 'project' info if heat server returnshuangtianhua2017-01-241-2/+5
| | | | | | | | Show 'project'/'Project' info in heatclient if heat server returns 'project' info of stacks. Change-Id: I7d95ae96a678ef41bcd3d5379f204db83e4b585c Closes-Bug: #1652412
* Update docs for mark-unhealthy commandZane Bitter2016-12-141-1/+1
| | | | | | | | | Starting with the Ocata release of Heat, users can now select a resource using its physical resource ID. Change-Id: I82711c50e9719a80eec68592ee36198ea47b9f1d Depends-On: Ie28ed102665b2c6379d1f55b7a02b76d05e38ddd Related-Bug: #1635295
* Graduate to oslo.i18n and cleanup incubator usageChuck Short2016-11-081-3/+3
| | | | | | | | | 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>
* Fix "heat output-show -F json" output formatJason Dunsmore2016-09-301-6/+6
| | | | | | | | So that it matches the equivalent OSC command's output. Also change the default output-show format to 'raw' to maintain current behavior. Closes-Bug: #1560087 Change-Id: Ia03b1633565881b4b4a7f95e7b0c5df472487f62
* Improved the help message of the stack-list tagsSharat Sharma2016-09-191-8/+12
| | | | | | | | | The stack-list help message for tags was not very helpful and was confusing. So, changed the help message so that it is more understandable for the user. Change-Id: Ia49a40652a0c96ba257edb35bae4455be3373d0f Closes-Bug: #1625011
* Merge "Trivial:Standardize the output format of 'help' in shell.py"Jenkins2016-08-311-4/+4
|\
| * Trivial:Standardize the output format of 'help' in shell.pyshizhihui2016-08-301-4/+4
| | | | | | | | Change-Id: Ie6c03d56ab2f0aa14bc96028fd548e80987beeb1
* | Standardize import formatshizhihui2016-08-031-4/+2
|/ | | | | | | According to the rule in http://docs.openstack.org/developer/hacking/#imports I modify some irregular import format in heatclinet. Change-Id: I0200ddad88ee833d7de9d6df2c1519e4f4560db7
* Fix deprecation message for stack-previewrabi2016-07-131-1/+1
| | | | | Change-Id: Ifeb3a2751e6a59092a639463806d45c683219bfa Closes-Bug: #1602301
* Show 'deletion_time' of stackshuangtianhua2016-06-251-2/+5
| | | | | | | | | Add 'deletion_time' column in following cases: 1. if specify --show-deleted when list stack 2. show stack Change-Id: I4348d03b3433c4962f51aa124ea27dc0c55c71c1 DependsOn: I8c55fe7f6a899ca66aa3fef15c93195c03c5aa11
* Fix typoThomas Herve2016-05-231-1/+1
| | | | | | Fix typo WRT physical_resource_id in help messages. Change-Id: Ica89b13cc9cd2b355cf65c7ccb329518e5c745bd
* Support "--pre-delete" argument for hook-clearhuangtianhua2016-04-161-0/+4
| | | | | | | | | | | | | 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
* Merge "OSC plugin for orchestration template validate"Jenkins2016-03-291-17/+6
|\
| * OSC plugin for orchestration template validateMark Vanderwiel2016-03-241-17/+6
| | | | | | | | | | | | | | | | | | | | | | | | This change implements "openstack orchestration template validate" command Based from the existing heat commands: heat template-validate This is different from the stack create/update --dry-run which used the preview api, this uses the validate api. Change-Id: Icf5794ad6bb35574a060f095d7ef10e6a46ca2fe Blueprint: heat-support-python-openstackclient
* | stack-delete command should not call do_stack_list.PanFengyun2016-03-171-1/+2
|/ | | | | | | | the stack-delete operation is asynchronous, and should not return anything. Change-Id: I75287b612358c5e76e47a9e53200c23946f01d8f Closes-Bug: #1556407
* Added deprecation warnings for heat commandsDmitriy Uvarenkov2016-03-151-6/+114
| | | | | | | Users need to use openstack commands instead of heat commands. Change-Id: Ifc79dd3f81c7735ab61d8d072ff0fea1976eed98
* Fixed exceptions handling in stacks deletingDmitriy Uvarenkov2016-03-071-1/+1
| | | | | | | | | | When you delete multiple stacks like 'stackA stackB stackC' and you dont have enough rights for deleting stackB, it throws 403. In result stackA is deleted, but stackC is still there. Change-Id: If2795a4a7a6987da15b5f3f23ee066000e1f2a65
* Prompt user before deleting stack if ttyCrag Wolfe2016-02-261-0/+22
| | | | | Change-Id: I4965bf4c24bbc9911837d8578d852b324f7645f7 Closes-bug: #1494058
* Merge "Add heat client support for Resource set health"Jenkins2016-02-261-0/+22
|\
| * Add heat client support for Resource set healthAhmed Elkhouly2016-02-081-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | Add a new command to set resource's health. The command takes the following format: heat resource-mark-unhealthy [--reset] <NAME or ID> <RESOURCE> reason Change-Id: I4e0a127343e591c176f451172a1c8a59bf36f6eb Partially-implements: blueprint mark-unhealthy Depends-On: Ifa48b179723a2100fff548467db9e162bc669d13
* | Merge "Changes to support server-side environment resolution"Jenkins2016-02-261-5/+25
|\ \
| * | Changes to support server-side environment resolutionJay Dobies2016-02-161-5/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds support in template_utils to optionally produce an ordered list of environment file names and include the environment file contents in the files dict. This will be passed to the server to trigger the server-side handling of resolving overrides for multiple environments. The original behavior of merging the environments client-side is left in for backward compatibility purposes. Both are sent to the server. For mitaka and newer, the client-submitted environment is ignored and the merging is done server-side. For liberty and older, the environment_files list is ignored entirely and the passed in environment is used. Note that the merging, regardless if it is done client or server-side, is handled by the same code; it has not been copied or duplicated in the server. Change-Id: If187c8ca3d80008c21e8f6066d335ab0c30315e6 Implements: blueprint multi-environments Depends-On: Ibe46fd35de7988920c101a83259c06c8f8a3ed0b
* | | Merge "Move poll_for_events to event_utils"Jenkins2016-02-251-36/+11
|\ \ \
| * | | Move poll_for_events to event_utilsSteve Baker2016-02-241-36/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently only used by "heat stack-create --poll", moving this function will allow all new openstack client commands to use for their --wait implementation. This change also adds unit tests for this function. Change-Id: I642797b08cd13c0c50169071d998cf5ba8b397a3 Blueprint: heat-support-python-openstackclient
* | | | Merge "Add stack hook poll and clear to openstack client"Jenkins2016-02-251-56/+5
|\ \ \ \ | |/ / / |/| | |
| * | | Add stack hook poll and clear to openstack clientMark Vanderwiel2016-02-181-56/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactor existing hook helper fuctions into utilites. based upon heat clis: heat hook-poll hest hook-clear Change-Id: Ib46634cc62369fb5932dcd0967ae492446c79a88 Blueprint: heat-support-python-openstackclient
* | | | Stack resource searchKanagaraj Manickam2016-02-201-0/+7
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | heat resource-list -f <filters> implements blueprint heat-stack-resource-search depends-on: Iaae88f3b32bc2ba7b41a4078ef3aa8ffc07079b7 Change-Id: I2d1f6ee68623e08bb9654dbcba28336364d14d6d
* | | Remove the only-value flag of output-showThomas Herve2016-02-171-10/+14
|/ / | | | | | | | | | | | | | | | | We recently introduced a new flag to output-show, while changing the default behavior to display the key and the description. This removes this recently added flag, and add a new flag used to do the new display. Change-Id: Iafcfaad969356e5029e6a3ac51b52d7592146528 Closes-Bug: #1539783
* | Merge "Validate for empty file for stack-adopt"Jenkins2016-02-151-0/+3
|\ \
| * | Validate for empty file for stack-adoptneetu2016-01-131-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Check if adopt-file has content and if not then display error Change-Id: I40efd6ae3ca36f0331a1e4239c5139e0af654272 Closes-Bug: #1299161
* | | Merge "Adds ignore_errors for template-validate command"Jenkins2016-02-101-0/+5
|\ \ \ | |_|/ |/| |
| * | Adds ignore_errors for template-validate commandKanagaraj Manickam2016-02-091-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | template-validate --ignore-errors <ERR1,ERR2> implements blueprint heat-template-validate-improvements Change-Id: Ice4f623bc06366ddd600d5cb72d236e5a4459e19
* | | Merge "Add show_nested support to update --dry-run"Jenkins2016-02-051-0/+5
|\ \ \
| * | | Add show_nested support to update --dry-runSteven Hardy2016-01-181-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently update preview provides no way to show the updates for nested stack resources, so this adds a flag --show-nested, which is similar to other interfaces e.g template-validate. Closes-Bug: #1521971 Change-Id: I06f3b52d5d48dd5e6e266321e58ca8e6116d6017
* | | | Merge "Raise CommandError when Any of stack/deployment/config delete failed"Jenkins2016-02-011-15/+20
|\ \ \ \ | |_|/ / |/| | |
| * | | Raise CommandError when Any of stack/deployment/config delete faileddixiaoli2016-01-281-15/+20
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | For heat command: heat stack-delete,config-delete and heat deployment-delete, they will raise CommandError when *All* of them end up failed. It is a strange behavior,this change is to raise CommandError when *Any* of them failed. Change-Id: I57b5efc9018e3f1f07858ecbf1ef9ffba21bf1aa Closes-Bug: #1538862
* | | Add formatters for 'tags' in method _do_stack_showdixiaoli2016-01-251-1/+2
|/ / | | | | | | | | | | | | This change added json_formatter for 'tags' in method _do_stack_show. Change-Id: Icdd3c90d237804926657103dcc846f48f4355fde Closes-Bug: #1536492
* | OpenstackClient plugin for stack createBryan Jones2016-01-141-28/+3
| | | | | | | | | | | | | | | | This change implements the "openstack stack create" command. Blueprint: heat-support-python-openstackclient Change-Id: I32289f53d482a817f7449724cfbabc2c154b1ffd
* | Merge "Add resolve_outputs parameter to stack get method"Jenkins2016-01-131-1/+4
|\ \