File tree Expand file tree Collapse file tree 5 files changed +27
-0
lines changed Expand file tree Collapse file tree 5 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -10,5 +10,8 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
10
10
{% set dnsmasq_packages = ['dnsmasq' ] %}
11
11
{{ macros.install_packages(dnsmasq_packages| customizable("packages")) }}
12
12
13
+ COPY extend_start.sh /usr/local/bin/kolla_extend_start
14
+ RUN chmod 644 /usr/local/bin/kolla_extend_start
15
+
13
16
{% block dnsmasq_footer %}{% endblock %}
14
17
{% block footer %}{% endblock %}
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ if [[ ! -d " /var/log/kolla/ironic" ]]; then
4
+ mkdir -p /var/log/kolla/ironic
5
+ fi
6
+ if [[ $( stat -c %a /var/log/kolla/ironic) != " 755" ]]; then
7
+ chmod 755 /var/log/kolla/ironic
8
+ fi
9
+ if [[ ! -r " /var/log/kolla/ironic/dnsmasq.log" ]]; then
10
+ touch /var/log/kolla/ironic/dnsmasq.log
11
+ chown ironic:ironic /var/log/kolla/ironic/dnsmasq.log
12
+ fi
Original file line number Diff line number Diff line change @@ -7,4 +7,6 @@ if [[ $(stat -c %a /var/log/kolla/openvswitch) != "755" ]]; then
7
7
chmod 755 /var/log/kolla/openvswitch
8
8
fi
9
9
10
+ chown -R openvswitch:openvswitch /var/log/kolla/openvswitch
11
+
10
12
. /usr/local/bin/kolla_openvswitch_extend_start
Original file line number Diff line number Diff line change 8
8
if [[ $( ovsdb-tool needs-conversion /var/lib/openvswitch/conf.db) == yes ]]; then
9
9
ovsdb-tool convert " /var/lib/openvswitch/conf.db"
10
10
fi
11
+
12
+ if [[ ! -r " /var/log/kolla/openvswitch/ovsdb-server.log" ]]; then
13
+ touch /var/log/kolla/openvswitch/ovsdb-server.log
14
+ chown openvswitch:openvswitch /var/log/kolla/openvswitch/ovsdb-server.log
15
+ fi
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ if [[ ! -r " /var/log/kolla/openvswitch/ovs-vswitchd.log" ]]; then
4
+ touch /var/log/kolla/openvswitch/ovs-vswitchd.log
5
+ chown openvswitch:openvswitch /var/log/kolla/openvswitch/ovs-vswitchd.log
6
+ fi
7
+
3
8
modprobe openvswitch
You can’t perform that action at this time.
0 commit comments