Skip to main content

Hi community,

 

I want to backup my ImageStreams in my OpenShift projects, so I set up a policy in Kasten like the following link:

https://docs.kasten.io/latest/usage/openshift_imagestreams.html

 

But, I have the next error when I tried to run a policy with the “Location Profile for Container Images” enable with my Export Repo

 

 

- cause:
    cause:
      cause:
        cause:
          message: creds are missing for an image repository
        fields:
          - name: repo
            value: ""
          - name: sa
            value: builder
        file: kasten.io/k10/kio/exec/internal/images/imagestream/image_stream.go:101
        function: kasten.io/k10/kio/exec/internal/images/imagestream.getImageSourceCreds
        linenumber: 101
        message: creds are missing for an image repository
      file: kasten.io/k10/kio/exec/internal/images/imagestream/image_stream.go:344
      function: kasten.io/k10/kio/exec/internal/images/imagestream.GetExportImagesForImageStream
      linenumber: 344
      message: failed to parse an imagestream
    file: kasten.io/k10/kio/exec/phases/backup/snapshot_images_phase.go:135
    function: kasten.io/k10/kio/exec/phases/backup.(*SnapshotImagesPhase).Run
    linenumber: 135
    message: Failed fetching images for export from image streams
  message: Job failed to be executed

 

I configured the secret with the credential to my external registry but I can’t find where configure it. I reviewed the complete CR of policy but I don’t find it. 

https://docs.kasten.io/latest/api/policies.html#policy-api-type

 

My goal is backup my ImageStreams from external registry.

 

Is there any configuration I need to do beforehand?

 

Thanks

 

Regards,

Hello ​@egutierrez ,

Veeam Kasten can discover the ImageStreams present in a namespace ,The steps you did follow is to protect ImageStreams in a namespace. The local images referenced in the backed-up ImageStream will then be stored to your location profile.


BR,
Ahmed Hagag


Hi Ahmed,

thanks for response, but, the question was...how fix the error “creds are missing for an image repository” when enable “Location Profile for Container Image”??? I don’t think that feature was put in place to cause the error. 

There must be a place where external registry access can be configured… or this feature that doesn’t work?

Help me with that, please.

Regards,


Hi ​@egutierrez I think you still able to abckup external images referenced in imagestreams.
Could you please share more details about your external registry and the process you use to create ImageStream references for it in your OpenShift cluster?


Comment