Bug 2213018 - [DDF] /var/run/mysql does not exist in container image so this step will fail. Need to run the following prior to this
Summary: [DDF] /var/run/mysql does not exist in container image so this step will fail...
Keywords:
Status: POST
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: documentation
Version: 16.2 (Train)
Hardware: All
OS: All
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Gareth Brinn
QA Contact: RHOS Documentation Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-06 21:24 UTC by Direct Docs Feedback
Modified: 2023-07-24 18:04 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-25662 0 None None None 2023-06-06 21:25:58 UTC

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


Note You need to log in before you can comment on or make changes to this bug.