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
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
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
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
Magnum-Api has supported using baymodel name to update a baymodel.
Change-Id: Id0cb3ee1f30a57d6a4bba9970f1f20b443b650bd
Depends-On: Ib372c06762fdb3918f391aefd25c43e6a2a5fca3
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
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
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
This fix is to add missing support for baymodel-update command in
python-client.
Change-Id: I6949bad808bf279b6e1ace93631a682ab1b85f9d
Closes-Bug: #1497519
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
'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
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
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
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
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
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
Adds labels attribute and associated tools/tests to the magnum
client.
Implements: blueprint extend-client-network-attributes
Change-Id: Ie8465275646b82aa9bd7a9de756c519bdd6ec0e2
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
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
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
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
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
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
This is more consistent with "docker exec" command and causes the user to do less typing.
Closes-Bug: #1459877
Change-Id: Id61dd117c3656b2a519dd45af1e2952b35889fc0
metavar's in help message have usage of - and _ for separators.
Make it consistent using - separator
Closes-Bug: #1409020
Change-Id: I9968d2932f18519e8d69195fc3d5062d6700f4c5
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
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
Add bay-create-timeout parameter to the bay-create command
Update test cases for the timeout parameter
Change-Id: Icabcb6549b238167b7b65eeb0279447bf106f599
Closes-bug: #1433109
Add coe as a required parameter to BayModel creation.
Partially implements: bp multiple-bay-templates
Change-Id: Iaa1d80d5573edd774fa923c0332d29cd914ec774