Commit Graph

83 Commits

Author SHA1 Message Date
Ayumu Ueha 054b05a35d CI: Fix breakage following devstack changes
A recent devstack change [1] has dropped all KEYSTONE_AUTH_* variables
except KEYSTONE_AUTH_URI. Use KEYSTONE_SERVICE_* variables instead.

Another change [2] switched off the creation of an admin endpoint for
keystone, which we need. Get or create it again until we update Fenix
to stop using it.

Update service name/type and endpoint URLs accordingly.

[1] https://review.opendev.org/c/openstack/devstack/+/735472
[2] https://review.opendev.org/c/openstack/devstack/+/777345

Change-Id: I3c876344b4d29d3de536910f2997a57ab1d2d320
2021-11-09 10:36:28 +00:00
Tomi Juvonen bd0810495f Administrator quide and other documentation
Some details of how to take Fenix into use.

Change-Id: I820aae66ba4bd0ce500c2d6797d852bbf39ef895
Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
2020-04-22 09:49:20 +03:00
Tomi Juvonen 244fb3ced0 Detailed session information and enhancements
- Add GET /v1/maintenance/{session_id}/detail
- Add 'maintenance.session' event. This can be used
  to track workflow. It gives you percent of hosts
  maintained.

Other enhancements:
- Add Sample VNFM for OpenStack: vnfm.py
  (Kubernetes renamed to vnfm_k8s.py)
- Add Sample VNF for OpenStack:
  maintenance_hot_tpl.yaml
- Update testing instructions (tools)
- Update documentation
- Add more tools for testing:
  - fenix_db_reset (flushed the database)
  - set_config.py (set the AODH / Ceilometer config)
- Add admin tool: infra_admin.py
  This tool can run maintenance workflow and
  track its progress
- Make sure everything is written in database.
  If Fenix is restarted, it initialise existing
  'ongoing' workflows from database. More functions
  to database API and utilization in example workflows.

story: 2004336
Task: #27922

Change-Id: I794b11a8684f5fc513cb8f5affcd370ec70f3dbc
Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
2020-04-17 13:05:21 +03:00
Tomi Juvonen ef8bbb388b Add instructions to test workflows
story: 2007441
Task: #39114

Change-Id: I91636f9cf6a4568badc7314bed9101da62924c2b
Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
2020-03-20 10:32:42 +02:00
Tomi Juvonen d06820b452 Add test cases
story: 2007441
Task: #39098

- Some initial test cases
- DB cases enhanced DB error handling
- API error handling also improved
- Tools README.md bug
- New requirements cahanges for testing

Change-Id: I7f83c6472d1a86fa62e38cab2856be6c0d6bb259
Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
2020-03-19 16:17:56 +02:00
Tomi Juvonen 4d1a100ba7 Kubernetes workflow
- Add Kubernetes workflow
- Add Sample VNFM to test against
- Add sample application (VNF)
- Add testing instructions
- Update documentation

Details in: fenix/tools/README.md

Also fixes to:
- Api error handling
- Exceptions
- DB API
- some other minor bugs.

story: 2007301
Task: #38778

Change-Id: Ia37dfe7ea57935e73868da89aaa9a413721078ad
Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
2020-03-13 12:42:56 +02:00
Tomi Juvonen d6f1f7bc2d Ability to continue failed session
-API to update session state after session failed
-Thread exception passed to parent
-Session DB knows previous state
-Changing state will save previous state to help
 continue session after a failure
-API error codes documented better

Story: 2005583
Task: #30772

Change-Id: Ifd5eb29a1d3d969b2d9b9648d823e80b435f7cb3
Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>PI schema validation
2020-02-12 16:04:09 +02:00
Tomi Juvonen 76fdc1aba5 API schema validation
Story: 2007278
Task: #38717

