terraform-ibm-modules / stack-retrieval-augmented-generation

Apache License 2.0
1 stars 8 forks source link

ci-pipeline task build-sign-artifact fails #92

Closed maheshwarishikha closed 1 month ago

maheshwarishikha commented 1 month ago

Post stack deployment, ran ci-pipeline. Failed with the following error:

Error1

Registry namespace rag-sample-appsample not found
Adding namespace 'rag-sample-appsample' in resource group 'Default' for account geretain-shikha-think in registry us.icr.io...

FAILED
The requested namespace is already in use in registry 'us.icr.io'.
Choose a different namespace.

 === Execution of custom script for stage 'containerize' finished. Exit Code: '1'. ===

Re-ran pipeline with different namespace name. This time pipeline progressed further and all stages are passed except one build-sign-artifact. Error is:

Error2

Using the following defaults for stage "sign-artifact":

sign-artifact:
  image: icr.io/continuous-delivery/pipeline/image-signing:1.0.0@sha256:e9d8e354668ba3d40be2aaee08298d2aa7f0e1c8a1829cca4094ec93830e3e6a
  dind: false
  abort_on_failure: false
  image_pull_policy: IfNotPresent
  skip: false
  runAfter: null
  script: |
    #!/bin/sh

    "/opt/commons/sign-artifact/sign_image.sh"

cat: /config/break_glass: No such file or directory
Proceeding with self signing....
CentOS Linux 8 - AppStream                      114  B/s |  38  B     00:00    
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
base64: invalid input
Base64 Conversion is successful....
gpg: keybox '/root/.gnupg/pubring.kbx' created
gpg: Total number processed: 0
GPG key import is successfull.
gpg: /root/.gnupg/trustdb.gpg: trustdb created
No key found. Unable to sign

Error 1 is because of not using unique prefix. Do we need to document it somewhere?

ocofaigh commented 1 month ago

@maheshwarishikha In https://github.com/terraform-ibm-modules/stack-retrieval-augmented-generation/pull/93 the default prefix value was removed which should prevent Error 1

maheshwarishikha commented 1 month ago

signing_key was not provided, hence this error.