118 Commits

Author SHA1 Message Date
Vijendar Komalla
7937f06a64 Add magnum client support for resource quotas
Change-Id: I5fd050a4deedb84c7287f75cf8c606e8c0d4db9a
Closes-Bug: #1659125
2017-03-02 18:42:48 +00:00
Vijendar Komalla
7cb9145653 Adding stats-list command to magnum client
Change-Id: I8f5a391a1b9942b32b56ea38f530368084156c09
Closes-Bug: #1659123
2017-01-27 13:11:07 -06: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
Tom Cammann
820b50d33f Remove k8s pods, rcs, svc and container API calls
Magnum supports multiple COEs however it contains APIs that only work
with Kubernetes. We will allow additional API extensions for specific
bay drivers to allow access to the k8s APIs through Magnum. This will
allow us to support multiple COEs without having to compromise the
container API to the lowest common denominator between COEs.

Change-Id: Ic6927f77f413f5202a3dd160ff809c7ec057d3b5
2016-04-29 12:27:29 -05:00
Hua Wang
b393e77f81 Remove node object from magnumclient
The node object represents either a bare metal or virtual machine
node that is provisioned with an OS to run the containers, or
alternatively, run kubernetes. Magnum use Heat to deploy the nodes,
so it is unnecessary to maintain node object in Magnum. Heat can do
the work for us. The code about node object is useless now, so let's
remove it from Magnum.

Change-Id: Icb7bd21032b592c94033d93e22f460d8c2270fbe
Closes-Bug: #1541255
Depends-On: If8761b06a364127683099afb4dc51ea551be6f89
2016-02-04 16:13:12 +08: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
Eli Qiao
0dd659ce27 Update baymodel-update help doc
Magnum-Api has supported using baymodel name to update a baymodel.

Change-Id: Id0cb3ee1f30a57d6a4bba9970f1f20b443b650bd
Depends-On: Ib372c06762fdb3918f391aefd25c43e6a2a5fca3
2015-11-17 17:40:24 +08:00
OTSUKA, Yuanying
cc235cd3d4 Make image as required for do_container_create
Change-Id: I905cea86d539044bc119f088b4b45c2aa9d75d1d
Closes-Bug: #1514347
2015-11-10 17:57:54 +09:00
Jenkins
fddeb0c678 Merge "Add the introduce of the command "magnum help ca-sign"" 2015-10-20 10:15:01 +00:00
wangqun
e3c61af8ca Add the introduce of the command "magnum help ca-show"
Currently, when executing "magnum help ca-show", there is only the use
of the commmand and isn't the introduce about the command.

This patch add the introduce of "magnum help ca-show"

Change-Id: I70bcf1ce015c4ee825062ff5bd15f2a21795c0a4
Closes-Bug: #1507874
2015-10-20 09:13:58 +00:00
wangqun
8b5e5067c0 Add the introduce of the command "magnum help ca-sign"
Currently, when executing "magnum help ca-sign", there is only the use
of the commmand and isn't the introduce about the command.

This patch adds the introduce for "magnum help ca-sign"

Change-Id: I6246f7bb9550014b4501cb9eb745cb8dddaaea61
Closes-Bug: #1507873
2015-10-20 08:32:57 +00:00
Vilobh Meshram
01373e979a Pass bay_ident to k8s objects methods
Pass bay_ident to k8s objects (pod, service, replication controllers)
list method. Doing so returns a list of k8s objects based on the
specified bay identifier. A Bay identifier can be an UUID or a logical
name of the Bay.

magnum rc-list => magnum rc-list <bay_ident>

magnum service-list => magnum service-list <bay_ident>

magnum pod-list => magnum pod-list <bay_ident>

Change-Id: Ia1ec5376d728a4eaacf344cbda5c60d80fbb0495
Closes-Bug: #1503066
2015-10-06 13:06:36 -07:00
Jenkins
6ee3293270 Merge "Client: Pass bay_uuid to Service Read/Write API" 2015-10-05 15:23:59 +00:00
Jenkins
1b4049ceb8 Merge "Client: Pass bay_uuid to Pod Read/Write API" 2015-10-05 15:23:58 +00:00
Jenkins
4b76b7c398 Merge "Client: Pass bay_uuid to RC Read/Write API" 2015-10-05 15:23:55 +00:00
Hongbin Lu
87533bb014 Add an option to specify container memory size
Change-Id: Ie42b482477ce414ed80436be09a3cc85b9d9a858
Closes-Bug: #1487224
Depends-On: Ife88284402ff39a7b2e051f6e66913e502f2ba8c
2015-10-03 15:53:42 -04:00
Jenkins
a510226449 Merge "Support for public baymodels." 2015-10-03 11:55:06 +00:00
Jenkins
9ecf5dbd60 Merge "Add support for 'baymodel-update' in python-client" 2015-10-02 23:17:51 +00:00
Vikas Choudhary
0a0c8a45c2 Add support for 'baymodel-update' in python-client
This fix is to add missing support for baymodel-update command in
python-client.

Change-Id: I6949bad808bf279b6e1ace93631a682ab1b85f9d
Closes-Bug: #1497519
2015-10-02 22:23:00 +05:30
Murali Allada
c8d81543b6 Support for public baymodels.
Adding --public flag to baymodel create to make a baymodel public.

Please wait for the API patch to merge before merging this one.
https://review.openstack.org/#/c/226335/

Change-Id: Ie820811231b3d366c49dc0cad780ade6138b711a
Partial-Implements: blueprint public-baymodels
2015-09-30 15:21:19 -05:00
Jenkins
e36a2a34d4 Merge "Rename 'insecure' baymodel attribute to 'tls_disabled'." 2015-09-30 19:08:23 +00:00
Madhuri
d1c23c9bda Rename 'insecure' baymodel attribute to 'tls_disabled'.
'insecure' was used to turn off TLS in magnum which was not very
meaningful. Hence this patch changes it to 'tls_disabled'.

Change-Id: I898b48ae3fe40285143e44bcb50bb305d4fb7c3b
2015-09-30 18:03:33 +00:00
Jenkins
fe740ebf9b Merge "Adding 'magnum service-list'" 2015-09-29 21:19:17 +00:00
Vilobh Meshram
bdbde5abb9 Client: Pass bay_uuid to Service Read/Write API
Add bay_uuid to Service Read/Write API's. This patch makes changes
to the magnum client. Fix to modify API's at controller level
has already been proposed. The API's modified at the contoller
level are update, delete, get_one, detail, get_all. This change
is needed to construct objects from bay.

Change-Id: Ic3c924576cce09b051bc2faa965455b8943216b8
Partially-Implements: bp objects-from-bay
2015-09-29 10:41:43 -07:00
Vilobh Meshram
d70b27d6e0 Client: Pass bay_uuid to Pod Read/Write API
Add bay_uuid to Pod Read/Write API's. This patch makes changes
to the magnum client. Fix to modify API's at controller level
has already been proposed. The API's modified at the contoller
level are update, delete, get_one, detail, get_all. This change
is needed to construct objects from bay.

Change-Id: I981194e6fbbd0417f63db2b9a53c774199794d25
Partially-Implements: bp objects-from-bay
2015-09-29 09:14:41 -07:00
Vilobh Meshram
5cc50667a6 Client: Pass bay_uuid to RC Read/Write API
Add bay_uuid to Replication Controller Read/Write API's. This patch
makes changes to the magnum client. Fix to modify API's at controller
level has already been proposed. The API's modified at the contoller
level are update, delete, get_one, detail, get_all. This change is
needed to construct objects from bay.