Change-Id: I7a6fc62e8f2c0c3cc21560f9f889d0fe136ca33e
Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
2020-02-11 11:24:28 +02:00
Zuul e6b796f6b7 Merge "Disable empty and to be empty computes before instance actions" 2020-01-30 04:35:48 +00:00
Tomi Juvonen b703a90ba0 Disable empty and to be empty computes before instance actions
When praparing to maintenance we make empty compute hosts
or we already have some. All these computes have to have
nova-compute disabled, so when making empty compute nodes
the instances moving will not land to these computes.

Change-Id: I11a68efab2b10572f43a1cf985743c984c3b0b6e
Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
2020-01-29 14:19:59 +02:00
Andrea Visnyei 76f3de1a28 Moved link to specifications
Removed link to specifications from main ToC and added link to overview.

Change-Id: Idf96df62fce0fbd6dd5193809e7fff21b2a75806
Signed-off-by: Andrea Visnyei <andrea.visnyei@nokia.com>
2020-01-28 14:40:14 +01:00
Zuul ce134562ef Merge "VNF workflow implementation" 2020-01-28 05:25:41 +00:00
Edit Koselak 2eee99ae4e Capitalization
Capitalization of "Fenix" and minor editorial changes.

Change-Id: I5a66a9ad1a9d0bf89cc3faa9920f08d97d378b08
Signed-off-by: Edit Koselak <edit.koselak@nokia.com>
2020-01-24 11:09:56 +01:00
Edit Koselak 24ccf9e835 Documentation restructuring
~ Installation next steps removed
~ Contributor documentation directly linked from index and renamed
~ Notifications moved to the users guide

Change-Id: I806d15ce02644de07e47ad3f7158d478b1754204
Signed-off-by: Edit Koselak <edit.koselak@nokia.com>
2020-01-24 10:26:00 +01:00
Tomi Juvonen 2244f44f03 VNF workflow implementation
- New VNF workflow
- ETSI FEAT03 changes
- Drop py27 support

story: 2006838
Task: #37413

Change-Id: Icfe89d4f2b04791f65674a4fd5d8fb63e0a54f70
Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
2020-01-17 08:40:26 +02:00
Tomi Juvonen 237e4ed0c9 Documentation changes for VNF workflow implementation
- New VNF workflow
- ETSI FEAT03 changes

story: 2006838
Task: #37843

Change-Id: I2cdcbbb3f68a71004e59427c6c1a48e38d4ae2cb
Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
2020-01-13 12:25:03 +02:00
Andrea Visnyei e815519d6a Fenix service description
Added description of fenix service to install guide main page.

Change-Id: Ie31ba9f018173c928fac0874f43d437123fbbe45
Signed-off-by: Andrea Visnyei <andrea.visnyei@nokia.com>
2019-11-15 15:54:46 +01:00
Zuul 1ddbfc7601 Merge "Correction of the auth_type option handling" 2019-11-08 04:19:10 +00:00
Gergely Csatari cfdda5a589 Correction of the auth_type option handling
Fenix devstack plugin puts a '=' to the auth_type option for
the Fenix API config file. This change correct this to 'password'

Change-Id: I4b26080def615c7873730a62b84cf0c028a087fb
Signed-off-by: Gergely Csatari <gergely.csatari@nokia.com>
2019-11-08 03:40:47 +00:00
Tomi Juvonen d2913eacd3 WIP: bug with python3 support and other new relations
Tested with new Doctor changes to support fuel installer
and using python3

Change-Id: I5c2e9d2f3b0d5569c79dc5d7d7d88308f6444b73
Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
2019-11-07 08:39:06 +02:00
Andrea Visnyei eb74b0bd9d Readme enhancements
ToC and README have been improved.

Change-Id: Id136eb1c2690e25c39c51a8fca1e631fb25835ae
Signed-off-by: Andrea Visnyei <andrea.visnyei@nokia.com>
2019-10-25 10:59:44 +02:00
Zuul 949dd04392 Merge "Sync Sphinx requirement" 2019-10-14 03:13:56 +00:00
jacky06 b2c1cf7a4c Sync Sphinx requirement
1. Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.
2. Update some URLs to latest

