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
- 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>
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>
- 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>
-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
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>
Removed link to specifications from main ToC and added link to overview.
Change-Id: Idf96df62fce0fbd6dd5193809e7fff21b2a75806
Signed-off-by: Andrea Visnyei <andrea.visnyei@nokia.com>
Capitalization of "Fenix" and minor editorial changes.
Change-Id: I5a66a9ad1a9d0bf89cc3faa9920f08d97d378b08
Signed-off-by: Edit Koselak <edit.koselak@nokia.com>
~ 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>
- 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>
Added description of fenix service to install guide main page.
Change-Id: Ie31ba9f018173c928fac0874f43d437123fbbe45
Signed-off-by: Andrea Visnyei <andrea.visnyei@nokia.com>
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>
Tested with new Doctor changes to support fuel installer
and using python3
Change-Id: I5c2e9d2f3b0d5569c79dc5d7d7d88308f6444b73
Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
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
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>
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>
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>
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>
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>
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>
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>
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>
Discover all available hosts to be maintained
Story: 2004146
Task: #27619
Change-Id: Id11ab3c2f41dfde49d082fb5338182d2c6ede5a5
Signed-off-by: Tomi Juvonen <tomi.juvonen@nokia.com>
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>