Change-Id: I71bbbdaa0b00aa8657ebf31232846bfe50183aa6
Partially-Implements: bp objects-from-bay
2015-09-29 08:58:08 -07:00
Andrew Melton
9793da624b Add insecure flag to baymodel
The --insecure flag is a non-default option that will allow users
to disable TLS in their Bays.

Change-Id: Ibb01acc5c0904b23609b365a5e7691e8b17741d8
Partial-Implements: blueprint secure-docker
2015-09-24 16:13:43 -04:00
Jenkins
a4e4a1737e Merge "Add certificates operations" 2015-09-24 05:16:26 +00:00
Surojit Pathak
b452363e92 Adding 'magnum service-list'
The client changes after introducing API/backend implementations.

Change-Id: I81e84c98e63dc0a1eafb1c1429cd6316c3852e88
Partially-Implements: blueprint magnum-service-list
Closes-bug: #1498228
Depends-On: Ib816f595ba2edef29edaec40fa940570755b10aa
2015-09-22 00:25:48 +00:00
Andrew Melton
fd794c18f9 Add certificates operations
This commit adds two operations to the magnum client:

magnum ca-show --bay bay_uuid
magnum ca-sign --bay bay_uuid --csr /path/to/csr.pem

ca-show retrieves the CA certificate for the provided bay.

ca-sign, sends the provided CSR to Magnum, and prints the signed
certificate returned by Magnum. The certificate is signed with the
CA for the given Bay.

Change-Id: I784a1b3dc77e72dfb9e7f8d25cbbc37a0b5ffce0
Partial-Implements: blueprint magnum-as-a-ca
2015-09-21 14:44:05 -07:00
Daneyon Hansen
ce8924bb43 Adds Labels Support
Adds labels attribute and associated tools/tests to the magnum
client.

Implements: blueprint extend-client-network-attributes

Change-Id: Ie8465275646b82aa9bd7a9de756c519bdd6ec0e2
2015-09-16 19:58:54 +00:00
Daneyon Hansen
dca6785af8 Adds Container Network Model network_driver support
Adds network_driver baymodel attribute and associated tests.

Partially-Implements: blueprint extend-client-network-attributes

Change-Id: Ia52a20e940a22ac191400a29e30d604aecb19c94
2015-09-16 17:02:36 +00:00
Jay Lau
58d7c91024 Update help message for coe service related command
The current magnum command for service related have been updated to
coe-service-xxx, but the help info was not updated.

Change-Id: I0339f194ec1ba0b58ea8997bf8a0b7a2b4ede55e
Closes-Bug: #1495385
2015-09-14 02:44:00 -05:00
Lin Yang
38b3eb8409 Add missed space between two words
Change-Id: Ia63aa799e1fc87b8e66f4f29797116a97fc53002
Closes-Bug: #1493621
2015-09-09 14:11:18 +08:00
Jenkins
a2d4352292 Merge "This adds proxy feature in magnum client" 2015-08-27 05:21:16 +00:00
Jenkins
667176c17d Merge "Rename existing service-* to coe-service-*" 2015-08-27 00:42:42 +00:00
Surojit Pathak
97dbb71c4a Rename existing service-* to coe-service-*
At present, all 'magnum service-*' CLIs are specific to Kubernetes.
As a community, we anticipate that other COEs may introduce 'service'
concept too, going forward. Thus, moving 'service-*' CLIs to be
'coe-service-*', instead of 'k8s-service-*'.
This is also required to model 'magnum service-list' after 'nova
service-list'[blueprint].

Change-Id: Ia4ee95e324087309b7f771b3a9d4930b8d8589cf
Partially-Implements: blueprint magnum-service-list
Closes-bug: #1487580
2015-08-26 18:15:06 +00:00
Manjeet Singh Bhatia
b450891768 This adds proxy feature in magnum client
This is a patch to add http_proxy, https_proxy
and no_proxy as option in command line. So that
proxy values can be given while creating
baymodel as command line arguments

Implements: blueprint add-proxy
Closes-Bug: #1476843

