Refactor nova-network
Previously, eth0 was set as the nova flat interface. This interface is used to bridge VM traffic between instances and should not have an IP. It's a problem when you associate an interface with an IP to the FLAT_INTERFACE. Change-Id: I38c516094430e2d55b1b4c047a1bbcfe711a2dff
This commit is contained in:
parent
2dab951747
commit
81d65f0b3d
@ -10,8 +10,8 @@
|
|||||||
: ${RABBIT_USERID:=guest}
|
: ${RABBIT_USERID:=guest}
|
||||||
: ${RABBIT_PASSWORD:=guest}
|
: ${RABBIT_PASSWORD:=guest}
|
||||||
: ${NETWORK_MANAGER:=nova}
|
: ${NETWORK_MANAGER:=nova}
|
||||||
: ${FLAT_NETWORK:=eth0}
|
: ${FLAT_NETWORK:=eth1}
|
||||||
: ${PUBLIC_NETWORK:=eth1}
|
: ${PUBLIC_NETWORK:=eth0}
|
||||||
|
|
||||||
check_required_vars KEYSTONE_ADMIN_TOKEN NOVA_DB_PASSWORD \
|
check_required_vars KEYSTONE_ADMIN_TOKEN NOVA_DB_PASSWORD \
|
||||||
RABBITMQ_SERVICE_HOST GLANCE_API_SERVICE_HOST \
|
RABBITMQ_SERVICE_HOST GLANCE_API_SERVICE_HOST \
|
||||||
|
@ -7,7 +7,6 @@ cat > /etc/sysconfig/network-scripts/ifcfg-$FLAT_INTERFACE <<EOF
|
|||||||
DEVICE="$FLAT_INTERFACE"
|
DEVICE="$FLAT_INTERFACE"
|
||||||
BOOTPROTO="none"
|
BOOTPROTO="none"
|
||||||
ONBOOT="yes"
|
ONBOOT="yes"
|
||||||
DEFROUTE="yes"
|
|
||||||
TYPE="Ethernet"
|
TYPE="Ethernet"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ all containers. This allows a simple method of ensuring every type of node
|
|||||||
|
|
||||||
ADMIN_USER_PASSWORD=<steakfordinner> - The admin user password
|
ADMIN_USER_PASSWORD=<steakfordinner> - The admin user password
|
||||||
ADMIN_TENANT_NAME=<admin> - tenant name
|
ADMIN_TENANT_NAME=<admin> - tenant name
|
||||||
FLAT_INTERFACE=<nova or neutron networking flat interface device name>
|
FLAT_INTERFACE=<eth1> - nova networking flat interface device name
|
||||||
GLANCE_API_SERVICE_HOST=<IP> - address where glance API is running>
|
GLANCE_API_SERVICE_HOST=<IP> - address where glance API is running>
|
||||||
GLANCE_DB_NAME=<glance> - DB name of glance service
|
GLANCE_DB_NAME=<glance> - DB name of glance service
|
||||||
GLANCE_DB_PASSWORD=<password> - <Glance DB password>
|
GLANCE_DB_PASSWORD=<password> - <Glance DB password>
|
||||||
|
@ -62,7 +62,7 @@ NOVA_KEYSTONE_PASSWORD=nova
|
|||||||
NOVA_API_SERVICE_HOST=$HOST_IP
|
NOVA_API_SERVICE_HOST=$HOST_IP
|
||||||
NOVA_EC2_SERVICE_HOST=$HOST_IP
|
NOVA_EC2_SERVICE_HOST=$HOST_IP
|
||||||
NOVA_PUBLIC_INTERFACE=$MY_DEV
|
NOVA_PUBLIC_INTERFACE=$MY_DEV
|
||||||
NOVA_FLAT_INTERFACE=$MY_DEV
|
NOVA_FLAT_INTERFACE=eth1
|
||||||
CONFIG_NETWORK=True
|
CONFIG_NETWORK=True
|
||||||
|
|
||||||
# Heat
|
# Heat
|
||||||
|
Loading…
x
Reference in New Issue
Block a user