Commit Graph

37 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
Jenkins a67f526fcb Merge "Allow to specify parameters for action" 2017-02-27 12:56:59 +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
Jenkins 6e39888989 Merge "Change options for action status command" 2017-02-15 10:32:18 +00:00
Anastasiya ad0f7e0019 Change options for action status command
* 'ccp action status' show all statuses
* 'ccp action status action_names' show statuses
  for actions with these names
* if action with name was not found, exception is raised

Change-Id: Ia7bdb9d8b2d9d15b9881362daaa4c74007b4c155
2017-02-13 13:24:46 +04:00
Jenkins 9275638dd5 Merge "Remove -l param from ccp status command" 2017-02-08 08:16:51 +00:00
Sergey Reshetnyak d717bde142 Allow to specify parameters for action
User can define parameters in action in the following format:

  action:
    parameters:
      - key: some_param
        default_value: value

These parameters can be override using --parameter option. For example:

  ccp action run tempest --parameter tests-set=full

Parameters can be used in config files using the following template:

  {{ action_parameters.some_key }}

Change-Id: I433624acd210ade57fa4d506e988fb6521cc738d
2017-01-31 17:48:45 +03:00
Jenkins c980998c42 Merge "Add force flag to fetch command" 2017-01-30 09:22:36 +00:00
Sergey Reshetnyak 64100ecfe2 Add force flag to fetch command
Force flag allows to cleanup directory before fetching repositories

Change-Id: I71f6522da8f0969387c24c82c121ce81d752ee90
2017-01-30 11:39:04 +03:00
Andrey Pavlov 436655c030 Remove -l param from ccp status command
There's no additional information provided with -l param,
so it can be removed. Also "no cluster" message changed to
"not deployed".

Change-Id: Id0f3cf4b873eb3d5d9e59ed5f7d6fd6fec947887
2017-01-29 13:06:41 +00: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 38c302e48c Print information about runned action
After run action information about action will be printed

Change-Id: I8a2caff84017f99b2d99edd2487ed375c3f57a11
2017-01-27 08:56:52 +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 2c1ff71541 Fetch repos for all action commands
For all ccp commands that uses components we do fetch before launching.
This patch adds fetch for all `ccp action ...` commands.

Change-Id: I9e3964f7c2198714072f8d7fa0e4c3a8e27eb550
2017-01-23 16:44:40 +03: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 2383f9f930 Make ccp commands return failure status in exit status
It's really not cool to have e.g `ccp cleanup` finished successfully but
done nothing.

Change-Id: I6b1c66691feecefc2c4bfaeec8d1c3b284c0b5df
2016-11-30 19:24:27 +03:00
Ilya Shakhat f887cdd599 Sort output of `ccp images list` in alphabet order
Change-Id: I9b97b0689d1519263332e30f1eff409d6981f69b
2016-11-23 17:08:48 +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
Jenkins 03ffb3deb0 Merge "Adding 'ccp domains list' command" 2016-11-11 21:33:13 +00:00
Andrey Pavlov e8fbb82d01 Adding --insecure and --ca-cert options to cleanup
These options are needed when ingress is being used

Change-Id: I5054640478c1b7b9ef511295f9b5cf663616287e
2016-11-11 19:57:39 +00:00
Andrey Pavlov d1c8589529 Adding 'ccp domains list' command
This command will print list of Ingress domains
that need to be resolved in order to make Ingress work

Change-Id: Ie7599d2833fb34facdc66f008fe615a03abd2f33
2016-11-11 22:53:56 +03:00
Sergey Reshetnyak a1db480a04 Make log level modules configurable
Change-Id: I6da854968baf73022c0b16e4dcc49f6c7c4e1394
2016-11-11 15:40:36 +03:00
Yuriy Taraday dbf1b45c4a Add `ccp images list` command
It lists images that match all components or ones listed in command
line.

Change-Id: I6fa9700e562b7ca0ecafd58521ede47dc84b71d8
2016-10-26 16:00:15 +02: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
Yuriy Taraday 855fda0ef3 Change repositories list in config
Allow use to add arbitrary repository to the list.

Change-Id: I7895a9a66d4499aabcd5eb9bd037e5b2bc1fa83c
2016-10-11 17:16:33 +03:00
Yuriy Taraday a2fb1c0b27 Add 'ccp config dump' command
This command dumps current config with all default vaules omitted from
original config

Change-Id: I4fda39903330452780c898be0cfae1c249e5f527
2016-09-28 21:52:54 +03:00
Yuriy Taraday f34b2a909b Remove adhoc calls to get_global_parameters
Replace them with storing data from components centrally in global CONF
and using it all over the place.

This allows to centrally control how configs are handled, i.e. if we
decide to not use defaults anymore, we can just remove
load_component_defaults from cli module.

Change-Id: Id58bb43a7a9cbb367719ba59484bf3121ec68379
2016-09-27 19:33:55 +03:00
Yuriy Taraday 06d4b69180 Enable deferred_help in cli
This turns of implicit conversion of 'ccp <cmd> --help' to 'ccp help <cmd>'
to provide user with help on specific command instead of list of common
arguments.

Change-Id: Id8278b908d6e4c61fde71772a2c6e2c65104560b
2016-09-23 15:53:43 +03:00
Yuriy Taraday 8c15db503d Switch to cliff
Added all commands and basic app for cliff, removed all
legacy/compatibility stuff around CLI.

Config file CLI argument and logging will be fixed in separate commit.

Change-Id: Ib52b4c139c2ac9ea5afa073febcd764edced1464
2016-09-19 15:41:32 -07: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
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
Sergey Lukjanov 78c38f4c5f Pass project name to oslo.config
We don't need to pass args, they will be taken automatically, but we should
pass the CLI name, so, it'll do some implicit magic, for example, it'll read
by default config file from /etc/ccp/ccp.conf

Change-Id: I7cf4468eb90cb007f98a1c4008a5a57e519d6530
2016-08-31 10:18:14 -07:00
Andrey Pavlov b160eb3f95 Per-service deployment implementation
Changing per-repository deployment to
per-service

This change affects "ccp deploy" command:
now -c/--components argument takes services
names instead of repositories names

Change-Id: I236bb957a7b93e21ed05fec9b1cab2a27d87d5f4
2016-08-19 12:45:04 +03:00
Dmitry Russkikh 7fd5e5203d Add show-dep command
Usage:
ccp --config-file=<path_to_config> show-dep <component_name>

show-dep command will show dependencies for specified component

Change-Id: I51e968a225b21d17986e6cd1796e567184b7ff09
2016-08-17 10:34:05 +00:00
Andrey Pavlov c80d70b8a7 Adding cleanup script
Consists of two parts:
1) OS cleanup:
Instances, subnets and networks from all OS
projects will be removed.
2) K8s objects cleanup

Usage:
ccp cleanup --auth-url <auth_url> --skip-os-cleanup

--auth-url parameter is optional, by default
it takes internal keystone url, whick is not
appropriate in some cases.
--skip-os-cleanup is optional

Note: do not use default namespace for deployment
because it could not be cleaned up by cleanup command

Change-Id: I53f59d9ca8de09ac33e37c90dacf821dda72afec
2016-08-05 12:53:02 +03:00
Sergey Reshetnyak 5cb0d7a9fe Rename microservices to fuel-ccp
Change-Id: I883f2a583fd3ff497df91c216d4fae6a7b6a6d6e
2016-07-21 13:45:24 +03:00