Change-Id: Ide91a25d9ddd5093b0696ac82fc373082983979e
2015-08-18 05:28:06 -04:00
Hongbin Lu
292310c722 Add support for multiple master nodes
Add an optional argument "master_count" to "bay-create". If this
argument is not provided, the default is 1.

Change-Id: Ide15a9a8d50a268214e9209607dff6832528eb2c
Implements: blueprint make-master-ha
2015-08-03 11:22:06 -04:00
Lan Qi song
252586a7b7 Rename image_id to image when create a container
Currently, magnum used "image_id" to reflect the image in container,
but actually, we can support use both image name and image id to create
a container. The name "image_id" may confuse user that we only support
"image_id" when create a container.

This patch rename the "image_id"  to "image" when create a container.

Change-Id: I6de28ec714f5a03fd5a44c1c95e0f68fcf2856b4
Closes-Bug: #1466278
2015-06-24 10:55:11 +08:00
digambar
0c9f735340 Add additional arguments to CLI for container-create.
Remove JSON as arguments from container-create CLI.
Add all JSON argument in CLI args like other CLI calls.

Change-Id: I1c23b78ce7f79906344cda54bb4a5ea80d5c7d32
Closes-Bug: #1460907
2015-06-16 11:44:54 +05:30
Amey Bhide
ac983f1415 Change container-execute to container-exec
This is more consistent with "docker exec" command and causes the user to do less typing.

Closes-Bug: #1459877
Change-Id: Id61dd117c3656b2a519dd45af1e2952b35889fc0
2015-06-12 05:30:38 +00:00
Amey Bhide
29b0aa543c Make metavar's consistent
metavar's in help message have usage of - and _ for separators.
Make it consistent using - separator

Closes-Bug: #1409020
Change-Id: I9968d2932f18519e8d69195fc3d5062d6700f4c5
2015-05-21 20:46:13 +00:00
Jenkins
464f49c9f9 Merge "Add support of container resource management with "name"" 2015-05-18 04:40:40 +00:00
Hongbn Lu
7cf0559e07 Add support of container resource management with "name"
This patch supports magnum container resource related
commands to run with name of the resource also.
Below is the list of commands:
 - container-delete
 - container-show
 - container-reboot
 - container-stop
 - container-start
 - container-pause
 - container-unpause
 - container-logs
 - container-execute

Change-Id: I4aaa1346a9411a8d0a9088c8fb216ee36df90915
Partially-Implements: blueprint name-based-resource-management
2015-05-13 16:25:23 -04:00
Lan Qi song
fedff8248e Add support for container status
Change-Id: I02c15e5d61135c24cab5a4179962136b85c4eba0
Implements: blueprint container-status
2015-05-11 11:00:25 +08:00
Tom Cammann
a5693c0cd6 Remove links attribute from pod show
The links attribute in pod show wraps the table formatting making it
difficult to read. The links attribute is generally not relevant to the
user and does not need to be displayed.

Change-Id: I0737ae6eb9422464c60030dd60fcbe65744c948a
Closes-Bug: 1450392
2015-04-30 10:44:16 +01:00
Jenkins
cb1f6f55d0 Merge "Add heat timeout to bay-create for magnum client" 2015-04-27 01:40:50 +00:00
Jennifer Carlucci
ffd24a44b7 Add heat timeout to bay-create for magnum client
Add bay-create-timeout parameter to the bay-create command
Update test cases for the timeout parameter

Change-Id: Icabcb6549b238167b7b65eeb0279447bf106f599
Closes-bug: #1433109
2015-04-24 10:50:39 -05:00
Janek Lehr
34c4b38c05 Add coe attribute to BayModel creation
Add coe as a required parameter to BayModel creation.

Partially implements: bp multiple-bay-templates

Change-Id: Iaa1d80d5573edd774fa923c0332d29cd914ec774
2015-04-24 10:24:42 -05:00