-
Notifications
You must be signed in to change notification settings - Fork 66
Added O2IMS POST REST API #972
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
base: main
Are you sure you want to change the base?
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Hi @NMSVishal. Thanks for your PR. I'm waiting for a nephio-project member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
|
/ok-to-test |
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.
@NMSVishal Is it needed to remove the blank space there? I think we can leave it
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.
done,added the blacnk space as it was there earlier
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.
I think you need to remove this file from your changes you have to amend the earlier commit.
operators/o2ims-operator/README.md
Outdated
| done | ||
| ``` | ||
|
|
||
| ## Provisioning Request Phases: |
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.
@NMSVishal I think it is better to put this around here --> https://github.com/nephio-project/nephio/tree/main/operators/o2ims-operator#operator-logic
operators/o2ims-operator/README.md
Outdated
|
|
||
| ## Provisioning Request Phases: | ||
|
|
||
| Enumeration value Description |
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.
Can you make it into a table?
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.
done
operators/o2ims-operator/api/app.py
Outdated
| if data.get('templateName')=='' or data.get('templateVersion')=='' or data.get('templateParameters')=='': | ||
| logging.info("One of the Parameter from templateName,templateVersion,templateParameters is null.. ") | ||
| return jsonify({"status":{"updateTime":"","message":f"O2IMS Deployment Failed,{e}","provisioningPhase":"FAILED"}}),500 | ||
|
|
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.
Can you remove the additional whitespace?
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.
done
| from provisioning_request_validation_controller import * | ||
| from datetime import datetime | ||
| import logging | ||
| import kopf |
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.
@NMSVishal Now this is not an operator because it is not accepting any CRD it is just a flask server then we should remove kopf part
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.
hi @arora-sagar, we still need the kopf because flaks expose the REST API and then internally it creates the O2IMS CR so the exisiting kopf of O2IMS is 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.
Okay, for the moment, this approach is fine, but I don't understand the benefit of maintaining the CR in the ETCD.If nobody will really use it. To remove the CR logic, we need to make some changes. We can do it later
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.
If we want to remove the Kopf ,it will be compltely ,API micro-service and I will need more time for its implementation.
At initial I had represented my approach showcasing reutilizing KOPF codebase
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.
Could this be done now? If the plan is to move to a REST server, we should remove the controller logic. Also, as @arora-sagar mentioned, it is no longer a controller.
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.
@efiacor Okay, it seems it requires a bit more work to remove controller logic. So we can move that to the next release for the moment, I am fine with accepting it like this.
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.
operators/o2ims-operator/.env
Outdated
| @@ -0,0 +1 @@ | |||
| RUNNING_ENVIRONMENT=TEST # TEST for binary run, CLUSTER for k8s cluster based run No newline at end of file | |||
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.
Since .env file is not needed anymore ,I am removing it
|
@arora-sagar @NMSVishal @gvbalaji |
|
Resolved all conflicts |
Added POST API for accepting provisioning request payload