Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-22308

In the adoption guide - when getting the count of source databases - the bash code fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhos-18.0.z
    • documentation
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • rhos-ops-day1day2-upgrades
    • None
    • Moderate

      In the Adoption documentation:
      https://docs.redhat.com/en/documentation/red_hat_openstack_services_on_openshift/18.0/html/adopting_a_red_hat_openstack_platform_17.1_deployment/migrating-databases-to-the-control-plane_configuring-network#proc_retrieving-topology-specific-service-configuration_migrating-databases

      In the step:

      "Get the count of source databases with the NOK (not-OK) status:"

      The code is:

      for CELL in $(echo $CELLS); do
      >   oc rsh mariadb-copy-data mysql -h "${SOURCE_MARIADB_IP[$CELL]}" -uroot -p"${SOURCE_DB_ROOT_PASSWORD[$CELL]}" -e "SHOW databases;"
      > end 

      And as result:

      The code should end with "done" not "end":

      for CELL in $(echo $CELLS); do
        oc rsh mariadb-copy-data mysql -h "${SOURCE_MARIADB_IP[$CELL]}" -uroot -p"${SOURCE_DB_ROOT_PASSWORD[$CELL]}" -e "SHOW databases;"
      done 

       

       

        1. image-2025-11-21-10-03-18-034.png
          35 kB
          Pedro Navarro Perez
        2. Screenshot 2025-11-21 at 10.02.20.png
          35 kB
          Pedro Navarro Perez

              kgilliga@redhat.com Katie Gilligan
              pnavarro@redhat.com Pedro Navarro Perez
              rhos-dfg-upgrades
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: