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

Starting Metadata service automatically #260

Closed
wants to merge 0 commits into from

Conversation

mmorency2021
Copy link

This is part of ORAN - Project infrastructure - Automatically start services
https://issues.redhat.com/browse/MGMT-18997

  • Using Target deploy to install operator and enable services

  • Using clusterID to deploy meta data server , user can edit later on the CR to add more parameters

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 15, 2024
@openshift-merge-robot
Copy link
Collaborator

PR needs rebase.

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-sigs/prow repository.

Copy link

openshift-ci bot commented Oct 15, 2024

Hi @mmorency2021. Thanks for your PR.

I'm waiting for a openshift-kni member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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-sigs/prow repository.

@openshift-ci openshift-ci bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Oct 15, 2024
@alegacy
Copy link
Collaborator

alegacy commented Oct 16, 2024

/ok-to-test

@openshift-ci openshift-ci bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Oct 16, 2024
@bartwensley
Copy link
Collaborator

Please take a look at the comments on #132 - according to the comments there, the token is not necessary and the image isn't required in the Inventory CR.

@bartwensley
Copy link
Collaborator

/cc @alegacy

@openshift-ci openshift-ci bot requested a review from alegacy October 22, 2024 13:40
spec:
alarmSubscriptionServerConfig:
enabled: false
cloudId: ae6bd821-a4a4-4e53-89d1-94609968e40e
Copy link
Collaborator

Choose a reason for hiding this comment

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

This cloudId is meant to be the globalCloudId... as discussed internally this should be made optionally and excluded from this CR and only provided by the end user when the system is ready to be registered with the SMO, this is because the system cannot register with the SMO until the administrator has setup this cloud in the SMO and has acquired the globalCloudId.

So i think what should happen here is that this field be made optional, and renamed to globalCloudId so that its intent is clear.

Copy link
Collaborator

Choose a reason for hiding this comment

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

This file should probably be named inventory.yaml since metadata-server is only one of the servers being started, but not the entire purpose of this CR.

Makefile Outdated

ifndef ignore-not-found
ignore-not-found = false
ignore-not-found = true
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be removed before merging... and can be specified at the command line like this:

make IMAGE_TAG_BASE=<your repo name here> undeploy docker-push install deploy ignore-not-found=true

Makefile Outdated

# getting the cloud id and the IngressHost

CLOUD_ID := $(shell oc get clusterversion -o jsonpath='{.items[].spec.clusterID}{"\n"}')
Copy link
Collaborator

Choose a reason for hiding this comment

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

These new lines can all be removed. See comments in the metadata-server.yaml file.

app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: orano2ims
app.kubernetes.io/part-of: oran-o2ims
name: metadata-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 name should be changed to something more generic... like default or cluster which are two examples that seem to be used by other operators that automatically create an instance of themselves. I prefer default... @bartwensley @browsell thoughts?

Copy link
Collaborator

Choose a reason for hiding this comment

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

+1 for default

Copy link

openshift-ci bot commented Oct 22, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. ok-to-test Indicates a non-member PR verified by an org member that is safe to test.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants