Ask Your Question

Neutron API: No match found for an existing network using nova_client.networks.find( )

asked 2014-09-19 09:13:37 -0500

fhussain gravatar image

updated 2014-09-19 09:14:19 -0500


I am writing a python script to create an instance and attach it to an existing network. I have created Network Net1 but the exception is raised that No unique match is found for the Network Net1.

    net = nova_client.networks.find(label="Net1")
    nics = [{'net-id':}]
    instance = nova_client.servers.create(name="VM1", image=image, flavor=flavor,nics = nics)

      File "/opt/stack/python-novaclient/novaclient/", line 144, in find
        raise exceptions.NoUniqueMatch

What could be the reason?


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-09-19 09:30:27 -0500

T u l gravatar image

Probably you have multiple networks with name "Net1". It is allowed. But then when you say "connect my VM to network Net1" openstack can't choose. So you have to use network ID instead of network name. IDs are unique.

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: 2014-09-19 09:13:37 -0500

Seen: 110 times

Last updated: Sep 19 '14