Change-Id: I35c087c9da9ea68fe586b6d21a94614d15954354
2019-10-09 05:29:22 +00:00
Tomi Juvonen bbb190df1d Spesification to implement ETSI
Specification to start implementing ETSI FEAT03: NFVI software
modification.

story: 2006557
Task: #36646

Change-Id: Iab16f95766e3bb81f072a97ea76921a030fbe3e0
Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
2019-10-01 02:36:15 +00:00
Tomi Juvonen 0ee8e156ad Bug: init_fenix_keystone with wrong file reference
Change-Id: Id644b3f764f2d0e4f42b4e0792931a8c65d73be2
Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
2019-08-08 07:53:59 +03:00
Tomi Juvonen 7ad95446b7 Bug: Devstack plugin missing bracket
Change-Id: I5a161d06e4785345f4918121849270117eeaaaf5
Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
2019-08-01 18:04:11 +03:00
Tomi Juvonen cc55962d52 Flask to WSGI and security
This adds a lot of stuff related changing from API from Flask to
WSGI and adding security.

This is mostly api side. There will more changes to add testing
and engine side changes. API parameter validation can also be
done later.

story: 2004882
Task: #29163
story: 2003844
Task: #26635

Change-Id: Id373440affd2d625933da2a6dbeb6354acd75e1e
Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
2019-06-27 16:09:19 +03:00
Zuul a890fbeeeb Merge "Update install and configuration instructions" 2019-06-05 06:23:54 +00:00
Tomi Juvonen 6ca4e203ca Update install and configuration instructions
Low hanging fruit not done by this patch set:
- Add more default option to be set in devstack/plugin.sh
  - wait_project_reply ... live_migration_wait_time
Other thing one can pick up not done by this patch set:
- Add oslo-config-generator support to tox
  - Add etc directory that will be used for this
  - Modify code where config is set to work with this
  - Use resulting conf files to have those documented under doc

story: 2005166
Task: #29899

Change-Id: Ic2e76d4f054f1666726cfc1b4f2c945393d3c8a9
Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
2019-05-28 07:51:17 +03:00
Jangwon Lee 6abd7e8b65 Bug: Transport_url typo in DevStack plugin
Change-Id: Ie79b3f62fcd24fca0cf89b98a517cb84b3f77b9b
2019-05-24 19:49:22 +09:00
Tomi Juvonen 508556598d Bug: DB connection typo in DevStack plugin
Change-Id: Ie4e63cf16b6508d708b8f84a89347718c2498ed8
Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
2019-05-23 13:52:50 +03:00
Tomi Juvonen 879d73ed78 Add DevStack plugin
Adding what is needed to have Fenix running in DevStack

Default workflow dependent configuration needs to be documented
Separately. Those might be ssh capability for Fenix service
user and AODH configuration. Test case should also add those in
future.

story: 2005166
Task: #29900

Change-Id: Ifb6602b67f098bcffdc2c03c31fdf868ab61b653
Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
2019-05-20 14:50:58 +03:00
Tomi Juvonen 46e13601a5 Add live migration support
story: 2005585
Task: #30774

Change-Id: I5dc6db643900a6bfcc427b4b9ee23b5557b091a4
Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
2019-05-10 03:14:18 +00:00
Tomi Juvonen a232dda364 bug: Download document nits
Change-Id: I4c17ee0d3c0f7a56d562604469ee3808861af9a3
Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
2019-05-02 22:52:41 +03:00
Tomi Juvonen 3d5eae4b47 Update download related documentation
story: 2004147
Task: #30690

Change-Id: I993ad8b617a86279beca8ddae8ec06a139c601f4
Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
2019-05-01 19:38:28 +03:00
Tomi Juvonen 24bf1a2563 Support download
Add support for downloading software changes and plugins
Default download directory is /tmp/<session_id>
Download url with filename including 'workflow' or 'actions'
are automatically extracted to /tmp/<session_id>/<workflow|actions>
Plugins will be used straight from those directories is Fenix
did not have a plugin with the same name.
Download directory and content will be automatically removed
when session is deleted by the admin

