Commit Graph

33 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
Theodoros Tsioutsias ea7c571162 Add nodegroup list/show commands
This adds the commands needed to list and show nodegroups in a
cluster. Specifically the commands added are:

* openstack coe nodegroup list <cluster>
* openstack coe nodegroup show <cluster> <nodegroup>

Depends-On: I5607c27eb0e84677acda29af006335374b60dd27
Change-Id: I910c7c7caff34aba2ce08ca5c9362403d11f324c
2019-03-27 16:27:10 +00:00
npraveen35 ef55dd0e12 inline comment typo fix
corrected the typo

Change-Id: Idc46a9470eaf4274ee21d86eac7dd6e33f747b54
2017-08-21 04:09:34 +00:00
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
Tovin Seven 1c2385ca55 Integrate OSprofiler in Magnum Client
Add OSprofiler support in Magnum Client

Co-Authored-By: Hieu LE <hieulq@vn.fujitsu.com>

Change-Id: I85f766f636f754fc6ad8e28e3df2793cd02a618e
Depends-On: I7d68995aab81d365433950aada078ef1fcd5469b
Implements: blueprint osprofiler-support-in-magnum
2017-01-24 08:32:35 +07:00
maliki 7829c8c901 Add missing options for HTTPClient if auth_token given.
The insecure client options and timeout were bypassed
if auth token was given, as in case of Magnum UI.
This is causing SSL error even insecure is set to true
by Magnum UI and magnum client is unable to skip SSL check
becuase insecure option was not passed to HTTPClient.
This was caused due to this change :
a374b9f99c (diff-c8d8ebbd1f15e85c914906c6357e0a5f)
As a consequence, any HTTPS based connections to magnum endpoint
fail. With this patch, the missing options to HTTPClient are
correctly passed to and SSL checks are skipped safely if insecure
is set to True.

Change-Id: I885301d6eb69182f109cdfbfbc771bbbf13beb2a
Closes-Bug: #1634305
2016-10-17 17:47:53 -07:00
OTSUKA, Yuanying a738ea7911 Add microversioning support for httpclient
This patch adds 'OpenStack-API-Version' header for each
requests.

Change-Id: I49310f1b53447ce00e78e26661cc895ce4f1c4e5
Implements: blueprint api-versioning
2016-08-29 14:48:39 +09:00
OTSUKA, Yuanying a374b9f99c Fix to use HttpClient if token is given
Currently, magnumclient doesn't work with token and endpoint_override.
Due to cloud_config limitation. This issue breaks magnum horizon plugin.
This patch fixes it.

Change-Id: I0d0a41e72a1a806c4422c2dcde2b86e9889bc35f
Closes-Bug: #1616315
2016-08-25 08:16:50 +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
OTSUKA, Yuanying f2c49d203b Use os-client-config in shell
Use os-client-config[1] to process options and get the Session from
keystoneauth1. This adds support for reading clouds.yaml
files and supporting the OS_CLOUD env var for selecting named clouds
from a list of them.

[1]: https://github.com/openstack/os-client-config

Closes-Bug: #1599747
Change-Id: I23a6e80648e67c0b652693cd146bd9e94ad4fb23
2016-07-25 13:44:34 +09:00
Madhuri Kumari 2116043961 Log appropriate error while exception
Currently while any exception during creating Client object, generic
log 'Not Authorized' was logged which hides the actual error. This
patch fixes the issue by logging in the actual error message.

Change-Id: I1891ee0cf3d1c58fc922792300a48d9ab95a634b
Closes-bug: #1597469
2016-06-30 15:08:34 +00:00
Jenkins 9834452911 Merge "Remove k8s pods, rcs, svc and container API calls" 2016-05-25 19:47:09 +00:00
Hongbin Lu e0966ebe60 Switch to a new service type "container-infra"
After this patch [1], Magnum is no longer the "Container Service", it
became the "Container Infrastructure Management Service". Based on the
decision, this patch proposed to rename Magnum service type from
"container" to "container-infra". The old service type will be
deprecated and eventually not supported.

There is another patch [2] on Magnum server side for the renaming.
This patch should land first, then the server patch.

[1] https://review.openstack.org/#/c/311476/
[2] https://review.openstack.org/#/c/319300/

Change-Id: I55205ff2b304678d2b53bbd4d66403078c6baac8
Closes-Bug: #1584251
2016-05-20 17:46:56 -05: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
Yolanda Robla 85fc6c1756 Add endpoint_override parameter to python-magnumclient
When trying to consume python-magnumclient from os-cloud-config,
it is failing with:

