Commit Graph

66 Commits

Author SHA1 Message Date
Stan Lagun
4026fd9c9f [Docker] Pod (RC) scaling was fixed
Change-Id: I287cdbed1c3b8f8bad0a80219e108f445ad409b3
Closes-Bug: #1504644
2015-10-10 12:10:06 +03:00
Stan Lagun
17fea01068 [Kubernetes] Action to scale Pod up/down
Change-Id: I6b2737524955b1f72b6a692559d3942cbb60deb7
Closes-Bug: #1449599
2015-10-09 15:54:32 +00:00
Stan Lagun
6659c87a67 [Kubernetes] Delete extra VMs upon cluster scale-down
Change-Id: I9bf45ad6d4ae92c667372d13f6fb94fc23bfb081
Closes-Bug: #1498380
2015-10-09 15:54:26 +00:00
Stan Lagun
c334c5fb66 [Kubernetes] Fix cAdvisor port was not added to security group
Change-Id: I0dd421b918c4bf7c85e9e75404f3876f9328c310
Closes-Bug: #1498879
2015-10-09 15:54:19 +00:00
Stan Lagun
6971ac48bc [Kubernetes] Kubernetes was updated to v1.0.6 and v1 API
Implements-Blueprint: update-k8-to-v1-api
Change-Id: Ie34997dc2aef87226459fa67640e39c08cca0ddf
2015-10-09 17:25:32 +03:00
Stan Lagun
ef413891de Updated Docker and k8s DIB elements
* Kubernetes element was updated to base on v1.0.6
* Docker now has its own repo and has different package name.
  Also it is now installed via downloadable script.
  TODO: Need somehow to fix docker version to 1.8.2

Change-Id: I230e9705cb850e9fb3772a67284561907d4be615
Implements: blueprint update-k8-to-v1-dib-elements
Co-Authored-By: Alexey Deryugin <aderyugin@mirantis.com>
2015-10-07 12:54:15 +00:00
Jenkins
8c7eeb87e4 Merge "Increased etcd member node service startup delay" 2015-09-13 18:29:50 +00:00
Alexander Tivelkov
9ddbfbf1dd Increased etcd member node service startup delay
etcd services on Kubernetes nodes should not start concurrently
or even close to each other, otherwise a split-brain may occur.

This patch increases the delay between service starts from 10 to
30 seconds.

Change-Id: I76a6de47e1fff911373cee1909580be73bf8fb02
Partial-bug: #1494999
2015-09-12 05:32:44 +03:00
Alexander Tivelkov
2da4435439 Fixed an issue occasionally causing an empty config for etcd slave nodes
The script which adds new nodes to etcd cluster now does up to 30 attempts
and fails (returns a non-zero exit code) if none are successful.

A minor performance optimization has been done as well, so no unneeded
waits happen when the command is successful and no temporary files are used.

Closes-Bug: #1494997
Change-Id: Ic0552f388518c119925da902b64797bbf96f979f
2015-09-12 05:22:34 +03:00
Stan Lagun
a4f4876340 Requirements were incorrect for many apps
Many applications had incorrect Require section
with either missing dependencies or with dependency
having wrong name

Change-Id: Id8505fe8de397a3870c92a85c87f437e107e0bab
Closes-Bug: #1491536
2015-09-02 21:21:58 +03:00
Stan Lagun
dfa22c8d20 Fixes availability zone selection
Availability zone was present for master node but not for
minion and gateway nodes which caused error when AZ was
not "nova"

Change-Id: I5b223f20223c2d4d1f2d797f94cd366e206773da
Closes-Bug: #1490575
2015-08-31 18:46:34 +03:00
Kirill Zaitsev
53435ca624 Remove malformed leading character in KubernetesCluster
Also removes trailing spaces in empty line

Related-Bug: #1481748
Change-Id: I91af71a6861a29a07ad6ae9cc8f27c4cf87f39a1
2015-08-20 18:14:06 +03:00
Dmytro Dovbii
f5d67b622d Fix typo in Kubernetes Cluster app
Due to the fact that yaql 0.2 allows to compare the number with a
string there are no errors in this check and method works
incorrectly allowing to application to use port 22

Change-Id: I4e6be454b9ee3d6f5f594856610c201e741f310d
Closes-Bug: #1481748
2015-08-05 13:01:34 +00:00
Alexander Bochkarev
68460692f1 Add Docker Elasticsearch
Elasticsearch is a search server based on Lucene. It provides a
distributed, multitenant-capable full-text search engine with a
RESTful web interface and schema-free JSON documents.

Docker Elasticsearch - https://github.com/tutumcloud/elasticsearch

Change-Id: I9d3ff1ef48036a04383e48a948bc1930a1bdff0f
2015-07-28 15:09:46 +04:00
Henar Muñoz Frutos
7b708fac94 FIWARE Orion docker package
Change-Id: Ie1d62a7ec1db92f486eece2c22c917ee8e853fee
2015-07-21 11:16:48 +02:00
Jenkins
3a908bc463 Merge "Delete unused parameter from Start Docker EP" 2015-07-02 10:12:56 +00:00
Dmytro Dovbii
36bb9cc86a Delete unused parameter from Start Docker EP
Change-Id: I9f0cf09e4f301e39dd15cdc9568da0f1fb36f5fd
2015-07-02 10:23:11 +03:00
Alexander Bochkarev
158f93ad73 Add Docker JBoss
JBoss applications server is a J2EE platform for developing
and deploying enterprise Java applications, Web applications
and services, and portals.

