3450 Commits

Author SHA1 Message Date
Randall Burt
759c1b3b2b Move cluster status updates into driver
This is an alternative implementation to:

https://review.openstack.org/#/c/397961

This version implements an earlier proposal from the
spec that adds a driver method for synchronizing
cluster state. This method is optional so that drivers
that do not wish to leverage the existing periodic
synchronization task can do so in whatever manner
they wish and Magnum will not force them to do anything
unnecessarily.

1. add an update_cluster_status method to the driver
   interface
2. implment update_cluster_status for Heat drivers
   using the existing tested logic
3. Remove cluster status updates from the cluster conductor
   in favor of the periodic sync_cluster_status task - this
   should avoid timeouts and race conditions possible in the
   previous implementation
4. Update the periodic sync_cluster_status method to use
   the driver to update cluster status rather than calling
   Heat directly

Change-Id: Iae0ec7af2542343cc51e85f0efd21086d693e540
Partial-Blueprint: bp-driver-consolodation
2016-12-01 19:52:06 -06:00
Randall Burt
7890725c52 Refactor driver interface (pt 1)
Refactor driver interface to encapsulate the orchestration
strategy. This first patch only refactors the main driver
operations. A follow-on will handle the state synchronization
and removing the poller from the conductor.

1. Make driver interface abstract
2. Move external cluster operations into driver interface
3. Make Heat-based driver abstract and update based on
   driver interface changes
4. Move Heat driver code into its own module
5. Update existing Heat drivers based on interface changes

Change-Id: Icfa72e27dc496862d950ac608885567c911f47f2
Partial-Blueprint: bp-driver-consolodation
2016-12-01 09:23:46 -06:00
Jenkins
62046a7f81 Merge "Change several RabbitMQ config settings" 2016-11-11 07:40:26 +00:00
Jenkins
0c1615ef1c Merge "Make cinder volume optional" 2016-11-10 18:25:56 +00:00
Jenkins
ea62e16166 Merge "Remove duplicate AUTH_URL parameter" 2016-11-10 11:54:19 +00:00
Jenkins
58733c92e1 Merge "Change the type of flannel_network_subnetlen to 'number'" 2016-11-10 11:54:13 +00:00
Spyros Trigazis
f82749457c Make cinder volume optional
In the swarm_atomic and k8s_atomic drivers container images are
stored in a dedicated cinder volume per cluster node. It is
proven that this architecture can be a scalability bottleneck.

Make the use of cinder volumes for container images and opt-in
option.  If docker-volume-size is not specified no cinder
volumes will be created. Before, if docker-volume-size wasn't
specified the default value was 25.

To use cinder volumes for container storage the user will
interact with magnum as before, (meaning the valid values are
integers starting from 1).

Closes-Bug: #1638006
Change-Id: I3394c62a43bbf950b7cf0b86a71b1d9b0481d68f
2016-11-10 11:13:09 +01:00
Jenkins
7f297f499a Merge "Updated from global requirements" 2016-11-10 09:31:48 +00:00
Jenkins
ee68ef6d85 Merge "Restart swarm infra containers if deleted" 2016-11-10 08:14:26 +00:00
Jenkins
b21551c2ba Merge "Import environment variables from testenv" 2016-11-10 08:04:31 +00:00
Jenkins
9ea401c55f Merge "remove extra bracket from script in docs." 2016-11-10 06:47:13 +00:00
Paul Czarkowski
1fb355eea3 remove extra bracket from script in docs.
The troubleshooting guide has a python script in it which has invalid
syntax. This removes the extra bracket from that script and makes it
function correctly.  I also added some more specificity for credentials.

Change-Id: I9c8b8f861b4226d9eddca4ab44c811faa89160bc
2016-11-09 14:56:32 -06:00
OpenStack Proposal Bot
b17e21d043 Updated from global requirements
Change-Id: I423b0a49483ffe37349d643d96a8073b75ba8084
2016-11-09 04:17:01 +00:00
Vijendar Komalla
490deb256e Restart swarm infra containers if deleted
Currently a user can accidentally delete swarm infra
conatiners (swarm-manager, swarm-agent). This change is
to restart infra containers if they were deleted/killed.

Change-Id: I4640dfb3dbb4bb6684da86998424936d3128eade
Closes-Bug: #1640312
2016-11-08 15:49:44 -06:00
Drago Rosson
fad39cf881 Remove unused configure-flannel.sh
As of Ica87610b9114bff4277b492de8fe528fe2860108, this file is no longer
referenced by anything.

Change-Id: I01c6f9f86b8c5894e9d7941ead52a4c5c08d38a7
2016-11-07 09:37:02 -06:00
Jenkins
dc3b9de9af Merge "Fix: InvalidParameterValue Exception not raised correctly" 2016-11-07 10:28:32 +00:00
Jenkins
b615d123d7 Merge "Updated from global requirements" 2016-11-07 08:56:11 +00:00
yatin
05aa0ed632 Fix: InvalidParameterValue Exception not raised correctly
InvalidParameterValue Exception was not properly raised which
resulted in Error 500.

Change-Id: I760f4596b8a06ad6eb7eaf7bdf332184e856c22a
Closes-Bug: #1638539
2016-11-07 08:42:05 +05:30
Jenkins
0ac6b2a520 Merge "[suse] configure flanneld on master node" 2016-11-06 14:03:51 +00:00
OpenStack Proposal Bot
1c42c38840 Updated from global requirements
Change-Id: Ia9abaa6978b917b06be43487dd04c210ff7c1b6a
2016-11-06 02:00:06 +00:00
yatin
2eda81c805 Add use of label 'swarm_strategy' in userguide
Change-Id: Iae4d58e55de79707073d2214fed3beccb5bff570
Implements: blueprint add-support-different-strategy-in-swarmbay
2016-11-04 13:12:26 +05:30
Jenkins
71ce4851e4 Merge "add some tests for cluster and clustertemplate api" 2016-11-04 06:56:04 +00:00
Jenkins
0c29e0ac5d Merge "Add user-domain in role creation" 2016-11-04 04:09:29 +00:00
Jenkins
564f4f0ed6 Merge "Support scheduler strategy for swarm cluster" 2016-11-03 15:25:53 +00:00
Jenkins
e9ce9d6137 Merge "Updated from global requirements" 2016-11-03 10:49:23 +00:00
Jenkins
4e5e151699 Merge "Add http_proxy_to_wsgi to api-paste" 2016-11-03 10:40:35 +00:00
yatin
2d160ecfcb Support scheduler strategy for swarm cluster
Swarm cluster can be created by specifying any of the scheduler
strategy supported by swarm. The strategy can be specified
while creating cluster template using labels parameter, Ex:-
--labels swarm_strategy=spread
Supported values for swarm_strategy=spread, binpack, random

Change-Id: If471f10a3b1f955638a77d5afe462aebdeb4277c
Implements: blueprint add-support-different-strategy-in-swarmbay
2016-11-03 12:00:57 +05:30
OpenStack Proposal Bot
2df66c17d5 Updated from global requirements
Change-Id: I81a0798c57ea7b5890162840428e69013a964ad8
2016-11-02 15:33:10 +00:00
Jenkins
ceb59dd1c4 Merge "[suse] Update copyright/ownership information" 2016-11-02 07:26:46 +00:00
Jenkins
66c4f5502b Merge "Use function is_valid_mac from oslo.utils" 2016-11-01 22:15:05 +00:00
Jenkins
7fc0935a3e Merge "Move cluster delete method to driver" 2016-11-01 20:46:49 +00:00
OpenStack Proposal Bot
faf6e6eab9 Updated from global requirements
Change-Id: I228170275c367a4fd3e294c4ade40f439f94fd8d
2016-11-01 13:28:43 +00:00
Spyros Trigazis
67de6c537a Add user-domain in role creation
We must add the user-domain to ensure than the user is from
the magnum domain.

Change-Id: I8defb35f745f7df2e20deea759a43ef1bb47d248
Closes-bug: #1635202
2016-11-01 14:06:44 +01:00
Jenkins
331c835aa5 Merge "Fix magnum cluster-update error" 2016-10-28 12:43:44 +00:00
Deepak
67121813d5 Add http_proxy_to_wsgi to api-paste
This sets up the HTTPProxyToWSGI middleware in front of magnum. The
purpose of thise middleware is to set up the request URL correctly in
case there is a proxy.

Closes-Bug: #1590608
Change-Id: I3f22716575af96aea884bd481c023d394a0b00a5
2016-10-26 10:59:56 +00:00
Dirk Mueller
617d55f9b7 [suse] configure flanneld on master node
The script had a typo that made it never do anything.

Change-Id: I10d50c7c7021d336cfcee790f2e16026c71d80ac
2016-10-25 22:26:55 +02:00
Dirk Mueller
b26c2d4a20 [suse] Update copyright/ownership information
The initial import was a bit of too much of a copy&paste, mildly
reword documentation and reflect copyright statements.

Change-Id: I64d51152e4b0081a7126777a8aedc54f38944502
2016-10-25 22:22:36 +02:00
Jenkins
57e74664d3 Merge "add some tests for db" 2016-10-24 09:42:47 +00:00
fengbeihong
fc55b01678 Fix magnum cluster-update error
Closes-Bug: #1636050
Change-Id: I498b0ff477f451e48a95881b8b63f3840016ac3f
2016-10-24 13:35:59 +08:00
ChangBo Guo(gcb)
024d3d2089 Use function is_valid_mac from oslo.utils
Oslo.utils 3.17 provides same function, just use it.

Change-Id: I5bdcafaa9942e63c6383ffc399204378b2ae67c8
2016-10-21 13:41:38 +08:00
Jenkins
68af88a737 Merge "Remove pod/svc/container object reference from doc" 2016-10-20 07:25:10 +00:00
Feng Shengqin
9bf849d955 add some tests for db
Change-Id: If54be4b9d1e6f2463c13e4b79b0d28de330432f8
2016-10-20 01:27:57 +08:00
Feng Shengqin
757edf629c add some tests for cluster and clustertemplate api
Change-Id: I9d08912aeb023dfc9cfeb7a18f9d8176712a6ead
2016-10-19 02:24:16 +08:00
yatin
bc7315dbb5 Remove pod/svc/container object reference from doc
Change-Id: I073736a0d4d5c1511ee5db9513981ef9dc5f2872
Partially-Implements: blueprint delete-container-endpoint
2016-10-18 16:55:20 +05:30
Jenkins
6b7ebfc36d Merge "Fix failure of systemd service kube-ui" 2016-10-18 05:54:47 +00:00
murali allada
0d6deae21b Move cluster delete method to driver
This patch moves the cluster deletion logic into driver to conform
with the driver spec.
https://github.com/openstack/magnum/blob/master/doc/source/userguide.rst#cluster-drivers

Change-Id: I8a4f9a94b70feddae4a137942bbb98fa36388676
Partially-Implements: blueprint bay-drivers
2016-10-17 20:59:41 -05:00
Jenkins
4e3add12d8 Merge "Remove unnecessary fingerprint of MyObj object" 2016-10-17 09:46:59 +00:00
OpenStack Proposal Bot
f3d57fde91 Updated from global requirements
Change-Id: I4448cd19fba405a6aeee5d7c7c36adcb6ad5243b
2016-10-17 04:06:35 +00:00
Jenkins
2677604cfa Merge "Fix magnum-template-manage" 2016-10-14 07:32:32 +00:00
Jenkins
46c7340657 Merge "Fix typo: clustser-->cluster in python_client_base.py" 2016-10-14 06:40:00 +00:00