Commit Graph

34 Commits

Author SHA1 Message Date
Diogo Guerra 7ad1c27ed7 Drop bay and baymodel
Story: 2009104
Task: 42956

Signed-off-by: Diogo Guerra <diogo.filipe.tomas.guerra@cern.ch>
Change-Id: I8f0076cae90a59c1d9ffca827eb0e80abe9b10d7
2022-09-05 10:12:06 +00:00
Costin Gamenț a6a76a31dc Add disable floating ip parameter
Fix behaviour of --floating-ip-enabled and add --floating-ip-disabled.
Removed default setting of floating_ip_enabled API call parameter from
the clients (now the API default is used if it's not explicitly set in
the client arguments).

Change-Id: I9e01addaab17a0d37bb2fed10b4672d421bc1e09
Closes-Bug: #1639119
2018-01-30 16:25:51 +01:00
Madhuri Kumari 2850d1714f Add the support for 'detail' flag
Magnum API supports a 'detail' flag to show the list
of cluster templates with details but that was not supported
at client.
So this patch adds the support for cluster-template-list command.

Change-Id: I7df73aae1c489132aaf091d162b1d081e65f09c7
Partial-Bug: #1674314
2017-06-06 05:03:00 +00:00
ricolin 69363f9632 Remove support for keyapir UUID
Remove support for keypair UUID, since it's never been able to use.
Partial-Bug: #1674211

Change-Id: I00ea74abe6e301ff86c4115269ad2b0023c1d901
2017-03-20 19:09:42 +08:00
yatin f2af2b255f Mark help messages for Translation
Currently only few help messages are marked for translation.

With this patch all the help messages are marked for
translation so that they can be tracked by Zanata bot.

Change-Id: I025e94f5148b32ba2cdcb1fa7ee2219d27da68a1
Closes-Bug: #1653053
2017-01-04 12:18:58 +05:30
Jason Dunsmore e1c4e54cbf Add a deprecation message to the bay* commands' help text
This will make it more apparent to new users that the bay* commands
are being replaced by the cluster* commands.

Change-Id: I66a323b568893c6a4d9b019ae05b308f02921fb7
2016-11-11 16:42:26 -06:00
yatinkarel 96fe7815ff Remove invalid check for 'manifest' path
cluster-template-update has a invalid check for 'manifest'
path, with this patch it is cleaned up.

Change-Id: Ie6f3654dc7531cf62c5ca52273b45a4d093d7e25
Closes-Bug: #1638858
2016-11-08 12:19:52 +05:30
OTSUKA, Yuanying 3652bbea60 Add floating_ip_enabled attributes to baymodel
floating_ip_enabled option is added by server, so we should add
this option to client too.

Change-Id: I971ef74f0cc79346a76c1faba55777b0a44465da
Partial-Implements: blueprint bay-with-no-floating-ips
Depends-On: I99677221250480b43a4b95ebf460c43bc77090ad
2016-08-29 14:18:34 +09:00
Stephen Watson d9ae385588 Adds 'cluster' and 'cluster template'
Add new base classes for Bay and Cluster to inherit from.
Add new tests for cluster and cluster_template code.
Leaves all commands in-place and adds new cluster-related
commands for magnumclient.
Add deprecation decorator and messages for bay/baymodel.

Implements: blueprint rename-bay-to-cluster
Change-Id: I64e1aa6a71b109687568005655c6de55f86fad29
2016-08-23 17:14:23 +00:00
Jenkins d24e1460b8 Merge "Add fixed_subnet attributes to baymodel" 2016-07-09 22:22:34 +00:00
Abhishek Chanda ce461621fe Pass a flag to disable LB in baymodels
This adds a new flag to baymodel-create that
signals if load balancers should be used in this
baymodel or not.

Change-Id: Ibd3bd9e8e4e72844b561f1d6d1146b0f5777843c
Partially-Implements: blueprint decouple-lbaas
2016-06-30 21:38:27 -07:00
OTSUKA, Yuanying 19c0dc5fd9 Add fixed_subnet attributes to baymodel
fixed_subnet option is added by server, so we should add
this option to client too.

Change-Id: I3963b069ae8dde09f696e03cc43c5c37f8cc971b
Partial-Implements: blueprint magnum-baremetal-full-support
Depends-On: Ia21ad6e3e1472a0d078d08369ef62601034fcc17
2016-06-30 17:36:17 +09:00
Spyros Trigazis ee087f8e85 Add docker-storage-driver argument to baymodel
The following dependency enhances baymolel with a new attribute:
docker-storage-driver. Add docker-storage-driver argument to the
client.

Change-Id: I0b567e793ff9222d5381529bb0e36553aa2b7b79
Partially-Implements: blueprint support-for-different-docker-storage-driver
Depends-On: Ib58cb734c4e9c90d5d83574852213d2e97359e92
2016-06-02 11:14:49 +02:00
Jenkins 9b6d7321c7 Merge "Add mesos_slave_executor_environment_variables validate in CLI" 2016-05-27 10:27:41 +00:00
Jenkins 064ce06ac5 Merge "Client : Create BayModel with server type(VM/BM)" 2016-05-25 08:25:21 +00:00
wangqun bbdc05d227 Add mesos_slave_executor_environment_variables validate in CLI
mesos_slave_executor_environment_variables is a file path to deliver
the data for mesos executor environment variables, and validate the
file if existing or matching the json form.

Change-Id: Iaeb912184f8789321526887d25e281b5181089ef
Partially-Implements:blueprint mesos-slave-flags
2016-05-20 08:33:42 +00:00
Anh Tran d6a697cabb Add '--fields' to show more columns for bay-list
This patch does:
  - move '_get_list_table_columns_and_formatters' function
    to cliutils.
  - add '--fields' to 'bay-list' command to show more
    specific fields.
  - add test case for bay-list with '--fields'.

Change-Id: I2fdd66f0c6648bb2c6ae65325cbba3656b9854f6
Closes-Bug: #1535687
2016-05-17 13:20:44 +07:00
Anh Tran f1d97b652a Correcting help messages of baymodel
This patch corrects help messages of DNS option for baymodel-create,
and <baymodel> option for baymodel-show.

Change-Id: I5c32c90246114645630b2570c4be0c3125ca11d8
2016-05-17 01:06:57 +00:00
Jenkins 4df9fc2a46 Merge "Add '--fields' to show more columns for baymodel-list" 2016-05-13 14:36:03 +00:00
Anh Tran d65a5b5b38 Add '--fields' to show more columns for baymodel-list
This patch adds '--fields' to 'baymodel-list' command to show more
specific fields.

Available fields for listing baymodels:
  -- uuid
  -- name
  -- coe
  -- image_id
  -- apiserver_port
  -- registry_enabled
  -- server_type
  -- public
  -- links
  -- tls_disabled

Change-Id: Ie887574d6e8a2ddda25e042317dd98c781016c80
Closes-Bug: #1551574
2016-05-13 14:11:23 +07:00
Namrata f56285a688 Corrected spacing mistake in baymodels_shell.py
This patch fixes a problem in help output where  "bay models" was mispaced

Change-Id: I448b78ce8a65cb052306126d1996abd0775fa251
closes-bug: #1580450
2016-05-11 09:19:08 +00:00
Jenkins dc51b7bcd4 Merge "Add missing user message" 2016-03-28 04:31:19 +00:00
wangqun a39c3722c8 Add missing user message
There are no messages from bay, baymodel, pod, container, rc, service
client after successfully accepting the request of some operations

This patch adds messages when Magnum successfully accepts
baymodel/bay/container/service/rc deletion operations request.

Change-Id: I0fc1b5156ae084ff66a56a4ae2190d6e720e0bcd
Closes-Bug: #1560370
2016-03-25 07:41:20 +00:00
phelanm 905e6ee481 Allow semicolons in list of labels
* can use commas or semicolons in label list
* add two tests, all semicolons and mixed
  semicolons and commas

Closes-bug: #1497042
Change-Id: I6c243b09343b92fc54a991facf874d1e5f0f1f51
2016-03-23 18:59:31 +00:00
Aaron-DH 2b39fc07b8 Add param for magnum baymodel-list
Support baymodel-list --limit --sort_key --sort_dir

