Ask Your Question

net_id option for create an instance with openstack API

asked 2013-03-20 22:52:14 -0500

danielnuneze gravatar image

Im trying boot an instance with python more o less this manner (

The principal problem is when I run the script create well an instance but in the instance log show me this.

cloud-init start running: Wed, 20 Mar 2013 22:29:10 +0000. up 8.57 seconds 2013-03-20 22:29:14,411 -[WARNING]: '' failed [2/120s]: url error [[Errno 113] No route to host] 2013-03-20 22:29:17,411 -[WARNING]: '' failed [5/120s]: url error [[Errno 113] No route to host]

But when I create an instance from horizon dashboard it works very well, and creating an instance with nova API works very well too. (Ex. nova boot --image precise --flavor m1.small --key_name net-key --nic net-id=f9035744-72a9-42cf-bd46-73d54c0cea06 vm1)

The unique difference that I can see is the net_id. But I dont know where and how put de net_id option in my python script.

Other clue I saw is in /var/log/nova/nova.conf. When an instance starts properly shows a request to nova.api.ec2, but it doesn't show when the instance fails.

Please can suggest me how can I do it?


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-03-22 23:20:42 -0500

zzs gravatar image

does the following work? 'networks': [ {'uuid': 'some-uuid', },] or 'networks': [ {'uuid': 'some-uuid', 'fixed_ip': 'x.x.x.x'},]

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


Asked: 2013-03-20 22:52:14 -0500

Seen: 40 times

Last updated: Mar 22 '13