[Yahoo-eng-team] [Bug 1697320] [NEW] IP not been configured in VM os, but openstanck assign IP for it

2017-06-11 Thread zhenhua.zhao
Private bug reported:

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, 192.168.5.0/24 use bridge network; 10.0.0.0/24 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
+--++--+-+-+---+
| id   | name   | tenant_id 
   | external_gateway_info   | distributed | ha|
+--++--+-+-+---+
| efdc40ab-9425-4795-949e-6774eabceed0 | router | 
dfeb844b4942417e9e2d1299c49d1a3a | {"network_id":  | 
False   | False |
|  ||   
   | "1807f022-b989-4725-9d25-7d176b28ec72", | |   |
|  ||   
   | "enable_snat": true,| |   |
|  ||   
   | "external_fixed_ips": [{"subnet_id":| |   |
|  ||   
   | "59fc76f2-c666-4693-b0f6-2a96a0189ef7", | |   |
|  ||   
   | "ip_address": "192.168.5.203"}]}| |   |
+--++--+-+-+---+

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_rpc 
[req-4fcd8220-8713-469c-9564-1d1eebf30675 472ca430fc46406abac12d2bb877326f 
dfeb844b4942417e9e2d1299c49d1a3a - - -] Security group member updated 
[u'b7da029d-70f0-4ac2-af09-fea4d0e8e516']
2017-06-12 06:49:45.354 20776 INFO neutron.agent.securitygroups_rpc 
[req-bfc74178-179f-4abd-bdb2-25d66ce36107 - - - - -] Refresh firewall rules
2017-06-12 06:49:47.358 20776 INFO neutron.agent.securitygroups_rpc 
[req-bfc74178-179f-4abd-bdb2-25d66ce36107 - - - - -] Preparing filters for 
devices set(['tap9db05558-8e'])
2017-06-12 06:49:49.273 20776 INFO 
neutron.plugins.ml2.drivers.agent._common_agent 
[req-bfc74178-179f-4abd-bdb2-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-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-cd97b777', u'fixed_ips': [{u'subnet_id': 
u'59fc76f2-c666-4693-b0f6-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-25d66ce36107 - - - - -] Error during notification 
for 
neutron.services.trunk.drivers.linuxbridge.agent.driver.LinuxBridgeTrunkDriver.agent_port_change--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-packages/neutron/callbacks/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-packages/neutron/services/trunk/drivers/linuxbridge/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-packages/neutron/services/trunk/drivers/linuxbridge/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-packages/neutron/services/trunk/drivers

[Yahoo-eng-team] [Bug 1696972] Re: host type 'm1.nano' not found when lanch instance

2017-06-11 Thread zhenhua.zhao
Thanks bauza,this post fix the problem, and I saw docs has been updated.

** Changed in: nova
   Status: Incomplete => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1696972

Title:
  host type 'm1.nano' not found when lanch instance

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  I lanch an instance according to doc:https://docs.openstack.org/ocata
  /install-guide-rdo/launch-instance-selfservice.html; Dependce has been
  matched:

  
  openstack flavor list
  ++-+-+--+---+---+---+
  | ID | Name| RAM | Disk | Ephemeral | VCPUs | Is Public |
  ++-+-+--+---+---+---+
  | 0  | m1.nano |  64 |1 | 0 | 1 | True  |
  ++-+-+--+---+---+---+

  Environment:
  openstack-nova-common-15.0.3-2.el7.noarch
  Storage is local disk.

  But I got the following exception,I'll be very appreceate if anyone
  can fix it.

  2017-06-09 18:11:34.384 2714 INFO nova.api.openstack.wsgi 
[req-3f03f365-939a-4f39-b3e9-486b85aaea18 516cf2cbbe7a46cebee2c50a7ff0764c 
0bd7f00e71f8494bb227621f058d926d - default default] HTTP 异常抛出:云主机类型 m1.nano 
没有找到。
  2017-06-09 18:11:34.387 2714 INFO nova.osapi_compute.wsgi.server 
[req-3f03f365-939a-4f39-b3e9-486b85aaea18 516cf2cbbe7a46cebee2c50a7ff0764c 
0bd7f00e71f8494bb227621f058d926d - default default] 10.0.2.4 "GET 
/v2.1/flavors/m1.nano HTTP/1.1" status: 404 len: 470 time: 0.0577080
  2017-06-09 18:11:34.442 2714 INFO nova.api.openstack.wsgi 
[req-135167cd-4698-4a92-82fd-3b6f3c74ed7d 516cf2cbbe7a46cebee2c50a7ff0764c 
0bd7f00e71f8494bb227621f058d926d - default default] HTTP 异常抛出:云主机类型 m1.nano 
没有找到。
  2017-06-09 18:11:34.443 2714 INFO nova.osapi_compute.wsgi.server 
[req-135167cd-4698-4a92-82fd-3b6f3c74ed7d 516cf2cbbe7a46cebee2c50a7ff0764c 
0bd7f00e71f8494bb227621f058d926d - default default] 10.0.2.4 "GET 
/v2.1/flavors/m1.nano HTTP/1.1" status: 404 len: 470 time: 0.0523901
  2017-06-09 18:11:34.494 2714 INFO nova.osapi_compute.wsgi.server 
[req-056f68e2-390d-4e08-84f2-026220dadd3e 516cf2cbbe7a46cebee2c50a7ff0764c 
0bd7f00e71f8494bb227621f058d926d - default default] 10.0.2.4 "GET /v2.1/flavors 
HTTP/1.1" status: 200 len: 520 time: 0.0470800
  2017-06-09 18:11:34.537 2714 INFO nova.osapi_compute.wsgi.server 
[req-0f09f59e-950c-4913-944a-b04add664ed2 516cf2cbbe7a46cebee2c50a7ff0764c 
0bd7f00e71f8494bb227621f058d926d - default default] 10.0.2.4 "GET 
/v2.1/flavors/0 HTTP/1.1" status: 200 len: 686 time: 0.0316770
  2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions 
[req-30bc50f8-ee53-487b-8194-2849c517e274 516cf2cbbe7a46cebee2c50a7ff0764c 
0bd7f00e71f8494bb227621f058d926d - default default] 在API方法中发生未预料的异常
  2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions Traceback 
(most recent call last):
  2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions   File 
"/usr/lib/python2.7/site-packages/nova/api/openstack/extensions.py", line 338, 
in wrapped
  2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions return 
f(*args, **kwargs)
  2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions   File 
"/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, 
in wrapper
  2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions return 
func(*args, **kwargs)
  2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions   File 
"/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, 
in wrapper
  2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions return 
func(*args, **kwargs)
  2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions   File 
"/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, 
in wrapper
  2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions return 
func(*args, **kwargs)
  2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions   File 
"/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, 
in wrapper
  2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions return 
func(*args, **kwargs)
  2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions   File 
"/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, 
in wrapper
  2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions return 
func(*args, **kwargs)
  2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions   File 
"/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, 
in wrapper
  2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions return 
func(*args, **kwargs)
  2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions   File 
"/usr/lib/python2.7/site-packages/nova/api/openstack/compute/servers.py", line 

[Yahoo-eng-team] [Bug 1696972] [NEW] host type 'm1.nano' not found when lanch instance

2017-06-09 Thread zhenhua.zhao
Public bug reported:

I lanch an instance according to doc:https://docs.openstack.org/ocata
/install-guide-rdo/launch-instance-selfservice.html; Dependce has been
matched:


openstack flavor list
++-+-+--+---+---+---+
| ID | Name| RAM | Disk | Ephemeral | VCPUs | Is Public |
++-+-+--+---+---+---+
| 0  | m1.nano |  64 |1 | 0 | 1 | True  |
++-+-+--+---+---+---+

Environment:
openstack-nova-common-15.0.3-2.el7.noarch
Storage is local disk.

But I got the following exception,I'll be very appreceate if anyone can
fix it.

2017-06-09 18:11:34.384 2714 INFO nova.api.openstack.wsgi 
[req-3f03f365-939a-4f39-b3e9-486b85aaea18 516cf2cbbe7a46cebee2c50a7ff0764c 
0bd7f00e71f8494bb227621f058d926d - default default] HTTP 异常抛出:云主机类型 m1.nano 
没有找到。
2017-06-09 18:11:34.387 2714 INFO nova.osapi_compute.wsgi.server 
[req-3f03f365-939a-4f39-b3e9-486b85aaea18 516cf2cbbe7a46cebee2c50a7ff0764c 
0bd7f00e71f8494bb227621f058d926d - default default] 10.0.2.4 "GET 
/v2.1/flavors/m1.nano HTTP/1.1" status: 404 len: 470 time: 0.0577080
2017-06-09 18:11:34.442 2714 INFO nova.api.openstack.wsgi 
[req-135167cd-4698-4a92-82fd-3b6f3c74ed7d 516cf2cbbe7a46cebee2c50a7ff0764c 
0bd7f00e71f8494bb227621f058d926d - default default] HTTP 异常抛出:云主机类型 m1.nano 
没有找到。
2017-06-09 18:11:34.443 2714 INFO nova.osapi_compute.wsgi.server 
[req-135167cd-4698-4a92-82fd-3b6f3c74ed7d 516cf2cbbe7a46cebee2c50a7ff0764c 
0bd7f00e71f8494bb227621f058d926d - default default] 10.0.2.4 "GET 
/v2.1/flavors/m1.nano HTTP/1.1" status: 404 len: 470 time: 0.0523901
2017-06-09 18:11:34.494 2714 INFO nova.osapi_compute.wsgi.server 
[req-056f68e2-390d-4e08-84f2-026220dadd3e 516cf2cbbe7a46cebee2c50a7ff0764c 
0bd7f00e71f8494bb227621f058d926d - default default] 10.0.2.4 "GET /v2.1/flavors 
HTTP/1.1" status: 200 len: 520 time: 0.0470800
2017-06-09 18:11:34.537 2714 INFO nova.osapi_compute.wsgi.server 
[req-0f09f59e-950c-4913-944a-b04add664ed2 516cf2cbbe7a46cebee2c50a7ff0764c 
0bd7f00e71f8494bb227621f058d926d - default default] 10.0.2.4 "GET 
/v2.1/flavors/0 HTTP/1.1" status: 200 len: 686 time: 0.0316770
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions 
[req-30bc50f8-ee53-487b-8194-2849c517e274 516cf2cbbe7a46cebee2c50a7ff0764c 
0bd7f00e71f8494bb227621f058d926d - default default] 在API方法中发生未预料的异常
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions Traceback 
(most recent call last):
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions   File 
"/usr/lib/python2.7/site-packages/nova/api/openstack/extensions.py", line 338, 
in wrapped
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions return 
f(*args, **kwargs)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions   File 
"/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, 
in wrapper
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions return 
func(*args, **kwargs)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions   File 
"/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, 
in wrapper
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions return 
func(*args, **kwargs)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions   File 
"/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, 
in wrapper
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions return 
func(*args, **kwargs)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions   File 
"/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, 
in wrapper
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions return 
func(*args, **kwargs)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions   File 
"/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, 
in wrapper
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions return 
func(*args, **kwargs)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions   File 
"/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, 
in wrapper
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions return 
func(*args, **kwargs)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions   File 
"/usr/lib/python2.7/site-packages/nova/api/openstack/compute/servers.py", line 
642, in create
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions 
**create_kwargs)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions   File 
"/usr/lib/python2.7/site-packages/nova/hooks.py", line 154, in inner
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions rv = 
f(*args, **kwargs)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions   File 
"/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1613, in create
2017-06-09 18: