Commit Graph

78 Commits

Author SHA1 Message Date
OpenDev Sysadmins 60c1cbf158 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:51:44 +00:00
melissaml f8fc0a3b82 fix link
Change-Id: I85866c70611ea297f5742ae9bf199079800cf197
2018-04-17 02:36:30 +08:00
Zuul 281951c54a Merge "Replace LOG.warn with LOG.warning" 2017-12-29 01:07:23 +00:00
Nguyen Van Trung a3772e2398 Replace LOG.warn with LOG.warning
logging.warn is deprecated in Python 3 [1].

[1] https://docs.python.org/3/library/logging.html#logging.warning

Change-Id: I6fb11cca467bdf54038e1d1ca2e46247c572ce99
2017-12-18 14:59:18 +07:00
Gage Hugo 0ab3e5c7a4 Correct import of keystoneauth1 session
keystoneclient.session has been long deprecated in favor of
keystoneauth1.session. This change corrects the import to use
keystoneauth1.session instead of keystoneclient.session.

Change-Id: Id792bc82fcf850408e5425f06767f0f65e322e49
2017-11-27 19:21:30 +00:00
Zuul 4cbc6e1f9c Merge "Migrate .testr.conf to .stestr.conf" 2017-11-27 19:19:54 +00:00
Andreas Jaeger 7c1e759e4d Remove setting of version/release from releasenotes
Release notes are version independent, so remove version/release
values. We've found that projects now require the service package
to be installed in order to build release notes, and this is entirely
due to the current convention of pulling in the version information.

Release notes should not need installation in order to build, so this
unnecessary version setting needs to be removed.

This is needed for new release notes publishing, see
I56909152975f731a9d2c21b2825b972195e48ee8 and the discussion starting
at
http://lists.openstack.org/pipermail/openstack-dev/2017-November/124480.html
.

Change-Id: I44534ae7990efb3c2cc1abb0fa5dd2e26a5d3142
2017-11-17 10:30:01 +01:00
Gage Hugo d73fc14b1b Migrate .testr.conf to .stestr.conf
With the latests changes to os-testr[0] it now expects a
.stestr.conf file instead of a .testr.conf file. This
change migrates .testr.conf into .stestr.conf and adds the
new testing directory into .gitignore.

[0] http://lists.openstack.org/pipermail/openstack-dev/2017-September/122135.html

Change-Id: I1ff2f4d0c719b0947da70b21cbbfc9e74be76047
2017-09-26 15:53:24 +00:00
Chris fb512cd3ab Refactor valet_plugins
Part of support for nested stacks and updates story

To add nested stack support to Valet, make up for missing Heat resource
Orchestration IDs in nested resources by generating a subset of Heat
stack lifecycle scheduler hints for each resource in advance, store
them as opaque metadata in Valet, then leverage the metadata at Nova
scheduling time. Make additional accommodations in anticipation of
complexities brought about by adding support for stack updates.

To add a minimally viable amount of Heat `stack-update` support to
Valet, significantly restrict the number of update use cases using a
set of acceptance criteria. Skip holistic placement at `stack-update`
time in favor of Valet's existing re-plan mechanism, placing or
replacing resources one at a time, albeit still in consideration of
other resources in the same stack hierarchy.

Change-Id: I4654bcb4eacd5d64f76e262fe4c29553796e3f06
Story: #2001139
Task: #4858
2017-08-28 11:42:32 -05:00
Jenkins 8444b286c1 Merge "Adding packaging and debian instructions" 2017-08-17 15:41:56 +00:00
Jenkins 14e402278e Merge "Refactor Optimizer" 2017-08-16 20:35:54 +00:00
Joe D'Andrea 3aa88d65ad Refactor Optimizer
Part of Support Nested Stacks and Updates story

To add nested stack support to Valet, make up for missing Heat resource
Orchestration IDs in nested resources by generating a subset of Heat stack
lifecycle scheduler hints for each resource in advance, store them as opaque
metadata in Valet, then leverage the metadata at Nova scheduling time. Make
additional accommodations in anticipation of complexities brought about by
adding support for stack updates.

Change-Id: Ifed5b0f8172e522caf7e520f8131f23d4d336f4f
Story: #2001139
Task: #4855
2017-08-16 15:16:56 -05:00
Jenna Kleiman aba24df431 Implement Tempest Scenario Tests for Stack Updates
This change contains some of the new Tempest scenario tests to be used for
testing the Valet stack update functionality. Specifically, these tests ensure
that non-valet heat stacks are still working when Valet is in place.

Change-Id: I8de4a54f90b768a24767e0ab3317aa348462a0f8
Story: #2001139
Task: #4860
2017-08-16 14:11:25 -05:00
Omar Rivera 285e4297df Adding packaging and debian instructions
Creates 2 debian packages from source.
    aic-valet-core (main pkg: API, engine)
    aic-valet-openstack-plugins (heat lifecycle plugin, nova scheduler filter)

