2874 Commits

Author SHA1 Message Date
Spyros Trigazis
242cbe00da Mesos-Ubuntu bay driver implementation
Moves templates and template_definitions to the new
directory structure.

Change-Id: I42e4d2bd056f3d8082ef51ef599d917f2fe82960
Paritially-Implements: blueprint bay-drivers
2016-07-06 21:50:14 +02:00
Jenkins
cb99c64614 Merge "Bay driver implementation" 2016-07-06 19:47:52 +00:00
Jenkins
697e435cf3 Merge "Improve unit test coverage" 2016-07-06 14:36:36 +00:00
Jenkins
02291e5914 Merge "Bay_create_timeout should be set to 60 default" 2016-07-06 09:02:39 +00:00
Murali Allada
4080d4a84c Bay driver implementation
Moved all the swarm templates and template_definition code
to the magnum/drivers folder.

Moved base template_definition classes to drivers/common
folder

Change-Id: Ieff57f0f47835c35d9f17c3d7d1b7e6a40907462
Partially-Implements: blueprint bay-drivers
Co-Authored-by: Spyros Trigazis <strigazi@gmail.com>
2016-07-05 22:30:31 +02:00
yatinkarel
2f2971ba62 Move Initialization of variables inside if/else
Initialization of variables: KUBE_PROTOCOL and KUBE_CONFIG is
done inside if/else for better readability and maintainability.

Change-Id: I37dfe57cc1328f1531233d11667a020bb3e0de5b
Partial-Bug: #1500850
2016-07-05 21:36:17 +05:30
Jenkins
2f30cc2952 Merge "Fix typos for Magnum" 2016-07-04 03:03:57 +00:00
Jenkins
c79ff286e7 Merge "Fixed typo for Availability" 2016-07-04 03:03:51 +00:00
Jenkins
6f37fc3912 Merge "Fix typos in resource-quotas.rst" 2016-07-04 03:03:16 +00:00
PanFengyun
f5150078ee Bay_create_timeout should be set to 60 default
Bay_create_timeout default is 0 and means that magnum create bay
without timeout. But heat create stack with timeout absolutely.
So it is impossible to create bay without timeout. And I had send
a patch which allow heat to create stack without timeout, but the
core of heat did not agree with it.
The patch is: https://review.openstack.org/#/c/334138/

Change-Id: Iebc9915dcf2894a2dbed912244a2c7c308b4d9d7
Closes-bug: #1590636
2016-07-03 23:26:32 +08:00
PanFengyun
15841b2faa Fix typos for Magnum
1. greethread  --> greenthread
2. reschduling --> rescheduling
3. technolgies --> technologies
4. montior     --> monitor
5. avaiable    --> available
6. autoscaling --> auto scaling
7. Asynchrnous --> Asynchronous
8. Availablity--> Availability

Change-Id: I94e2e4eeacb72f029754382142696150ffee72ef
2016-07-03 16:20:11 +08:00
Velmurugan Kumar
4ce717751f Fixed typo for Availability
Change-Id: I094dfdc0a922fb864d6978b38a8ef3a0b08105e0
2016-07-02 12:51:05 -07:00
Chandra Ganguly
316089d2b3 Fix typos in resource-quotas.rst
Change-Id: I9b405676b3c6c21c0372feca1b352455d965f25b
2016-07-01 10:19:58 -07:00
Jenkins
3e9302cf4d Merge "Delete certs when deleting bay" 2016-07-01 16:30:53 +00:00
Jenkins
3f657fddd0 Merge "Updated from global requirements" 2016-07-01 09:53:16 +00:00
Jenkins
75415757af Merge "Add Bay Drivers section in user guide" 2016-07-01 09:00:18 +00:00
Jenkins
c551c5f18a Merge "Add fixed_subnet field to baymodel" 2016-07-01 09:00:02 +00:00
Ton Ngo
1f1aa5ab15 Add Bay Drivers section in user guide
This section of the user guide describes how to create and
install a new bay driver. It includes the directory structure,
naming convention, required and optional components, and an
example.

The following will be added later:
- Sample driver
- Installation guide

