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

DO280-531: ch09s02 : feedback for rephrasing

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Major Major
    • None
    • DO280 - OCP 4.6 1 20210723
    • DO280
    • ROLE
    • en-US (English)

      URL: https://rol.redhat.com/rol/app/courses/do280-4.6/pages/ch09s02
      Reporter RHNID: ctiwary@redhat.com
      Section: 2 - Lab: Troubleshoot an OpenShift Cluster and Applications
      Language: en-US (English)
      Workaround:

      Description: in step 5 we create a secret named mysql with one key-value pair

      and in step 6 there is something that bothers me a lot

      The Wordpress application requires that you set several environment variables. The required environment variables are: WORDPRESS_DB_HOST with a value of mysql, WORDPRESS_DB_NAME to have a value of wordpress, WORDPRESS_USER with a value of wpuser, WORDPRESS_PASSWORD with a value of wppass, WORDPRESS_TITLE to have a value of review-troubleshoot, WORDPRESS_URL with a value of wordpress.${RHT_OCP4_WILDCARD_DOMAIN} and WORDPRESS_EMAIL with a value of student@redhat.com.
      Set the WORDPRESS_DB_* environment variables to retrieve their values from the mysql secret.

      so we're asked to create a lot of variables

      including some with DB ending,

      but then asks us to use the mysql secret to give the DB info

      but we haven't defined anything but the password in that secret. So to me the solution should be to update the secret to include all DB key / value pairs that wordpress needs.

      but instead of that, the solution creates all DB_ values in the new-app command (including _DB_USER that is not in the Question)

      and then uses the secret only for the WORDPRESS_DB_PASSWORD as it's the only value in the secret.

      so I think the question could be clarified, either to say that only the DB_PASSWORD will be fetched from the secret OR that the secret needs to be updated

      and then in the question we lack the variable WORDPRESS_DB_USER.

      is this a valid feedback or I am wrong in thinking the same ?

              rht-anhernan Andres Hernandez
              chetan-rhls Chetan Tiwary
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: