Commit Graph

79 Commits

Author SHA1 Message Date
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
Jake Yip ab9fe94d53 Remove user docs for Cluster Type Definition
ClusterType Template has been moved to Drivers since Change
I17ba94b0e2000486b5fcbf792991ad98183bd26c. There is no longer any need
to manage drivers since they are now loaded automatically now.

Also removed deprecated config option.

Change-Id: Ie72180b903c0c13b2291482516829bf7d340dd79
2023-03-01 10:34:27 +00:00
guilhermesteinmuller d3d28594b3 Drop mesos driver
The coe mesos has not been maitenaned for quite some
time and hasn't got much attetion from the community
in general. As discussed in the mailing list [1] we
are dropping for now.

In this patch, we start by removing the mesos driver
and its test cases. This part of the code has no impact
for other drivers. Then we can clean up mesos references
that affect the API.

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

Conflicts:
	lower-constraints.txt
	tox.ini

Change-Id: Ied76095f1f1c57c6af93d1a6094baa6c7cc31c9b
2022-11-11 23:01:43 +11:00
Feilong Wang 946c1d67c7 Add master_lb_enabled to cluster
Adding the master_lb_enabled option when creating a cluster,
which will benefit both the cloud provider side and the end
user side. For cloud prodiver, they don't have to maintain
separate cluster templates with or w/o master_lb_enabled enabled.
For end user, they can easily use one single template to create
different clusters with different configs.

Task: 39680
Story: 2007634

Change-Id: I0b586f05168ece84fd340ef7493a56688191053d
2020-07-21 11:07:33 +12:00
Feilong Wang 001b9c6101 Fix label fixed_network_cidr
Now the label `fixed_network_cidr` is not handled correctly, no matter
if the label is set, the default value '10.0.0.0/24' is used for
fixed network anyway. This patch fixes it and renamed it as
`fixed_subnet_cidr` to make less confusion. The new behaviour will be:
1. If the label `fixed_subnet_cidr` is set but no fixed subnet passed
   in, then a new subnet will be created with the given CIDR.
2. If a fixed subnet is passed in by user, then label `fixed_subnet_cidr`
   will be override with the CIDR from the given subnet.

Task: 39847
Story: 2007712

Change-Id: Id05e36696bf85297a556fcd959ed897fe47b7354
2020-06-11 13:54:59 +12:00
Bharat Kunwar 0e58e267d1 Fix ServerAddressOutputMapping for private clusters
Following changes were introduced in Train release:

- Allow setting network, subnet and FIP when creating cluster
  (I11579ff6b83d133c71c2cbf49ee4b20996dfb918)
- ng-7: Adapt parameter and output mappings
  (I45cf765977c7f5a92f28ae12c469b98435763163)

The first change allowed setting cluster.floating_ip_enabled but the
second change introduced ServerAddressOutputMapping conditional on
cluster_template.floating_ip_enabled which leads to an edge case where
if floating_ip_enabled is overriden to False when a cluster is created
when it is True in the cluster_template scope, we see this error in the
conductor logs: ValueError: Field `node_addresses[0]' cannot be None and
the cluster remains forever stuck in CREATE_IN_PROGRESS status despite
Heat reaching CREATE_COMPLETE. This commit addresses this issue by
correctly referring to the cluster.floating_ip_enabled.

Change-Id: Ic83f625178786d4750a66dd6dd6db35c05bc0272
Story: 2007550
Task: 39401
2020-04-15 08:07:56 +00:00
Spyros Trigazis 2f72fdfbf6 Pass ssh public key as string
* Fedora CoreOS need the key to be passed as
  a string.
* We can adopt in all drivers so that users in
  the same project can do cluster resize.

story: 2005201
task: 36934

Change-Id: I9a18ce4dcbd74f0dcd23274baed7c8c3d2029d50
Signed-off-by: Spyros Trigazis <spyridon.trigazis@cern.ch>
2019-10-08 07:56:52 +00:00
Feilong Wang 32989b4f7b Allow setting network, subnet and FIP when creating cluster
When using a public cluster template, user still need the capability
to reuse their existing network/subnet, and they also need to be
able to turn of/off the floatingip to overwrite the setting in the
public template. This patch supports that by adding those three
items as parameters when creating cluster.

Story: 2006208
Task: 35797

Change-Id: I11579ff6b83d133c71c2cbf49ee4b20996dfb918
2019-07-31 20:41:20 +12:00
caoyuan f82c61f856 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: Id89f1eaa80623610594e5945a0b73beee7f09c5a
2019-05-22 16:21:24 +08:00
huang.xiangdong 3cb6226ff0 Support multi DNS server
Using comma delimited ipv4 address list to specify multi dns server
"8.8.8.8,114.114.114.114".

Task: 29465
Story: 2004994

Change-Id: I031247b0cc2ae417f18b2a5b9b3832e78ed9dafd
2019-04-08 23:08:45 +00:00
Lingxian Kong c47fde0cbe Improve floating IP allocation
- Never allocate floating IP for etcd service.
- Introduce a new label `master_lb_floating_ip_enabled` which controls
  if Magnum allocates floating IP for the master load balancer. This
  label only takes effect when the `master_lb_enabled` is set. The
  default value is the same with `floating_ip_enabled`.
- The `floating_ip_enabled` property now only controls if Magnum
  should allocate the floating IPs for the master and worker nodes.

Change-Id: I0a232406deaf112b0cb9e445735d7b49206c676d
Story: #2005153
Task: #29868
2019-03-20 18:44:45 +13:00
Ricardo Rocha 3d04ed4cbb Allow labels on cluster create
Add labels as an option during cluster create. If not given,
the default is taken from the cluster template.

Add labels 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: #1697651
Implements: blueprint flatten-attributes
Change-Id: I8990c78433dcbbca5bc4aa121678b02636346802
2017-08-21 12:27:52 +00:00
Jenkins 34e92a9c54 Merge "[opensuse] Enabling external loadbalancer feature" 2017-07-12 13:59:00 +00:00
Jenkins 2e7e5a7796 Merge "Allow docker_volume_size on cluster create" 2017-06-28 10:21:37 +00:00
sayalilunkad c9e89e9b0a [opensuse] Increase wait_condition_timeout
Seen fails in some cases due to short timeout. This will be a safe
amount of time to avoid failures.

Change-Id: Iabe9751e5d3dba2cb7b57504bf38b55a5c7aba2d
2017-06-27 09:12:49 +00:00
Ricardo Rocha 79039bb419 Allow docker_volume_size on cluster create
Add docker_volume_size as an option during cluster create. If not given,
the default is taken from the cluster template.

Add docker_volume_size 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: #1697648
Implements: blueprint flatten-attributes
Change-Id: Ic6d77e6fdf5b068fa5319b238f4fd98b4d499be4
2017-06-23 11:31:27 +00:00
sayalilunkad 6a5d02c482 [opensuse] Enabling external loadbalancer feature
Adding config to enable OpenStack loadbalancer for Kubernetes
cluster as backend. By default we keep it disabled to avoid having
to inject the openstack credentials in the cluster always.

Change-Id: I02f690b220e933d492671f53724a604a167d5abb
2017-06-02 15:09:42 +02:00
Spyros Trigazis 9f2ff41f19 Add DC/OS dependency installation script
Add install_imagebuild_deps which installs all the required
packages to build a DC/OS image on Ubuntu Xenial machines.

Change-Id: I85c48d91ff0750d90358056a09287dfc1c12faf2
Partially-Implements: blueprint mesos-dcos
2017-06-01 19:14:16 +00:00
Spyros Trigazis a2282131ad Remove disable script of firewalld
I get [1] when trying to build a DC/OS image.

+ sudo systemctl disable firewalld
Operation failed: No such file or directory

Change-Id: I94c1d4c8056526502ad4c17af85209388bed8b21
2017-05-26 11:27:18 +02:00
ashish.billore 866182d799 Add more details to example template
A minor update to existing example template.
Added details about what the example template does and what to
expect from the example template and cluster created based on this
example template.

Change-Id: I53c4b9d0921555fd35fb89a5ef1f8696720c4eda
2017-05-23 15:28:56 +09:00
Jenkins 1ba3192ecc Merge "[suse] Add TLS support for k8s_opensuse_v1 driver" 2017-05-22 05:41:39 +00:00
Michal Jura 902f77a4ae [suse] Build openSUSE Leap 42.1 OpenStack Magnum image
Add information on how to build openSUSE Leap 42.1 image for
OpenStack Magnum with Kubernetes packages.

Change-Id: Ia53b79f14cb5f70b10d81bc13cae32232adca2a9
Partial-Bug: #1622949
2017-05-20 17:41:17 +00:00
jinzhenguo 1198510dbe update doc dcos_centos_v1/README.md
Change-Id: I5b080ce3769407d02c9701d635b25b652933d9cd
2017-05-19 17:58:22 +08:00
Jenkins 4b1e591ab0 Merge "[suse] Add DOCKER_DEV to /etc/fstab" 2017-05-11 15:04:57 +00:00
Jenkins 3848a46b68 Merge "Support dcos installation on centos vm cluster" 2017-05-10 21:53:56 +00:00
Michal Jura 772c3612c7 [suse] Add DOCKER_DEV to /etc/fstab
After kube-minions restart, we would like to have mounted
DOCKER_DEV again on minion nodes.

Change-Id: I3777c3584e00a397f9604eae8ce0f628d2dcb190
Closes-Bug: #1663526
2017-04-27 05:37:07 +00:00
Michal Jura eb67a76b9c [suse] Remove defaults network from child templates
We would like to remove default values for network configuration
from child templates.

Change-Id: I2e24c55d7a0188a0e1e0c82cc1fbea2e79b800ca
Partial-Bug: #1622949
2017-04-27 05:36:52 +00:00
fengbeihong 977f3af83f Support dcos installation on centos vm cluster
This patch provides support for installing dcos on centos using magnum.
A new coe type(dcos) is added. This provides support for vm.
Design spec and steps on how to test can be found in
contrib/drivers/dcos_centos_v1/README.md.

Public agent nodes are not supported now.

Co-Authored-By: fengbeihong (fengbeihong@gmail.com)
Co-Authored-By: vmud213 (vinay50muddu@yahoo.com)

Change-Id: I58b378b4bd6df34fd43307e4252cfbbd9bf593d8
Partially-Implements: blueprint mesos-dcos
2017-04-10 12:05:45 +08:00
Michal Jura 1e2112def5 [suse] Add TLS support for k8s_opensuse_v1 driver
Partial-bug: #1622949
Change-Id: I4e8e8bddd8456c83f1bf1719256ddfca5a2723c4
2017-03-02 11:24:34 +01:00
Michal Jura 43bec106c7 [suse] Add SERVICE_ACCOUNT_KEY to Kuberneres cluster configuration
Change-Id: I18d6598e2f4b68ae7a672b794023e7408b7f8696
Partial-Bug: #1622949
2017-02-21 04:35:59 +00:00
Jenkins 88ddece127 Merge "[suse] Fix flanneld overlay network configuration" 2017-02-20 06:59:22 +00:00
Jenkins f4a66b9485 Merge "[suse] Update security group for kube_masters" 2017-02-07 23:49:52 +00:00
Bertrand NOEL 2a4ad9aa41 Make Kubernetes pods' health checks configurable
Make Kubernetes' kube-controller-manager and kube-scheduler
health checks configurable as a parameter to the cluster-template
(label).
Set their value higher for all deployments. And set their value
to a high number for tests, for the CI.

Change-Id: I65e2da12487c513419125f0525a4e21bac22210e
Closes-Bug: 1648826
2017-01-26 20:02:52 +00:00
Dirk Mueller a9a5381b59 [suse] Fix flanneld overlay network configuration
Change-Id: Iec98aaee2c72bee81937b9554ddcb0abd880c34c
2017-01-14 22:01:12 +01:00
Michal Jura b28218f3df [suse] Update security group for kube_masters
We would like to open following ports on kube_master:
  - for debug handlers kubectl exec and kubectl run commands
      protocol: tcp, port: 10250
  - for application service
      protocol: tcp, port_range: 30000 to 32767
  - for flanneld udp and vxlan backend
      protocol: udp, port: 8285 and port: 8472

Change-Id: Ie40e5c90c0b246960ff94b917f285a810120c340
Partial-Bug: #1622949
2017-01-10 10:07:40 +01:00
Michal Jura d7ed87e9ae [suse] Add min and max to flannel_network_subnet option
Change-Id: I7d5e9a545b9996e0036cd685fea52573416bd82f
Partial-Bug: #1622949
2017-01-10 09:58:24 +01:00
Jenkins 7f5e10a38f Merge "[suse] Update k8s_opensuse_v1 driver" 2017-01-06 16:52:32 +00:00
Michal Jura 07a68dcd95 [suse] Update k8s_opensuse_v1 driver
This change is collecting fixes and updates for k8s_opensuse_v1 drver
  * Fix indentation for bash scripts
  * Fix DOCKER_NETWORK_OPTIONS for configure-docker.sh
  * Add FLANNEL_BACKEND option
  * Update deprecated options for kubernetes services
  * Fix KUBE_NODE_IP option for kube-minions
  * Add kube_version and volume_driver options
  * Sync changes with opensuse Mitaka driver

Change-Id: I33bf90331ff78ed538a55451f6de64c4a576cb2d
Partial-Bug: #1622949
Partially-Implements: blueprint k8s-opensuse-support
2017-01-06 03:26:54 +00:00
Michal Jura 0b1c59b21b [suse] Tune default value for docker_volume_size
Change-Id: I88fa0a21bef34cdca2284ec22f1759736762509f
Partial-Bug: #1622949
2017-01-06 03:24:45 +00:00
Michal Jura df37275fe1 [suse] Setting correct permissions for Kubernetes files
Change-Id: I595dfa66fb37b733bf50b18f52f7b124aa96906b
Partial-Bug: #1622949
2017-01-03 05:40:28 +00:00
Jenkins d30df64f5c Merge "[suse] Allow k8s cluster without floating ip" 2016-12-15 20:35:01 +00:00
Jenkins 8182d7f213 Merge "[suse] add support of LBaaS v2" 2016-12-15 20:34:21 +00:00
Jenkins 7a2ef5957e Merge "[suse] Add proxy config" 2016-12-15 20:30:26 +00:00
Jenkins e58e987449 Merge "[suse] Sync with cluster drivers" 2016-12-15 19:57:09 +00:00
yatin 9b10456a58 [suse] Allow k8s cluster without floating ip
With this patch k8s opensuse cluster can be created
without floating ip.

Change-Id: Id0da2057bcf6b1ad518fed3aadb7141caddc4955
2016-12-14 03:58:04 +00:00
yatin c00d197954 [suse] add support of LBaaS v2
Add support of LBaaS v2 to suse k8s driver.
This patch also allows suse k8s cluster to be created
without enabling LBaaS.

Change-Id: I5de4059aa1185973be1c556a4b7565c62f76f9f9
Partial-Bug: #1622949
2016-12-14 03:57:18 +00:00
yatin 29ca630978 [suse] Add proxy config
Support of proxy for docker was missing in suse k8s
driver, added support of proxy with this patch.

Change-Id: I1dae1177f48a6c770df836e13384f0a9fb7774fc
Partial-Bug: #1622949
2016-12-14 03:56:18 +00:00
Dirk Mueller 089933784e [suse] Fix template descriptions
A lot of changes have been done in descriptions meanwhile
in the inspiration source of these heat templates, so merge
them here as well

Change-Id: I6c58efa430dd7eb4ee069781fcd39ec73bbe5e58
2016-12-13 10:27:41 +01:00
Jenkins 0d9d8b1ebe Merge "DIB elements to support dcos for magnum" 2016-12-07 17:31:58 +00:00
fengbeihong 10e9132bb8 DIB elements to support dcos for magnum
This is a patch to build a centos image to support installing DC/OS as
a magnum coe.

Two elements are included: dcos and docker, only used to build a centos
image.

1. Element docker will install and configure docker in centos.
2. Element dcos will download dcos_generate_config.sh and do some
configurations for DC/OS.

Design spec in contrib/drivers/dcos_centos_v1/image/README.md.

Partially-Implements: blueprint mesos-dcos

Change-Id: I30fa4c102205aa2475b9491398c06da0d1e86f84
2016-12-06 10:10:36 +08:00