Commit Graph

28 Commits

Author SHA1 Message Date
suzhengwei fdee6e1dab add api-ref for masakari vmoves
Change-Id: I82ba71efba7dd8b0b7e0919bfd543cd105b8f3d1
2023-02-02 17:10:33 +08:00
wuting ae23b74b50 Fix notification status in notification.inc
The notification 'status' values should be lowercase.

Change-Id: Idcc9cdb61cb4f65b99471dee519dab21ee02c49c
2021-06-11 09:27:35 +08:00
Radosław Piliszek b4094afabd Fix segment enabled json examples
JSON requires lowercase booleans.

Change-Id: If0a14f4943a4c9107ddb4de4655315e393b8edce
2021-03-20 14:47:03 +00:00
ericxiett 151915960a Fix some errors in the document
If the recovery policy uses uppercase, an error will be reported.
This patch modifies these to lowercase.

Closes-Bug: #1914482
Co-Authored-By: zhangyangyang <zhangyangyang@unionpay.com>
Change-Id: Ic4bf5a4b19df07364c09fd46f1a92a809c77b241
2021-03-20 14:38:50 +00:00
Zuul c685b3051d Merge "update docs for enabled to segment" 2021-03-04 01:27:06 +00:00
suzhengwei 3e5c29b99a update docs for enabled to segment
Implements: BP enable-to-segment
Change-Id: Ie92243b2cf4440096cd674f86fb35381d6758297
2021-03-03 09:36:32 +08:00
songwenping ab8b1eae4e remove unicode from code
Change-Id: Id3b9bad4bc617c168200d34d69bbe760a24dfcf0
2021-01-04 01:02:06 +00:00
Dmitriy Rabotyagov 4322968b89 Search in nova services instead of hypervisors
Nova services and hypervisor naming can differ, as they retireve node
names in different way.
In the meanwhile we operate with nova.services while enabling/disabling
nodes duringh the incident. So we're supposed to have in database record
matching to what we have in service list, but not in hypervisor list.

Closes-Bug: #1839715
Change-Id: I9c591d33f17a8d5950bdb1fc2d686e2301fc6d95
2020-09-16 20:06:31 +02:00
Radosław Piliszek f12052a9a4 Fix files to pass linting
The multiline change is about CR being removed.

Change-Id: I54268c61b3f341fa0c373dda090cef1192acbb78
2020-09-11 17:24:16 +00:00
Zuul a156db7148 Merge "[docs] Add missing control_attributes" 2020-08-29 08:54:38 +00:00
Zuul 075de8f2ef Merge "Fix typo in api docs for sort_key request parameter" 2020-08-29 08:45:03 +00:00
Xing Zhang 045fabb8df [docs] Add missing control_attributes
control_attributes is a required parameter for segment host.

Change-Id: Ifac047efc02a9dcee7d2230298d0623478d0b3db
2020-08-29 08:40:51 +00:00
Zuul f590fa1ba1 Merge "Fix typo for sgement => segment" 2020-06-11 01:16:19 +00:00
tpatil 6e986ec44e Fix typo in api docs for sort_key request parameter
The default value of ``sort_key`` request parameter should
be ``created_at`` and not ``created``.

Change-Id: I418ad39927a234feda7ea2e82710312c9da88a88
2020-06-11 01:03:56 +00:00
Andreas Jaeger 7020fc48eb Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Disable openstackdocs_auto_name to use 'project' variable as name.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

Remove docs requirements from lower-constraints, they are not needed
during install or test but only for docs building.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: Ib8c912844becebbfef3bf6579ebea9350676a322
2020-06-01 15:08:16 +02:00
Xing Zhang e9dbb5df56
Fix host rest url in api-ref doc
Change-Id: I9cb77d239d0426554260bc0c34d622637ca0801d
2020-05-20 12:05:49 +08:00
Zuul 12aaceb725 Merge "update segment api doc" 2020-02-25 04:40:29 +00:00
uchenily 8b122a8627 fix a typo notiification => notification
Change-Id: I309b35147d5a0c617c117dfa2108dec6e35aaff7
2019-12-30 19:29:26 +08:00
suzhengwei 65cd9ed879 update segment api doc
Change-Id: I4f732e63cde98a95fb7f326a8d7f32e90a0c336b
2019-12-24 15:46:19 +08:00
zhangmeng 9ff830827c Fix typo for sgement => segment
Change-Id: I48cf7a8e519de889c0c69ea4b3e6fcdf292767a6
2019-03-26 19:55:17 +08:00
shilpa.devharakar 7321ee32fd Add progress details for recovery workflows
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
2019-03-08 10:52:51 +05:30
Zuul dcf400ff41 Merge "Update hacking version >1.1.0" 2019-02-26 04:01:04 +00:00
tpatil d471b824ea Update hacking version >1.1.0
Updated hacking version to >1.1.0 and <1.2.0.

Change-Id: I77ff4723fd420fc2f9afe0ca6c3d85d7ae1a28ba
2019-02-18 18:29:45 +09:00
jayashri bidwe de2f4d637d Allow updating host name only if it exists in nova
Presently, you can update host name with any non-existing host name.
It doesn't check whether this host exists or not in nova. This patch
fixes this issue by checking whether the host name exists in nova or
not before updating it. If it doesn't exists, it will raise 400 error.

APIImpact
BadRequest(400) is returned if host doesn't exists in nova instead of
200 during host update.

Closes-Bug: #1814656

Change-Id: Ibd113f2328deae0f1114544436631bdc434eff92
2019-02-08 10:11:46 +05:30
jayashri bidwe 70ecfe946e Return 400 if notification payload is incorrect
This patch validates the notification payload at schema level as per
API ref document[1]. Raises BadRequest(400) if payload is incorrect
based on notification type.

APIImpact
BadRequest(400) is returned if payload is incorrect instead of 202
during notification create.

Closes-Bug: #1808513

[1]: https://developer.openstack.org/api-ref/instance-ha/

Change-Id: Iccad15a955be1b11f31d829624d43b6ea915305c
2019-01-21 14:10:48 +05:30
jayashri bidwe b21c763de0 Allow adding host only if it exists in nova
Presently, you can add any hostname to the failover segment. It
doesn't check whether this host exists or not in nova. This patch
fixes this issue by checking whether the hostname exists in nova or
not before adding it to the failover segment. If it doesn't exists,
it will raise 400 error.

APIImpact
BadRequest(400) is returned if host doesn't exists in nova instead
of 200 during host create.

Closes-Bug: #1800073

Change-Id: I0ccc9f3a61e3f17f2cb7c1ad1888947c6fe724c8
2018-12-13 11:31:21 +05:30
juhoson ec61197343 Fix typo in api-ref/source/failover-segments.inc file
Fixed typo.(RESEVED_HOST -> RESERVED_HOST)

Change-Id: I64620e67fee41e02c6f858b275b5bcb69acaedf3
Closes-Bug: 1769437
2018-05-08 10:28:45 +00:00
Abhishek Kekane f5e074c9e4 Masakari API Specifications
Added api specifications for versions, segments, hosts and
notifications as per OpenStack standards.

Change-Id: Iefc83254e22fc31d1f0d13f52e71d42c63e82b7d
2017-11-27 05:29:45 +00:00