Commit Graph

162 Commits

Author SHA1 Message Date
Andreas Jaeger 942c19a6a8 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: I9c48f2cfa39e04a629e20cb320caca8fd69758fd
2019-12-18 10:05:09 +01:00
OpenDev Sysadmins dd3d11e643 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:49:14 +00:00
Ian Wienand 875e7201bc Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: I2eecc45d29554825b959b6df1d9d28b30b4e9c8d
2019-03-24 20:36:22 +00:00
Andreas Jaeger 08f2401ddb Prepare for using standard python tests
Add simple script to setup mysql and postgresql databases, this script
can be run by users during testing and will be run by CI systems for
specific setup before running unit tests. This is exactly what is
currently done by OpenStack CI in project-config.

This allows to change in project-config the python-db jobs to
python-jobs since python-jobs will call this script initially.

See also
http://lists.openstack.org/pipermail/openstack-dev/2016-November/107784.html

Needed-By: I32f02e904d36ed21a22a1e535b35a15318e1ee16
Change-Id: I70e83ea22be75e6c31428f56c6e68c49976d1eab
2017-02-08 21:22:03 +01:00
Jenkins 39543011e2 Merge "API documentation" 2016-12-29 11:45:33 +00:00
Alexander Kislitsky 9f3302d26d Resource value modification inhanced in the fuel2
Now it is possible to set whole resource value through fuel2
using --value and --type without --key.

Partial-Bug: #1644814
Change-Id: Iea3c949c86e1376cfdfafbc86f7e3e3a4f5e1516
2016-12-09 12:06:49 +03:00
Jenkins fd2d041f8a Merge "Hierarchy levels API handled in the fuel2" 2016-11-18 18:12:48 +00:00
Alexander Kislitsky 5b0bdef5d2 Nested keys handled for del operation in fuel2
Change-Id: Id484e9a2893779be62e651ab0ef7e489ae53cad6
Closes-Bug: #1642330
2016-11-18 17:44:34 +00:00
Alexander Kislitsky 9fe87d5e2a API documentation
Change-Id: Iaa03a9bbd2e8fc36538048790a7464bd739716e8
Closes-Bug: #1642332
2016-11-18 19:31:02 +03:00
Alexander Kislitsky d434d03c35 Set to nested keys handled in fuel2
Keys operations tests moved from test_resources to
test_resource_key_operations.

Change-Id: Ie29007ed4e0fc046e0e75cbdb020608adf0dfc34
Partial-Bug: #1642330
2016-11-18 15:13:25 +03:00
Alexander Kislitsky 22ea50db29 Nested keys handled for get operation
Nested key can be specified with '.' separator: key1.key2.key3.
Nested keys handled in the API and in the fuel2.
Tests for keys operations moved from the test for resource values
to the test for resource key operations.

Change-Id: I73b5fd9a4a4720a96af351d7e6a7cea14d816f75
Partial-Bug: #1642330
2016-11-18 09:34:11 +00:00
Alexander Kislitsky 70158d0e1f Hierarchy levels API handled in the fuel2
Referecne to level values added to DB model and level marshalling.
Fuel2 commands lvl show, lvl list added.

Change-Id: I11fb465c00c411464d75229fc2f8bffdbb8dcc53
Closes-Bug: #1642326
2016-11-18 09:28:27 +00:00
Alexander Kislitsky ed1760d83e ibpq-dev requirement added
Without libpq-dev pep8 job is failed on psycopg2 package
installation.

Change-Id: Id20dfd28698fe0ce3015bae1213f474b85c9256d
Closes-Bug: #1642668
2016-11-18 11:34:29 +03:00
Jenkins 90a3bcc55a Merge "py33 is no longer supported by Infra's CI" 2016-11-14 13:23:03 +00:00
Alexander Kislitsky 5ce7b8679e Redirects removed from overrides logic
Change-Id: I884a9913f864469eb58e93efb04d5c4e74ed6c47
2016-09-28 17:16:29 +03:00
Alexander Kislitsky bb6c1932a4 Fuelclient version 10 handled
In python-fuelclient >= 10 APIClient was renamed to DefaultAPIClient
Number of saving items decreased in the
test_get_resource_values_effective_lot_of_data
for fix test timeout error on the CI servers.

Change-Id: Icdad2f7acfc6a05684bb2d9e8f73d18a252f20e6
Closes-Bug: #1627944
2016-09-28 14:46:02 +03:00
Alexander Kislitsky 3705aa1526 Fetching effective resource values optimized
Now only required resource values are fetched on calculating
effective values.
Calculation of effective values optimised to use indexed resource
values insead of going throw nested for loop.
Test for fetching values and effective values for 500 items
(nodes) added. Each resource value contains over than 10000 keys.
Logging added to the resource values fetching.

Change-Id: Icea7ece8a2bc6957bcb00c9d90d8cf59e5ca1da0
Closes-Bug: #1626147
2016-09-22 14:12:37 +03:00
Jenkins 3a86b593f4 Merge "Readme file updated" 2016-09-20 13:40:03 +00:00
Jenkins d47a7444ef Merge "Additional redirects on resource name removed" 2016-09-20 13:34:07 +00:00
Jenkins 53acc55e39 Merge "Fix for levels mismatch in set request and environment" 2016-09-20 13:29:00 +00:00
avnish ec7e552985 py33 is no longer supported by Infra's CI
Python 3.3 support would be dropped by
Infra team from mitaka,CI would no longer be testing it,
so projects should drop it also.

Change-Id: I2cccd7ff3ceb24acc7387e0baa6786978b31937b
2016-09-20 15:21:39 +05:30
Alexander Kislitsky 3d9f3d4d4e Additional redirects on resource name removed
We don't need to redirect client if name is passed instead
of the resource id. After redirect we will fetch exactly the
same object. So with redirects we had only overhead with API
requests handling and loading objects from the DB.

Change-Id: Id36de2f961a45c479dbab3dd2e842a5a5a4f71f6
Closes-Bug: #1625223
2016-09-19 18:33:16 +03:00
Alexander Kislitsky 9390d0ad2b Fix for levels mismatch in set request and environment
Error is rased now if nonexistent level specified in the set
resource value request. For instance we have env levels: ['a'].
Request to set resource value with levels ['a', 'b'] raises error
now.

Change-Id: I6ce8dc99b288196092a7e4cf69be9756d5b0f6dd
Closes-Bug: #1624271
Closes-Bug: #1614551
2016-09-19 15:38:10 +03:00
Alexander Kislitsky 5f456cefc8 Output of env creation fixed
Hierarchy levels order fixed in POST environment response.

Change-Id: Iff0b73a8515b9d15c5c531d8691225b97b6460e4
Closes-Bug: #1623907
2016-09-19 15:18:42 +03:00
Alexander Kislitsky 92bfe6979a Readme file updated
Liks fixed. Base tuning-box entities described. fuel2 commands
shortlist added.

Change-Id: I0d3ef11f2ab44a07cf7f0f85152ecffd9015858c
Closes-Bug: #1624422
2016-09-16 15:22:01 +00:00
Alexander Kislitsky d586b3a7cd Lookup path handled in the fuel2
Show lookup parameter added to 'config get' command

Change-Id: I889139c015e469c9b6a5350b7048f8f74062cba0
Closes-Bug: #1623898
2016-09-15 14:27:46 +03:00
Alexander Kislitsky db53fcb187 Delete keys from resource values/overrides handled in fuel2
Keys deletion for values/overrides handled.
Default cliff formatter used for values/overrides operations.
Message on values/overrides set command added.

Change-Id: Ie47ff6a1cb98764447d045816ea6472a0701dcc3
Closes-Bug: #1622600
2016-09-13 20:17:22 +03:00
Alexander Kislitsky 5502205a27 Environments fuel2 command refactored
Standard cliff formatters used.
Environments operations refactored to use TuningBox
errors on object not found error.

Change-Id: I2bf66ec8169fd72dc4abd70ebc56501a58923e8e
Closes-Bug: #1616867
2016-09-13 05:32:53 +00:00
Jenkins fe297395cc Merge "Fix for update/remove fuel2 commands" 2016-09-13 05:24:26 +00:00
Alexander Kislitsky d9671f42e2 Fix for update/remove fuel2 commands
Now update/remove commands return messages on success or error.
Resource definitions operations refactored to use TuningBox
errors on object not found error.

Change-Id: I8bc4590a1ca28207562e03cb347d99801f421ff8
Closes-Bug: #1616866
Closes-Bug: #1619264
2016-09-12 13:44:59 +00:00
Alexander Kislitsky 9656a2d718 Lookup path added to values/overrides
For debug purposes it is useful to know from which level value
or override came. Fetching lookup path debug info can be enabled
by adding parameter show_lookup to the get request.

Change-Id: Ic9e68930a206d36c00212289d6842c2c6eaea09c
2016-08-24 22:27:32 +00:00
Alexander Kislitsky a175c31291 Resource definition operations handled in the fuel2
Common part of implementation for operations extracted to cli.base.

Change-Id: Iaad6e1e4655e5e60b7a97af4d6b07528b6579e65
2016-08-24 23:07:26 +03:00
Alexander Kislitsky 76867c6aa4 Components operations handled in the fuel2
Cascade deletion of resource definitons on the component deletion
fixed. Cascade only on the DB level is not enougth for deletion
referenced objects.
Resources definitions creation is not supported yet in the
component creation call. Resource definition would be able to
add to the component in the create resource definition call.
Update of resource definitions list is supported in the component
creation call.
Standard cliff formatters are used for fuel2 components operations.
Python-fuelclient added to test requirements.

Change-Id: If572f7437f48bdde65de114f6f70af3c071c1d0e
2016-08-24 16:51:09 +03:00
Alexander Kislitsky ca3a669c2d Environments operations handled in the fuel2
Requirement on package six added.
Detailed error description propagated for 404 errors.
Parse of comma separated client params implemented.
Delete and patch operation added to http client.

Change-Id: Id30358f9358047a0a6f6fd23341ab270edfa5874
2016-08-23 17:37:40 +03:00
Alexander Kislitsky d43e782421 Fuel2 resources commands moved to separate package
Change-Id: I06d43bbcc88eb6d1a9e786d2f8af2a6d7a236d06
2016-08-23 13:48:03 +03:00
Alexander Kislitsky f25a724ade Crud operations for hierarchy levels implemented
Only name changing implemented under hierarchy_levels url. Whole
hierarchy change should be performed throught environment update.
Cascade deletion added to hierarchy levels on environment deletion.
Order of hierarchy levels fixed for environments GET requests.
Module levels_hierarchy was renamed to hierarchy_levels.

Change-Id: I0642892b517357ebc95427617413048f4db6fba3
2016-08-22 18:21:16 +03:00
Jenkins 7f3faa3336 Merge "Keys operations for empty levels list fixed." 2016-08-22 15:07:59 +00:00
Alexander Kislitsky 7de9323fc5 Keys operations for empty levels list fixed.
Also made several variable renames in the tests.

Change-Id: I675826f2510b6690f6008fcbce9e08ad610a4fa1
Closes-Bug: #1614551
2016-08-22 13:25:49 +03:00
Alexander Kislitsky 9dcf042e5a API urls changed
Accordingly to REST API best practices we have the following urls
schema:

- /objects - for collection objects operations and new object creation,
- /objects/<id> - for specific object operations.

Change-Id: Ifebc613ab5dac1674a6de488dce5757da2362cd4
2016-08-22 12:25:05 +03:00
Alexander Kislitsky a21d1a1212 Hierarchy removed from level values
We don't need to have duplicate of levels hierarchy in the
level values. Without duplication we can easy change hierarchy
levels in the environment.
Cascade deletion added on level deletion to level values.

Change-Id: I9aded18c93b8c3f0f08e59817d33e7d21ff12d54
2016-08-19 08:24:12 +00:00
Alexander Kislitsky b7369eaa26 Update of resource values/overrides implemented
Now it is able to add, update, delete keys in the resource values
and overrides.

Change-Id: I26a68f40d1c3f36dfbedfd93efaf4f79e86acd85
2016-08-19 08:13:26 +00:00
Alexander Kislitsky b2a878e536 Update of resource_definitions content implemented
Now it is able to add, update, delete keys in resource
definition content.

Change-Id: I9624f97bf35eae15d6a7ddc2d5d42768292db4f0
2016-08-18 14:55:19 +00:00
Alexander Kislitsky 819fb9125a Batch wasn't be used in migration downrade
Change-Id: I87e7f966921dfd729fff15999b3ae384126677c8
2016-08-18 16:02:45 +03:00
Alexander Kislitsky bbbc3d848f Resource values/overrides moved to library
Implementation of resource values operations moved to library.
Filtration of resource definition with respect to envirionment id
implemented.
Implementation of resource overrides operations moved to library.
All business logic finally moved from the app to the library.

Change-Id: If5d14699e56485761ca6c54bd8bbf34dd21e9155
2016-08-17 15:34:26 +00:00
Jenkins c944943450 Merge "Fix for dicts checking in tests" 2016-08-17 15:29:37 +00:00
Alexander Kislitsky df1550183e Fix for dicts checking in tests
When assertItemsEqual is used for dicts only their keys are used
for checking.

Change-Id: Ia15fdf0ed6ff95d7710e61b764b2cd9496a1a9bb
2016-08-17 11:45:15 +03:00
Alexander Kislitsky 9d1ed50a2d Fix for migration scripts
DB upgrade/downgrade scripts don't require keystone authorization.

Change-Id: I5be1b220ac9f038057e131caeeed8888fee9ca90
2016-08-16 15:52:02 +03:00
Alexander Kislitsky 03b9cd3a03 CRUD operations implemented for resource_definition
Change-Id: I22bc4c7ab0d6acb34f3dd6ed10041a582df8d03b
2016-08-16 08:16:11 +00:00
Jenkins 2903aa30a2 Merge "Put, post operations implemented for environments" 2016-08-16 08:15:38 +00:00
Jenkins b154883739 Merge "Move other-requirements.txt to bindep.txt" 2016-08-16 08:05:31 +00:00