Docker JBoss - https://github.com/tutumcloud/jboss

Change-Id: I981763c95b3f998e750640462a473607d9ee6b32
2015-06-25 18:34:59 +04:00
Alexey Deryugin
b4bb6a2191 Fix missing function call in Docker DIB element
Replace call of undefined function 'lowercase' with standart bash string conversion to lowercase

Change-Id: I7fa4a85058e81afbd72d2f245c66995afc5ce26a
Closes-Bug: #1465282
2015-06-15 14:09:17 +00:00
Alexey Deryugin
0661ee3e30 Update Docker DIB elements for usage with Debian-based images
Change-Id: I319c28b5314f9d8ee070a0cafe10968851adf64c
2015-06-05 13:21:46 +00:00
Jenkins
3f06af663d Merge "Set Docker version to 1.6.2 due to Docker update" 2015-06-04 21:43:46 +00:00
Alexey Deryugin
96701cbcfa Set Docker version to 1.6.2 due to Docker update
Change-Id: Idf9e400191787c4df76011a41c192194fd45b012
Closes-Bug: #1457086
2015-05-28 10:04:55 +00:00
Dmytro Dovbii
0fc2e52dc4 Add Require section to maniest file for all apps
Change-Id: I88d690eab977d54e8272fd66a4b785ee5022a2c6
Closes-Bug: #1446563
2015-05-26 09:41:30 +03:00
Dmytro Dovbii
e882ebbffc Fix GuestBook app
* Fixed name of variable in DockerApplication
class
* Changed creating instance of RedisSlave class

Change-Id: I2e57e0719d6c17b9f4dea3516c508b0a23242cab
Closes-Bug: #1446245
2015-05-14 11:01:20 +03:00
Dmytro Dovbii
f56c8d889e Add messages in cases when scaleUp/Down action execution fails
Change-Id: Id233e69ab0bd4d2fd993b3c52b0ce2754cca5588
Closes-Bug: #1449595
2015-05-08 10:38:00 +03:00
Jenkins
39dc31ae4b Merge "Adds force docker service start" 2015-05-07 16:31:43 +00:00
Stan Lagun
626370becf Adds force docker service start
Despite being started via upstart in rare cases docker service
wasn't available on VM first boot. This commit adds force
server star step

Change-Id: I6fb0d247a4333c9444629c23dbc259de12f05805
Closes-Bug: #1449510
(cherry picked from commit 6944505e75aee39058eb2567f872c3416ca3fd60)
2015-05-01 22:44:47 +00:00
Stan Lagun
39a9001c04 Adds ability to delete docker applications from the host
Application deletion were supported on DSH/Pod but not exposed
in DockerApplication. Once it became exposed number of bugs in
KubernetesPod and DSH became visible.

Change-Id: I33650936a73994668f72348a909b7a51bae2b98c
Closes-Bug: #1446582
(cherry picked from commit a74293e2b4ed5695737066d9154d51a4170b8a80)
2015-05-01 22:44:24 +00:00
vryzhenkin
fbc1ee11f8 Fixed incorrect parameter options of 'publish' field in UI
Fixed incorrect option 'required: true' for UI in Docker
Grafana and Docker MongoDb

Change-Id: Iaf805b5f5bfd5e8eb936d1aaafc88f68eab496b6
Closes-Bug: #1449706
(cherry picked from commit b1ac21fbde177815aae0f450ef1b73fa62845e93)
2015-04-28 19:18:33 +00:00
Dmytro Dovbii
53d928c24f Delete PHP Zend Server app from murano-apps repository
Since Docker implementation of Zend Server is a preview, developers
include a time limited license with it.
Murano-apps repository includes apps which can work immediately
out of box and supporting of license essentially restricts this
ability. So, this app must be deleted.

Change-Id: I70ee12d7d4fa3ec307324b9019bc57ab54903a44
Closes-Bug: #1445087
2015-04-27 14:32:30 +03:00
Jenkins
5d5d55bc57 Merge "Fixes k8s deployment without Replication Controller" 2015-04-24 13:53:01 +00:00
Stan Lagun
cf80a59454 Fixes env validation in k8s 0.15/API v1beta3
for ENV variables parameter name was renamed from "key" to "name"

Closes Bug: #1447948

Change-Id: I2977800eaa8606c934ee33b907a68981753696c7
2015-04-24 13:04:55 +00:00
Stan Lagun
a143180618 Fixes k8s deployment without Replication Controller
UpdatePod execution plan was using field from Pod
definition that was present in v1beta1 API but is no
longer used in v1beta3

Change-Id: Ib57a0e5cc7104d5e1fa39b07644eab182a7fdf45
Closes-Bug: #1447594
(cherry picked from commit a680bf5899e006ff1e3ecf1ee3e3c7cce4a9bebb)
2015-04-24 12:55:02 +00:00
Stan Lagun
b0655459b9 Report correct Node capabilities to k8s
KubernetesCluster used to report 2 CPU cores and 4GB RAM
for each Node no matter what flavor was used for the Node.

This fix adds additional step to ask VM for its real capabilities
and provide those values during Node creation

Closes-Bug: #1447386
Change-Id: I786de0b5fcf5cf094397c8c88b2f03a88326b884
(cherry picked from commit dee685beaba7270b0258c8a5be2d028ecab6d2f8)
2015-04-23 11:09:35 +00:00
Alexey Deryugin
c1660be27e Fix wrong permissions on element files
Change-Id: I106542a3c52657a5cbfcdaac32aa7e1208f5d5a4
2015-04-22 18:50:45 +03:00
Stan Lagun
b1d27539d6 Adds missing DIB element name
kubernetes DIB element was forgotten in readme

Change-Id: Idfc15f692e212111d8610e8feeaef8a7a690e4e2
2015-04-22 12:08:28 +00:00
Alexey Deryugin
a514989c9c Elements for Docker and Kubernetes migrated to murano-apps
Versions for kubernetes components fixed to:
* Kubernetes v0.15
* etcd v2.0.9
* flannel v0.3.1
* confd v0.7.1
* Docker v1.6.0

Change-Id: Ibf4028dc4fbc4568e5de24805669d9caa6d4caf1
(cherry picked from commit cc765433d6878f752a0709b04676de0a96e93c13)
2015-04-22 10:35:09 +00:00
Jenkins
d60d7e4649 Merge "Add Docker App" 2015-04-22 08:46:10 +00:00
Dmytro Dovbii
120ea65419 Add Docker App
This app provide ability to deploy docker container from
image specified by user

Change-Id: I26fb63c286adf63e48919052d590745ecaec84a5
Closes-Bug: #1446153
2015-04-22 03:56:44 +03:00
Stan Lagun
342ef70801 Added missing execution plan
Execution plan to patch existing k8s services to include node IPs
when number of nodes changed and we are not using gateways
or we was using gateways and now we don't

These 2 files were supposed to be in
https://review.openstack.org/#/c/175506/
but I forgot to commit them

Also fixes typo that is already fixed in stable/kilo

Change-Id: I6af644511bf25ae7ae31c88914d33b8c518a4eec
2015-04-22 03:28:37 +03:00
Jenkins
1576a5626b Merge "Add license information" 2015-04-22 00:23:44 +00:00
Jenkins
e4645044e1 Merge "Update for changes in k8s 0.15" 2015-04-21 14:17:48 +00:00
Stan Lagun
c681e2197d Update for changes in k8s 0.15
* Migrated to v1beta3 API
* cAdvisor is now enabled by default
* command line daemon settings updated
* HAproxy template updated for multi-port services
* Better reporting

Change-Id: Iefcbe8073fb35503e2fe2ee5c6bf4610561c3cb6
Closes-Bug: #1446306
Closes-Bug: #1445541
2015-04-20 20:34:02 +03:00
Ekaterina Chernova
53c9a9ad26 Add license information
* LICENSE file placed to every package
* License information is shown during application creation
* License added to every file

Change-Id: I682f3d9a09d0c0b575206d79223c1822c4b94f27
Closes-Bug: #1446121
2015-04-20 19:15:15 +03:00
Dmytro Dovbii
6e0e04f47c Add validators to k8s pod UI
Kubernetes imposes a number of restrictions for the names
of pods and labels syntax.
This patch adds validation of pod name and labels fields.

Change-Id: If93d1cc8750f1550aaa9649fdc012c302560b88d
Closes-Bug: #1445149
2015-04-20 17:10:04 +03:00
Jenkins
7ff496ad14 Merge "Use more clean and simple regexp validator in UI of k8s Cluster" 2015-04-17 10:06:21 +00:00
Jenkins
317af79e6b Merge "Fixes port acquiring logic in DockerStandaloneHost" 2015-04-16 09:36:29 +00:00
Ekaterina Chernova
d44ea97fd3 Add requirements to docker host and k8s cluster
Since now, all flavors that have less than 10 GB disk will
not be added to the possible selection.

Also, unnecessary backslashes were removed.

Change-Id: I0839a4252957acd2be9dddbd335674c22c3d57a5
2015-04-16 08:24:31 +00:00
Stan Lagun
52a4621626 Fixes port acquiring logic in DockerStandaloneHost
Previous code used integer keys in port map. But because
JSON doesn't support integer keys they were converted
to corresponding string representations and were not
found on subsequent deployments

Change-Id: I0477a043854a5ed78545d3b944397cdbf2352bd8
Closes-Bug: #1444681
2015-04-16 03:05:36 +03:00
Dmytro Dovbii
58baa629bc Use more clean and simple regexp validator in UI of k8s Cluster
Old validator was quite strange and difficult.
Validators in another apps also were fixed.

Change-Id: Id191b5e2f260e29113655d9fa034f3fa31d832e0
2015-04-15 19:12:12 +03:00