Merge "Loads ebtables from inside the containers"

This commit is contained in:
Jenkins 2015-03-30 21:49:26 +00:00 committed by Gerrit Code Review
commit 32b32280da
4 changed files with 6 additions and 7 deletions

View File

@ -14,6 +14,7 @@ libvirt:
volumes: volumes:
- /run:/run - /run:/run
- /sys/fs/cgroup:/sys/fs/cgroup - /sys/fs/cgroup:/sys/fs/cgroup
- /lib/modules:/lib/modules:ro
volumes_from: volumes_from:
- computedata - computedata
@ -28,6 +29,7 @@ novanetwork:
volumes: volumes:
- /run:/run - /run:/run
- /sys/fs/cgroup:/sys/fs/cgroup - /sys/fs/cgroup:/sys/fs/cgroup
- /lib/modules:/lib/modules:ro
volumes_from: volumes_from:
- computedata - computedata
@ -43,6 +45,8 @@ novaapi:
restart: always restart: always
env_file: env_file:
- openstack.env - openstack.env
volumes:
- /lib/modules:/lib/modules:ro
novacompute: novacompute:
image: kollaglue/centos-rdo-nova-compute image: kollaglue/centos-rdo-nova-compute
@ -55,5 +59,6 @@ novacompute:
volumes: volumes:
- /run:/run - /run:/run
- /sys/fs/cgroup:/sys/fs/cgroup - /sys/fs/cgroup:/sys/fs/cgroup
- /lib/modules:/lib/modules:ro
volumes_from: volumes_from:
- computedata - computedata

View File

@ -28,6 +28,7 @@ novanetwork:
volumes: volumes:
- /run:/run - /run:/run
- /sys/fs/cgroup:/sys/fs/cgroup - /sys/fs/cgroup:/sys/fs/cgroup
- /lib/modules:/lib/modules:ro
volumes_from: volumes_from:
- computedata - computedata

View File

@ -182,9 +182,6 @@ resources:
tar -xvf version-m3.tar.gz tar -xvf version-m3.tar.gz
mv kolla-version-m3 kolla mv kolla-version-m3 kolla
# Load ebtables kernel module required for networking
modprobe ebtables
# Start NTP # Start NTP
systemctl enable ntpd systemctl enable ntpd
systemctl start ntpd systemctl start ntpd

View File

@ -23,10 +23,6 @@ setenforce permissive
# is not installed in the system. # is not installed in the system.
mkdir -p /etc/libvirt/qemu mkdir -p /etc/libvirt/qemu
# This should probably go into nova-networking or nova-compute containers.
# but you can't modprobe from a container for some reason
modprobe ebtables
MY_IP=$(ip route get $(ip route | awk '$1 == "default" {print $3}') | MY_IP=$(ip route get $(ip route | awk '$1 == "default" {print $3}') |
awk '$4 == "src" {print $5}') awk '$4 == "src" {print $5}')