Uploaded image for project: 'Product Technical Learning'
  1. Product Technical Learning
  2. PTL-8498

DO280-564: Chp 9, Comp. Review, lab review-troubleshoot grade can fail unexpected

XMLWordPrintable

    • ILT, ROLE, VT
    • en-US (English)

      URL: https://rol.redhat.com/rol/app/courses/do280-4.6/pages/ch09s02
      Reporter RHNID: obohlen
      Section: 2 - Comprehensive Review
      Language: en-US (English)
      Workaround: fix the grade script manually

      Description: Delegates can experience that "lab review-troubleshoot grade" complains they failed to create the "wordpress-sa" service account correctly, also the checking for the anyuid usage, etc can fail.

      The reason is that the lab script does the oc get's without specifying the namespace. This should work, because the delegates are supposed to have their kubernetes context set to the namespace, but "unfortunately" the grade script also switches users with oc login, and that might reset their namespace context.

       

      So please fix the script and ensure that all namespace bout resources are "oc get" with the correct namespace (i.e. oc get -n "${this}"), see for example line 605

       

            gls-curriculum-ocp-core@redhat.com PTL - OCP Platform Team
            olafbohlen Olaf Bohlen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: