Commit Graph

34 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
Andrey Pavlov b5b0196ee6 Adding statefulsets to ccp status
Change-Id: I993f174109f3d02aa2c5243dce2b82615983876d
2017-03-16 17:05:39 +04:00
Andrey Pavlov 66198b52ae StatefulSets cannot be updated
Change-Id: Iae8f43344f00688a093cddc76d06a338463f2c26
2017-03-07 17:29:01 +04:00
Jenkins 92b827ba0b Merge "Initial AppController integration" 2017-03-06 15:16:10 +00:00
Andrey Pavlov ddf451199c Initial AppController integration
Change-Id: Ic3dc48a93f2cc1a4d3ff3e513b5cfcc545289c6b
2017-03-06 16:28:43 +04:00
Andrey Pavlov e8ce334a9d Store sensitive configs in secret
* secret_configs config group added
* global secret creation added

Change-Id: Ie6a9833cdf73b076e24204d47e5898dfb24de43e
2017-03-06 07:00:03 +00:00
Anastasiya 973ce30def Add action delete command
this command deletes jobs, pods and appropriate config maps

Change-Id: I362322f4d8dd243f3730bdc802512b1a68bd5804
2017-02-15 16:45:59 +04:00
Andrey Pavlov a82271fc90 Fixing ccp status -s when components provided
ccp status -s will show short status of provided components only
(instead of the whole cluster status)

Change-Id: Ib464c4a2eaaf2ab08c19b5e5add4cb79879794cf
2017-01-29 12:57:08 +00:00
Sergey Reshetnyak f665ed6ad1 Add command for showing action logs
Added `ccp action log <action-name>` command for getting stdout of
action container.

Change-Id: Ib4693483e889f69c9392597d71de1f7148ba5cca
2017-01-27 12:03:23 +03:00
Sergey Reshetnyak d5ff9e7eba Add restart policy for actions
User can define two type of restarts for actions "never" and "always".
For "never" will be created pod object without restarts.
For "always" will be created job objects to be restarted until success.

Change-Id: I74afbe2a4bff21df6d28b8f49cdb3080ca8f69b7
2017-01-26 15:50:59 +03:00
Sergey Reshetnyak 966ae060d0 Allow to specify k8s credentials in config
Change-Id: I483f43fbdb2c5e91edc2e0592530da01765c24b5
2017-01-16 16:36:51 +03:00
Jenkins 02050bee2a Merge "Bring back StatefulSet support" 2017-01-13 11:56:23 +00:00
Sergey Reshetnyak 3179511633 Add ccp action support
This patch adds support of actions on existing ccp deployment.
For example actions can run tempest, rotation fernet tokens and so on.
Documentation will be added in another patchset.

Change-Id: If45f1bfb823f2182b0e79ca269c6b0e95066d053
2017-01-12 13:40:41 +03: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
Andrey Pavlov 0e8610510b Enable updates for Ingress resources
Ingress resources can be updated as well

Change-Id: Ibf281e9ac52708dba2cb9479e787b9f616db7629
2016-11-15 16:28:20 +03:00
Yuriy Taraday 02f4efa2fd Add logic to determine whether we should upgrade a component
No actual upgrade is being scheduled yet.

Change-Id: Iad02e250c7a91965f0614912b75a8ecdec03904e
2016-11-12 16:57:17 +03:00
Yuriy Taraday b3e1169b3b Extract get_pykube_object method in kubernetes module
We'll reuse it to get current state for objects we're about to update to
make a decision whether we should do upgrade or not.

Change-Id: I327d1e94eaff179a3975d14d8ad108d70e568eda
2016-11-12 16:57:17 +03:00
Sergey Reshetnyak 0800f10ec0 Show correct url in status if ingress enabled
Change-Id: I0207d8be1394634e5da4c23bb2d15e05044d53fd
2016-11-11 18:10:13 +03:00
Andrey Pavlov 06a012c593 Drop PetSet support
Change-Id: I2547c925671ce411acf68a1e8a2020064aaf8608
2016-11-10 16:11:51 +03:00
Andrey Pavlov 95d2484ed4 Drop DaemonSet support
DaemonSet objects will be replaced with Deployment objects,
but one-pod-per-node rule will be provided with pod
antiaffinity and replicas will be set to number of matched
nodes.

Change-Id: Ieb8ac38e8d4426dd66668dbee303592137ce7fa0
2016-11-10 15:48:16 +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
Sergey Reshetnyak c76ec7a9fe Add status command
status command allows to show deployments and daemonset statuses

Change-Id: Iaf2f7d23b9ad1e54f512c63c224cb79cb78a76f3
2016-10-25 12:34:50 +03:00
Andrey Pavlov e601c50d1a Fixing k8s Service update
* use merged version of old and new objects definitions to
prevent allocation of new NodePort after update.
* objects merge is supported by pykube
* ut updated

Change-Id: Iad88b7ad77a2ec0669d00c62e0439e77de4a6e83
2016-09-21 20:09:06 +03: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
Andrey a069ddb9ac Migrationg to pykube from python-k8sclient
Config changes:
* new `insecure` flag in `kubernetes` group
* `ca-certs` -> `ca-cert`

Change-Id: I4dd91828e7276dc781baea4c6df2c01b2f1312e0
2016-09-16 09:53:16 +00:00
Yuriy Taraday ba606cb2c4 Replace oslo_log usage for getLogger only
It was useless and we're getting rid of oslo.log, so first remove it
from all over the place

Change-Id: Ia6bf6e763fee41d060f6b68ddabf68424a51f780
2016-09-14 23:32:13 +03:00
Yuriy Taraday 2d025a5701 Move all CONF.import_* to config/__init__.py
We're importing all modules from CLI anyway, so we always import all
config modules, spreading this across all modules provides no benefit.

This is another step towards YAML config.

Change-Id: I38e2e8ae7596829311388498df68a048ab1cd981
2016-09-05 17:14:55 +03:00
Yuriy Taraday d9ab3b4ccc Consolidate all oslo_config.cfg.CONF imports to fuel_cpp.config
Also move config initialization to fuel_ccp.config.

This is the first step to replacing oslo.config with YAML-based config.

Change-Id: If1b1faf006b40df95a661ecd00cb744e9fd0aafa
2016-09-05 16:59:38 +03:00
Andrey Pavlov b282b4d3ca Renaming all "mcp" occurrences to "ccp"
Change-Id: Ic5bc5295330450bc925ad01ff204e897118fb881
2016-08-29 11:46:44 +03:00
Sergey Reshetnyak 0c8122fe78 Add functions for getting deployments and daemonsets
Functions needed for show status patch and per component deployment
patch

Change-Id: Ifdbbd64c77738d26287ac5a5bf6dd35c57604247
2016-08-16 12:46:11 +03:00
Proskurin Kirill b643da6247 Updated logging for deploy
Lets make non-debug deploy run more logging clean and friendly

Change-Id: I46e7bd44891004b1118f75a9e54bcd98793bcbab
2016-08-05 14:50:19 +03:00
Andrey 2eeac32d63 Adding ability to export created k8s objects
--export-dir parameter was added to deploy command.
k8s objects will be created inside of this directory
with names <object_name>-<object_kind>.yaml.
Configmap objects will be created under subdirectory
"configmaps"

Objects can be created with kubectl in default namespace:
kubectl create -f <dir>/configmaps/ -f <dir>/
And removed:
kubectl delete -f <dir>/configmaps/ -f <dir>/

To create in another namespace:
kubectl create namespace <ns>
kubectl create -f <dir>/configmaps/ -f <dir>/ --namespace <ns>
kubectl delete -f <dir>/configmaps/ -f <dir>/ --namespace <ns>

Change-Id: I0d33e928526954c7a068118fe6af82a5a0ce4af6
2016-08-01 18:32:23 +00:00
Sergey Reshetnyak e04cc55b1b Add support of dynamic topology
This patch removes support of hardcoded node selectors.

This patch allows to specify dynamic node selection policy via
configs.

If service is not specified in topology config, service deployment skipped.

Selectors works via affinity feature in kubernetes.

Change-Id: I1f8defd90169cd08fd2ac191c3b186efae5da010
2016-07-27 17:29:29 +03:00
Sergey Reshetnyak 5cb0d7a9fe Rename microservices to fuel-ccp
Change-Id: I883f2a583fd3ff497df91c216d4fae6a7b6a6d6e
2016-07-21 13:45:24 +03:00