Commit Graph

56 Commits

Author SHA1 Message Date
Michal Nasiadka bc79012f46 Drop Swarm support
Label validator function has been left behind, although it's not
checking for anything right now - might be useful in future.

Change-Id: I74c744dc957d73aef7556aff00837611dadbada7
2024-01-24 13:20:21 +13:00
Michal Nasiadka 58a6bb69a4 docs: Change Storyboard links to Launchpad
Change-Id: I84d5a3b516f3e46b82e4a87b00013c5c942b96e8
2023-10-03 14:17:45 +02:00
Diogo Guerra 11bcc17568 Drop bay and baymodel from magnum
- Drop bay and baymodel tests
- Drop bay and baymodel from controllers

Depends-On: Ib85e4fda8e4ac467bd49590dc72ba5913bb9a19d

Story: 2009104
Task: 42957
Task: 42959

Signed-off-by: Diogo Guerra <diogo.filipe.tomas.guerra@cern.ch>
Change-Id: Ida2e42c86400438951d9804e3ce122c56a46b94f
2023-05-09 13:59:57 +00:00
guilhermesteinmuller 6e8657912c Drop Mesos code
The coe mesos has not been maintained for quite some
time and hasn't got much attention from the community
in general. As discussed in the mailing list [1] we
are dropping for now.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2021-December/026230.html

Co-Authored-By: jake.yip@ardc.edu.au

Change-Id: Ie7de9a37bfad6214f52d0605409e74d62a51df47
2023-03-07 14:02:05 +11:00
Feilong Wang 16344a5a95 Add separated CA cert for etcd and front-proxy
Support creating different for k8s, etcd and front-proxy for
security hardening. We're following some best practices[1][2] but
adjusted based on the current Magnum deployment approach.

[1] https://kubernetes.io/docs/setup/best-practices/certificates/
[2] https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-certs/

Task: 40687
Story: 2008031

Change-Id: I523a4a85867f82d234ba1f3e6fad8b8cd2291182
2021-04-01 17:31:34 +00:00
Diogo Guerra 332e2b6fe4 Add CT tags field to the database and API
We noticed that from the user perspective it is hard
to know when a cluster_template provided by the cloud
admin is mature enough for a production release.
This field will allow the administrator to add an
annotation to the cluster template like
{deprecated, recommended, testing} giving further
usefull information to the end user about the
template's life cycle

This patch adds the necessary database column and
API objects to handle the new argument.

story: 2007857
task: 40160

Change-Id: I5d1c4221f089bc5cd12b25f620aa01771a029df9
Signed-off-by: Diogo Guerra <diogo.filipe.tomas.guerra@cern.ch>
2021-02-05 22:45:47 +00:00
Simon Merrick 9b8f155543 Update docs for cluster resource
+ Ensure floating_ip_enabled included
+ Ensure master_lb_enabled included

Change-Id: Idf04b5e0a1be3ef6637a675271174acd6652ae9f
2021-01-21 19:59:53 +13:00
Feilong Wang 8020391e4a [k8s] Support CA certs rotate
Now k8s cluster owner can do CA cert rotate to re-generate CA of
the cluster, service account keys and the certs of all nodes will
be regenerated as well. Cluster user needs to get a new kubeconfig
to access kubernetes API. This function is only supported by
Fedora CoreOS driver.

To test this patch with python-magnumclient, you need this patch
https://review.opendev.org/#/c/724243/, otherwise, you will see
an error about "not enough values to unpack", though the CA cert
rotate request has been processed by Magnum server side correctly.

Task: 39580
Story: 2005201

Change-Id: I4ae12f928e4f49b99732fba097371692cb35d9ee
2020-08-24 16:31:58 +12:00
Andreas Jaeger a7f2e2102d Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

Remove docs requirements from lower-constraints, they are not needed
during install or test but only for docs building.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: Ic07c726697a8ed7d0a837bf0d16feec222e805f1
2020-05-21 17:13:23 +02:00
yangyong 25496654b1 update api-ref for clustertemplate
add param 'hidden' in clustertemplate api-ref,and add param 'floating_ip_enabled' in create clustertemplate request

Change-Id: Idda0267c5396f0406c5d71bfd97bcfb9905e8bb7
2019-10-16 07:58:40 +00:00
coldmoment a6ce4ce674 Delete the ca-rotate api-ref
'ca-rotate' hasn't been supported, 'ERROR: 'rotate_ca_certificate'
is not supported by this driver (HTTP 400)' will be returned.
So, I think we should supply the api after it's realization.

Change-Id: I698b9df3876dd9fa4e1685973762d92ec3a5f7ca
2019-10-07 21:06:13 +00:00
Zuul 57f43c2667 Merge "Update for Storyboard" 2019-09-06 07:41:40 +00:00
Feilong Wang 3b147e368e [api-ref] Add network,subnet and FIP for cluster
Add API ref change for fixed-network, fixed-subnet and
floating_ip_enabled for cluster creation.

Task: 36326
Story: 2006208

Change-Id: I2724934de96de1a348d72bf39ff114e3f323eb9e
2019-08-22 17:58:15 +12:00
Andreas Jaeger 0df6b5be96 Update for Storyboard
This project uses storyboard for new bugs, so fix a few places:

* Fix the "Report a bug" links so that bugs get reported against
  storyboard, not launchpad.
* Update CONTRIBUTING to link to storyboard.

Change-Id: I2760db2e14015407af46ec52ffe4883262ccb5ba
2019-08-02 10:53:32 +02:00
pengyuesheng 749a792eb4 Bump the openstackdocstheme extension to 1.20
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

Change-Id: I1e6e570d4db575d611212198d11ee4b84884ab23
2019-08-01 09:41:35 +08:00
Zuul d3c56b6b90 Merge "Add API reference for cluster upgrade" 2019-06-11 19:07:43 +00:00
Feilong Wang 8cfa24cfae Add API reference for cluster upgrade
Task: 30167
Story: 2002210

Change-Id: I18df7602a7f18128c77452dc8f91bd5e07b8c198
2019-06-07 12:12:36 +12:00
Zuul e53a5ae1ef Merge "Move openstackdocstheme to extensions in api-ref" 2019-05-01 21:03:47 +00:00
Feilong Wang 66c6666a83 Add API ref for <ClusterID>/actions/resize
Task: 29737
Story: 2005054

Change-Id: I5511303c8c08a330bdfc0104290c6f8f1831e4b2
2019-03-24 21:11:50 +00:00
wanghui e94f1a22e6 Move openstackdocstheme to extensions in api-ref
Move openstackdocstheme to extensions. According to the guide below:
https://docs.openstack.org/openstackdocstheme/latest/

Change-Id: I58de11278e0cd203312c910057285800f82eb5d7
2018-03-27 10:41:45 +08:00
Pan a56c14d9f3 TrivialFix: Correcting JSON syntax
Change-Id: I4c82b20d0b2a6ecd6ca997dfc429a3ea60d44048
2018-03-15 06:53:03 +00:00
ChangBo Guo(gcb) 2c3af23e04 doc: Use os_distro instead of os-distro
Glance use os_distro to indicate the operating system distribution[1],
we should use the same name.

[1]https://github.com/openstack/glance/blob/master/doc/source/user/common-image-properties.rst#os_distro

Change-Id: I0f19af858552cc7fa08bac29fdb9986d494e1985
2018-01-11 12:08:10 +00:00
Ricardo Rocha 84006f63d7 Allow flavor_id on cluster create
Add flavor_id as an option during cluster create. If not given,
the default is taken from the cluster template.

Add flavor_id in the Cluster object and use that instead
of the one from ClusterTemplate.

Update both magnum and magnum cli documentation to reflect the above changes.

