Boot an instance with quantum network

Asked by D LALITHA RANI

I am a beginner in Quantum and want to know how i can launch an instance with quantum network.

quantum create_net <tenant> <network_name>

The above command creates a network with some unique ID for the specified tenant.
How can i use this network to boot an instance? Because the command nova-manage network list is not showing me this network ID and so I cant use this network with --nic option.

Can some one help me.

Thanks,
Deevi

Question information

Language:
English Edit question
Status:
Solved
For:
neutron Edit question
Assignee:
No assignee Edit question
Solved by:
dan wendlandt
Solved:
Last query:
Last reply:
Revision history for this message
Edgar Magana (emagana) said :
#1

Deevi,

Yes, you can use the --nic option but with the nova command, here an example:

 nova boot --flavor 1 --image <image_id> --nic net-id=<net_id>  <vm-name>

Regards,

Edgar

Revision history for this message
D LALITHA RANI (deevi-rani) said :
#2

Hi Edgar,

I tried with the same command but i am getting the error saying " NetworkNotFoundForUUID".
Below are the steps I tried:

1. quantum create_net <tenant> <net_name>
      returned a network with net id "xxxx"

2. nova boot --flavor 1 --image <image_id> --nic net-id=xxxx <vm-name>
     returned error "NetworkNotFoundForUUID"

This is because the network "xxxx" is not been showed in nova-manage network list.

Am I missing something ? Or does the procedure vary with Quantum Manager ?

Revision history for this message
Edgar Magana (emagana) said :
#3

nova-manage network list should show the networks otherwise something is wrong.
Can you try to create a new network and then start a vm:

sudo nova-manage network create net6 10.0.6.0/24 1 256 --bridge eth1
nova boot --flavor 1 --image <image_id> --nic net-id=<net_id> <vm-name>

it could be that the network that you created before belongs to a different tenant, you can also use:
sudo nova-manage network create net5 10.0.5.0/24 1 256 --project_id= <project_id> --bridge eth1

Revision history for this message
D LALITHA RANI (deevi-rani) said :
#4

Hi Edgar,

I can see the list of networks created throught the nova-manage command you specified. Also i can boot an instance out of it.
But i cannot see the list of networks that i created with the quantum client. If this doesn't happen, why creating network with quantum client.(i.e., quantum create_net command)

My doubt is, how can i boot an instance with the network created using the qunatum client.

Revision history for this message
Sumit Naiksatam (snaiksat) said :
#5

Hi, Not sure which version of Nova/Quantum you are using, but to list the quantum networks, you can try:

nova-manage network quantum_list

Revision history for this message
D LALITHA RANI (deevi-rani) said :
#6

Is there any way to boot an instance with the network create by the quantum client command
"quantum create_net <tenant> <net>"

I am using 2012.1 Essex version

Revision history for this message
Best dan wendlandt (danwent) said :
#7

No, with the Essex version of Nova + Quantum, you must create the networks with nova-manage, you cannot just use the quantum client directly. See: http://docs.openstack.org/trunk/openstack-network/admin/content/QuantumManager-d1e450.html

In Folsom, you will be able to create networks compatible with Nova using the Quantum client.

Revision history for this message
D LALITHA RANI (deevi-rani) said :
#8

Thanks dan wendlandt, that solved my question.