Updated operator guide documentation for
1. segregated sections appropriately
2. referred masakariclient for CLI section
3. added detailed 'Install and configure for Ubuntu' section
4. added detailed 'Verify operation' section
5. used sphinx-build instead of the pbr sphinx extention for building docs
as instructed by the PTI[1]
6. cleaned up build_sphinx related entries in setup.cfg
[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html#documentation
Change-Id: Iec93bebdbc7ffe1ccd27bb11f474384ff06a559c
Currently, noauth2 auth_strategy is not supported. If you specify
[DEFAULT]auth_strategy=noauth2 in `/etc/masakari/ masakari.conf`
and start the masakari api service, it gives ImportError.
Added NoAuthMiddleware to support noauth2 auth_strategy.
Closes-Bug: #1836354
Change-Id: I288cd5838b09d3e6c31b6408fff85e6bb5f529a6
Add file to the reno documentation build to show release notes for
stable/train.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/train.
Change-Id: I1a3bd45beb70175765afc8082729047e3f35ef3b
Sem-Ver: feature
Instances are not cleanup properly after functional tests finished
execution. This patch addresses this issue.
Change-Id: I77456ef967addb42c31033f4e08adb2b868a7323
Closes-bug: #1838418
During notification functional tests, get_notification call fails
randomly with KeyError during progress details retrieval, this patch
fixes this issue.
Change-Id: I89f47232eb6d106217717155441ba5bc1dfbaf98
Closes-bug: #1838417
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.
See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html
Co-Authored-By: gujin <gu.jin@99cloud.net>
Change-Id: Ib98f78131050be2c38a0128d2e2a792639c03c1c
Story: #2005924
Task: #34221
The api documentation is now published on docs.openstack.org instead
of developer.openstack.org. Update all links that are changed to the
new location.
Note that redirects will be set up as well but let's point now to the
new location.
For details, see:
http://lists.openstack.org/pipermail/openstack-discuss/2019-July/007828.html
Change-Id: Ib3bf99b1fcb81d70aae3125734b3fe21e6b1aa5b
With switch to resource layer in openstacksdk [1], a wrong hypervisor
attribute 'hypervisor_hostname' disappeared. Used a proper 'name'
attribute instead.
[1]: 1044776140
Change-Id: I69bcd33e76d4847229abcf55f659d7218fa4c6c2
This patch resolves below gate job issues:
* openstack-tox-py27: Failing for double word hacking test, resolved
by taking reference for nova fixes [1]
* masakari-functional-devstack-multinode: Failing since 'Split
OpenStackCloud at SDK [1]', resolved by calling proper SDK connection.
* Devstack installation add more than one networks if neutron service is
enabled [3] and hence server creation fails with error 'ERROR
(Conflict): Multiple possible networks. Fixed this issue by passing
the network during server creation.
[1]: f545a25cc4
[2]: 1a4ed826b9 (diff-a948cab0aca56c2f4bf6569f8dc8ac66)
[3]: 8f7216290a
Change-Id: Ie477ddf4516712f8fd145ec78ca2335762972053
The oslosphinx package is not compatible with the current Sphinx 2.0
release. Migration has been happening to openstackdocstheme for some
time. To fix build failures for docs and releasenotes jobs, this
switches masakari jobs to use openstackdocstheme.
Uncapping jsonschema to pass requirements check so it matches global
requirements.
Change-Id: Ic74e8b075aa67d410617dac3346bf1c903995da7
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
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: I4596e5c35143c0e7757cdf2acabdd6eac98159ea
Add file to the reno documentation build to show release notes for
stable/stein.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/stein.
Change-Id: Ic8a9836acad68b95652b42d004d623337569ab3d
Sem-Ver: feature
Added devstack support to install and run below masakari-monitors
services:
1. instancemonitor
2. processmonitor
3. introspectiveinstancemonitor
Change-Id: If4c793e316f98f14748300fc0d9003faffefeea3
After merge of [1] host recovery for reserved host is getting failed
as it attempts to persists Host object.
This patch addressed this issue by sending list of names of reserved host
instead of host object to recovery flow.
[1]: https://review.openstack.org/#/c/640755/
Change-Id: Ifd008b89ff639e2e3bd8229830b5a20dced1c31b
Closes-Bug: #1819578
If user tries to get notification details before masakari-engine taskflow
driver add progress details of the first task of the recovery workflow,
it's giving Keyerror: 'progress_details'.
Fixed the issue by checking progress_details is available in the meta.
If it's not present, then get notification details will return empty list
of recovery_workflow_details.
Change-Id: I79af240d7715718b424695253ee452dc9552607d
Closes-Bug: #1819422
1) oslo.config should not in conf
2) namespace masakari.api and masakari.engine not exist in entry_point
Change-Id: Iad749cd8467f67a1aef64fb35a654ce221b172b4
Added functional tests for microversion 1.1 in which
notification returns recovery workflow details.
Change-Id: I6db5b1623672a2b9cba27277ddb7fb0e2534764b
This patch adds functional tests to check the behaviour
of notification APIs for notification types:-
a) Process
b) VM
Change-Id: I06b17e388773db5fb9ade31d70ee4b2ad8aefabf
In patch [1], a new config option `connection` is introduced
in a new section `taskflow` to save the recovery workflow
details of the notification.
This patch configures this new config option during creation
of config files in devstack setup.
[1] : https://review.openstack.org/#/c/640798/
Change-Id: I2383aaefaeb522e1783e2769e78438410b8033f3
This patch uses taskflow's persistence feature to store recovery
workflows details into database.
Added a new microversion to return progress_details of the
notification in `GET /notifications/<notification_uuid>` API.
APIImpact:
GET /notifications/<notification_uuid> API includes details
of recovery workflow
Change-Id: I93c1b7d88823e02d9a02855cabb8b22c9e40a7d5
Implements: bp progress-details-recovery-workflows
There are couple of places where the logging level used
was incorrect and few of other places errors are not logged.
This patch improves logging error messages.
Change-Id: I6857a5d03c27057170739174173ab1fd8c0c51c2
Added multi-node CI job to run functional tests.
This patch adds functional tests to check the behaviour
of Segment APIs.
Co-Authored-By: jayashri bidwe <jayashri.bidwe@nttdata.com>
Change-Id: I787b26b29fcd9556bc6b24b75ffe8e70e9f44610
This patch adds the methods that masakari uses when sending
notifications.
Co-Authored-By: Shilpa Devharakar <Shilpa.Devharakar@nttdata.com>
Change-Id: Iee57249b5bc2659e41589b5c6c98eb7eec0bc1b3
Partial-Implements: bp notifications-in-masakari
This patch adds the object definition used for notification.
Co-Authored-By: Shilpa Devharakar <Shilpa.Devharakar@nttdata.com>
Change-Id: If6e67b67fa30b41a1dffac374f8a1b395b33ada3
Partial-Implements: bp notifications-in-masakari
As first step of adding notify functionality to masakari, this patch
adds the necessary constants and methods for RPC notification.
Co-Authored-By: Shilpa Devharakar <Shilpa.Devharakar@nttdata.com>
Change-Id: Iad3f487ef14effb41484014e5426117129543f5c
Partial-Implements: bp notifications-in-masakari
In Python 3, running the Masakari API as a wsgi application was
resulting in "TypeError: expected unicode object, value of type
bytes found". It looks like headerlist should not include bytes
type objects so let's ensure they are str objects for Python 3.
Change-Id: Ica030c540970474cd2511ffe0ba653d7bb057849
Partial-Bug: #1815657
The instance which is vm_state=resized and power_state=SHUTDOWN
should not be recovered with vm_state=error. It should be recovered
with vm_state=stopped. The instances such as paused or suspended
(which are other than vm_state=active,stopped,error) are also the same.
This patch modified that masakari-engine will recover these instances
with vm_state=stopped.
Change-Id: Ibdea705f69d139834c9b2294ae11bc9344c259bd
Closes-Bug: #1782518
Masakari project service_type is `instance-ha` but it reads
the api_version from `OpenStack-API-Version` request header
using service_type `masakari`.
This patch fixes this issue by changing service_type from
`masakari` to `instance-ha`.
Closes-Bug: #1816941
Change-Id: Ife141f9eab438e21f02966f3d27a6f044d4aa4ac