Uploaded image for project: 'Project Quay'
  1. Project Quay
  2. PROJQUAY-2125

Add More Explicit Logging Information

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • quay-builder
    • False
    • False
    • Undefined
    • 0

      When users are using quay-builder as per the documentation, but the quay host is located outside of the k8s cluster, the quay-builder pods fail. The errors given aren't very specific about what part of the process is failing.

      Steps to reproduce:

      • Set up Quay on a dedicated host. (Not k8s operator)
      • Follow the docs on enabling a quay-builder.
      • Builds will fail - Edit config.yaml and add `DEBUG: true` to enable debugging and leave the pods running so logs can be accessed.
      • Using the ssh technique described in the docs, log into the failed vm and use systemctl to view the logs:
      [core@44e1a1c3-833b-4ec8-9f52-f840511ce499 ~]$ sudo systemctl status quay-builder
      ● quay-builder.service
         Loaded: loaded (/etc/systemd/system/quay-builder.service; enabled; vendor preset: enabled)
         Active: failed (Result: exit-code) since Mon 2021-06-14 22:32:10 UTC; 1min 49s ago
        Process: 1556 ExecStart=/usr/bin/podman run --rm --privileged --env-file /root/overrides.list -v /var/run/podman/podman.sock:/var/run/podman/podman.sock -v /etc/pki/ca-trust-source/ancho>
        Process: 1488 ExecStartPre=/usr/bin/podman login -u 3798495|quay -p eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiIxYzNjZGY4MjY1OGM0MGJmOTRhMzgxMmU0ZjgzOTJkMyJ9.EufycV25k6sBN8B5VH_qnwgHEL--P-caqj9lTP5E>
       Main PID: 1556 (code=exited, status=1/FAILURE)Jun 14 22:31:59 44e1a1c3-833b-4ec8-9f52-f840511ce499 podman[1556]: time="2021-06-14T22:31:59Z" level=info msg="successfully sent heartbeat to BuildManager"
      Jun 14 22:32:01 44e1a1c3-833b-4ec8-9f52-f840511ce499 podman[1556]: time="2021-06-14T22:32:01Z" level=info msg="successfully sent heartbeat to BuildManager"
      Jun 14 22:32:03 44e1a1c3-833b-4ec8-9f52-f840511ce499 podman[1556]: time="2021-06-14T22:32:03Z" level=info msg="successfully sent heartbeat to BuildManager"
      Jun 14 22:32:05 44e1a1c3-833b-4ec8-9f52-f840511ce499 podman[1556]: time="2021-06-14T22:32:05Z" level=info msg="successfully sent heartbeat to BuildManager"
      Jun 14 22:32:07 44e1a1c3-833b-4ec8-9f52-f840511ce499 podman[1556]: time="2021-06-14T22:32:07Z" level=info msg="successfully sent heartbeat to BuildManager"
      Jun 14 22:32:09 44e1a1c3-833b-4ec8-9f52-f840511ce499 podman[1556]: time="2021-06-14T22:32:09Z" level=warning msg="failed to get log message: EOF"
      Jun 14 22:32:09 44e1a1c3-833b-4ec8-9f52-f840511ce499 podman[1556]: time="2021-06-14T22:32:09Z" level=fatal msg="Failed to publish log entry: EOF"
      Jun 14 22:32:10 44e1a1c3-833b-4ec8-9f52-f840511ce499 systemd[1]: quay-builder.service: Main process exited, code=exited, status=1/FAILURE
      Jun 14 22:32:10 44e1a1c3-833b-4ec8-9f52-f840511ce499 systemd[1]: quay-builder.service: Failed with result 'exit-code'.
      Jun 14 22:32:10 44e1a1c3-833b-4ec8-9f52-f840511ce499 systemd[1]: Failed to start quay-builder.service.
      
      

        1. quaybuild.log
          3 kB
          Brian Monroe
        2. config.yaml
          4 kB
          Brian Monroe

            sleesinc Kenny Lee Sin Cheong
            paradoxguitarist Brian Monroe (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: