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

IPv4 and IPv6 dual stack OCP deployment fails to setup configuration for galera in mysql-bootstrap container

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhos-18.0 Dev Preview 2
    • rhos-dev-preview
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • ?
    • ?
    • ?
    • No
    • Important

      With metal3 dev-scripts, IPv4 and IPv6 dual stack deployment causes an error in mysql-bootstrap container.

      When Pod has IPv4 and IPv6 addresses, mysql-bootstrap container has the following logs.
      ~~~
      $ oc logs -f openstack-galera-0 -c mysql-bootstrap
      Database already exists. Reuse it.
      Generating config file from template galera.cnf.in
      sed: -e expression #2, char 23: unterminated `s' command
      ~~~

      This is caused by the following sed command.
      ~~~

      1. Generate the mariadb configs from the templates, these will get
      2. copied by `kolla_start` when the pod's main container will start
        PODNAME=$(hostname -f | cut -d. -f1,2)
        PODIP=$(grep "${PODNAME}" /etc/hosts | cut -d$'\t' -f1)
        cd /var/lib/config-data
        for cfg in *.cnf.in; do
        if [ -s "${cfg}" ]; then
        echo "Generating config file from template ${cfg}"
        sed -e "s/ { PODNAME }

        /${PODNAME}/" -e "s/

        { PODIP }

        /${PODIP}/" "/var/lib/config-data/${cfg}" > "/var/lib/pod-config-data/${cfg%.in}"
        fi
        done
        ~~~

      If PODIP has IP4 and IPv6 addresses, the sed command always fails.
      Also, it assumes either of IPv4 or IPv6 is used not dual stack deployment.

      Unfortunately, we don't have any information about this in our dev-preview guide.

            grosenbe-redhat.com Gil Rosenberg
            rhn-support-knoha Keigo Noha
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: