Commit Graph

35 Commits

Author SHA1 Message Date
Andreas Jaeger 24120d7b66 Retire repository
Fuel (from openstack namespace) and fuel-ccp (in x namespace)
repositories are unused and ready to retire.

This change removes all content from the repository and adds the usual
README file to point out that the repository is retired following the
process from
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project

See also
http://lists.openstack.org/pipermail/openstack-discuss/2019-December/011647.html

Depends-On: https://review.opendev.org/699362
Change-Id: Ibd0360edc1781ea748a1ef28877c215bb4c726c7
2019-12-18 09:38:32 +01:00
Mikhail 269812a0e4 Provide ability to run preStop command
Change-Id: Ia6b7db68980d99555f23c0c568b6b9cf34b70968
2017-03-24 09:50:56 +04:00
Andrey Pavlov 50459c99aa Adding headless service
Change-Id: Ie4ccbe0633d66468b722af872376e19141514580
2017-03-10 15:20:53 +04:00
Andrey Pavlov 18414f5f35 Adding scheme field for probes
Change-Id: I4dbcac825f319c6c202018f59a45de9ecbb377cc
2017-02-15 18:53:09 +00:00
Jenkins 15e984e6dd Merge "Secret support" 2017-02-14 10:16:37 +00:00
Peter Razumovsky 35b7e1f5a7 Add validation for nodes configs section
Add check for nodes configs section - it should be a dict.

Change-Id: Ie0114881aca4f62cfd50ff5358808765aa2924f8
2017-02-10 11:17:49 +00:00
Dmitry Klenov 80447e7411 Secret support
Support of k8s secrets is introduced. To create a secret, put
an additional section 'secrets' to the definition
of the service:

secrets:
  name-for-reference:
    type: "Opaque"
    data:
      "file1": "some content"
      "file2": "another one"
    secret:
        secretName: name-in-k8s
    path: /where/to/mount

You can reference to this secret from the container definition:

daemon:
  secrets:
    - name-for-reference

The referenced secret must be defined in the 'secrets' section.

Change-Id: Iaaede4ccb94c99d70f3ecad040d5ab6c41428c5e
Partial-Bug: #1651392
Partial-Bug: #1651394
2017-02-02 09:43:22 +00:00
Andrey Pavlov 714fff4f79 Remove NodePort validation
NodePort port range can be changed on apiserver start.
Operator should care about proper configuration.

Change-Id: I56bc33be0e3894c8b311be251a078a1578001f34
2017-01-27 12:48:57 +03:00
Jenkins 02050bee2a Merge "Bring back StatefulSet support" 2017-01-13 11:56:23 +00:00
Andrey Pavlov 4f697982a9 Adding ability to specify image for single commands
DLS version was bumped to 0.5.0

Change-Id: I82e910f11c1033ff24d48087329c46691600699b
2017-01-11 13:06:38 +00:00
Yuriy Taraday 968a65fbf2 Bring back StatefulSet support
It's based on previous wotk on PetSets, but is adapted for
Kubernetes 1.5.

Change-Id: Ia1a18503514c2bfd6d90e6e265df33ede61e74d2
2017-01-10 14:00:31 -08:00
Krzysztof Szukiełojć cca092e303 Adding Support for Annotations in DSL
Full Annotations support for pod and service is needed for setting
extra options in kubernates for users.

Change-Id: Icbde776e5e8b44cfabe752fb43cab2ed9978ffe5
2016-12-21 12:50:06 +01:00
Andrey Pavlov d318db272a Adding antiAffinity field to DSL
* global and local antiaffinity support added
* dsl doc updated
* dsl version bumped to 0.2.0

Change-Id: I832b00e75bc546f7de1446d660f178c58dc3b1b4
2016-12-09 17:56:59 +03:00
Andrey Pavlov 2ffb9d57d0 Adding dsl version validation
* service version validation added. It will be executed before
  deployment and as part of validate command for service
  definitions.
* dsl_version field now is required field
* initial dsl_version = "0.1.0" added
* doc describing dsl versioning added

Depends-On: I0abe9781300c794d690b0822fc2a857db3ca8ea5
Depends-On: Ib755efe784a1c4bc04fb49827baa268513dd27e1
Depends-On: I62520035507ca7c5ac97a0e34062fa9eac26e2f6
Depends-On: I9afb7143dc876b839297c5bf5c03b156e0daa8c2
Depends-On: I5a05d2538a3315ce2e652219a6cd5aead9c7d617
Depends-On: I4a0c00b40b2af4f213daf7e43419dd46951fc4bc
Depends-On: Id988118f78fcdfe0599abe27959590f56f3617d3
Depends-On: I965814b147179435ef2cf94abc362df866495f8f
Depends-On: Ic9e4e79e848ab944e5910b57cc5cd524f1f97ae0
Depends-On: Ic8d9c334ac57a13066db38562423523bd23b671f
Depends-On: I581b587d36e03d60c5fb04e7dbf0c184c992b526
Depends-On: I4d4b9f363138b85198222ac2e770930ce7bd6ab5
Depends-On: I1728ee34eef02668cb54b1f54291a66d609dd6c4
Depends-On: I4d4b9f363138b85198222ac2e770930ce7bd6ab5
Change-Id: I220d99e76220c124d782c97de51112869c727148
2016-11-22 17:30:12 +03:00
Andrey Pavlov ffcca5b14b Adding 'version' field to service schema
This is the first step towards dsl version validation

Change-Id: Iddb02f88e47e53f8f7233f76ec1afe161c185a86
2016-11-22 13:16:16 +03:00
Yuriy Taraday af2ee6477b Adjust validation to pass through complex readiness probes
We need to pass complex (dict-based) readiness probes through to
entrypoint to handle.
Keep backward compatibility with old oneline readiness probes for now.

Change-Id: I2e8aaeeabcb0c2ddfcf605008763a7a938a578b4
2016-11-18 19:58:43 +03:00
Andrey Pavlov 8aa4dec122 Adding "strategy" field to service definition
RollingUpdate cannot be used for some services upgrade, so
Recreate type was added.

Change-Id: I39f1d801efeda9c073c895f8281a6ecc768f7bf7
2016-11-10 16:54:31 +03:00
Andrey Pavlov 06a012c593 Drop PetSet support
Change-Id: I2547c925671ce411acf68a1e8a2020064aaf8608
2016-11-10 16:11:51 +03:00
Jenkins 3934f41f26 Merge "Add dockerfiles validation" 2016-11-08 10:32:33 +00:00
Yuriy Taraday 35a9378c6c Add dockerfiles validation
The validation takes 2 steps:
a) render Dockerfile.j2's;
b) verify that all images have parents except ones that are listed in
   base_images config parameter.

This validation ignores list of components because we have repos without
services (debian-base, openstack-base).

Change-Id: I0fd9fb0382b860f04e12993e350c7c23fbcdfda7
2016-11-01 15:47:17 +03:00
Andrey Pavlov 6145a0078d Add minimal PetSets support
We need to run multiple memcached instances for scale and performance
and the best approach for doing it is to support PetSets.

Change-Id: I42c9f82508ed7f42df01b467f45531b67b52b054
2016-10-30 19:10:11 +03:00
Andrey Pavlov 81ef1646a7 Adding Ingress support
* ingress support added

port:
  cont: 123
  ingress: test

* two config params added:

configs:
  ingress:
    enable: False
    domain: external

Ingress will be disabled by default

Change-Id: Ic621af6930f078eea17fd83fce26b42cd32ecf01
2016-10-27 17:09:56 +03:00
Andrey Pavlov 797fb484fe Ports configuration refactoring
* regex ports validation was removed
* ports configuration has been changed:
before:
  port: 123:3333

after:
  port:
    cont: 123
    node: 3333

Change-Id: I54ab8dd02fc88b821a1f0d05c08f98b618730150
2016-10-26 19:47:34 +03:00
Andrey Pavlov 5afa8e9ef2 Fixing service validation based on jsonschema
Change-Id: I3a0397c3c20feba18138e1e9b5820229f316cf9b
2016-10-26 15:40:03 +00:00
Jenkins 294fbf7dd3 Merge "Add basic support of http liveness probe" 2016-10-26 13:48:11 +00:00
Aleksandr Mogylchenko 005af64de8 Add basic support of http liveness probe
This commit adds http probe, changing our templates. Probe can be
specified as follows (for example):
---
liveness:
  path: "/_status/"
  type: "httpGet"
  port: 8080
  initialDelay: 10
  timeout: 1
---

Old exec checks should be now defined as follows:
---
liveness:
  command: "true"
  type: "exec"
---

Timeouts are optional, and default values are
timeoutSeconds: 1
initialDelaySeconds: 10

Change-Id: I920029d4cb14981427e7f978778506fb0b69c435
2016-10-26 13:44:37 +02:00
Andrey Pavlov ea39cbe1ee Replacing "host-net" with "hostNetwork"
Replacin "host-net" flag of service definitions with "hostNetwork"
flag to align with k8s field definition.

Change-Id: Iac7674fb2bfa214f9d027479d8934411c9bb535c
Depends-On: I2ce416d0d44aea43a1b32ae88484bb51c7608e25
Depends-On: I72c8ecef3d009d72d5a8f7f8b847199e3ac184dd
2016-10-25 23:52:05 +03:00
Andrey Pavlov 6885730b6e Changing "daemonset" flag in service def to "kind" param
We want to alling with k8s definitions and it would be more convenient
to have one param instead of several flags.

Change-Id: I2db5a09dba5af508ad0f40f3c17ab22395e86576
Depends-On: I378f7fd3e89ac12e9f6d16fca3591d09ff33d4f9
Depends-On: Iecff0370dbec342779b0d07a96b84a196522ca77
Depends-On: I44b62597413322846c1ac538df860175ba560956
2016-10-25 10:30:56 +00:00
Proskurin Kirill df7db3963f Add hostPID option for pods
This feature is needed for nova-libvirt pod
restart without killing the running VMs.

Change-Id: I25963490faf3f17b3eb1752ce2ae0ec2ae531d93
2016-10-21 10:23:32 +00:00
Andrey Pavlov 54df9dd06c Fixing port number regex
* it is now possible to define node port
* few unit tests added

Change-Id: I8d5bd5fd1537e632238e4285f3483620b7501680
2016-09-30 19:18:31 +03:00
Yuriy Taraday b722dd7a28 Fix issued with validation part
* fixed one implicit relative import (doesn't work on Python 3.x)
* remove using getLogger from oslo.log (removed everywhere else in
  previous CRs)

Change-Id: I4dc2d18ee89de0b088503233498b8f3df2c44b80
2016-09-19 20:16:09 +03:00
Jenkins 0a998b1dd4 Merge "Adds validation for role object" 2016-09-17 01:05:58 +00:00
Andrey Pavlov 6a864bb4ba Basic updates of k8s resources
* no new commands/flags implemented - if object already exists,
it will be updated
* only Deployment, ConfigMap, Service can be updated
* if deployment spec was not updated, but related configmaps were,
deployment will be updated
* deployments will be updated with RollingUpdate strategy

Change-Id: If8fe78d6bea95b11d87f243cadc79490736745e7
2016-09-16 13:05:15 +03:00
Dmitriy Ukhlov a0920583f0 Adds validation for role object
execute "fuel-ccp validate {type,}" to validate specified types
for component repositories. If type list is not specified - validation
of all available types will be performed.

This patch supports only validation for "service-def" type.

Also service validation is added before each deploy action.

Change-Id: Icf34c722ba441537b213671f93f9d322d3a8325a
2016-09-16 11:52:27 +03:00
Andrey ac8f3ec3ab Adding validation for per-service deploy
* check that components names are correct
* check that requested componets are not deployed
* check that all required components already exist/requested

Change-Id: I110eb8cdb8c450e9fd6b6cd8726a27bf1a7d4ac8
2016-08-23 14:35:44 +03:00