Commit Graph

51 Commits

Author SHA1 Message Date
Andreas Jaeger ed1759a2a1 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: Ifb810e26646fcb0018d012f1c9c97ede7a45cce9
2019-12-18 09:47:17 +01:00
Dmitry Ukov 27b2574984 User can add all outofsync tasks to whitelist
Change-Id: Ic73913d72ed5eaecb8a44fad47413ad47d94287d
2017-01-24 13:29:43 +04:00
Dmitry Ukov a04372c872 Make lcmv2 default
Change-Id: Icfe3d74c7b886b354dd7546501b599e72150d4f6
2016-12-02 14:56:24 +03:00
Dmitry Ukov 332b0008a9 Migrations should be added to rpm package
Change-Id: Iba2ffcf8d54d6b532733c367961f52071e47a114
2016-12-02 11:35:21 +03:00
Dmitry Ukov 6d9f6f0579 Whitelist rules bulk deletion
User should be able to specify list of rule IDs to delete

Change-Id: I500aa50af377947e3d59b3dff179ebe3734cf988
2016-11-28 12:24:01 +03:00
Dmitry Ukov e7fe804207 Added support global and cluster overrides
Change-Id: I0188d8f0b1e095d1de20a12b5f9279c9b66d8ff5
2016-11-25 20:11:25 +00:00
Dmitry Ukov dac3b9018b Fixed issues with --key parameter
Added logic for gitrepo object to handle repositories without keys

Change-Id: Icef48dc98a8166ee1f21c0be64b61cad8eab9123
2016-11-25 19:55:45 +00:00
Dmitry Ukov b68ed1576f Removed init repository
This feature is not needed since repositiry structure should be Hiera
compatible

Change-Id: I59b6847af9d470c5bc7ac208d09e5bf68f18ceb1
2016-11-24 12:14:33 +03:00
Dmitry Ukov 57c3662b32 Removed configuration files download command
This is not needed with new approach since extension controls
YAML-formatted files used for Hiera

Change-Id: Iebdda9532594f4fea9a7a21fb68122940fa39cac
2016-11-24 11:07:33 +03:00
Dmitry Nikishov a954afd3bd Refactored filter_changes in fuelclient_audit
Improved code readability

Change-Id: Icdaf42d70cee088422dee805958a5228c4b09dfd
2016-11-18 17:09:09 +03:00
Dmitry Nikishov a2bd542d26 Added default whitelist
Change-Id: I32318739661629d733fde4fb0c168108cf490eb5
2016-11-18 16:59:37 +03:00
Dmitry Nikishov 5d697ffbab Implemented unique constraint for rules
Change-Id: Ia59e2d350af58a0c85269718c704cee0c50a4422
2016-11-18 13:25:02 +00:00
Dmitry Nikishov b5ee1f6d17 Extended whitelist with task name
Change-Id: Id832b0c66256b8808ac17c657c7077b6d2164803
2016-11-18 16:22:49 +03:00
Dmitry Nikishov ec68268b3b Implemented basic CLI operations with whitelist
Change-Id: I4ccf158807099add16a5082d8a461205447d7fa0
2016-11-18 16:12:30 +03:00
Dmitry Nikishov 79a59c52f0 Added changes whitelists to API
Change-Id: I470caeaf0145ad1f967a9ad71fc4b90908509a44
2016-11-18 15:28:47 +03:00
Dmitry Nikishov be68d28707 Added audit-enforce command
This command performs audit run on
the environment, associated with the target
repo. After that, if there are any outofsync
Puppet resources, it performs an enforcement
run, that will sync these resources.

Change-Id: I82721eb5f20383d2c0b7618050ab27517d21d15d
2016-11-18 15:26:23 +03:00
Dmitry Ukov 94372326df Added new logic for deployment data generation
* All files are in yaml format
* Hierarchy is static now

Change-Id: Iccd605d13940457bfb087607ef99f86dd2db76dd
2016-11-14 17:14:41 +03:00
Dmitry Ukov 159301b4fc Introduced v1 LCM logic
This logic will handle ini-file based approach

Change-Id: Ifc892d595cffd0bcef5eca30a82013fa3346a8a2
2016-11-11 13:41:07 +03:00
Dmitry Ukov 82efc7e153 Resources moved to top level of configuration hash
Change-Id: I6884d0eff2c247dd75f76c4d39d7406249201c90
2016-11-10 17:07:19 +03:00
Dmitry Ukov 10837a767a Improved unittests for utils
Change-Id: I3fce26a826fc1e61b4f506a714d4cb53364012b3
2016-11-08 14:52:43 +00:00
Dmitry Nikishov 19fe1fcb17 Added audit run and outofsync commands
fuel2 audit noop starts the
noop run on the environment

fuel2 audit list outofsync
checks the puppet reports of the deployment task and
extracts all the resources, that would have changed
during the actual puppet run.

Change-Id: Ibf2f5467fd6b05cf437f59fdb462bbde14635632
2016-11-02 16:05:55 +03:00
Dmitry Nikishov e1bd7e7244 Moved gitrepo-related commands to a separate file
This commit moves handlers for gitrepo-related commands
from fuelclient.py to fuelclient_gitrepo.py to do 2
things:
- overcome potential shadowing issues (from fuelclient import)
- prepare for introduction of audit-related subcommands, which
  would be placed in a separate file

Change-Id: Ia216205482de210b2a1126b9d62d2359fbf60005
2016-11-01 16:57:41 +03:00
Alexander Kislitsky 910b4ccf85 Documentation and CLI command description fixed
Change-Id: I6a4cf58bfd5250e44363cd4a6895bcc24ea5552a
2016-10-04 10:36:38 +00:00
Jenkins 8b6046f787 Merge "Fuelclient version 10 handled" 2016-10-03 15:21:26 +00:00
Dmitry Ukov 0e58b576b3 Extension performance improvement
* Introduced Git repo stat TTL. This helps to avoid unnecessary fetch
  requests to remote repository
* Configuration file restructured. It's easier to have mapping for file
  name in Git repository on resource rather then vise versa

Change-Id: I222199fc8aa203966a465508d4ecd8477f0fac3e
2016-09-27 17:20:54 +03:00
Dmitry Ukov 40e1ede7b9 Introduced master node management strategy
* Only one Git repository is allowed to manage Fuel master node
* Repo SQL model extended with flag which determines wither a particular
  repo manages Fuel mater node
* Master config mapping moved to a separate section

Change-Id: I7137393a5a42bb57cc14ceb738b18e37251e9368
2016-09-27 11:09:12 +03:00
Dmitry Ukov 5a11df2194 Added data serialisation for master node resources
* Introduced new configuration parser driver
* All drives should be placed in drivers folder
* Master node data are serialised for cluster object

Change-Id: I4ab4b54530272a76337357ce981e2144fb67fd71
2016-09-26 11:30:41 +03:00
Alexander Kislitsky 196f9c2795 Fuelclient version 10 handled
In python-fuelclient >= 10 APIClient was renamed to DefaultAPIClient

Change-Id: Id5ca9217f06dd2804153d15b3e0fae513d635285
2016-09-22 18:00:25 +03:00
Dmitry Ukov 78fec444ad Migrated extension to Fuel 9.1 support
* Added new decorators to handler
* Pipeline updated with method from node deployment info
* Fixed clone via ssh procedure. GIT_SSH_COMMAND is supported noly by
  git 2.3+ but 1.8 is installed on master node

Change-Id: Icfefa281ce8fa549412a6b219f28abb8d84c6dd8
2016-09-19 12:04:23 +03:00
Ukov Dmitry e63ae730a3 Flake requirements
* Added Apache Licence for each file.
* Pep8 fixes

Change-Id: Iba54681c048c612e4b7e5859edf4f3713934f290
2016-09-08 17:02:55 +03:00
Ukov Dmitry bad515ff64 Added possibility to specify driver for config file
Change-Id: Ibcf4d8e0cccb8168387120386b4b7234654aa77e
2016-09-07 15:46:25 +03:00
Ukov Dmitry 1bc180e562 Extension registration moved to utils
* Class decorator is used for registring extension in nailgun

Change-Id: I00f151321f8ab77c2b0c544d3bde25f0962dffba
2016-09-07 15:46:24 +03:00
Ukov Dmitry 0611949240 Unit tests for openstack_config and utils modules
Change-Id: I20e7be8e0d440efb1709f28c9b3b08ef79377de6
2016-09-07 15:46:00 +03:00
Ukov Dmitry 7093112ac7 Fixed bug with node config assignment
* Added debug logging with for config generation process
* Global configuration should be copied for each node

Change-Id: I3b3e26579d9d4181757dea90699ffcace8300113
2016-09-07 15:46:00 +03:00
Ukov Dmitry e021a96831 Bug fix and flake8
* We should bypass deployment data for envs without gitrepo assigned

Change-Id: I00e0d89e1b579eac4430966dbea3de3cf09f31b6
2016-09-07 15:46:00 +03:00
Ukov Dmitry be235c1ac5 Added config download
Change-Id: I59733900e7e779e2d53fa8da6844e1f5bd5f12e4
2016-09-07 15:45:59 +03:00
Ukov Dmitry 24bd5fa03c Fix resource to config mapping
Change-Id: I8f7701ed2aeb9b9c14628ffe16a5e7893277f49a
2016-09-07 15:45:59 +03:00
Ukov Dmitry 879ce77126 Fixed bug with passing private key
* Schema extended with new types and constrains
* user_key parameter should be used

Change-Id: I16d554583f322c742bc47301960df5ee6dc9273f
2016-09-07 15:45:33 +03:00
Ukov Dmitry 96379404a9 Code polishing
* Added logging messages
* User key update private ky for git repo
* OpenStack config files to use are gathered based on resources in
  settings.yaml

Change-Id: I2c48f54d8ec43a99b5354636c6f3f2d361b25b1a
2016-09-07 15:45:31 +03:00
Ukov Dmitry b26dd66bdf Introduced config repo initialisation
Change-Id: I4a2e5d54a7473cd04200b59832df5eba488ccfbc
2016-09-07 15:45:14 +03:00
Ukov Dmitry 5d6c16980c Fixed bug with Git Repo access via ssh
Change-Id: I5c7dee4920ee652a67f42ecba5acbc8857246ddb
2016-09-07 15:45:11 +03:00
Ukov Dmitry 52b230cdbf Introduced Git Repo CRUD for fuel client
Change-Id: I5db4337bb6d8b5b5e261e4099bcb93cb01783db9
2016-09-07 15:45:10 +03:00
Ukov Dmitry 9728a341ce Added resource-config_file mapping
* Introduce settings for extension
* Default settings contain mapping between puppet resource name and
  configuration file processed by this resource

Change-Id: I6f6450a9e737f1d17543e423ff8cbb1e0f144442
2016-09-07 15:45:10 +03:00
Ukov Dmitry 2182f6a737 Fixed typos on migration script
Change-Id: Ica2d5e0efd525eb53e512c0f0fc2dd70b1122c26
2016-09-07 15:45:10 +03:00
Ukov Dmitry ed9b6d5fb1 User can differentiate configs for nodes and roles
* override.yaml file fan be used to configure configs for a particular
  nodes/roles
* Configs for all nodes should be placed in repo root directory
* Parameters in config files in repo root directory will be overridden by
  parameters for roles in corresponding file. Parameters for role will be
  overridden by node-specific parameters.

Change-Id: Ic182302526a944f0f0943f675751a65728685111
2016-09-07 15:45:10 +03:00
Ukov Dmitry 1bd75987b0 Fixed usability issues
* Fixed bug with automatic creation of the directory for repo
* Added requirements
* Updated README with installation instructions

Change-Id: Iac9c08d4fdf1113858a685f7413560325abdefbb
2016-09-07 15:45:10 +03:00
Ukov Dmitry 2ef8444a6f Configuration generation refactoring
* Resource generation moved to separate class

Change-Id: Ie0ec1d05e3009acf8a8ca681b3a06de371427095
2016-09-07 15:44:52 +03:00
Ukov Dmitry dd4432e21c Flake8 fixes
Change-Id: Ie645f7ce6d23f23792b74461d4e83d4ceb3f10e1
2016-08-11 22:27:00 +03:00
Ukov Dmitry ebb2ff8d23 Added config transformation to deployment data
Change-Id: I98bac6ef75381435c02d44864b0fc5bec8010d80
2016-08-11 21:54:37 +03:00
Ukov Dmitry 972f603c47 Introduced validator for handlers
Change-Id: I5a25fee2b28b14624a800f87bd41396c6c371367
2016-08-11 13:20:25 +03:00