Fix broken iptables command in cinder
Fixes a broken iptables command from
3f34fc4d28
.
This was causing invalid port/service errors.
Also, fixes an issue where the /var/run/cinder
directory doesn't actually exist.
With both of these fixes the cinder element
actually runs for me.
Change-Id: I236a84ac7c73b0295d4734fac62f94b9722bd512
Closes-bug: 1269143
This commit is contained in:
parent
ffe88d011d
commit
6043adefb1
|
@ -1,6 +1,8 @@
|
|||
#!/bin/bash
|
||||
set -eu
|
||||
|
||||
mkdir -p /var/run/cinder
|
||||
chown -R cinder:cinder /var/run/cinder
|
||||
OK=/var/run/cinder/fedora-iptables.ok
|
||||
|
||||
if [ -e $OK ] ; then
|
||||
|
@ -19,7 +21,7 @@ if [[ "Fedora" = $DISTRO ]]; then
|
|||
fi
|
||||
|
||||
# Openstack services
|
||||
iptables -I INPUT -p tcp -m multiport --dports 3260, 8776 -j ACCEPT
|
||||
iptables -I INPUT -p tcp -m multiport --dports 3260,8776 -j ACCEPT
|
||||
|
||||
iptables-save > $IPT_FILE
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue