-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OCPBUGS#5149: Adding missing CurrentState API route info #54355
OCPBUGS#5149: Adding missing CurrentState API route info #54355
Conversation
🤖 Updated build preview is available at: Build log: https://circleci.com/gh/ocpdocs-previewbot/openshift-docs/6789 |
b81241d
to
0c12365
Compare
b4b2d29
to
a80296e
Compare
@rohennes: This pull request references Jira Issue OCPBUGS-5149, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@rohennes: This pull request references Jira Issue OCPBUGS-5149, which is invalid:
Comment In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/label telco |
@rohennes: This pull request references Jira Issue OCPBUGS-5149, which is invalid:
Comment In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/jira refresh |
@rohennes: This pull request references Jira Issue OCPBUGS-5149, which is invalid:
Comment In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@rohennes: No Jira bug is referenced in the title of this pull request. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/jira refresh |
@rohennes: No Jira bug is referenced in the title of this pull request. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
a80296e
to
15fad37
Compare
@@ -29,6 +29,9 @@ Use the following API endpoints to subscribe the `cloud-event-consumer` DU appli | |||
* `api/cloudNotifications/v1/publishers` | |||
- `GET`: Returns an array of `os-clock-sync-state`, `ptp-clock-class-change`, and `lock-state` messages for the cluster node | |||
|
|||
* `/api/cloudnotifications/v1/<resource_address>/CurrentState` | |||
- `GET`: Returns the current state of `os-clock-sync-state`, `ptp-clock-class-change`, and `lock-state` for the cluster node |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Supports three events
GET api/cloudNotifications/v1/<resource_address>/sync/ptp-status/lock-state/CurrentState
GET api/cloudNotifications/v1/<resource_address>/sync/sync-status/os-clock-sync-state/CurrentState
GET api/cloudNotifications/v1/<resource_address>/sync/ptp-status/ptp-clock-class-change/CurrentState
---- | ||
{ | ||
"specversion": "0.3", | ||
"id": "4f51fe99-feaa-4e66-9112-66c5c9b9afcb", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is the example for lock-state
{"id": "c1ac3aa5-1195-4786-84f8-da0ea4462921",
"type": "event.sync.ptp-status.ptp-state-change",
"source": "/cluster/node/compute-1.example.com/sync/ptp-status/lock-state",
"dataContentType": "application/json",
"time": "2023-01-10T02:41:57.094981478Z",
"data": {
"version": "v1",
"values": [
{ "resource": "/cluster/node/compute-1.example.com/ens5fx/master",
"dataType": "notification",
"valueType": "enumeration",
"value": "LOCKED"
},
{"resource": "/cluster/node/compute-1.example.com/ens5fx/master",
"dataType": "metric",
"valueType": "decimal64.3",
"value": "29"
}
]
}
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and for clock class
{"id": "064c9e67-5ad4-4afb-98ff-189c6aa9c205",
"type": "event.sync.ptp-status.ptp-clock-class-change",
"source": "/cluster/node/compute-1.example.com/sync/ptp-status/ptp-clock-class-change",
"dataContentType": "application/json",
"time": "2023-01-10T02:41:56.785673989Z",
"data": {"version": "v1",
"values": [{"resource": "/cluster/node/compute-1.example.com/ens5fx/master",
"dataType": "metric",
"valueType": "decimal64.3",
"value": "165"
}]
}
}
15fad37
to
52210fe
Compare
52210fe
to
559a147
Compare
`GET api/cloudNotifications/v1/cluster/node/<node_name>/sync/sync-status/os-clock-sync-state/CurrentState` | ||
|
||
`GET api/cloudNotifications/v1/cluster/node/<node_name>/sync/ptp-status/ptp-clock-class-change/CurrentState` | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aneeshkp - I added the Get request for each supported event here. Hope that this is understandable for the user?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we are missing consumer api docs . That is why we are leaving out the full url. I think its okay for now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It says <resource_address>
in the section heading now. But in the GET request examples, I have expanded the route to show the format cluster/node/<node_name>
. Let me know if I should change this to resource address too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
@obochan-rh: changing LGTM is restricted to collaborators In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/label peer-review-needed |
/label peer-review-in-progress |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes sense to me, no suggestions from peer review.
/label peer-review-done |
/label merge-review-needed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merge review lgtm.
/cherrypick enterprise-4.11 |
/cherrypick enterprise-4.12 |
/cherrypick enterprise-4.13 |
@skrthomas: new pull request created: #54873 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@skrthomas: new pull request created: #54874 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@skrthomas: new pull request created: #54875 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
OCPBUGS-5149: Adding missing CurrentState API route for PTP API
Version(s):
4.11+
Issue:
https://issues.redhat.com/browse/OCPBUGS-5149
Link to docs preview:
QE review:
Additional information: