summaryrefslogtreecommitdiff
path: root/ironic/api/controllers/v1/notification_utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Expunge the internal version of WSMESteve Baker2020-11-191-4/+1
| | | | | | | | | This change removes unused code and concludes the conversion of the REST API from WSME based to plain JSON. Change-Id: Ib04c759f86d9758b67a75648b5971f5a80c77ecb Story: 1651346 Task: 10551
* Centralise imports of wsme typesSteve Baker2020-04-201-3/+3
| | | | | | | | | | Instead of importing wsme types directly from the wsme packages, import them from ironic.api.types. This reduces the number of wsme imports throughout the codebase, and confines much of the future code changes to the new types.py and a few other files. Change-Id: I231a1f82915ab9e07c00857aa6210c0764b8ce4b Story: 1651346
* Deploy templates: API & notificationsMark Goddard2019-03-041-0/+3
| | | | | | | | | | | | | | Adds deploy_templates REST API endpoints for retrieving, creating, updating and deleting deployment templates. Also adds notification objects for deploy templates. Bumps the minimum WSME requirement to 0.9.3, since the lower constraints job was failing with a 500 error when sending data in an unexpected format to the POST /deploy_templates API. Change-Id: I0e8c97e600f9b1080c8bdec790e5710e7a92d016 Story: 1722275 Task: 28677
* Allocation API: REST API implementationDmitry Tantsur2019-02-081-0/+3
| | | | | | | | | | | This change introduces the API endpoints for allocation API: * GET/POST /v1/allocations * GET/DELETE /v1/allocations/<ID or name> * GET/DELETE /v1/nodes/<ID or name>/allocation Change-Id: Idf1a30d1a90b8c626d3b912c92844297e920d68c Story: #2004341 Task: #28739
* Fix doc builds for ironicJulia Kreger2018-09-051-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It seems that the wsme sphinx extension was concealing issues in our doc builds, where formatting was not exactly correct nor parsed as we would always expect as we have had a tendency to fully document data structures as if we are typing code. Upon disabling the extension, the prior build failures due to duplicate labels disappeared and other issues preventing the docs from building successfully were raised. It also seems that we never actually used the extension as documented https://wsme.readthedocs.io/en/latest/document.html $ grep -ir "wsme:root" ./ironic $ grep -ir "wsme:type" ./ironic $ grep -ir "wsme:attribute" ./ironic $ grep -ir "wsme:service" ./ironic $ grep -ir "autotype" ./ironic ./ironic/objects/fields.py:class FlexibleDictField(object_fields.AutoTypedField): ./ironic/objects/fields.py:class MACAddressField(object_fields.AutoTypedField): $ grep -ir "autoattribute" ./ironic $ grep -ir "autoservice" ./ironic $ grep -ir "autofunction" ./ironic $ Co-Authored-By: Dmitry Tantsur <dtantsur@redhat.com> Change-Id: Ib5bbd9274a4098022fba69f0e4998485d2ee2396 Story: 2003020 Task: 23043
* Add REST API for volume connector and volume target operationSatoru Moriya2017-07-031-1/+9
| | | | | | | | | | | | | | | | | | | | | | | This patch introduces following REST API endpoints to get/set volume connector and volume target in Ironic. - GET /v1/volume - GET /v1/nodes/<node_uuid or name>/volume - {GET, POST} /v1/volume/connectors - {GET, PATCH, DELETE} /v1/volume/connectors/<volume_connector_uuid> - GET /v1/nodes/<node_uuid or name>/volume/connectors - {GET, POST} /v1/volume/targets - {GET, PATCH, DELETE} /v1/volume/targets/<volume_target_uuid> - GET /v1/nodes/<node_uuid or name>/volume/targets This also adds CRUD notifications for volume connector and volume target. Co-Authored-By: Tomoki Sekiyama <tomoki.sekiyama.qu@hitachi.com> Co-Authored-By: David Lenwell <dlenwell@gmail.com> Co-Authored-By: Hironori Shiina <shiina.hironori@jp.fujitsu.com> Change-Id: I328a698f2109841e1e122e17fea4b345c4179161 Partial-Bug: 1526231
* Add ironic port group CRUD notificationsYuriy Zveryanskyy2017-02-151-1/+4
| | | | | | | | | | | This patch adds notifications for create, update or delete port groups. Event types are: baremetal.portgroup.{create, update, delete}.{start,end,error}. Developer documentation updated. "portgroup_uuid" field added to port payload. Closes-Bug: #1660292 Change-Id: I9a8ce6c34e9c704b1aeeb526babcb20a5b1261db
* Add node maintenance notificationsYuriy Zveryanskyy2016-12-231-2/+7
| | | | | | | | | This patch adds node maintenance notifications, event types are: "baremetal.node.maintenance_set.{start, end, error}". Developer documentation updated. Change-Id: I9105821ed0a4db614ea3e1c73ad563b82b1c6082 Partial-Bug: #1606520
* Add ironic resources CRUD notificationsYuriy Zveryanskyy2016-12-231-0/+150
This patch adds notifications for create, update or delete ironic resources (node, port and chassis). Event types general form are: baremetal.<resource>.{create, update, delete}.{start,end,error}. Developer documentation updated. Partial-Bug: #1606520 Change-Id: I95c64d9aa806ff2d7e7dae54ced169c98282c67d