找回密码
 注册
查看: 1530|回复: 0

Instances can't get IP from the neutron DHCP server in OPENSTACK

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2021-11-23 13:01:31 | 显示全部楼层 |阅读模式
I have openstack wallaby running in two vm in VBox with Ubuntu 20.04, Controller and compute1. Everything runs without issues in provider network flat type except the dhcp. For example, I have a network created in the range of 192.168.8.20-192.168.8.30. I selected to have a DHCP. The instance gets an ip and runs, but when running it I can't get a response from the DHCP, like it did not exist. I mean, the port is attached to the DCHP with the ip 192.168.8.20. I can even connect to it running ip netns./ L6 a2 m2 b4 Y5 a. a+ C6 I( J
root@controller:/home/stack# ip netns list: B8 F+ T& k0 h2 ^, ?8 B2 Z
qdhcp-36c8f4db-ccfc-483b-a5ff-868185dcce0f (id: 0)
( N* l/ J& x: j* i/ @: kWhen i try to ping the instance ip from the DHCP to the instance using netns the dhcp server did not get any response from the instance or any device in the network. The network works, because if I setup the ip manually in the instance I can get access to the gateway. But it didn't see the DHCP server, sending DHCP_DISCOVER without any response.
2 x6 L; v, D# U  j! s" b9 |Address -> 192.168.8.0/24 36c8f4db-ccfc-483b-a5ff-868185dcce0f
# A9 v+ [  j' J( eSubnet -> 192.168.8.120,192.168.8.130 09c143c9-0225-4951-bd9c-61846b8078a1
  c; k: h1 ?2 S& {' g0 I7 oDHCP -> 192.168.8.120 f4b2f7ba-c9e8-493d-a010-852e72f46ef7# _! x8 H2 k8 D) P9 e+ X
Instance -> 192.168.8.22 53316673-b6eb-4880-866f-91b1613aa17c' G  l$ a5 P$ ?! H. B7 [
The process:! a, ]8 a/ P" c8 F4 W
root@controller:/home/stack# ps aux | grep dnsmasq7 ?; o: t) F, J$ a
nobody      3616  0.0  0.0  12144   364 ?        S    18:11   0:00 dnsmasq --no-hosts --no-resolv --pid-file=/var/lib/neutron/dhcp/36c8f4db-ccfc-483b-a5ff-868185dcce0f/pid --dhcp-hostsfile=/var/lib/neutron/dhcp/36c8f4db-ccfc-483b-a5ff-868185dcce0f/host --addn-hosts=/var/lib/neutron/dhcp/36c8f4db-ccfc-483b-a5ff-868185dcce0f/addn_hosts --dhcp-optsfile=/var/lib/neutron/dhcp/36c8f4db-ccfc-483b-a5ff-868185dcce0f/opts --dhcp-leasefile=/var/lib/neutron/dhcp/36c8f4db-ccfc-483b-a5ff-868185dcce0f/leases --dhcp-match=set:ipxe,175 --dhcp-userclass=set:ipxe6,iPXE --local-service --bind-dynamic --dhcp-range=set:subnet-09c143c9-0225-4951-bd9c-61846b8078a1,192.168.8.0,static,255.255.255.0,86400s --dhcp-option-force=option:mtu,1500 --dhcp-lease-max=256 --conf-file=/dev/null --domain=openstacklocal
& h& D! D+ I, broot        6278  0.0  0.0   6380  2380 pts/1    S+   18:59   0:00 grep --color=auto dnsmasq
' L0 A3 M7 Y4 b6 n8 a; f  aAnd the log from /var/log/syslog. U9 ?1 Z; X; w$ }2 U) U
Nov  6 19:05:10 controller dnsmasq-dhcp[3616]: DHCPRELEASE(ns-f4b2f7ba-c9) 192.168.8.128 fa:16:3e:24:74:93
% }$ _+ ~  p3 _. ~5 B) |Nov  6 19:05:10 controller dnsmasq[3616]: read /var/lib/neutron/dhcp/36c8f4db-ccfc-483b-a5ff-868185dcce0f/addn_hosts - 1 addresses5 H( {# ~  m7 N. N$ o
Nov  6 19:05:10 controller dnsmasq-dhcp[3616]: read /var/lib/neutron/dhcp/36c8f4db-ccfc-483b-a5ff-868185dcce0f/host3 x+ e" t$ D7 J0 K  f- w! h' n
Nov  6 19:05:10 controller dnsmasq-dhcp[3616]: read /var/lib/neutron/dhcp/36c8f4db-ccfc-483b-a5ff-868185dcce0f/opts. {: s  O3 X/ H& S6 s9 s2 l/ C$ j
Nov  6 19:05:30 controller dnsmasq[3616]: read /var/lib/neutron/dhcp/36c8f4db-ccfc-483b-a5ff-868185dcce0f/addn_hosts - 2 addresses
1 h' [1 J) ^, ^  y- QNov  6 19:05:30 controller dnsmasq-dhcp[3616]: read /var/lib/neutron/dhcp/36c8f4db-ccfc-483b-a5ff-868185dcce0f/host, T& H- ^3 v$ B
Nov  6 19:05:30 controller dnsmasq-dhcp[3616]: read /var/lib/neutron/dhcp/36c8f4db-ccfc-483b-a5ff-868185dcce0f/opts( ?3 y6 G& v4 T3 @- s- ~; q. a
Nov  6 19:05:30 controller dnsmasq[3616]: read /var/lib/neutron/dhcp/36c8f4db-ccfc-483b-a5ff-868185dcce0f/addn_hosts - 2 addresses0 F# J7 D" v8 X+ U  y
Nov  6 19:05:30 controller dnsmasq-dhcp[3616]: read /var/lib/neutron/dhcp/36c8f4db-ccfc-483b-a5ff-868185dcce0f/host2 A6 y' V: o( J( [0 F& F" M
Nov  6 19:05:30 controller dnsmasq-dhcp[3616]: read /var/lib/neutron/dhcp/36c8f4db-ccfc-483b-a5ff-868185dcce0f/opts
. V  q3 U' q2 \6 z: j  \Nov  6 19:05:30 controller dnsmasq[3616]: read /var/lib/neutron/dhcp/36c8f4db-ccfc-483b-a5ff-868185dcce0f/addn_hosts - 2 addresses; P4 m0 n4 C: W, R" k! {" ~) l
Nov  6 19:05:30 controller dnsmasq-dhcp[3616]: read /var/lib/neutron/dhcp/36c8f4db-ccfc-483b-a5ff-868185dcce0f/host
* R! U& N$ A, f7 @0 I' e5 \Nov  6 19:05:30 controller dnsmasq-dhcp[3616]: read /var/lib/neutron/dhcp/36c8f4db-ccfc-! X- H# p8 ~0 v
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 00:02 , Processed in 0.037881 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表