7 Commits

Author SHA1 Message Date
David J Peacock
4fc5e74243 Implement tripleo container image show command
This patch implements the tripleo container image show command, AKA,
inspect.

Change-Id: I03b7bb724881eeb3b737845d9a731d4b4f6ee786
2019-07-17 08:54:30 -04:00
Dmitry Tantsur
b3cef86bb9 Do not log tracebacks for expected exceptions
The tripleoclient exceptions are supposed to have enough context,
logging their traceback just confuses the users. Note that with
--debug all exceptions will have a traceback anyway.

This change introduces a base class for tripleoclient exceptions.

Change-Id: Iffc7b557ebd7e30ff56ceaee702ed3c4466d4eea
Closes-Bug: #1824329
2019-04-11 13:05:10 +02:00
Steve Baker
c138a49609 Fix confirmation prompt for overcloud delete
In python-3 the confirmation prompt isn't displayed without a flush on
stdout. This change fixes that.

This change also prevents a stacktrace from being printed when a
CommandError is raised, which is a much friendlier way of displaying
that user inputed caused a command to fail.

Change-Id: Ibab5abf6ab57793ca988b36d3411767f82e7e756
Closes-Bug: #1821672
2019-03-26 16:54:15 +13:00
Cédric Jeanneret
88d3dfd5e7 Ensure created symlink is in $PATH
With "sudo", the $PATH is overriden an really basic:
PATH=/sbin:/bin:/usr/sbin:/usr/bin
It doesn't list the /usr/local/(s)bin, hence the created
symlink wasn't seen by the script.

It also push that symlink creation in the __new__ special
method in order to make it cleaner.

Finaly, it takes care of lint/pep8 failures, not related to
this change (how is that even possible?!)

Co-Authored-By: Natal Ngétal <hobbestigrou@erakis.eu>
Closes-Bug: 1817365
Partial-Bug: 1816446

Change-Id: If09eb32f43b2c26c8cd8a89f2e862db1dd91dfed
2019-02-27 01:33:51 +00:00
Natal Ngétal
73631dfbcf [Core] Add limit option to manage nodes.
Currently we have nodes and roles options for upgrade run and update run
but it's a bit confusing. This both options it's same. Depecrated nodes
and roles and a new option limit. The options nodes and roles will be
remove in the future version.

Closes-Bug: #1813810
Change-Id: I4d33e7e5bd4b892219cfc2067e81938e0f6a8668
2019-02-05 10:53:08 +01:00
Alex Schultz
a022a339be Log exceptions that are uncaught
Since openstackclient usually eats the exceptions, we should at least
print any that manage to not be caught.  We've seen this in the past
where a deploy is run and the last output is 'password'.

Change-Id: I3b298ebe60a278c68fa582c47f36f87a94f9f2f8
Closes-Bug: #1734704
2018-10-09 09:59:20 -06:00
Dougal Matthews
53d06b7f52 Add each command to the history file
Change-Id: I1e93305426dd94dbbcc8ca70f446dae4a1fa0434
2017-11-27 15:37:00 +00:00