create parent dir of jobs_dir for freezer-scheduer

Commit [1] deletes the relevant operation permission of the
/etc/freezer directory, causing the freezer-scheduler to have
no permission when creating the jobs_dir directory in the
/etc/freezer directory. This patch creates partent dir of
jobs_dir for freezer-scheduler, so that, freezer-scheduler
process can startup successfully.

[1] https://review.opendev.org/c/openstack/kolla/+/722102

Related-Bug: #2031953
Change-Id: I9c7fea3e0f70ff2e15394e99e26d21c548b95b16
This commit is contained in:
howardlee 2023-08-24 15:03:33 +08:00
parent 4c31f7a3f2
commit 709d27ba37

View File

@ -5,6 +5,8 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% block freezer_scheduler_header %}{% endblock %}
RUN mkdir -p /etc/freezer/scheduler
{% block freezer_scheduler_footer %}{% endblock %}
{% block footer %}{% endblock %}