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

Unable to pull image / cnab from ACR #285

Open
hemantkathuria opened this issue Oct 29, 2023 · 2 comments
Open

Unable to pull image / cnab from ACR #285

hemantkathuria opened this issue Oct 29, 2023 · 2 comments
Labels
question Halp plz

Comments

@hemantkathuria
Copy link

hemantkathuria commented Oct 29, 2023

I am trying to follow the instructions mentioned here:

The below command never works and it gives the error:

porter credentials generate porterops -r ghcr.io/getporter/porter-operator:v1.0.0
unable to pull bundle: failed to get bundle config manifest from "ghcr.io/getporter/porter-operator:v1.0.0": bundle config not found

Whereas the same command works if I change the version to v0.8.2. Please tell what needs to be done to use the latest package.

I have pushed my porter cnab package to Azure ACR. Since it is secured, I have added a imagepull secret and added the reference of same in porter-agent service account.

apiVersion: v1
imagePullSecrets:
- name: crporterpocsecret
kind: ServiceAccount
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"v1","kind":"ServiceAccount","metadata":{"annotations":{},"labels":{"getporter.org/generator":"porter-operator-bundle"},"name":"porter-agent","namespace":"unifieddeployment"}}
  creationTimestamp: "2023-10-29T05:15:27Z"
  labels:
    getporter.org/generator: porter-operator-bundle
  name: porter-agent
  namespace: unifieddeployment
  resourceVersion: "453228"
  uid: 9649e9b6-54f1-4abe-aaaa-23ed3c850105

crporterpocsecret kubernetes.io/dockerconfigjson 1 5h51m

Also, I have created a custom agent config and have referred the same in my installation:

apiVersion: getporter.org/v1
kind: AgentConfig
metadata:
  name: customagent
spec:
  serviceAccount: porter-agent
  storageClassName: azureblob-nfs-premium
  pluginConfigFile:
    schemaVersion: 1.0.0
    plugins:
      kubernetes:
        version: v1.0.1
      azure:
        version: v1.0.1

In my installation, I am getting the below error continuously. Please help.

Creating a new installation     {"installation": "unifieddeployment/azuredep-66"}
unable to pull bundle: failed to resolve bundle manifest "crporterpoc.azurecr.io/porter-hello:v0.1.0": failed to authorize: failed to fetch anonymous token: unexpected status: 401 Unauthorized
unable to pull bundle: failed to resolve bundle manifest "crporterpoc.azurecr.io/porter-hello:v0.1.0": failed to authorize: failed to fetch anonymous token: unexpected status: 401 Unauthorized
@troy0820
Copy link
Member

This was self published and may need to published through a pipeline. @schristoff we may need to update the image because it’s having issues being pulled. Locally I can do it but I’m also an admin.

@hemantkathuria
Copy link
Author

hemantkathuria commented Oct 30, 2023

@troy0820 - I believe you are referring to issue no 1 where I am not able to install porter-operator:v1.0.0. Could you please help with the other issue also where I am not able to download the package from ACR? Is this also dependent on image being published via pipeline?

@troy0820 @schristoff @sgettys - Some clarification will be really helpful.

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

No branches or pull requests

2 participants