Co-Authored-By: Murali Allada <murali.allada@rackspace.com>
Partially implements: blueprint user-guide
Change-Id: I68c997c959406f8eeb627683d73ae3818134ca87
2016-07-01 05:37:59 +00:00
OpenStack Proposal Bot
4c2b1ccf3c Updated from global requirements
Change-Id: I5ec00f21fe129e6bcf12d1b62ce2702a59e6b2d7
2016-06-30 18:44:03 +00:00
Madhuri Kumari
e31ef64e6e Delete certs when deleting bay
Currently Magnum fails to delete certificates when barbican
cert manager is used. The code was copied from neutron-lbaas and
they have different usecase. In our case, certificate is managed by
Magnum not users, so we should delete certificates when deleting bay.
So this patch deletes all the certs related to a bay.

Change-Id: I5aab01641b9447153911680c5f68e5fe2c5a1409
Closes-bug: #1587033
2016-06-30 12:40:16 +05:30
OTSUKA, Yuanying
62c75e5883 Add fixed_subnet field to baymodel
Ironic template needs to specify fixed subnet name/ID.
And also user sometimes want to build his cluster on
his network which he built.
This patch adds fixed_subnet field to baymodel to specify
fixed subnet which bay will build on.

Change-Id: Ia21ad6e3e1472a0d078d08369ef62601034fcc17
Partial-Implements: blueprint magnum-baremetal-full-support
2016-06-30 15:16:45 +09:00
Jenkins
4d1d73b90e Merge "Validate discovery url when create a bay" 2016-06-30 01:19:50 +00:00
Jenkins
d18c367a95 Merge "[install] Add obs install-guide" 2016-06-30 00:42:13 +00:00
Jenkins
f11c5a3bde Merge "Modify mesos template to support removal policy" 2016-06-30 00:42:09 +00:00
Jenkins
1107963abe Merge "Delete unused cert_group variable" 2016-06-29 16:36:53 +00:00
Larry Rensing
91d8aa4fc5 Improve unit test coverage
Added unit tests to test_types.py and test_magnum_service.py.  Also, lines
containing abstract methods and 'pass' were being counted in the coverage
 metrics, so those were added to the coveragerc.

Change-Id: I4af7005453b8f843b640661a972b3f1689ed7dd0
Partial-Bug: #1511667
2016-06-29 12:49:40 +00:00
Jenkins
51a40186a1 Merge "Fix typo in create-trustee-user-for-each-bay.rst" 2016-06-29 06:59:56 +00:00
Jenkins
7c98cc7ced Merge "Fix typo in async-container-operation.rst" 2016-06-29 06:59:50 +00:00
Jenkins
eda5500edd Merge "Add Baymodel section to User Guide" 2016-06-29 05:10:22 +00:00
Jenkins
d310a65970 Merge "Add master_lb_enabled field to baymodel" 2016-06-29 05:10:15 +00:00
Jenkins
af7cd43652 Merge "Allow Bay templates to include Heat environments" 2016-06-29 05:05:29 +00:00
PanFengyun
253f0ce48c Validate discovery url when create a bay
Currently when we create a Bay, magnum is not enough to prevent bay creation failure,
due to Invalid discovery url can be referenced and there're no check toward it. We
should check the discovery url before creating bay, a 400 Invalid will be raised if
the discovery url is invalid:
1.the discovery url should be a correct url of etcd cluster.
2.the discovery url should have suitable cluster size.

Change-Id: Ib75f9f2aade18b16dd46035efe139311faf93e1e
2016-06-29 12:03:55 +08:00
Vinay
f1c33e5df3 Fix typo in create-trustee-user-for-each-bay.rst
Change-Id: I3f5a598b8a41617aaa0d27174b665ab6f198468a
2016-06-28 16:46:37 -07:00
Ajay Kalambur
47502d322b Fix typo in async-container-operation.rst
Change-Id: I8864657cdc24744314fe1b8c098b700c768a6ac4
2016-06-28 14:55:24 -07:00
Ton Ngo
c18019e59a Add Baymodel section to User Guide
Baymodel section

This section explains the parameters defined in the baymodel,
along with the values expected and the usage.

Partially implements: blueprint user-guide
Change-Id: I7cf1a2c9110b8ad777aac5e14d46c2323cbcc9f3
2016-06-28 15:52:40 +00:00
Spyros Trigazis
b6df29c559 [install] Add obs install-guide
Tested using:
zypper addrepo -f obs://Cloud:OpenStack:Master/openSUSE_Leap_42.1 Master

