Ask Your Question
1

Neutron unable to add same subnet in diffrent projects

asked 2014-04-25 02:03:20 -0500

Deeptanshu gravatar image

Hi,

I am trying to add same subnet in different project. It is throwing the below error. Please check and update any solution.

Failed to create subnet "10.1.0.0/24" for network "deep": 400-{u'NeutronError': {u'message': u'Invalid input for operation: Requested subnet with cidr: 10.1.0.0/24 for network: 8d607a79-4af0-4c40-a3fc-5e46b61de8bc overlaps with another subnet.', u'type': u'InvalidInput', u'detail': u''}

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-04-25 04:06:38 -0500

Deeptanshu gravatar image

HI,

Thanks for the update !!

Is it possible to create same subnet in different tenant ? We don't want to share private network as suggested.

The reason behind that if a new user registered with new project he is not aware about other subnet created in other tenants. If he creates the subnet with same IP range assigned in different tenant he will end up with the error listed above in the first post.

As per my understanding new project will uses different VLAN and different router. There should be no conflict with the other tenants network subnets .

How to overcome with such situation ?

edit flag offensive delete link more

Comments

1

Does neutron.conf on Neutron Server && Compute nodes have an entry :
allow_overlapping_ips = True

dbaxps gravatar imagedbaxps ( 2014-04-25 04:52:53 -0500 )edit

Hi,

Tried with same configuration and having the same issue .

Dnt knw where i am stuck.

Deeptanshu gravatar imageDeeptanshu ( 2014-04-25 06:41:00 -0500 )edit

Hi,

It was not working in Havana. I have upgraded to Icehouse and it is working fine now with GRE.

Deeptanshu gravatar imageDeeptanshu ( 2014-05-29 21:15:50 -0500 )edit

That' fine.

dbaxps gravatar imagedbaxps ( 2014-05-29 21:40:25 -0500 )edit
-1

answered 2014-04-25 02:52:47 -0500

dbaxps gravatar image

updated 2014-04-25 08:36:40 -0500

Complete final draft uploaded here
New F20 VM with Internet connectivity was created on new private network int2 overlapping with existing int
New Qdhcp-int2-id && Qrouter-newrouter-id were created for user andrew (ostenant2). Setup was performed via
dashboard environment

Neutron.conf on Neutron Server && Compute nodes should have an entry :
allow_overlapping_ips = True  

Then create new tenant and new user for this tenant. I've just created user andrew & ostenant2
Logged in as andrew into dashboard , created router3 , private network net2 and attached to router3 via interface 10.0.0.2

[root@dfw02 ~(keystone_admin)]$ neutron router-list
+--------------------------------------+---------+-----------------------------------------------------------------------------+
| id                                   | name    | external_gateway_info                                                       |
+--------------------------------------+---------+-----------------------------------------------------------------------------+
| 86b3008c-297f-4301-9bdc-766b839785f1 | router2 | {"network_id": "780ce2f3-2e6e-4881-bbac-857813f9a8e0", "enable_snat": true} |
| bf360d81-79fb-4636-8241-0a843f228fc8 | router1 | {"network_id": "780ce2f3-2e6e-4881-bbac-857813f9a8e0", "enable_snat": true} |
| d6d46e43-20c3-448b-a02e-288f3804cfe2 | router3 | {"network_id": "780ce2f3-2e6e-4881-bbac-857813f9a8e0", "enable_snat": true} |
+--------------------------------------+---------+-----------------------------------------------------------------------------+
    [root@dfw02 ~(keystone_admin)]$ neutron net-list
+--------------------------------------+------+-----------------------------------------------------+
| id                                   | name | subnets                                             |
+--------------------------------------+------+-----------------------------------------------------+
| 1eea88bb-4952-4aa4-9148-18b61c22d5b7 | int  | fa930cea-3d51-4cbe-a305-579f12aa53c0 10.0.0.0/24    |
| 426bb226-0ab9-440d-ba14-05634a17fb2b | int1 | 9e0d457b-c4c4-45cf-84e2-4ac7550f3b06 40.0.0.0/24    |
| 780ce2f3-2e6e-4881-bbac-857813f9a8e0 | ext  | f30e5a16-a055-4388-a6ea-91ee142efc3d 192.168.1.0/24 |
| 7fe1bc6a-9e5b-49de-a187-5b86ab368ad9 | net2 | 90de7668-6d4e-4be5-a9c7-c3c6ee27d83d 10.0.0.0/24    |
+--------------------------------------+------+-----------------------------------------------------+
 [root@dfw02 ~(keystone_admin)]$ neutron subnet-list
 +--------------------------------------+------+----------------+----------------------------------------------------+
 | id                                   | name | cidr           | allocation_pools                                   |
 +--------------------------------------+------+----------------+----------------------------------------------------+
 | 9e0d457b-c4c4-45cf-84e2-4ac7550f3b06 |      | 40.0.0.0/24    | {"start": "40.0.0.2", "end": "40.0.0.254"}         |
 | fa930cea-3d51-4cbe-a305-579f12aa53c0 |      | 10.0.0.0/24    | {"start": "10.0.0.2", "end": "10.0.0.254"}         |
 | 90de7668-6d4e-4be5-a9c7-c3c6ee27d83d |      | 10.0.0.0/24    | {"start": "10.0.0.2", "end": "10.0.0.254"}         |
 | f30e5a16-a055-4388-a6ea-91ee142efc3d |      | 192.168.1.0/24 | {"start": "192.168.1.100", "end": "192.168.1.200"} |
 +--------------------------------------+------+----------------+-----------------------------------------
edit flag offensive delete link more

Comments

HI,

Thanks for the update !!

Is it possible to create same subnet in different tenant ? We don't want to share private network as suggested.

The reason behind that if a new user registered with new project he is not aware about other subnet created in other tenants. If he creates the subnet with same IP range assigned in different tenant he will end up with the error listed above in the first post.

As per my understanding new project will uses different VLAN and different router. There should be no conflict with the other tenants network subnets .

How to overcome with such situation ?

Deeptanshu gravatar imageDeeptanshu ( 2014-04-25 04:06:58 -0500 )edit

Does neutron.conf on Neutron Server && Compute nodes have an entry :
allow_overlapping_ips = True

dbaxps gravatar imagedbaxps ( 2014-04-25 04:39:18 -0500 )edit

Hi,

We have the given configuration on both the Neutron Server && Compute nodes . I have tried with "True " option too. Still showing the same error.

allow_overlapping_ips = False

Error: Failed to create subnet "10.0.0.0/24" for network "Test": 400-{u'NeutronError': {u'message': u'Invalid input for operation: Requested subnet with cidr: 10.0.0.0/24 for network: fec3e539-ad08-457a-a23d-f835cb689c11 overlaps with another subnet.', u'type': u'InvalidInput', u'detail': u''}}

Deeptanshu gravatar imageDeeptanshu ( 2014-04-25 05:21:42 -0500 )edit

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: 2014-04-25 02:03:20 -0500

Seen: 1,598 times

Last updated: Apr 25 '14