Ask Your Question
0

Boot an instance with quantum network

asked 2012-07-09 05:07:02 -0600

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

edit retag flag offensive close merge delete

8 answers

Sort by » oldest newest most voted
0

answered 2012-07-09 05:59:15 -0600

emagana gravatar image

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

edit flag offensive delete link more
0

answered 2012-07-10 04:59:36 -0600

Thanks dan wendlandt, that solved my question.

edit flag offensive delete link more
0

answered 2012-07-09 06:17:21 -0600

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 ?

edit flag offensive delete link more
0

answered 2012-07-09 06:51:05 -0600

emagana gravatar image

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

edit flag offensive delete link more
0

answered 2012-07-09 06:57:54 -0600

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.

edit flag offensive delete link more
0

answered 2012-07-09 08:21:35 -0600

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

edit flag offensive delete link more
0

answered 2012-07-09 09:01:02 -0600

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

edit flag offensive delete link more
0

answered 2012-07-09 15:46:28 -0600

danwent gravatar image

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 (http://docs.openstack.org/trunk/opens...)

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

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-07-09 05:07:02 -0600

Seen: 10 times

Last updated: Jul 10 '12