[Openstack-operators] Could not get IP to instance through neutron

pra devOPS siv.devops at gmail.com
Thu Jun 18 21:35:18 UTC 2015


Observed one more thing that even if I dont have any bridges configured ,
If I restart the openstack I see br-int gets created.

Thanks,
Dev

On Tue, Jun 16, 2015 at 4:08 PM, pra devOPS <siv.devops at gmail.com> wrote:

> All:
>
> I have installed and configured neutron (using the  official docs, my
> openstack version is icehouse and the OS is centOS7.
>
>
> After creating the neutron network and started the instance the instance
> goes to the ERROR state and says "no Valid host found"
>
>
> /var/log/neutron/openvswitch-agent.log Shows below:
>
>         Command: ['sudo', 'neutron-rootwrap',
> '/etc/neutron/rootwrap.conf', 'ovs-ofctl', 'dump-flows', 'br-int',
> 'table=22']
> Exit code: 1
> Stdout: ''
> Stderr: 'ovs-ofctl: br-int is not a bridge or a socket\n'
> 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:
> Command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf',
> 'ovs-ofctl', 'dump-flows', 'br-int', 'table=22']
> Exit code: 1
> Stdout: ''
> Stderr: 'ovs-ofctl: br-int is not a bridge or a socket\n'
> 2015-06-16 15:21:00.204 14566 INFO neutron.agent.securitygroups_rpc [-]
> Preparing filters for devices set([u'gw-cea73d4a-1c'])
> 2015-06-16 15:21:00.487 14566 WARNING
> neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] Device
> gw-cea73d4a-1c not defined on plugin
>
>
> The Nova Compute log shows below:
>
>
> REQ: curl -i http://10.0.0.125:35357/v2.0/tokens -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"}}}'
>  http_log_req
> /usr/lib/python2.7/site-packages/neutronclient/common/utils.py:173
> 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="
> http://10.10.202.125:35357"'} {"error": {"message": "The request you have
> made requires authentication.", "code": 401, "title": "Unauthorized"}}
>  http_log_resp
> /usr/lib/python2.7/site-packages/neutronclient/common/utils.py:179
> 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.
> 2015-06-16 16:08:22.314 23468 TRACE nova.compute.manager [instance:
> 9667a1d6-9883-429d-8b85-6f0ad0a8d887] Traceback (most recent call last):
> 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
> 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)
> 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
> 2015-06-16 16:08:22.314 23468 TRACE nova.compute.manager [instance:
> 9667a1d6-9883-429d-8b85-6f0ad0a8d887]     instance)
> 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
> 2015-06-16 16:08:22.314 23468 TRACE nova.compute.manager [instance:
> 9667a1d6-9883-429d-8b85-6f0ad0a8d887]     port_ids)
> 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
> 2015-06-16 16:08:22.314 23468 TRACE nova.compute.manager [instance:
> 9667a1d6-9883-429d-8b85-6f0ad0a8d887]     port_ids)
> 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
> 2015-06-16 16:08:22.314 23468 TRACE nova.compute.manager [instance:
> 9667a1d6-9883-429d-8b85-6f0ad0a8d887]     data =
> client.list_ports(**search_opts)
> 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
> 2015-06-16 16:08:22.314 23468 TRACE nova.compute.manager [instance:
> 9667a1d6-9883-429d-8b85-6f0ad0a8d887]     ret = obj(*args, **kwargs)
>
>
>
> Below are my setting:
>
>
> == Nova networks ==
> +--------------------------------------+------------+------+
> | ID                                   | Label      | Cidr |
> +--------------------------------------+------------+------+
> | 7d554063-8b7e-40a9-af02-738ca2b480a4 | net-ext    | -    |
> | f14cecdf-95de-424a-871e-f278e61a008b | Int-Subnet | -    |
> +--------------------------------------+------------+------+
> == Nova instance flavors ==
>
> +----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
> | ID | Name      | Memory_MB | Disk | Ephemeral | Swap | VCPUs |
> RXTX_Factor | Is_Public |
>
> +----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
> | 1  | m1.tiny   | 512       | 1    | 0         |      | 1     | 1.0
>   | True      |
> | 2  | m1.small  | 2048      | 20   | 0         |      | 1     | 1.0
>   | True      |
> | 3  | m1.medium | 4096      | 40   | 0         |      | 2     | 1.0
>   | True      |
> | 4  | m1.large  | 8192      | 80   | 0         |      | 4     | 1.0
>   | True      |
> | 5  | m1.xlarge | 16384     | 160  | 0         |      | 8     | 1.0
>   | True      |
>
> +----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
> == Nova instances ==
>
> +--------------------------------------+-------+--------+------------+-------------+----------+
> | ID                                   | Name  | Status | Task State |
> Power State | Networks |
>
> +--------------------------------------+-------+--------+------------+-------------+----------+
> | 9667a1d6-9883-429d-8b85-6f0ad0a8d887 | myins | ERROR  | -          |
> NOSTATE     |          |
>
> +--------------------------------------+-------+--------+------------+-------------+----------+
> [root at camsos01 ~]# neutron net-list
>
> +--------------------------------------+------------+-------------------------------------------------------+
> | id                                   | name       | subnets
>                                   |
>
> +--------------------------------------+------------+-------------------------------------------------------+
> | 7d554063-8b7e-40a9-af02-738ca2b480a4 | net-ext    |
> 6e030036-dbb2-4122-90fe-ef2984557648 10.0.0.128/29    |
> | f14cecdf-95de-424a-871e-f278e61a008b | Int-Subnet |
> 146387bd-e042-41f4-a134-5d6a93935b63 10.0.1.0/24      |
>
> +--------------------------------------+------------+-------------------------------------------------------+
>
> [root at test01 ~]# ovs-vsctl show
> 89744d4a-f9e5-4fe1-b35e-81af9aaa0bac
>     Bridge br-ext
>         Port br-ext
>             Interface br-ext
>                 type: internal
>         Port "vlan410"
>             Interface "vlan410"
>     Bridge br-int
>         fail_mode: secure
>         Port br-int
>             Interface br-int
>                 type: internal
>         Port "gw-cea73d4a-1c"
>             tag: 4095
>             Interface "gw-cea73d4a-1c"
>                 type: internal
>     ovs_version: "2.1.3"
>
> [root at test01 ~]#ifconfig
>
> gw-cea73d4a-1c: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
>         inet 10.0.0.133  netmask 255.255.255.252  broadcast 10.10.202.135
>         inet6 fe80::f816:3eff:feb1:8c41  prefixlen 64  scopeid 0x20<link>
>         ether fa:16:3e:b1:8c:41  txqueuelen 0  (Ethernet)
>         RX packets 0  bytes 0 (0.0 B)
>         RX errors 0  dropped 0  overruns 0  frame 0
>         TX packets 29  bytes 4093 (3.9 KiB)
>         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
>
> vlan410: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
>         inet 10.0.0.125  netmask 255.255.255.0  broadcast 10.10.202.255
>         inet6 fe80::82c1:6eff:fe24:9e6e  prefixlen 64  scopeid 0x20<link>
>         ether 40:a1:6e:b4:8e:ze  txqueuelen 0  (Ethernet)
>         RX packets 1007  bytes 133092 (129.9 KiB)
>         RX errors 0  dropped 0  overruns 0  frame 0
>         TX packets 927  bytes 291403 (284.5 KiB)
>         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
>
> Can somebody suggest me whats wrong?
>
> Thanks,
> Dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20150618/8a6b5986/attachment.html>


More information about the OpenStack-operators mailing list