Multiple network matches found for name 'public-120', use an ID to be more specific.

asked 2014-07-31 16:05:51 -0500

RedCricket gravatar image

I was trying to create a subnet like so:

[root@ost-comp-3 ~]# neutron subnet-create public-120 10.29.120.128/26 --name public-sub-120 --enable_dhcp=True --allocation-pool start=10.29.120.180,end=10.29.120.182 --dns_nameservers list=true xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx

Which gives me this error message:

Multiple network matches found for name 'public-120', use an ID to be more specific.

But I do not know where in the command line to put my network id?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
2

answered 2014-08-04 06:24:18 -0500

updated 2014-08-04 08:44:27 -0500

This happens when you have multiple entries with the same name.

Just replace your network name with the ID.

The Neutron CLI client is smart enough to detect whether it is a name or an ID.

So, your command would look like:

[root@ost-comp-3 ~]# neutron subnet-create <NETWORK-ID> 10.29.120.128/26 --name public-sub-120 --enable_dhcp=True --allocation-pool start=10.29.120.180,end=10.29.120.182 --dns_nameservers list=true xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx
edit flag offensive delete link more
1

answered 2014-07-31 23:18:35 -0500

dbaxps gravatar image
[root@icehouse1 ~(keystone_admin)]# neutron net-list
+--------------------------------------+---------+-----------------------------------------------------+
| id                                   | name    | subnets                                             |
+--------------------------------------+---------+-----------------------------------------------------+
| cb156821-2bad-407f-97ea-ce316786ed89 | private | 0b2dd796-5523-473e-8be9-13a46c2aaa1c 10.0.0.0/24    |
| f19f5e63-94ea-49a8-b07f-7fffeb0bfd1d | demonet | 395ee66b-2e94-432a-a416-b763756086fb 40.0.0.0/24    |
| caa30bbb-9e88-4594-92b4-967939a2d6ec | public  | bc9d3398-4608-4705-aa91-d099dbb771e6 192.168.1.0/24 |
+--------------------------------------+---------+-----------------------------------------------------+

[root@icehouse1 ~(keystone_admin)]# nova boot --flavor 2  --image fba4d571-d47a-4de1-b517-b69693d330d7 --key-name oskey45 --nic net-id=f19f5e63-94ea-49a8-b07f-7fffeb0bfd1d  CentOS65RS02
+--------------------------------------+------------------------------------------------------+
| Property                             | Value                                                |
+--------------------------------------+------------------------------------------------------+
| OS-DCF:diskConfig                    | MANUAL                                               |
| OS-EXT-AZ:availability_zone          | nova                                                 |
| OS-EXT-SRV-ATTR:host                 | -                                                    |
| OS-EXT-SRV-ATTR:hypervisor_hostname  | -                                                    |
| OS-EXT-SRV-ATTR:instance_name        | instance-0000000b                                    |
| OS-EXT-STS:power_state               | 0                                                    |
| OS-EXT-STS:task_state                | scheduling                                           |
| OS-EXT-STS:vm_state                  | building                                             |
| OS-SRV-USG:launched_at               | -                                                    |
| OS-SRV-USG:terminated_at             | -                                                    |
| accessIPv4                           |                                                      |
| accessIPv6                           |                                                      |
| adminPass                            | 7K32qzPgWEiW                                         |
| config_drive                         |                                                      |
| created                              | 2014-08-01T04:10:46Z                                 |
| flavor                               | m1.small (2)                                         |
| hostId                               |                                                      |
| id                                   | f643f81d-cb51-4c09-a350-60252711e0a3                 |
| image                                | CentOS65image (fba4d571-d47a-4de1-b517-b69693d330d7) |
| key_name                             | oskey45                                              |
| metadata                             | {}                                                   |
| name                                 | CentOS65RS02                                         |
| os-extended-volumes:volumes_attached | []                                                   |
| progress                             | 0                                                    |
| security_groups                      | default                                              |
| status                               | BUILD                                                |
| tenant_id                            | e5c1a9414f4c42a19b4125f3711c9a77                     |
| updated                              | 2014-08-01T04:10:46Z                                 |
| user_id                              | dd4a17c154974a58b4747be694a1a654                     |
+--------------------------------------+------------------------------------------------------+
[root@icehouse1 ~(keystone_admin)]# nova list
+--------------------------------------+--------------+--------+------------+-------------+-------------------+
| ID                                   | Name         | Status | Task State | Power State | Networks          |
+--------------------------------------+--------------+--------+------------+-------------+-------------------+
| f643f81d-cb51-4c09-a350-60252711e0a3 | CentOS65RS02 | ACTIVE | -          | Running     | demonet=40.0.0.14 |
+--------------------------------------+--------------+--------+------------+-------------+--------------
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-07-31 16:05:51 -0500

Seen: 2,527 times

Last updated: Aug 04 '14