-
Bug
-
Resolution: Done
-
Undefined
-
None
-
rhos-18.0 Dev Preview 2
-
None
-
False
-
-
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.
~~~
- Generate the mariadb configs from the templates, these will get
- 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.
- relates to
-
OSPRH-1437 Deploy OCP and Openstack Controlplane + Dataplane with IPv6
- Verified
- links to
- mentioned on