Skip to content
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

[doc] Adds operator deployment steps in OpenShift #132

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

alosadagrande
Copy link
Contributor

@alosadagrande alosadagrande commented Jul 30, 2024

This PR updates documentation:

  • It divides the README into two main blocks: deployment via operator in OpenShift and local deployment (testing)
  • Deployment of the IMS operator on top of OpenShift
  • Configuration of the different microservices of the IMS operator using the ORANO2MS CR. There was no example of that CR in the repo.
  • Currently only metadata, deployment manager and resource server. The rest could be added once they are validated in the operator deployment.
  • An index is added to ease navigation through the information

Let me know your thoughts.

@bartwensley
Copy link
Collaborator

/cc @Missxiaoguo @irinamihai

Angie and Irina would be the best ones to review this.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Copy link

openshift-ci bot commented Sep 25, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign alegacy for approval. For more information see the Kubernetes Code Review Process.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@alosadagrande
Copy link
Contributor Author

Comments addressed. PTAL.

@mmorency2021
Copy link

i have tried to test the CRs in this PR for instance the metadata Kind and also the api version seems wrong.
from this discussion : https://redhat-internal.slack.com/archives/C07A9NFCS01/p1726609509792089
the new kind used is : Inventory. and the api version is : o2ims.oran.openshift.io/v1alpha1.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@bartwensley
Copy link
Collaborator

bartwensley commented Nov 13, 2024

@alosadagrande - it would be great if you could update this PR to address the comments and to incorporate the latest changes to how we deploy the operator.

@alosadagrande alosadagrande force-pushed the doc-operator branch 6 times, most recently from c43b6d1 to a8b232b Compare November 15, 2024 11:45
@alosadagrande
Copy link
Contributor Author

@bartwensley @alegacy could you open it again, sorry not sure how it happened :(

@alegacy alegacy reopened this Nov 15, 2024
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
enabled: true
resourceServerConfig:
# A route must be created in the open-cluster-management namespace (RHACM) to expose the search collector Pod
backendURL: https://search-api-open-cluster-management.apps.hub0.inbound-int.se-lab.eng.rdu2.dc.redhat.com
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The backendURL is optionally and shouldn't be used in this example.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But it is necessary to query the different resources, right? should we include a link or information to enable the searchCollector in a different section then?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this is an optional field. We can auto-detect it if not provided.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mmm yesterday @nocturnalastro was creating his environment and it was required to expose the searchCollector API as a route at least

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a bit surprising since we access the service directly but at the very least it does not need to be specified in the Inventory CR.

README.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
@alosadagrande alosadagrande force-pushed the doc-operator branch 2 times, most recently from 90c9cbd to 67df9a2 Compare November 15, 2024 14:48
smo:
url: http://smo.example.com
registrationEndpoint: /mock_smo/v1/ocloud_observer
#image: quay.io/NAMESPACE/CONTAINER_IMAGE // uncomment if you want to use your built image otherwise will be populated with the default image.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment here is not accurate. If using make deploy the image used will be the user's development image. The only reason to use this is if for some reason someone wanted to use a completely different image. I would prefer if we removed this comment.

cloudID: f7fd171f-57b5-4a17-b176-9a73bf6064a4
deploymentManagerServerConfig:
enabled: true
#examples of using the extensions spec
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment can be removed as well.

@@ -145,31 +394,43 @@ $ ./oran-o2ims start resource-server --help
Inside _VS Code_ use the _Run and Debug_ option with the `start
resource-server` [configuration](.vscode/launch.json).

##### Requests Examples
#### <a name='InfrastructureInventorySubscriptionServerResourceServer'></a>Infrastructure Inventory Subscription Server (Resource Server)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section on the inventory subscription server can now be removed. It has been incorporated directly into the resource server component.

To get the api versions supported

```sh
$ curl --insecure --silent --header "Authorization: Bearer $MY_TOKEN"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should be consistent with the use of brackets around variables. ${MY_TOKEN} rather than $MY_TOKEN


### <a name='QuerytheInfrastructureInventorySubscriptionResourceServer'></a>Query the Infrastructure Inventory Subscription (Resource Server)

#### <a name='GETInfrastructureInventorySubscriptionList'></a>GET Infrastructure Inventory Subscription List

To get a list of resource subscriptions:

```
$ curl -s http://localhost:8004/o2ims-infrastructureInventory/v1/subscriptions | jq
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These next few curl commands also need the Authorization header... sorry, my mistake for missing that when I moved these lines.

```sh
$ oc get route -n oran-o2ims
NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD
api-2fv99 o2ims.apps.hub0.inbound-int.se-lab.eng.rdu2.dc.redhat.com / metadata-server api reencrypt/Redirect None
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we might want to remove all of the lab URIs and replace with apps.example.com

Copy link
Collaborator

@bartwensley bartwensley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - just a couple minor comments.

hack/install_test_deps.sh
Downloading golangci-lint
… REDACTED …
/home/alosadag/Documents/CNF/ORAN/oran-o2ims/bin/kustomize build config/default | /home/alosadag/Documents/CNF/ORAN/oran-o2ims/bin/kubectl apply -f -
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably remove the path and just start with .../oran-o2ims - also should remove any occurrences of your username and replace with (maybe those will all disappear with the path though).

Comment on lines +784 to +787
api-2fv99 o2ims.apps.hub0.inbound-int.se-lab.eng.rdu2.dc.redhat.com / metadata-server api reencrypt/Redirect None
api-cbvbz o2ims.apps.hub0.inbound-int.se-lab.eng.rdu2.dc.redhat.com /o2ims-infrastructureInventory/v1/resourceTypes resource-server api reencrypt/Redirect None
api-v92jb o2ims.apps.hub0.inbound-int.se-lab.eng.rdu2.dc.redhat.com /o2ims-infrastructureInventory/v1/deploymentManagers deployment-manager-server api reencrypt/Redirect None
api-xllml o2ims.apps.hub0.inbound-int.se-lab.eng.rdu2.dc.redhat.com /o2ims-infrastructureInventory/v1/resourcePools resource-server api reencrypt/Redirect None
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't use real FQDNs in your examples - please change the "se-lab.eng.rdu2.dc" part to something generic or a placeholder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants