Bug 2213018

Summary: [DDF] /var/run/mysql does not exist in container image so this step will fail. Need to run the following prior to this
Product: Red Hat OpenStack Reporter: Direct Docs Feedback <ddf-bot>
Component: documentationAssignee: Gareth Brinn <gbrinn>
Status: POST --- QA Contact: RHOS Documentation Team <rhos-docs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16.2 (Train)CC: fdiazbra, gbrinn, kgilliga
Target Milestone: ---Keywords: Documentation, Triaged
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Direct Docs Feedback 2023-06-06 21:24:34 UTC
/var/run/mysql does not exist in container image so this step will fail.  Need to run the following prior to this step:

sudo podman exec $(sudo podman container ls --all --format "{{ .Names }}" \
      --filter=name=galera-bundle) mkdir /var/run/mysql; chown mysql:mysql /var/run/mysql

Reported by: mflusche

https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/16.2/html/backing_up_and_restoring_the_undercloud_and_control_plane_nodes/assembly_restoring-the-undercloud-and-control-plane-nodes_br-undercloud-ctlplane#annotations:b62dd077-3a81-4776-92d6-102b03de5ffd

Comment 2 Fernando Díaz 2023-07-06 10:56:34 UTC
The folder does not exists in the container image, but following the procedure in the doc the folder is already there. If I execute the command proposed I get an error because the file already exists:

[heat-admin@controller-1 ~]$ sudo podman exec $(sudo podman container ls --all --format "{{ .Names }}"  \
> --filter=name=galera-bundle) bash -c "mkdir /var/run/mysql; chown mysql:mysql /var/run/mysql"
mkdir: cannot create directory ‘/var/run/mysql’: File exists