Partial-Bug: #1699245
Change-Id: Ib60c05cce1cf2639ca4740abdd264403033433f9
2017-12-15 16:32:40 +00:00
Ricardo Rocha 28fff8006a Make docker_storage_driver a str instead of enum
Allow any value to be passed on the docker_storage_driver field by turning it
into a StringField (was EnumField), and remove the constraints limiting the
values to 'devicemapper' and 'overlay'.

Change the docker storage setup to have a generic setup for all drivers with
the exception of 'devicemapper', which keeps its own specific storage config
function. For all others, do the same we already did for overlay (with two
cases for usage of a cinder volume or not) and simply set the storage driver
in the docker configuration to the value provided in the cluster template.

Change-Id: I9aa8f232ce64ece4d439c0a476f463820a499617
Closes-Bug: #1722522
2017-12-14 14:41:09 +00:00
Ricardo Rocha 4fc1588a4c Add labels to api-ref cluster create
Labels was missing in api-ref for cluster create, add accordingly.

Change-Id: I5df3e21e6ff2f80626fe2f84a97cd94e671bcfcc
2017-10-10 20:22:02 +05:30
Ricardo Rocha 446b159349 Allow master_flavor_id on cluster create
Add master_flavor_id as an option during cluster create. If not given,
the default is taken from the cluster template.

Add master_flavor_id in the Cluster object and use that instead
of the one from ClusterTemplate.

Update both magnum and magnum cli documentation to reflect the above changes.

Partial-Bug: #1699247
Change-Id: Id1d973167b381538121583a0a9691304b39e98de
2017-09-27 09:30:18 +00:00
coldmoment 8241fd8e7a Add api-ref about quotas-delete
1.Add api-ref about quotas-delete;
2.Update sample of quotas-update.

Closes-Bug:#1698111
Change-Id: I435a80da7efe9c898782b8eab8744db80928c9c1
2017-06-16 08:17:49 +08:00
Jenkins 04837b112f Merge "Update the 'service-list' api-ref" 2017-06-05 16:41:16 +00:00
Jenkins ea1238047c Merge "Fix html_last_updated_fmt for Python3" 2017-06-05 11:37:56 +00:00
Jenkins a6ddd0df39 Merge "Add 'keypair' to 'list all clusters' response" 2017-06-05 10:57:38 +00:00
coldmoment 0293e75bf3 Update the 'service-list' api-ref
Change-Id: I4d7a2b537425c008592b6d1bfa675d17c600e004
2017-06-05 16:11:19 +08:00
Vu Cong Tuan 802b0b41c2 Fix html_last_updated_fmt for Python3
html_last_updated_fmt option is interpreted as a
byte string in python3, causing Sphinx build to break.
This patch makes it utf-8 string.

Change-Id: Iaf2d32dd0da096bdfe66dd651b371f7552ab4fe6
Closes-Bug:#1693670
2017-06-04 12:09:32 +07:00
coldmoment df7bbf6eb1 Update api-ref about 'ca-show'
Change-Id: Ib1452ec7535a7c6a0769bfef45442f27a266d0c1
2017-05-13 16:09:12 +08:00
coldmoment 93ff4d51e0 Add 'keypair' to 'list all clusters' response
The response of operation 'list all clusters' has a member
'keypair', api-ref doc has no description about it.
Add it to clusters.inc and cluster-get-all-resp.json.
The same to operation 'Show details of a cluster'.

Change-Id: I716175bfc9683a47514172bbc9b177f140fe924c
Implements: Keypair override on cluster create
2017-05-05 17:46:02 +08:00
Jenkins 02bf02f769 Merge "Remove support message for using keypair UUID" 2017-03-22 07:56:48 +00:00
ricolin 1ca8f18015 Remove support message for using keypair UUID
UUID for keypair is no longer supported from heat and nova cli.
This patch suggest to remove the support message from magnum.
Closes-Bug: #1674211

Change-Id: Idb67fc86f067387060a381c9d2d0ed0f8c953c21
2017-03-20 12:51:55 +08:00
yuanpeng cc4940f756 Fix some grammar or spelling de-normalization
Fix some de-normalization of plural forms or grammar

