Uploaded image for project: 'OpenShift Builds'
  1. OpenShift Builds
  2. BUILD-1160

Build not registered after creating the git clone credentials secret

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Normal Normal
    • None
    • builds-1.1
    • shipwright
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      Description of problem:

      If we create a build requiring git credential before creating the secret and we create the secret after build creation, the build cannot start.

      Prerequisites (if any, like setup, operators/versions):

      OCP 4.16.17 installed

      OpenShift Build Operator 1.1.0 is installed

      Steps to Reproduce

       # Create a new namespace called redhat-saia

      1. Create the build (see attachment: build-single-serve-runtimes.yaml) in the namespace redhat-saia.
      1. Create the secret git-redhat-saia (see attachment: secret-git-redhat-saia.yaml I have ofscuated the token,) in the namespace redhat-sais
      1. Start the build (using the GUI)

        Actual results:

      The build fails to start with BuildRegistrationFailed reason on Succeeded condition with the message: the Build is not registered correctly, build: single-serve-runtimes, registered status: False, reason: SpecSourceSecretRefNotFound

      Expected results:

      The build start

      Workaround: Delete the build and recreate it, it will work.

      Reproducibility (Always/Intermittent/Only Once): Always

      Acceptance criteria: We should be able to run a build after the referenced secret.git.cloneSecret has been created.

       

      Definition of Done:

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

      BuildRun YAML buildrun-single-serve-runtimes-fcrl5.yaml) No logs are generated by the buildrun.

       *

        1. buildrun-single-serve-runtimes-fcrl5.yaml
          1 kB
          Laurent TOURREAU
        2. build-single-serve-runtimes.yaml
          0.5 kB
          Laurent TOURREAU
        3. secret-git-redhat-saia.yaml
          0.2 kB
          Laurent TOURREAU

              Unassigned Unassigned
              laurent.tourreau Laurent TOURREAU
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: