<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>
<div>br-int (br-vlan and br-tun - depending on what modes you are using as well) should get created automatically by opensvswitch-agent on startup. br-ext you should create manually via your os's init scripts.</div>
<div>
<div>____________________________________________</div>
<div> </div>
<div>Kris Lindgren</div>
<div>Senior Linux Systems Engineer</div>
<div>GoDaddy, LLC.</div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>pra devOPS <<a href="mailto:siv.devops@gmail.com">siv.devops@gmail.com</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, June 18, 2015 at 3:35 PM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:openstack-operators@lists.openstack.org">openstack-operators@lists.openstack.org</a>" <<a href="mailto:openstack-operators@lists.openstack.org">openstack-operators@lists.openstack.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [Openstack-operators] Could not get IP to instance through neutron<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">Observed one more thing that even if I dont have any bridges configured , If I restart the openstack I see br-int gets created.
<div><br>
</div>
<div>Thanks,</div>
<div>Dev</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Jun 16, 2015 at 4:08 PM, pra devOPS <span dir="ltr">
<<a href="mailto:siv.devops@gmail.com" target="_blank">siv.devops@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div>All:</div>
<div><br>
</div>
<div>I have installed and configured neutron (using the official docs, my openstack version is icehouse and the OS is centOS7.</div>
<div><br>
</div>
<div><br>
</div>
<div>After creating the neutron network and started the instance the instance goes to the ERROR state and says "no Valid host found"</div>
<div><br>
</div>
<div><br>
</div>
<div>/var/log/neutron/openvswitch-agent.log Shows below:</div>
<div><br>
</div>
<div><span style="white-space:pre-wrap"></span> Command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ovs-ofctl', 'dump-flows', 'br-int', 'table=22']</div>
<div><span style="white-space:pre-wrap"></span>Exit code: 1</div>
<div><span style="white-space:pre-wrap"></span>Stdout: ''</div>
<div><span style="white-space:pre-wrap"></span>Stderr: 'ovs-ofctl: br-int is not a bridge or a socket\n'</div>
<div><span style="white-space:pre-wrap"></span>2015-06-16 15:03:11.458 14566 ERROR neutron.agent.linux.ovs_lib [-] Unable to execute ['ovs-ofctl', 'dump-flows', 'br-int', 'table=22']. Exception:</div>
<div><span style="white-space:pre-wrap"></span>Command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ovs-ofctl', 'dump-flows', 'br-int', 'table=22']</div>
<div><span style="white-space:pre-wrap"></span>Exit code: 1</div>
<div><span style="white-space:pre-wrap"></span>Stdout: ''</div>
<div><span style="white-space:pre-wrap"></span>Stderr: 'ovs-ofctl: br-int is not a bridge or a socket\n'</div>
<div><span style="white-space:pre-wrap"></span>2015-06-16 15:21:00.204 14566 INFO neutron.agent.securitygroups_rpc [-] Preparing filters for devices set([u'gw-cea73d4a-1c'])</div>
<div><span style="white-space:pre-wrap"></span>2015-06-16 15:21:00.487 14566 WARNING neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] Device gw-cea73d4a-1c not defined on plugin</div>
<div><br>
</div>
<div><br>
</div>
<div>The Nova Compute log shows below:</div>
<div><br>
</div>
<div><br>
</div>
<div>REQ: curl -i <a href="http://10.0.0.125:35357/v2.0/tokens" target="_blank">http://10.0.0.125:35357/v2.0/tokens</a> -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient" -d '{"auth": {"tenantName":
"service", "passwordCredentials": {"username": "neutron", "password": "REDACTED"}}}'</div>
<div> http_log_req /usr/lib/python2.7/site-packages/neutronclient/common/utils.py:173</div>
<div>2015-06-16 16:08:22.313 23468 DEBUG neutronclient.client [-] RESP:{'status': '401', 'content-length': '114', 'vary': 'X-Auth-Token', 'date': 'Tue, 16 Jun 2015 23:08:22 GMT', 'content-type': 'application/json', 'www-authenticate': 'Keystone uri="<a href="http://10.10.202.125:35357" target="_blank">http://10.10.202.125:35357</a>"'}
{"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}</div>
<div> http_log_resp /usr/lib/python2.7/site-packages/neutronclient/common/utils.py:179</div>
<div>2015-06-16 16:08:22.314 23468 ERROR nova.compute.manager [-] [instance: 9667a1d6-9883-429d-8b85-6f0ad0a8d887] An error occurred while refreshing the network cache.</div>
<div>2015-06-16 16:08:22.314 23468 TRACE nova.compute.manager [instance: 9667a1d6-9883-429d-8b85-6f0ad0a8d887] Traceback (most recent call last):</div>
<div>2015-06-16 16:08:22.314 23468 TRACE nova.compute.manager [instance: 9667a1d6-9883-429d-8b85-6f0ad0a8d887] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 4938, in _heal_instance_info_cache</div>
<div>2015-06-16 16:08:22.314 23468 TRACE nova.compute.manager [instance: 9667a1d6-9883-429d-8b85-6f0ad0a8d887] self._get_instance_nw_info(context, instance, use_slave=True)</div>
<div>2015-06-16 16:08:22.314 23468 TRACE nova.compute.manager [instance: 9667a1d6-9883-429d-8b85-6f0ad0a8d887] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1163, in _get_instance_nw_info</div>
<div>2015-06-16 16:08:22.314 23468 TRACE nova.compute.manager [instance: 9667a1d6-9883-429d-8b85-6f0ad0a8d887] instance)</div>
<div>2015-06-16 16:08:22.314 23468 TRACE nova.compute.manager [instance: 9667a1d6-9883-429d-8b85-6f0ad0a8d887] File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 482, in get_instance_nw_info</div>
<div>2015-06-16 16:08:22.314 23468 TRACE nova.compute.manager [instance: 9667a1d6-9883-429d-8b85-6f0ad0a8d887] port_ids)</div>
<div>2015-06-16 16:08:22.314 23468 TRACE nova.compute.manager [instance: 9667a1d6-9883-429d-8b85-6f0ad0a8d887] File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 496, in _get_instance_nw_info</div>
<div>2015-06-16 16:08:22.314 23468 TRACE nova.compute.manager [instance: 9667a1d6-9883-429d-8b85-6f0ad0a8d887] port_ids)</div>
<div>2015-06-16 16:08:22.314 23468 TRACE nova.compute.manager [instance: 9667a1d6-9883-429d-8b85-6f0ad0a8d887] File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 1137, in _build_network_info_model</div>
<div>2015-06-16 16:08:22.314 23468 TRACE nova.compute.manager [instance: 9667a1d6-9883-429d-8b85-6f0ad0a8d887] data = client.list_ports(**search_opts)</div>
<div>2015-06-16 16:08:22.314 23468 TRACE nova.compute.manager [instance: 9667a1d6-9883-429d-8b85-6f0ad0a8d887] File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/__init__.py", line 81, in wrapper</div>
<div>2015-06-16 16:08:22.314 23468 TRACE nova.compute.manager [instance: 9667a1d6-9883-429d-8b85-6f0ad0a8d887] ret = obj(*args, **kwargs)</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Below are my setting:</div>
<div><br>
</div>
<div><br>
</div>
<div>== Nova networks ==</div>
<div>+--------------------------------------+------------+------+</div>
<div>| ID | Label | Cidr |</div>
<div>+--------------------------------------+------------+------+</div>
<div>| 7d554063-8b7e-40a9-af02-738ca2b480a4 | net-ext | - |</div>
<div>| f14cecdf-95de-424a-871e-f278e61a008b | Int-Subnet | - |</div>
<div>+--------------------------------------+------------+------+</div>
<div>== Nova instance flavors ==</div>
<div>+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+</div>
<div>| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |</div>
<div>+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+</div>
<div>| 1 | m1.tiny | 512 | 1 | 0 | | 1 | 1.0 | True |</div>
<div>| 2 | m1.small | 2048 | 20 | 0 | | 1 | 1.0 | True |</div>
<div>| 3 | m1.medium | 4096 | 40 | 0 | | 2 | 1.0 | True |</div>
<div>| 4 | m1.large | 8192 | 80 | 0 | | 4 | 1.0 | True |</div>
<div>| 5 | m1.xlarge | 16384 | 160 | 0 | | 8 | 1.0 | True |</div>
<div>+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+</div>
<div>== Nova instances ==</div>
<div>+--------------------------------------+-------+--------+------------+-------------+----------+</div>
<div>| ID | Name | Status | Task State | Power State | Networks |</div>
<div>+--------------------------------------+-------+--------+------------+-------------+----------+</div>
<div>| 9667a1d6-9883-429d-8b85-6f0ad0a8d887 | myins | ERROR | - | NOSTATE | |</div>
<div>+--------------------------------------+-------+--------+------------+-------------+----------+</div>
<div>[root@camsos01 ~]# neutron net-list</div>
<div>+--------------------------------------+------------+-------------------------------------------------------+</div>
<div>| id | name | subnets |</div>
<div>+--------------------------------------+------------+-------------------------------------------------------+</div>
<div>| 7d554063-8b7e-40a9-af02-738ca2b480a4 | net-ext | 6e030036-dbb2-4122-90fe-ef2984557648
<a href="http://10.0.0.128/29" target="_blank">10.0.0.128/29</a> |</div>
<div>| f14cecdf-95de-424a-871e-f278e61a008b | Int-Subnet | 146387bd-e042-41f4-a134-5d6a93935b63
<a href="http://10.0.1.0/24" target="_blank">10.0.1.0/24</a> |</div>
<div>+--------------------------------------+------------+-------------------------------------------------------+</div>
<div><br>
</div>
<div>[root@test01 ~]# ovs-vsctl show</div>
<div>89744d4a-f9e5-4fe1-b35e-81af9aaa0bac</div>
<div> Bridge br-ext</div>
<div> Port br-ext</div>
<div> Interface br-ext</div>
<div> type: internal</div>
<div> Port "vlan410"</div>
<div> Interface "vlan410"</div>
<div> Bridge br-int</div>
<div> fail_mode: secure</div>
<div> Port br-int</div>
<div> Interface br-int</div>
<div> type: internal</div>
<div> Port "gw-cea73d4a-1c"</div>
<div> tag: 4095</div>
<div> Interface "gw-cea73d4a-1c"</div>
<div> type: internal</div>
<div> ovs_version: "2.1.3"</div>
<div><br>
</div>
<div>[root@test01 ~]#ifconfig</div>
<div><br>
</div>
<div>gw-cea73d4a-1c: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500</div>
<div> inet 10.0.0.133 netmask 255.255.255.252 broadcast 10.10.202.135</div>
<div> inet6 fe80::f816:3eff:feb1:8c41 prefixlen 64 scopeid 0x20<link></div>
<div> ether fa:16:3e:b1:8c:41 txqueuelen 0 (Ethernet)</div>
<div> RX packets 0 bytes 0 (0.0 B)</div>
<div> RX errors 0 dropped 0 overruns 0 frame 0</div>
<div> TX packets 29 bytes 4093 (3.9 KiB)</div>
<div> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0</div>
<div><br>
</div>
<div>vlan410: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500</div>
<div><span style="white-space:pre-wrap"></span> inet 10.0.0.125 netmask 255.255.255.0 broadcast 10.10.202.255</div>
<div><span style="white-space:pre-wrap"></span> inet6 fe80::82c1:6eff:fe24:9e6e prefixlen 64 scopeid 0x20<link></div>
<div><span style="white-space:pre-wrap"></span> ether 40:a1:6e:b4:8e:ze txqueuelen 0 (Ethernet)</div>
<div><span style="white-space:pre-wrap"></span> RX packets 1007 bytes 133092 (129.9 KiB)</div>
<div><span style="white-space:pre-wrap"></span> RX errors 0 dropped 0 overruns 0 frame 0</div>
<div><span style="white-space:pre-wrap"></span> TX packets 927 bytes 291403 (284.5 KiB)</div>
<div><span style="white-space:pre-wrap"></span> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0</div>
<div><span style="white-space:pre-wrap"></span> </div>
<div><span style="white-space:pre-wrap">Can somebody suggest me whats wrong?</span></div>
<div><span style="white-space:pre-wrap"><br>
</span></div>
<div><span style="white-space:pre-wrap">Thanks,</span></div>
<div><span style="white-space:pre-wrap">Dev </span></div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</span>
</body>
</html>