Ask Your Question
0

DevStack : provider network dhcp problem

asked 2018-04-02 06:07:42 -0500

Darth-OpenStack gravatar image

updated 2018-04-02 06:09:05 -0500

Hello guys ,

I have my local network(10.0.3.0/24) with the gateway 10.0.3.1 and the dhcp server assigned also to this ip. My local.conf looks like this (the network part) :

# ----------
# Networking
# ----------

Q_ASSIGN_GATEWAY_TO_PUBLIC_BRIDGE=False
Q_USE_SECGROUP=True
FLOATING_RANGE=10.0.3.0/24
IPV4_ADDRS_SAFE_TO_USE=10.0.0.0/22
#Q_FLOATING_ALLOCATION_POOL="start=10.0.3.210,end=10.0.3.220"
PUBLIC_NETWORK_GATEWAY=10.0.3.1
PUBLIC_INTERFACE=ens160


OVS_PHYSICAL_BRIDGE=br-ex
Q_USE_PROVIDERNET_FOR_PUBLIC=True
PUBLIC_BRIDGE=br-ex
OVS_BRIDGE_MAPPINGS=public:br-ex

Do not focus on the commented line of the allocation pool. The provider network is being built successfully but my main problem is that when i launch an instance it will not take a dhcp ip ... basically it will take no ip at all. How i can enable the dhcp in my provider network..can i do it from horizon? from the local.conf before the installation(enable a plugin service or something similar)? or after?

Thank you in advance

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
1

answered 2018-04-02 19:21:03 -0500

updated 2018-04-03 17:32:38 -0500

DevStack doesn’t seem to create a DHCP server on the provider network; see line 315 in the L3 initialization script. You can try to change that with openstack subnet set —dhcp after you deploy the cloud.

There doesn’t seem to be a local.conf option for this, but you are free to remove —no-dhcp from the L3 script before running stack.sh.

(the ipad I am writing this on converts double dashes into single long dashes)

edit flag offensive delete link more

Comments

Thanks a lot Bernd !

Darth-OpenStack gravatar imageDarth-OpenStack ( 2018-04-07 06:55:09 -0500 )edit
0

answered 2018-04-02 10:48:28 -0500

By default, provider network DHCP is set to false and local network(tenant network) DHCP is set to True. Can you check if DHCP is set to True or False for provider network.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2018-04-02 06:07:42 -0500

Seen: 85 times

Last updated: Apr 03 '18