Hello everyone,<br><br>I need some help to instantiate an image and associate it to a quantum network.<br><br>I installed a dual node OpenStack.diablo setup (controller and compute), which worked fine for instantiate a vm. <br>
Then, I installed OVS and Quantum. It seems that Quantum is working because I can create a network and attach an interface to it using $ python quantum/bin/cli:<br><br>$ python bin/cli plug_iface $TENANT $NETWORK $PORT $VIF_UUID<br>
Plugged interface "foo" to port:5a1e121b-ccc8-471d-9445-24f15f9f854c on network:e754e7c0-a8eb-40e5-861a-b182d30c3441<br><br>I also can create a network using nova-manage:<br><br>root@nova-controller:~/quantum-2011.3# /var/lib/nova/bin/nova-manage network create --label=public --fixed_range_v4=<a href="http://192.168.1.144/28">192.168.1.144/28</a><br>
<br>root@nova-controller:~/quantum-2011.3# /var/lib/nova/bin/nova-manage network list<br>id       IPv4                  IPv6               start address      DNS1               DNS2               VlanID         project            uuid           <br>
1        <a href="http://192.168.1.128/28">192.168.1.128/28</a>      None               192.168.1.130      8.8.8.8            8.8.4.4            None           None               None           <br>3        <a href="http://192.168.1.144/28">192.168.1.144/28</a>      None               192.168.1.146      8.8.4.4            None               None           None               cbbbf92d-26d3-4a8d-8394-bb173fc35cbb<br>
<br>But when I try to boot a vm it remains in build status forever.<br>The nova-network.log and nova-compute.log are below. <br>It seems that the image cannot run because I did not assign a network to it, isn't it? <br>
How can I do this, I looked at the Quantum API (PUT, GET, POST...) but i can't use it, is it a user API or an API for communication between nova and quantum? I also did not see how to associate a vm to a network using nova-manage.<br>
<br>NOVA-NETWORK.LOG<br>2012-01-12 12:15:51,424 DEBUG nova.network.quantum.quantum_connection [-] Quantum Client Reply (code = 420) :<br> {"networkNotFound": {"message": "Unable to find a network with the specified identifier.", "code": 420, "detail": "Network None could not be found"}} from (pid=933) do_request /var/lib/nova/nova/network/quantum/client.py:187<br>
2012-01-12 12:15:51,424 ERROR nova.rpc [-] Exception during message handling<br>(nova.rpc): TRACE: Traceback (most recent call last):<br>(nova.rpc): TRACE:   File "/var/lib/nova/nova/rpc/impl_kombu.py", line 620, in _process_data<br>
(nova.rpc): TRACE:     rval = node_func(context=ctxt, **node_args)<br>(nova.rpc): TRACE:   File "/var/lib/nova/nova/network/quantum/manager.py", line 175, in allocate_for_instance<br>(nova.rpc): TRACE:     vif_rec['uuid'])<br>
(nova.rpc): TRACE:   File "/var/lib/nova/nova/network/quantum/quantum_connection.py", line 86, in create_and_attach_port<br>(nova.rpc): TRACE:     resdict = self.client.create_port(net_id, port_data, tenant=tenant_id)<br>
(nova.rpc): TRACE:   File "/var/lib/nova/nova/network/quantum/client.py", line 81, in with_params<br>(nova.rpc): TRACE:     ret = self.func(instance, *args)<br>(nova.rpc): TRACE:   File "/var/lib/nova/nova/network/quantum/client.py", line 277, in create_port<br>
(nova.rpc): TRACE:     return self.do_request("POST", self.ports_path % (network), body=body)<br>(nova.rpc): TRACE:   File "/var/lib/nova/nova/network/quantum/client.py", line 202, in do_request<br>(nova.rpc): TRACE:     % locals()))<br>
(nova.rpc): TRACE: QuantumServerException: Server 420 error: {"networkNotFound": {"message": "Unable to find a network with the specified identifier.", "code": 420, "detail": "Network None could not be found"}}<br>
(nova.rpc): TRACE:<br>2012-01-12 12:15:51,425 ERROR nova.rpc [-] Returning exception Server 420 error: {"networkNotFound": {"message": "Unable to find a network with the specified identifier.", "code": 420, "detail": "Network None could not be found"}} to caller<br>
2012-01-12 12:15:51,425 ERROR nova.rpc [-] ['Traceback (most recent call last):\n', '  File "/var/lib/nova/nova/rpc/impl_kombu.py", line 620, in _process_data\n    rval = node_func(context=ctxt, **node_args)\n', '  File "/var/lib/nova/nova/network/quantum/manager.py", line 175, in allocate_for_instance\n    vif_rec[\'uuid\'])\n', '  File "/var/lib/nova/nova/network/quantum/quantum_connection.py", line 86, in create_and_attach_port\n    resdict = self.client.create_port(net_id, port_data, tenant=tenant_id)\n', '  File "/var/lib/nova/nova/network/quantum/client.py", line 81, in with_params\n    ret = self.func(instance, *args)\n', '  File "/var/lib/nova/nova/network/quantum/client.py", line 277, in create_port\n    return self.do_request("POST", self.ports_path % (network), body=body)\n', '  File "/var/lib/nova/nova/network/quantum/client.py", line 202, in do_request\n    % locals()))\n', 'QuantumServerException: Server 420 error: {"networkNotFound": {"message": "Unable to find a network with the specified identifier.", "code": 420, "detail": "Network None could not be found"}}\n']<br>
<br><br><br>NOVA-COMPUTE.LOG<br>2012-01-12 12:15:51,122 AUDIT nova.compute.manager [962c3edc-00c4-4c6e-8ba6-bc4deb70e3f3 demo 2] instance 6: starting...<br>2012-01-12 12:15:51,236 DEBUG nova.rpc [-] Making asynchronous call on network ... from (pid=1125) multicall /var/lib/nova/nova/rpc/impl_kombu.py:721<br>
2012-01-12 12:15:51,236 DEBUG nova.rpc [-] MSG_ID is 9e30ba1a6d944a21a839e00dde9bc128 from (pid=1125) multicall /var/lib/nova/nova/rpc/impl_kombu.py:724<br>2012-01-12 12:15:51,508 ERROR nova.rpc [-] Exception during message handling<br>
(nova.rpc): TRACE: Traceback (most recent call last):<br>(nova.rpc): TRACE:   File "/var/lib/nova/nova/rpc/impl_kombu.py", line 620, in _process_data<br>(nova.rpc): TRACE:     rval = node_func(context=ctxt, **node_args)<br>
(nova.rpc): TRACE:   File "/var/lib/nova/nova/exception.py", line 98, in wrapped<br>(nova.rpc): TRACE:     return f(*args, **kw)<br>(nova.rpc): TRACE:   File "/var/lib/nova/nova/compute/manager.py", line 480, in run_instance<br>
(nova.rpc): TRACE:     self._run_instance(context, instance_id, **kwargs)<br>(nova.rpc): TRACE:   File "/var/lib/nova/nova/compute/manager.py", line 421, in _run_instance<br>(nova.rpc): TRACE:     network_info = _make_network_info()<br>
(nova.rpc): TRACE:   File "/var/lib/nova/nova/compute/manager.py", line 377, in _make_network_info<br>(nova.rpc): TRACE:     requested_networks=requested_networks)<br>(nova.rpc): TRACE:   File "/var/lib/nova/nova/network/api.py", line 162, in allocate_for_instance<br>
(nova.rpc): TRACE:     'args': args})<br>(nova.rpc): TRACE:   File "/var/lib/nova/nova/rpc/__init__.py", line 45, in call<br>(nova.rpc): TRACE:     return get_impl().call(context, topic, msg)<br>(nova.rpc): TRACE:   File "/var/lib/nova/nova/rpc/impl_kombu.py", line 739, in call<br>
(nova.rpc): TRACE:     rv = list(rv)<br>(nova.rpc): TRACE:   File "/var/lib/nova/nova/rpc/impl_kombu.py", line 703, in __iter__<br>(nova.rpc): TRACE:     raise result<br>(nova.rpc): TRACE: RemoteError: QuantumServerException Server 420 error: {"networkNotFound": {"message": "Unable to find a network with the specified identifier.", "code": 420, "detail": "Network None could not be found"}}<br>
(nova.rpc): TRACE: [u'Traceback (most recent call last):\n', u'  File "/var/lib/nova/nova/rpc/impl_kombu.py", line 620, in _process_data\n    rval = node_func(context=ctxt, **node_args)\n', u'  File "/var/lib/nova/nova/network/quantum/manager.py", line 175, in allocate_for_instance\n    vif_rec[\'uuid\'])\n', u'  File "/var/lib/nova/nova/network/quantum/quantum_connection.py", line 86, in create_and_attach_port\n    resdict = self.client.create_port(net_id, port_data, tenant=tenant_id)\n', u'  File "/var/lib/nova/nova/network/quantum/client.py", line 81, in with_params\n    ret = self.func(instance, *args)\n', u'  File "/var/lib/nova/nova/network/quantum/client.py", line 277, in create_port\n    return self.do_request("POST", self.ports_path % (network), body=body)\n', u'  File "/var/lib/nova/nova/network/quantum/client.py", line 202, in do_request\n    % locals()))\n', u'QuantumServerException: Server 420 error: {"networkNotFound": {"message": "Unable to find a network with the specified identifier.", "code": 420, "detail": "Network None could not be found"}}\n']<br>
<br><br>Thanks in advance.<br><br>-- <br>Alisson Pontes<br>__________________________________________________________<br>Network Technology Evolution Researcher<br><div>CPqD - Center for Research and Development in Telecommunications<br>
</div>Tel.: +55 19 3705-4996<br><a href="mailto:aponte@cpqd.com.br" target="_blank">apontes@cpqd.com.br</a><br><a href="http://www.cpqd.com.br" target="_blank">www.cpqd.com.br</a><br><br><img src="http://www.cpqd.com.br/component/do=%20cman/doc_download/53-marca-cpqd-formato-jpg.html" width="96" height="45"><br>
<br>