Change-Id: I473ca046c432cd3383388987e1fe7e5a737e8ddb
2017-08-16 14:02:15 -05:00
Jenkins 8d11af2357 Merge "Tempest changes to support stack updates" 2017-08-16 14:36:03 +00:00
Jenkins b00d826f7b Merge "Tempest tests for nested stack templates" 2017-08-16 14:33:14 +00:00
Jenkins 65d93c4ed5 Merge "Update the API and database models" 2017-08-11 18:57:06 +00:00
Joe D'Andrea 68c9b65598 Update the API and database models
Part of Support Nested Stacks and Updates story

To add a minimally viable amount of Heat stack-update support to Valet,
significantly restrict the number of update use cases using a set of acceptance
criteria. Skip holistic placement at stack-update time in favor of Valet's
existing re-plan mechanism, placing or replacing resources one at a time, albeit
still in consideration of other resources in the same stack hierarchy.

Change-Id: Id44819f1b69dc2da2b026bdbf3d9c93fed9adc11
Story: #2001139
Task: #4856
2017-08-08 11:38:52 -05:00
Jake Carlson e96289acc2 Refactor the Resource Manager
Part of Support Nested Stacks and Updates story

Enhance the definition of data center resources and improve update collections.

Change-Id: I7843e589109ca7e5ab98265a19850c34ab1ad8f8
Story: #2001139
Task: #4857
2017-08-08 08:12:07 -05:00
Chris cf9285321e Tempest changes to support stack updates
Updates to tempest testing for the old tests to support
new nested stacks and updates changes.

Change-Id: Ib3dd51f41bf5acbd5ce28f400a4e8be51c480751
Story: #2001139
Task: #4859
2017-08-07 21:32:34 -05:00
Joe D'Andrea 67bb662b9d Tempest tests for nested stack templates
Contains the new Tempest scenario tests for testing the Valet
nested template functionality.

Change-Id: Ic78a93e65b6613e4dbb3ae59bce158bb1303c826
Story: #2001139
Task: #4861
2017-08-07 21:09:35 -05:00
Omar Rivera c03eb9873e Remove unecessary files
Change-Id: I38761dd7e93cf83b5c2df364b545a49603077074
2017-06-22 10:11:40 -05:00
Cliff Parsons bac30ca8a7 Valet Devstack Plugin
This commit contains the scripts for the Valet Devstack
plugin. The plugin.sh file is the entry point into the
plugin. These scripts provide the "stack", "unstack" and
"clean" capabilities.

Task: #4591
Story: #2001035

Change-Id: Ib7ec301802bb05969ebc83d060823c0bb8146f53
2017-06-20 16:19:23 -05:00
Cliff Parsons 4bb9a435ee Revert "Centralized configuration and auto generation"
This reverts commit 224f1be6fd.

Change-Id: I6308bdb4f955f409623f1b32095ddb9e2dddf7f1
2017-06-20 18:25:50 +00:00
Jenna Kleiman 224f1be6fd Centralized configuration and auto generation
This patch set centralizes all oslo configuration setting(s) into a single
module and provides necessary entrypoints for the configuration
to be generated via ``tox -e genconfig``

Story: #2001045
Task: #4619

Change-Id: I0473c7176f412d176be24deb588f7ef4c113848a
Co-Authored-By: Tin Lam <tin@irrational.io>
2017-06-20 11:22:12 -05:00
Jenna Kleiman 6fe9c32e4a Remove Health Checker
This commit deletes the health_checker and the associated unit test.

Change-Id: I0a1e4d2609c42607b021a1a5b1d3e7f29cbfea5f
2017-06-19 10:00:20 -05:00
Jenkins f973b8acfc Merge "Moved logger references to file headers" 2017-06-18 21:43:50 +00:00
Jenkins b679af450b Merge "Add /v1/plans api-ref" 2017-06-16 20:10:22 +00:00
Jake Carlson 77d4e1e47f Moved logger references to file headers
Moved the logger references in health_checker.py and
listener_manager.py to the file headers to match convention.
Calls to the logger were readjusted to reflect the new
variable names. Also, copied the changes which removed the
use of the pass-in logger and uses oslo_log's log.getLogger()
to handle logging.

Story: #2001031
Task: #4232

Change-Id: I66beb635a78e5f6f0caae0b5a63c55dfdb5d15fe
2017-06-15 15:47:28 -05:00
Jenkins 6d99596fd8 Merge "Fix functional test" 2017-06-15 18:04:51 +00:00
Tin Lam 9b8f406317 Add /v1/plans api-ref
This patch set adds in /v1/plans API reference documentation.

