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

DRO task oddities #1304

Open
jalepisto opened this issue May 13, 2024 · 4 comments
Open

DRO task oddities #1304

jalepisto opened this issue May 13, 2024 · 4 comments
Assignees

Comments

@jalepisto
Copy link

DRO task sets redhat-marketplace-pull-secret value to be ibm-entitlement key. Can't be right. At least its complaining
"failed to unmarshal secret: error unmarshaling JSON: while decoding JSON: json: cannot unmarshal string into Go value of type v1.Secret'"

Another problem with this forced Red Hat Marketplace setup is, check the image. Why is it forced whenits not available everywhere.
image

@lokesh-sreedhara
Copy link
Contributor

@jalepisto can u provide logs from the ansible tasks? i would like to see at what step this error occurs. also can you confirm the IBM entitlement key used here was of the correct format without any whitespaces?

@dacleyra
Copy link

If you get the key from either (must me logged in)
https://swc.saas.ibm.com/en-us/redhat-marketplace/account/keys
https://swc.saas.ibm.com/en-us/software-central/account/keys
Create it as name: redhat-marketplace-pull-secret

If you get the key from here https://myibm.ibm.com/products-services/containerlibrary
Create it as name: ibm-entitlement-key

Data Reporter Operator and IBM Metrics Operator container images are hosted on quay.io

You can check the ibm-metrics-operator logs to ensure your key is decoded correctly

oc -n redhat-marketplace logs $(oc -n redhat-marketplace get pod -l redhat.marketplace.com/name=ibm-metrics-operator -o jsonpath='{.items..metadata.name}')

And check the MarketPlaceConfig Status for any other warnings

oc -n redhat-marketplace describe marketplaceconfig

@jalepisto
Copy link
Author

jalepisto commented May 31, 2024 via email

@dacleyra
Copy link

When you are creating ibm-entitlement-key on cluster

Obtain from
https://myibm.ibm.com/products-services/containerlibrary

Create as

oc create secret docker-registry ibm-entitlement-key -n redhat-marketplace --docker-server=cp.icr.io --docker-username=cp --docker-password=$IBM_ENTITLEMENT_KEY

As per typical documentation by Cloud Pak
https://www.ibm.com/docs/en/cloud-paks/cp-management/2.3.x?topic=installation-preparing-online-cluster#er

If you were not aware of the creation difference, apologies for not being specific. RHM/SWC does externally document ibm-entitlement-key path as it is currently only intended for CP auto-installing ibm-metrics-operator, and having an auth without the need for the RHM/SWC pull secret. This auth mechanism also lacks certain identifying information, so it is least preferred if a user is using the RHM/SWC portal, and configuring the operator on their own.


The RHM/SWC pull secret

Obtained from
https://swc.saas.ibm.com/en-us/redhat-marketplace/account/keys
https://swc.saas.ibm.com/en-us/software-central/account/keys

Created as

oc -n redhat-marketplace create secret generic redhat-marketplace-pull-secret --from-literal=PULL_SECRET=$RHM_PULL_SECRET

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

No branches or pull requests

3 participants