+ Make --os-profile argument can be loaded from OS_PROFILE
environment variables to avoid repeating --os-profile
in client commands.
+ Correct information in help of --os-profile argument
Co-Authored-By: Hieu LE <hieulq@vn.fujitsu.com>
Change-Id: Ib1bbc3627bf976cc96ac623ee37b5d848e44f34f
There are two "completion" in the subcommand table: bash-completion
and bash_completion. but "bash_completion" is not in help information
and it is repeated with "bash-completion", so delete it.
Change-Id: I0c2fb8b77b737c2ffc05dd4bb641125e88a4fde4
Closes-Bug: #1670123
Osprofiler option "--profile" is conficting with the one in
cluster-create and node-create, this patch changes the former
to "--os-profile".
Change-Id: Ida340a6e503c735d45d8bc27c59e45dcb5d0e018
sys.exit() calls in main() will make the interactive
python interpreter exit. We can call the main() as
below to avoid to exit the interactive interpreter,
and specify the return value of main() in the exit
code at the same time.
sys.exit(main())
also see: I6ead9853fe27e99df3e9121478e906a06839f48c
Change-Id: I3086dc0529c4343f246f543de1b6ee6540438a98
The 'ProfileAction' class and the related user_preferences are
pre-history relics. Keeping them in senlinclient is only causing
confusion considering that 1) senlin shell will be deprecated someday;
2) SDK has some tweaks to the design that we cannot follow up; 3) these
arguments are rarely used.
Change-Id: Ia79a069bde4fd94bc1bd00f719b4e6b4a56770f8
This patch fixes problem found after sdk version 0.9.1 which includes a
new implementation of senlin cluster resources.
Change-Id: I67b265731f34080df85233dac09c1256f43aecdb
This reverts commit 3bda3b997bf3701746c7a2e4760f9528a18a2cbd.
We cannot rely on openstackclient as it is today. There are OSC
parameters preventing senlin client from normal operation and we see no
easy resolution when both OSC and senlinclient has been released.
Change-Id: I6b09699afcd45d36caea3e9f6ee0d132cc57354f
We are deprecating the senlin CLI in favor of the OSC-plugin way of
command line support. This patch removes shell support from the code
base.
Change-Id: I1ff2f4643ab9f8e719abad9b7cca3c2a60fbffc2
This patch fix the pep8 error D300 about symbol that
D300 Use """triple double quotes""" (found '''-quotes)
when execute run_tests.sh.
Change-Id: I79076b0d2a02eea59a47f263ad6bb30e48c6d1b7
This patch sets the default auth_plugin to 'password', it also removes
the authenticator reference from client module. These code are breaking
the client code.
Change-Id: I7f815d3847b0bd0f5e6c3f78c2cc0efd3c80a523
This patch optimizes the client constructor so that caller doesn't have
to provide user_preferences or user_agent arguments. It would be a
convenience for projects such as senlin-dashboard.
Change-Id: I0e98fb055441a941ad7c9da6e36b4a388ae0a75a
This patch revises the client.Client constructor so that other software
can invoke senlinclient in the same way as they do with other client
packages.
Change-Id: I060e2bf70d51ec381934cfd487a1a6cb44f0edd2
Closes-Bug: #1498906
Though senlin uses keystone v3 on the server side, on the
client side should support both keystone v2 and v3.
Change-Id: I12711b87a2ab114f42abd1c1b4e7fd1724311e4c
Flake8 is now complaining about the grouping of imports. This patch try
please it by moving imports around.
Change-Id: I65a0ee03d8fcc78de597d06424f647e0a2d2beae
Revisions include:
1. Added user agent support.
2. Partially completed identity argument checking that will check
all options for authentication.
3. Added project_id, domain_id, project_domain_id, user_domain_id and
user_id to the call of connection creation.
The shell now skips discovery of keystone versions or session creation
because all those details are encapsulated inside SDK.
We don't support server side authentication at the moment.
Argument parsing is moved out to a separate module.