Change-Id: Idb37986b464529a5ef500f443e23db189427a0d5
2017-06-13 23:52:37 -05:00
Jenkins 2109da9972 Merge "Valet on Stable Newton Devstack" 2017-06-13 17:01:38 +00:00
Cliff Parsons 0edc752c46 Valet on Stable Newton Devstack
Changes required for Valet to function properly running on
the stable newton version of devstack.

Task: #4670
Story: #2001035

Change-Id: I5d79fb636e9fe1db446ba0d7e749c59db5b10318
2017-06-13 09:07:43 -05:00
Jenkins dfa06bd323 Merge "Add api-ref to valet" 2017-06-12 18:14:22 +00:00
Jenkins fe3aaa4202 Merge "Add bandit target" 2017-06-12 13:15:01 +00:00
Tin Lam 378b546899 Add bandit target
This patch set adds bandit security static code scanning to valet.
User can run ``tox -ebandit`` to perform the analysis.

Change-Id: I37a979cefa8f02ffa5455d042e06a419063eb8e7
2017-06-08 06:21:18 +00:00
Jenkins 4dcf7970e4 Merge "Remove deprecated oslo.messaging.get_transport" 2017-06-06 15:37:50 +00:00
Jenkins 7fff6363d1 Merge "Add reno support to valet" 2017-06-06 15:37:44 +00:00
Ngo Quoc Cuong ebdfbe8513 Remove deprecated oslo.messaging.get_transport
DeprecationWarning:
Using function/method 'oslo_messaging.transport.get_transport()'
is deprecated: use get_rpc_transport or get_notification_transport.
Replace get_transport with get_notification_transport.

Change-Id: I7282791cac28bea31daa78945ab2a4343d948f86
2017-06-05 05:28:52 +00:00
Tin Lam 01ed0092da Fix functional test
A functional test file contains a space.  This patch set
fixes the issue and also fixes the DOS/Windows carriage
returns CRLF (\r\n) in that file.

Change-Id: If960bb4bf02de13d58c7fd85a49bea1deea80e81
2017-06-03 20:28:21 +00:00
Tin Lam cbc3044d4d Fix CRLF issues
Some files in the repo has a DOS/Windows CRLF (\r\n) ending instead
of the Unix return.  This patch set fixes the issue.

Change-Id: Ic6601f3ace9507f30c487f495198c2397b5bf805
2017-06-03 11:39:05 -05:00
Tin Lam 7ac090c92f Add reno support to valet
This patch set adds releasenote support to project valet.

Story: #2001050
Task: #4648

Change-Id: Ia7348741ac8f71f58b70587830b5ef33a9b6f429
2017-05-31 11:27:53 -05:00
Tin Lam 0192a4ab0c Add api-ref to valet
This patch set is one of many to add api reference documentation to valet.
This specifc patch adds the /v1/groups/ api documentation.  User
can generate the documentation by ``tox -eapi-ref``.

Change-Id: Ic5016abd9f95de98effeaceb4b9f8c1fc7943d6a
Signed-off-by: Tin Lam <tin@irrational.io>
2017-05-30 13:36:49 -05:00
Tin Lam 2ea460f044 Remove executable flag from files
The current repo has a number of python and conf files with executable flag
set (+x).  This patch set removes that flag from the files.

Change-Id: I00a5f92afae22f14b046e32563cba731cdaa47b2
Signed-off-by: Tin Lam <tin@irrational.io>
2017-05-30 17:32:55 +00:00
Jenkins 7de1e62db5 Merge "Enable PEP8 check and correct all PEP8 issues" 2017-05-30 17:26:28 +00:00
Tin Lam 67f6434bc0 Enable PEP8 check and correct all PEP8 issues
This patch set enables PEP8 standard check for project Valet, and
corrects all outstanding PEP8 issues.

Story: #2001040
Task: #4602

Co-Authored-By: Omar Rivera <gomarivera@gmail.com>
Change-Id: I4b987ff28b02ea8a6da77fb0f29eda1515d212ac
2017-05-28 16:18:17 +00:00
Jenkins 0844b8b5ad Merge "Only admin role can access valet" 2017-05-26 19:27:51 +00:00
Tin Lam 66ef9173a9 Fix requirements.txt and test-requirements.txt
This patch set fixes the requirements, and two workarounds in the
documentation due to the previously broken requirements.

Change-Id: I3e2e7ec5897270f266ba5ea84c9927f7623b4483
2017-05-26 09:51:22 -05:00
Tin Lam 7254f9ec97 Fix initial gate
This patch set fixes the initial gating failures for project Valet.

Change-Id: Id61cfa4171b8f1e7dc4824abe3d7fee7191aef92
2017-05-25 14:43:44 -05:00
sg774j d3ae421148 Only admin role can access valet
Enforced only admin can create plans in valet. If unauthorized,
appropriate error message will be displayed.

Change-Id: I8166f5675b247bc309db51b9b671a511e1d6abca
2017-05-23 07:12:59 -05:00