Also:
* fix minor typo
* add toctree depth

Change-Id: I83a0cc9bcd2aa660c4109dbafc1b8aff7d60d798
Partially-Implements: blueprint projectspecificinstallguides
Partially-Implements: blueprint magnum-installation-guide
2016-06-28 16:07:18 +02:00
Spyros Trigazis
3e43fbd5b4 Fix file permission in dib elements
After the recent move [1] of diskimage-buidler elements
the permissions where changed making the files non-executable.
Make them executable again.

[1] I98051da7e9c8f7943fb5fe2109989d66b4b03736

Change-Id: I8dc819470c3089beb62a76364d4b6b4ba6e12d34
2016-06-28 09:10:07 +00:00
Drago Rosson
6d10dbf35d Add master_lb_enabled field to baymodel
master_lb_enabled is a boolean field that determines if a bay's master
nodes should be load balanced. Defaults to False.

Change-Id: Icf8317432dec70c99c29a3af9edb0499bfd2439d
Partially-Implements: blueprint decouple-lbaas
2016-06-28 08:41:49 +00:00
Drago Rosson
db61da3f8f Allow Bay templates to include Heat environments
Change-Id: I96ebd1687654193ea8cfbcfb816d9276594400ac
Partially-Implements: blueprint decouple-lbaas
Partially-Implements: blueprint allow-user-softwareconfig
2016-06-28 08:41:41 +00:00
Jenkins
3d5413999e Merge "Updated from global requirements" 2016-06-28 07:59:17 +00:00
Jenkins
10b2588764 Merge "Fix DIB dependencies for >= Fedora 22" 2016-06-27 20:40:21 +00:00
Jenkins
1ea6e38302 Merge "Fix docker storage drivers configuration" 2016-06-27 20:40:11 +00:00
Abhishek Chanda
8a5acbde94 Pass some common cert related arguments to clients
These are used to configure clients when they talk to individual
services

DocImpact

Change-Id: Iba6c6a40fa39da35c239ce2bae850225619ca485
2016-06-27 17:48:16 +00:00
Jenkins
5ec7975f86 Merge "Add x509keypair_cert_manager to store certs in DB" 2016-06-27 15:45:04 +00:00
Jenkins
dbf56a9d77 Merge "Remove K8sResourceBase" 2016-06-27 09:01:58 +00:00
Spyros Trigazis
cfc92b23b0 Fix DIB dependencies for >= Fedora 22
Change-Id: I937382044e06b8c33f13234bbac8602a86098e9f
2016-06-27 10:28:19 +02:00
Spyros Trigazis
3d611db91c Fix docker storage drivers configuration
1. Any existing docker storage driver configuration will not
allow us to apply ours from the heat templates. So, clean
existing configurations.

2. Remove docker storage driver configuration from
diskimage-builder elements.

3. Simplify, devicemapper configuration. It's unnecessary to
pass DOCKER_STORAGE_OPTIONS manually. docker-storage-setup does
it for us and the result is the same.

4. Improve comments in docker storage drivers configuration.

Change-Id: Ia413fe674421a70c68dc3930209970a16b5bfdc4
2016-06-25 20:47:53 +02:00
OpenStack Proposal Bot
d3ab838d18 Updated from global requirements
Change-Id: Icbfddd817cb0317347152bb078f81aa88fd652f6
2016-06-24 03:12:32 +00:00
PanFengyun
bd0b3ecaad Delete unused cert_group variable
'cert_group=root' in make-cert*.sh isn't used anywhere.
so let's remove it.

Change-Id: I3c4f726ec6fc1ba5bb02f5615f9e0999d6ea02cb
2016-06-24 10:48:36 +08:00
Wenzhi Yu
b456cf7a91 Modify mesos template to support removal policy
Add a parameter 'slaves_to_remove' that lists resources to be
removed on stack update. The value will be passed to
removal_policies of the 'mesos_slaves' resource group.

Change-Id: I18fcd0be962dd7414329dcfcad8bb4c79958ee9a
Partially-Implements: blueprint mesos-smart-bay-scale-down
2016-06-23 16:47:42 +08:00