story: 2004147
Task: #27620

Change-Id: Ia1cce13d268da1888f5d8f02d39099b3c113fb86
Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
2019-05-01 04:59:21 +03:00
Tomi Juvonen 8a375d8417 Support pre, host, hostype and post action plug-ins
Support different type of action plug-ins
Fix some findings during demo implementation

story: 2003846
Task: #30227

Change-Id: Ie2363d865786afaf64d101f3bf7da97827f6b3e6
Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
2019-05-01 04:41:21 +03:00
Tomi Juvonen 1dfd5dd16d bug: fix upper constraints url
Change-Id: I617b5a4c62360d02d6f67b1fe671e0ed301f21d1
Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
2019-05-01 03:10:25 +03:00
Gergely Csatari e1e8cc5d01 Adding sequence diagram to Architecture
A high level sequence diagram is added to the Architecture page to
illustrate the workflow between Fenix and the app manager.

Change-Id: I51220cdc64eb34d0f60c5425c654efae76f9f624
Signed-off-by: Gergely Csatari <gergely.csatari@nokia.com>
2019-04-29 23:33:02 +02:00
Zuul 52f5d7205d Merge "Migrate to opendev.org" 2019-04-23 12:33:40 +00:00
Trinh Nguyen 4cb5385ddf Migrate to opendev.org
Change-Id: Iab8ea2af5204b6f04e4d5fa69395ed1565b130b5
Signed-off-by: Trinh Nguyen <dangtrinhnt@gmail.com>
2019-04-23 16:26:56 +09:00
OpenDev Sysadmins dcc2d2b555 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:50:40 +00:00
Tomi Juvonen ac9fe415e6 Bug: host type should be nullable
Host type needs to be nullable as it can be given as list where
the type is yet not known.

Change-Id: Ie332281d3050e58fba9ae40cfb5e52b624c49cc5
Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
2019-03-26 15:22:07 +02:00
Zuul fde7ad411d Merge "Support for action plug-in" 2019-02-11 07:45:20 +00:00
Tomi Juvonen 45254745c3 Support for action plug-in
Add ability to give action plug-ins in session creation.
Add handling for action-plug-ins in defautl workflow
Add database support

Dummy action plug-in added to see how it works. Will be removed before this
merges.

Documentation will be updated as review done

Story: 2003846
Task: #29160

Change-Id: I56c77df4937c16f419b6d963f5a5fa0642fc0d43
Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
2019-01-30 07:57:34 +02:00
Tomi Juvonen e09d981c59 Update action plug-ins documentation
Change-Id: Ibdaa659c683907f0b4cb690222f814c16858ee35
Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
2019-01-30 05:45:31 +02:00
Tomi Juvonen 9eadb36061 One click upgrade
Discover all available hosts to be maintained

Story: 2004146
Task: #27619

Change-Id: Id11ab3c2f41dfde49d082fb5338182d2c6ede5a5
Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
2019-01-29 07:07:14 +02:00
Tomi Juvonen 262c503ae4 Bug: Support older version of nova-client
Change-Id: I1d3f8c485a9db833973dc58fd9d82073af1b0397
Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
2018-12-27 19:31:06 +02:00
Tomi Juvonen 7024ee5e3e Bug: We might not be able to use novaclient maximum supported version
When building Fenix into container, we use OpenStack master upper constraints.
We get latest novaclient, but Nova server might not be the latest. To use
latest possible version, we need to figure out the latest version supported by
both server and client.

Change-Id: Iebb07202b7e742d9281ec9a1f6b8b522be0f6715
Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
2018-12-19 18:08:56 +02:00
Tomi Juvonen 6898ab2485 Build readthedocs automatically
Add the webhook to build the documentation

Change-Id: I167f85294922ce8497353ec78b7211bbc6ecf346
Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
2018-12-13 08:04:17 +02:00