TypeError: __init__() got an unexpected keyword argument 'endpoint_override'

That is because this parameter is not supported in v1 from magnumclient. Add the
parameter, forcing to be the equivalent of magnum_url.

Change-Id: I3e9d41c3efabf23826f35fc8d1bb12c14770460b
Closes-Bug: 1573468
2016-04-22 13:03:21 +02:00
Jenkins 9eb9de4bcc Merge "Remove node object from magnumclient" 2016-02-18 03:21:21 +00: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
venkatamahesh c93b8ed056 Fix a spell typo
Change-Id: I799a2e767421235b48ade9dc0753abdb9baa15ea
2016-02-03 20:35:01 +05:30
Ian Cordasco 5119ee0a67 Add Keystone v3 compatibility
Change-Id: Ib15713b52710412d3a887f399d1684c0e3fc5475
Closes-bug: #1538302
2016-01-27 08:42:56 -06:00
Corey O'Brien db4dec5276 Add --insecure option
Adds insecure option and associated MAGNUMCLIENT_INSECURE environment
variable for skipping SSL certificate verifcation in the client.

Change-Id: I0396453e8315c5f24703161457c91f7640827b8d
2016-01-20 17:12:57 -05:00
Monty Taylor 5cbc5e722e Use keystoneauth to create a Session
All client interactions should actually flow through a keystoneauth
Session. Add the parameter for a user to pass one in, but support
the old style of direct parameters too. A followup patch will add
os-client-config support to the shell, so add that to requirements.txt
instead of keystoneauth directly to look forward.

Also, trim unneeded things from requirements.txt because we're adding
os-client-config which pulls in various things.

Closes-Bug: #1514733
Change-Id: I88b1d0e4e119429599dec75c5db24237a92edcec
2015-11-11 18:51:18 +01:00
Jenkins fe740ebf9b Merge "Adding 'magnum service-list'" 2015-09-29 21:19:17 +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
Cedric Brandily 1b14206ac9 Delegate magnum url search to url_for method
This change removes homemade code to search magnum endpoint and uses
keystoneclient url_for method.

Closes-Bug: #1444409
Change-Id: Ida5fc20bd4ee46ec2d6846a31c3ec79e216b73f2
2015-04-17 08:49:22 +00:00
Cedric Brandily 431554b43e Remove side effect in get_keystoneclient
Currently get_keystoneclient uses a side effect (keystone_client
attribute) to cache keystone client instance but it's not more required
as get_keystoneclient is called at most once, thanks to parent changes.

Closes-Bug: #1444405
Change-Id: I832f4ef90fd9ec32ebf4d97675379b73620b0646
2015-04-17 08:49:04 +00:00
Cedric Brandily b760183f21 Authenticate once
Magnumclient authenticates twice when no token and no magnum url are
provided by the user. This change avoids the 2nd authentication.

Closes-Bug: #1442457
Change-Id: I9877e1be5d2e531442774ee4627bdfe1745781d7
2015-04-15 11:58:06 +02:00
Cedric Brandily 7b45bac016 Remove unused get_projects_list method
Change-Id: I4de11425437ab8fb1a489813f2987d7056e81cf0
2015-04-08 14:28:26 +02:00
Cedric Brandily 3cbf79dec0 Support keystone region
This changes enables keystone region support using:

* an option: --os-region-name=<region-name>
* an env variable: OS_REGION_NAME=<region-name>

DocImpact
Closes-Bug: #1436774

Change-Id: I1f82d437f05c2d96ed7ed12d22906efd00edbacb
2015-03-26 21:36:18 +01:00
Jay Lau (Guangya Liu) 0b1c535729 Make replication controller client works
1) Rename replicationcontroller.py to replicationcontrollers.py
2) Add pod_data support in client (backend will be updated later)

Change-Id: If315873a02bc896129e2ba41eb2a3d6fdd10b5ed
Closes-Bug: #1410447
2015-01-13 18:17:33 -05:00
Jay Lau 40bb0673a9 Add k8s replication support for magnum client
Implements bp add-k8s-replication-controller

Change-Id: I449b3e18dcf5cb094f4d2ad81d6ec058a5be9caf
2015-01-02 02:01:30 -05:00
Jay Lau c768d7abee Change folder of api to v1 for magumclient
It is better taht we can change the folder of api to v1 for
magnumclient in case we have v2, v3 ... vx in future.

Change-Id: If59c77e5d1c184c65f1e73ddd43fd89fcdcba18e
2014-12-30 11:05:23 -05:00