Change-Id: I9e2b5ab7a2744cd730a95e9f53c0ebc5fb696ad9
2017-03-17 17:38:51 +08:00
Andreas Jaeger 7733a2af6f Fix api-ref with Sphinx 1.5
Sphinx complaints about a missing file, fix this with renaming the file
to the intented name.

Treat sphinx warnings as errors to avoid these kind of problems. Remove
the not needed note anymore, this works fine as is.

Change-Id: I3849f788bdea822bf73bb334bf8d230e723e6c5b
2017-03-04 12:14:21 +01:00
Stephen Watson e3c11196b2 Add keypair to api-ref cluster create
Keypair was missing in api-ref for cluster create, so
add it and update example accordingly.

Change-Id: Ibf9280cec7000c1303b7898494fec9f3a2020068
Closes-Bug: 1660296
2017-02-14 15:37:44 -07:00
gengchc2 fecaa22aec Use https instead of http for git.openstack.org
Trivialfix

Change-Id: I3dda5d7d01e548e640aef77aca1402dd268ce0cf
2017-02-07 11:11:22 +08:00
Jenkins ae41b4511c Merge "Resource Quota - API documentation" 2017-01-27 06:08:13 +00:00
Vijendar Komalla 5f951c10c9 Resource Quota - API documentation
Change-Id: I43334ff28ae1bc922c1358957f8609648d447381
Partially-Implements: blueprint resource-quota
2017-01-25 08:56:05 -06:00
Jason Dunsmore a65ef7d3c3 Add an API to rotate a cluster CA certificate
This will give admins a way to revoke access to an existing cluster
once a user has been granted access.

Bumped the API microversion to 1.5 for the new endpoint.

Deprecated policy certificate:get in favor of certificate:get_ca for
clarity and consistency.

Depends-On: Ie960464e45445e195e75b91e8d65a4046eb21e93
Implements: blueprint revoke-cluster-cert
Change-Id: Ief28bef3a79f212acf4166e443a96e5419fbb757
2017-01-23 21:26:05 -06:00
Vijendar Komalla 57c57e891b Magnum stats API documentation
Change-Id: Idf7491ef16aaad744f713bf3c50117f277772e34
Partially-Implements: blueprint magnum-stats-api
2017-01-18 13:48:14 -06:00
Vijendar Komalla 51e833137b Magnum stats API
This change introduces a new /stats REST endpoint that
provide the following basic information;
1) Total number of clusters and nodes for the given tenant.
2) Total number of clusters and nodes across all the tenants.
Follow-up patches include more stats.

Change-Id: Iac0bf9343549de31654545d5b1fd7601e56142a7
Partially Implements blueprint magnum-stats-api
2017-01-17 09:48:54 -06:00
leiyashuai 39095c8933 [Trivial] Fix two typos in magnum.
Change-Id: I796be00d3e32738f93a7847ed304a047d584d5a0
2016-10-20 02:19:45 -07:00
Jenkins 0895f7f92d Merge "[api-ref] configure LogABug feature" 2016-10-13 15:38:53 +00:00
pawnesh.kumar 96b66a227e [api-ref] configure LogABug feature
To report a bug into the magnum project, not default openstack-manuals.

Closes-Bug: #1630524

Depends-on: I51feb6ccdc0fab91a591568866e6801f2bbb319b

Change-Id: I2238ee04b438c4153001da0227d1a848aacd14a8
2016-10-05 14:24:21 +00:00
Andreas Jaeger bd31e7c566 [api-ref] Remove temporary block in conf.py
os-api-ref 1.0 is released, remove temporary block from
api-ref/source/conf.py.

Change-Id: Ia6fa9ca467d2a24850ce3b9221bdd7f05ed94aa5
2016-10-04 00:52:35 +00:00
gengchc2 0078e8501c Fix typo 'duplcate' to 'duplicate' in status.yaml
TrivialFix

Change-Id: I6fcf372767c646204ac6d4428cf85a1430fa72f9
2016-09-23 11:35:15 +08:00