hi,kevin<br>From this link, I think you have fix this bug. But how can I use it in my environment?<br>Please forgive me, I'm newbie to openstack.<br>In my environment, I use centos7.3, and use yum to install openstack. <br><br><span ></span>在2017-06-12,Kevin Benton <kevin@benton.pub> 写道:
<blockquote id="isReplyContent" style="padding-left:1ex; margin: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">-----原始邮件-----<br>
<b>发件人:</b> Kevin Benton <kevin@benton.pub><br>
<b>发送时间:</b> 2017年6月12日 星期一<br>
<b>收件人:</b> xiaotie <xiaotie@ywe.cc><br>

<b>抄送:</b> OpenStack Operators <openstack-operators@lists.openstack.org><br>

<b>主题:</b> Re: [Openstack-operators] IP not been configured in VM os, but openstanck assign IP for it<br><br><div dir="ltr">I believe that error is actually unrelated (bug reported here for that <a href="https://bugs.launchpad.net/neutron/+bug/1697383">https://bugs.launchpad.net/neutron/+bug/1697383</a> ).<br><div><br></div><div>Do you have the DHCP agent running and is it's port active on the network? You should be able to ping the DHCP address from the 192.168.5 network.</div><div><br></div><div>If you don't have the DHCP agent, you will need to manually assign the IP in your instance.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jun 11, 2017 at 11:40 PM, xiaotie <span dir="ltr"><<a href="mailto:xiaotie@ywe.cc" target="_blank">xiaotie@ywe.cc</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br><pre style="word-wrap:break-word">I lanch an instance, but the instance has not IP when I run command
  'ip addr'.But router has assign ip for it.

  My environment is:
  two vms in virtualbox
  each vm has two ethernet, <a href="http://192.168.5.0/24" target="_blank">192.168.5.0/24</a> use bridge network; <a href="http://10.0.0.0/24" target="_blank">10.0.0.0/24</a> use nat network, both is ok
  I lanch provider network, and router ip is 192.168.5.203, I can ping it on the host.
  openstack instance has got an ip,192.168.5.205, I can see it in network top0loy of the dashboard, and I can see provider network port is up,but I can't ping it.

  Router info
  +-----------------------------<wbr>---------+--------+-----------<wbr>-----------------------+------<wbr>------------------------------<wbr>-----+-------------+-------+
  | id                                   | name   | tenant_id                        | external_gateway_info                   | distributed | ha    |
  +-----------------------------<wbr>---------+--------+-----------<wbr>-----------------------+------<wbr>------------------------------<wbr>-----+-------------+-------+
  | efdc40ab-9425-4795-949e-<wbr>6774eabceed0 | router | dfeb844b4942417e9e2d1299c49d1a<wbr>3a | {"network_id":                          | False       | False |
  |                                      |        |                                  | "1807f022-b989-4725-9d25-<wbr>7d176b28ec72", |             |       |
  |                                      |        |                                  | "enable_snat": true,                    |             |       |
  |                                      |        |                                  | "external_fixed_ips": [{"subnet_id":    |             |       |
  |                                      |        |                                  | "59fc76f2-c666-4693-b0f6-<wbr>2a96a0189ef7", |             |       |
  |                                      |        |                                  | "ip_address": "192.168.5.203"}]}        |             |       |
  +-----------------------------<wbr>---------+--------+-----------<wbr>-----------------------+------<wbr>------------------------------<wbr>-----+-------------+-------+<br>
  Port status
  名称        固定IP        连接设备    状态  管理状态    动作
  (85f154ee-1dd6)       192.168.5.205 compute:None      运行中       UP

  when i lanch an instance, I  got the following error on the compute node:
  2017-06-12 06:49:43.610 20776 INFO neutron.agent.securitygroups_<wbr>rpc [req-4fcd8220-8713-469c-9564-<wbr>1d1eebf30675 472ca430fc46406abac12d2bb87732<wbr>6f dfeb844b4942417e9e2d1299c49d1a<wbr>3a - - -] Security group member updated [u'b7da029d-70f0-4ac2-af09-<wbr>fea4d0e8e516']
  2017-06-12 06:49:45.354 20776 INFO neutron.agent.securitygroups_<wbr>rpc [req-bfc74178-179f-4abd-bdb2-<wbr>25d66ce36107 - - - - -] Refresh firewall rules
  2017-06-12 06:49:47.358 20776 INFO neutron.agent.securitygroups_<wbr>rpc [req-bfc74178-179f-4abd-bdb2-<wbr>25d66ce36107 - - - - -] Preparing filters for devices set(['tap9db05558-8e'])
  2017-06-12 06:49:49.273 20776 INFO neutron.plugins.ml2.drivers.<wbr>agent._common_agent [req-bfc74178-179f-4abd-bdb2-<wbr>25d66ce36107 - - - - -] Port tap9db05558-8e updated. Details: {u'profile': {}, u'network_qos_policy_id': None, u'qos_policy_id': None, u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'1807f022-b989-4725-9d25-<wbr>7d176b28ec72', u'segmentation_id': None, u'device_owner': u'compute:nova', u'physical_network': u'provider', u'mac_address': u'fa:16:3e:61:90:f5', u'device': u'tap9db05558-8e', u'port_security_enabled': True, u'port_id': u'9db05558-8e87-4a24-928c-<wbr>cd97ddddb777', u'fixed_ips': [{u'subnet_id': u'59fc76f2-c666-4693-b0f6-<wbr>2a96a0189ef7', u'ip_address': u'192.168.5.211'}], u'network_type': u'flat'}
  2017-06-12 06:49:50.591 20776 ERROR neutron.callbacks.manager [req-bfc74178-179f-4abd-bdb2-<wbr>25d66ce36107 - - - - -] Error during notification for neutron.services.trunk.<wbr>drivers.linuxbridge.agent.<wbr>driver.LinuxBridgeTrunkDriver.<wbr>agent_port_change--<wbr>9223372036853960796 port_device, after_update
  2017-06-12 06:49:50.591 20776 ERROR neutron.callbacks.manager Traceback (most recent call last):
  2017-06-12 06:49:50.591 20776 ERROR neutron.callbacks.manager   File "/usr/lib/python2.7/site-<wbr>packages/neutron/callbacks/<wbr>manager.py", line 146, in _notify_loop
  2017-06-12 06:49:50.591 20776 ERROR neutron.callbacks.manager     callback(resource, event, trigger, **kwargs)
  2017-06-12 06:49:50.591 20776 ERROR neutron.callbacks.manager   File "/usr/lib/python2.7/site-<wbr>packages/neutron/services/<wbr>trunk/drivers/linuxbridge/<wbr>agent/driver.py", line 94, in agent_port_change
  2017-06-12 06:49:50.591 20776 ERROR neutron.callbacks.manager     trunk = self._tapi.get_trunk(context, device_details['port_id'])
  2017-06-12 06:49:50.591 20776 ERROR neutron.callbacks.manager   File "/usr/lib/python2.7/site-<wbr>packages/neutron/services/<wbr>trunk/drivers/linuxbridge/<wbr>agent/driver.py", line 196, in get_trunk
  2017-06-12 06:49:50.591 20776 ERROR neutron.callbacks.manager     self.put_trunk(port_id, self._fetch_trunk(context, port_id))
  2017-06-12 06:49:50.591 20776 ERROR neutron.callbacks.manager   File "/usr/lib/python2.7/site-<wbr>packages/neutron/services/<wbr>trunk/drivers/linuxbridge/<wbr>agent/driver.py", line 140, in _fetch_trunk
  2017-06-12 06:49:50.591 20776 ERROR neutron.callbacks.manager     if 'CallbackNotFound' not in str(e):
  2017-06-12 06:49:50.591 20776 ERROR neutron.callbacks.manager UnicodeEncodeError: 'ascii' codec can't encode characters in position 31-35: ordinal not in range(128)
  2017-06-12 06:49:50.591 20776 ERROR neutron.callbacks.manager

  Please forgive me if this question is too simple, since I'm newbie to
  openstack. And I lack of method to fix problem, If anynoe can give me
  ideas,I'll be very appreciate.</pre></div><br><br>______________________________<wbr>_________________<br>
OpenStack-operators mailing list<br>
<a href="mailto:OpenStack-operators@lists.openstack.org">OpenStack-operators@lists.<wbr>openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-operators</a><br>
<br></blockquote></div><br></div>
</blockquote><br>