Share Flat Network, without the subnets

asked 2016-06-20 15:13:53 -0600

rl_person gravatar image


I have a flat network in openstack that's unshared

I've made in project A (the admin tenancy) a subnet in that network. This works fine and the openstack instances can see across a /24 CIDR.

What I'd like to do is share the network with another project but not the existing subnet. Then I'd like to create a new /24 subnet in the second project.


  • Flat network
    • Project A
      • Subnet A
    • Project B
      • Subnet B

Ideally neither project would know about each subnet.

I've tried neutron rbac-create but that shares both the network and the subnet.

Is there a way to do what I want in Liberty?

Thank you.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-06-20 17:45:59 -0600

Asvin gravatar image

did you explicitly specify the tenant ID so that subnet is seen by respective tenant only

neutron subnet-create --tenant_id <tenant-id> --ip_version 4 --allocation-pool start=start_ip,end=end_ip --name Subnet Net x.x.x.x/24 --gateway gateway_ip_address

edit flag offensive delete link more


I did not- I only used rbac-create with the target tenant-id thinking I would be able to create the suitable subnet as that tenant.

I'll try this out ASAP- I had thought I might be able to create and share subnets only.

rl_person gravatar imagerl_person ( 2016-06-21 02:06:34 -0600 )edit

I did this. Neither the network nor subnet appeared in that project so I shared the network with RBAC-create. BUT I can see both subs in the target project network>networks listing, VMs launch on the new subnet but in both tenancies.

Doesn't really work. I need projects to attach to specific subs

rl_person gravatar imagerl_person ( 2016-06-21 05:33:51 -0600 )edit

hmm I think you will have to create separate Network. RBAC is used to present a network to selected group of tenant.( if using shared= True it will be shared across all the tenant.) on the other side, shared = false will present the network to only one tenant.

Asvin gravatar imageAsvin ( 2016-06-21 15:25:32 -0600 )edit

If you are using FLAT networks, how many interface are you having on compute nodes ?

Asvin gravatar imageAsvin ( 2016-06-21 15:27:20 -0600 )edit

I have two interfaces on my computenodes, the interface that brings in flat networks has an array of vlans, which work and are referenced in openstack i.e, em1.101:public, em1.102:vlan102

So far I've no solution to my question. "I have a flat network in openstack that's unshared".

Any help?! :)

rl_person gravatar imagerl_person ( 2016-06-23 03:35:48 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-06-20 15:13:53 -0600

Seen: 196 times

Last updated: Jun 20 '16