Change-Id: I5aebc66e2e969939199687720a046742ee836f72
Closes-Bug: #1549667
2016-02-26 10:55:51 +08:00
Vilobh Meshram fec8d9c344 Client : Create BayModel with server type(VM/BM)
Client changes to create baymodel with provided VM/BM
server type. In its current state of art, the Baymodel is
created with only "VM" server type. This value is hardcoded
in the code and a tech debt bug was filed to clean it off. Also
this feature can be useful to allow bay model creation with
various server type like virtual machines, baremetal etc. For
this release will restrict the server_type to vm.

Co-Authored By: OTSUKA, Yuanying <yuanying@fraction.jp>
Change-Id: I9b5566bf59e300e080937906c23c7ff7dc359e16
Partial-Bug: #1491003
2016-02-24 17:02:08 +09:00
Yang Hongyang c7d2bbfc0f Sync with oslo-incubator
Apiclient[1] and cliutils[2] is removed form Oslo incubator, we should keep
the local copy by ourself.
1. copy openstack/common/apiclient to common/apiclient
2. only keep base, auth, exceptions from apiclient, others are unused
3. copy openstack/common/cliutils.py to common/cliutils.py
4. update all magnumclient.openstack.common.* users to use
   magnumclient.common.*

This is the first step to delete openstack common modules.

[1] Change: I2020d73fa9cedb3b3b87c1d8dbc8d437857ec7c2
[2] Change: Ibc5a8f11c6e5c308cec15a60eeb07a898254f9b7

Partial-Bug: #1545957
Change-Id: Ide3814d87ecdf3255868bf3b78fdceb58bd14295
2016-02-18 13:06:00 +08:00
Hongbin Lu 5beb4eb0a2 Remove unused attribute "ssh_authorized_key"
This attribute was used in CoreOS template before. The usage of this
attribute has been removed [1][2]. This patch removed it from CLI.
[1] https://review.openstack.org/#/c/262628/
[2] https://review.openstack.org/#/c/262926/

Change-Id: I97bbffb8c53bce852fa5f210caafeb0047fe1efb
Partial-Bug: #1540134
Partial-Implements: blueprint coreos-k8s-bay
2016-01-31 13:47:47 -05:00
wangqun 85ad9439d8 Adds Container Volume Model volume_driver support
Adds volume_driver baymodel attribute and associated tests.

Co-Authored By: Kai Qiang Wu(Kennan)<wkqwu@cn.ibm.com>
Co-Authored By: Ton Ngo<ton@us.ibm.com>
Partially-Implements: blueprint magnum-integrate-with-cinder

Change-Id: I52c97e2b04ac636ddac611e3677c4ea3972220eb
2016-01-25 05:34:18 +00:00
Hua Wang c38f4a6032 Add type validation and default for some parameter
Add type validation and default for some parameters.

Change-Id: Ibb18d391f991a10c36b2f4a7da791f6722b04a3a
Closes-Bug: #1527434
2015-12-18 10:56:33 +08:00
Hua Wang 1221799595 Add registry_enabled option to baymodel-create
registry_enabled option is needed for docker registry BP.

Change-Id: If34fa7582c076764909a425a3c4e8975c5071fbe
Partially-Implements: blueprint registryv2-in-master
2015-12-09 14:39:17 +08:00
shu-mutou 8b7a740955 Correct help message of '--name' for baymodel-create
This patch corrects help message of name option for baymodel-create.
Typo: 'bay' -> 'baymodel'

Change-Id: I7ab80fe19110fd3dfec2c3084311d7d11e3bce51
Closes-Bug: #1519199
2015-11-24 13:52:14 +09:00
shu-mutou f8fe8ca0c5 Revise help message of '--docker-volume-size' for baymodel-create
This patch revise help message of '--docker-volume-size' for
baymodel-create to be able to know how to set this parameter
to user (tell user this parameter is number in GB).

Change-Id: Ifb30451f8f5fcbe45e47fe6f78e506e9107b63b8
Closes-Bug: #1518143
2015-11-20 10:47:05 +09:00
OTSUKA, Yuanying 8480e0b0f1 Split v1 shell sub-command into specific files
v1 shell has many sub command. It is difficult to add more test
and functions. Actually we have forgotten to add some tests for
these sub-commands.
This patch splits these.

Change-Id: I6b80b621311442df987e6ff031e8c77cf4bb7095
Closes-Bug: #1515109
2015-11-19 09:47:17 +09:00