openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #11105
Re: Can't get fix ip via dhcp and can't accociate Floating ip using quantum
Hi,
I know this problem.
You should :
- Delete the network with "nova-manage network delete
--uuid=XXXXXXX" (you can find the UUID with nova-manage network
quantum_list"
- Clean the ovs_quantum database to check if the network has been
deleted
-Clean the nova database and purge all fixed_ips, networks
I remember after that, my problems was solved.
I hope that's works now for you ;-) -> Let me now !
Regards
Le jeudi 03 mai 2012 à 17:58 +0800, livemoon a écrit :
> I use quantum as my nova-network in ubuntu 12.04LTS, there are two
> problem:
>
>
>
> 1: it can show fix ip, but in vm, the network interfaces have no ips.
> Using "dhclient eth0" does not make sense. Using "ifconfig eth0 inet
> xxx netmask xxx" can work.
>
>
> 2: when I accociate floating ip to a vm , it show error, the
> nova-network log is below:
>
>
> 2012-05-03 17:51:18 DEBUG nova.rpc.amqp
> [req-f0a4fffa-d6fa-4ab6-9985-1bc4e248edf7
> 538eac0210274847a183a988f57fbd59 57eb0d7989c7457aa3818998fbf9a4dc]
> unpacked context: {'user_id': u'538eac0210274847a183a988f57fbd59',
> 'roles': [u'Member'], 'timestamp': '2012-05-03T09:51:18.403089',
> 'auth_token': '<SANITIZED>', 'remote_address': u'127.0.0.1',
> 'is_admin': False, 'request_id':
> u'req-f0a4fffa-d6fa-4ab6-9985-1bc4e248edf7', 'project_id':
> u'57eb0d7989c7457aa3818998fbf9a4dc', 'read_deleted': u'no'} from
> (pid=3791)
> _safe_log /usr/lib/python2.7/dist-packages/nova/rpc/common.py:160
> 2012-05-03 17:51:18 DEBUG nova.rpc.amqp [-] received
> {u'_context_roles': [u'Member'], u'_msg_id':
> u'c4056c388c26498b83a3909d33e6d4ce', u'_context_read_deleted': u'no',
> u'_context_request_id': u'req-ec319cc9-245d-4808-991b-a00b417b923e',
> u'args': {u'id': u'1'}, u'_context_auth_token': '<SANITIZED>',
> u'_context_is_admin': False, u'_context_project_id':
> u'57eb0d7989c7457aa3818998fbf9a4dc', u'_context_timestamp':
> u'2012-05-03T09:51:18.787337', u'_context_user_id':
> u'538eac0210274847a183a988f57fbd59', u'method': u'get_floating_ip',
> u'_context_remote_address': u'127.0.0.1'} from (pid=3791)
> _safe_log /usr/lib/python2.7/dist-packages/nova/rpc/common.py:160
> 2012-05-03 17:51:18 DEBUG nova.rpc.amqp
> [req-ec319cc9-245d-4808-991b-a00b417b923e
> 538eac0210274847a183a988f57fbd59 57eb0d7989c7457aa3818998fbf9a4dc]
> unpacked context: {'user_id': u'538eac0210274847a183a988f57fbd59',
> 'roles': [u'Member'], 'timestamp': '2012-05-03T09:51:18.787337',
> 'auth_token': '<SANITIZED>', 'remote_address': u'127.0.0.1',
> 'is_admin': False, 'request_id':
> u'req-ec319cc9-245d-4808-991b-a00b417b923e', 'project_id':
> u'57eb0d7989c7457aa3818998fbf9a4dc', 'read_deleted': u'no'} from
> (pid=3791)
> _safe_log /usr/lib/python2.7/dist-packages/nova/rpc/common.py:160
> 2012-05-03 17:51:18 DEBUG nova.rpc.amqp [-] received
> {u'_context_roles': [u'Member', u'admin'], u'_msg_id':
> u'248d0e0cbff14809978e1b0333621772', u'_context_read_deleted': u'no',
> u'_context_request_id': u'req-ac208065-fc2e-4c3b-8fd5-d3661ca33ce1',
> u'args': {u'instance_id': 5, u'instance_uuid':
> u'57f9432f-2177-4635-9692-645ed5a5f2f7', u'host': u'cloud',
> u'project_id': u'57eb0d7989c7457aa3818998fbf9a4dc', u'rxtx_factor':
> 1.0}, u'_context_auth_token': '<SANITIZED>', u'_context_is_admin':
> True, u'_context_project_id': u'57eb0d7989c7457aa3818998fbf9a4dc',
> u'_context_timestamp': u'2012-05-03T09:51:18.825231',
> u'_context_user_id': u'538eac0210274847a183a988f57fbd59', u'method':
> u'get_instance_nw_info', u'_context_remote_address': u'127.0.0.1'}
> from (pid=3791)
> _safe_log /usr/lib/python2.7/dist-packages/nova/rpc/common.py:160
> 2012-05-03 17:51:18 DEBUG nova.rpc.amqp
> [req-ac208065-fc2e-4c3b-8fd5-d3661ca33ce1
> 538eac0210274847a183a988f57fbd59 57eb0d7989c7457aa3818998fbf9a4dc]
> unpacked context: {'user_id': u'538eac0210274847a183a988f57fbd59',
> 'roles': [u'Member', u'admin'], 'timestamp':
> '2012-05-03T09:51:18.825231', 'auth_token': '<SANITIZED>',
> 'remote_address': u'127.0.0.1', 'is_admin': True, 'request_id':
> u'req-ac208065-fc2e-4c3b-8fd5-d3661ca33ce1', 'project_id':
> u'57eb0d7989c7457aa3818998fbf9a4dc', 'read_deleted': u'no'} from
> (pid=3791)
> _safe_log /usr/lib/python2.7/dist-packages/nova/rpc/common.py:160
> 2012-05-03 17:51:18 DEBUG nova.utils
> [req-ac208065-fc2e-4c3b-8fd5-d3661ca33ce1
> 538eac0210274847a183a988f57fbd59 57eb0d7989c7457aa3818998fbf9a4dc]
> Attempting to grab semaphore "get_dhcp" for method "_get_dhcp_ip"...
> from (pid=3791)
> inner /usr/lib/python2.7/dist-packages/nova/utils.py:927
> 2012-05-03 17:51:18 DEBUG nova.utils
> [req-ac208065-fc2e-4c3b-8fd5-d3661ca33ce1
> 538eac0210274847a183a988f57fbd59 57eb0d7989c7457aa3818998fbf9a4dc] Got
> semaphore "get_dhcp" for method "_get_dhcp_ip"... from (pid=3791)
> inner /usr/lib/python2.7/dist-packages/nova/utils.py:931
> 2012-05-03 17:51:18 DEBUG nova.utils
> [req-ac208065-fc2e-4c3b-8fd5-d3661ca33ce1
> 538eac0210274847a183a988f57fbd59 57eb0d7989c7457aa3818998fbf9a4dc]
> Attempting to grab semaphore "get_dhcp" for method "_get_dhcp_ip"...
> from (pid=3791)
> inner /usr/lib/python2.7/dist-packages/nova/utils.py:927
> 2012-05-03 17:51:18 DEBUG nova.utils
> [req-ac208065-fc2e-4c3b-8fd5-d3661ca33ce1
> 538eac0210274847a183a988f57fbd59 57eb0d7989c7457aa3818998fbf9a4dc] Got
> semaphore "get_dhcp" for method "_get_dhcp_ip"... from (pid=3791)
> inner /usr/lib/python2.7/dist-packages/nova/utils.py:931
> 2012-05-03 17:51:18 DEBUG nova.utils
> [req-ac208065-fc2e-4c3b-8fd5-d3661ca33ce1
> 538eac0210274847a183a988f57fbd59 57eb0d7989c7457aa3818998fbf9a4dc]
> Attempting to grab semaphore "get_dhcp" for method "_get_dhcp_ip"...
> from (pid=3791)
> inner /usr/lib/python2.7/dist-packages/nova/utils.py:927
> 2012-05-03 17:51:18 DEBUG nova.utils
> [req-ac208065-fc2e-4c3b-8fd5-d3661ca33ce1
> 538eac0210274847a183a988f57fbd59 57eb0d7989c7457aa3818998fbf9a4dc] Got
> semaphore "get_dhcp" for method "_get_dhcp_ip"... from (pid=3791)
> inner /usr/lib/python2.7/dist-packages/nova/utils.py:931
> 2012-05-03 17:51:18 DEBUG nova.utils
> [req-ac208065-fc2e-4c3b-8fd5-d3661ca33ce1
> 538eac0210274847a183a988f57fbd59 57eb0d7989c7457aa3818998fbf9a4dc]
> Attempting to grab semaphore "get_dhcp" for method "_get_dhcp_ip"...
> from (pid=3791)
> inner /usr/lib/python2.7/dist-packages/nova/utils.py:927
> 2012-05-03 17:51:18 DEBUG nova.utils
> [req-ac208065-fc2e-4c3b-8fd5-d3661ca33ce1
> 538eac0210274847a183a988f57fbd59 57eb0d7989c7457aa3818998fbf9a4dc] Got
> semaphore "get_dhcp" for method "_get_dhcp_ip"... from (pid=3791)
> inner /usr/lib/python2.7/dist-packages/nova/utils.py:931
> 2012-05-03 17:51:18 DEBUG nova.rpc.amqp [-] received
> {u'_context_roles': [u'Member', u'admin'], u'_msg_id':
> u'503ee115b95244a692f959b7d1fdaa05', u'_context_read_deleted': u'no',
> u'_context_request_id': u'req-ac208065-fc2e-4c3b-8fd5-d3661ca33ce1',
> u'args': {u'fixed_address': u'10.0.2.5', u'floating_address':
> u'172.16.0.169', u'affect_auto_assigned': False},
> u'_context_auth_token': '<SANITIZED>', u'_context_is_admin': False,
> u'_context_project_id': u'57eb0d7989c7457aa3818998fbf9a4dc',
> u'_context_timestamp': u'2012-05-03T09:51:18.825231',
> u'_context_user_id': u'538eac0210274847a183a988f57fbd59', u'method':
> u'associate_floating_ip', u'_context_remote_address': u'127.0.0.1'}
> from (pid=3791)
> _safe_log /usr/lib/python2.7/dist-packages/nova/rpc/common.py:160
> 2012-05-03 17:51:18 DEBUG nova.rpc.amqp
> [req-ac208065-fc2e-4c3b-8fd5-d3661ca33ce1
> 538eac0210274847a183a988f57fbd59 57eb0d7989c7457aa3818998fbf9a4dc]
> unpacked context: {'user_id': u'538eac0210274847a183a988f57fbd59',
> 'roles': [u'Member', u'admin'], 'timestamp':
> '2012-05-03T09:51:18.825231', 'auth_token': '<SANITIZED>',
> 'remote_address': u'127.0.0.1', 'is_admin': False, 'request_id':
> u'req-ac208065-fc2e-4c3b-8fd5-d3661ca33ce1', 'project_id':
> u'57eb0d7989c7457aa3818998fbf9a4dc', 'read_deleted': u'no'} from
> (pid=3791)
> _safe_log /usr/lib/python2.7/dist-packages/nova/rpc/common.py:160
> 2012-05-03 17:51:18 ERROR nova.rpc.amqp
> [req-ac208065-fc2e-4c3b-8fd5-d3661ca33ce1
> 538eac0210274847a183a988f57fbd59 57eb0d7989c7457aa3818998fbf9a4dc]
> Exception during message handling
> 2012-05-03 17:51:18 TRACE nova.rpc.amqp Traceback (most recent call
> last):
> 2012-05-03 17:51:18 TRACE nova.rpc.amqp File
> "/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 252, in
> _process_data
> 2012-05-03 17:51:18 TRACE nova.rpc.amqp rval =
> node_func(context=ctxt, **node_args)
> 2012-05-03 17:51:18 TRACE nova.rpc.amqp File
> "/usr/lib/python2.7/dist-packages/nova/network/manager.py", line 258,
> in wrapped
> 2012-05-03 17:51:18 TRACE nova.rpc.amqp return func(self, context,
> *args, **kwargs)
> 2012-05-03 17:51:18 TRACE nova.rpc.amqp File
> "/usr/lib/python2.7/dist-packages/nova/network/manager.py", line 459,
> in associate_floating_ip
> 2012-05-03 17:51:18 TRACE nova.rpc.amqp fixed_ip['network_id'])
> 2012-05-03 17:51:18 TRACE nova.rpc.amqp File
> "/usr/lib/python2.7/dist-packages/nova/network/manager.py", line 1549,
> in _get_network_by_id
> 2012-05-03 17:51:18 TRACE nova.rpc.amqp return
> self.db.network_get(context, network_id)
> 2012-05-03 17:51:18 TRACE nova.rpc.amqp File
> "/usr/lib/python2.7/dist-packages/nova/db/api.py", line 755, in
> network_get
> 2012-05-03 17:51:18 TRACE nova.rpc.amqp return
> IMPL.network_get(context, network_id)
> 2012-05-03 17:51:18 TRACE nova.rpc.amqp File
> "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line
> 120, in wrapper
> 2012-05-03 17:51:18 TRACE nova.rpc.amqp return f(*args, **kwargs)
> 2012-05-03 17:51:18 TRACE nova.rpc.amqp File
> "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line
> 1920, in network_get
> 2012-05-03 17:51:18 TRACE nova.rpc.amqp raise
> exception.NetworkNotFound(network_id=network_id)
> 2012-05-03 17:51:18 TRACE nova.rpc.amqp NetworkNotFound: Network 2
> could not be found.
> 2012-05-03 17:51:18 TRACE nova.rpc.amqp
> 2012-05-03 17:51:18 ERROR nova.rpc.amqp
> [req-ac208065-fc2e-4c3b-8fd5-d3661ca33ce1
> 538eac0210274847a183a988f57fbd59 57eb0d7989c7457aa3818998fbf9a4dc]
> Returning exception Network 2 could not be found. to caller
> 2012-05-03 17:51:18 ERROR nova.rpc.amqp
> [req-ac208065-fc2e-4c3b-8fd5-d3661ca33ce1
> 538eac0210274847a183a988f57fbd59 57eb0d7989c7457aa3818998fbf9a4dc]
> ['Traceback (most recent call last):\n', ' File
> "/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 252, in
> _process_data\n rval = node_func(context=ctxt, **node_args)\n', '
> File "/usr/lib/python2.7/dist-packages/nova/network/manager.py", line
> 258, in wrapped\n return func(self, context, *args, **kwargs)\n',
> ' File "/usr/lib/python2.7/dist-packages/nova/network/manager.py",
> line 459, in associate_floating_ip\n fixed_ip[\'network_id\'])\n',
> ' File "/usr/lib/python2.7/dist-packages/nova/network/manager.py",
> line 1549, in _get_network_by_id\n return
> self.db.network_get(context, network_id)\n', ' File
> "/usr/lib/python2.7/dist-packages/nova/db/api.py", line 755, in
> network_get\n return IMPL.network_get(context, network_id)\n', '
> File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py",
> line 120, in wrapper\n return f(*args, **kwargs)\n', ' File
> "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line
> 1920, in network_get\n raise
> exception.NetworkNotFound(network_id=network_id)\n', 'NetworkNotFound:
> Network 2 could not be found.\n']
>
>
>
>
>
> --
> 非淡薄无以明志,非宁静无以致远
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
References