Fail operation when share-network do not have a router

Bug #1417899 reported by li,chen
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Invalid
Undecided
Thiago Gomes

Bug Description

In generic driver , when connect_share_server_to_tenant_network = False
Every share-network "must" have a router.
If the share-network is created without a router, share creation would failed.

How to reproduce:

1. create a network "user-network" in neutron
2. create a subnet "user-subnet" within "user-network" in neutron
3. create a share-network "user-share-net" in manila with "user-subnet" & "user-network"
4. create a share with "user-share-net"
       => share creation would failed due to " ServiceInstanceException: Subnet gateway is not attached the router."
5. Run command :
    manila share-network-delete "user-share-net"

Result:
       => ERROR: Cannot delete share network xxxxx. There are share servers using it

Expected result:
    1. Actually no share-server has been created, so the output is wrong.
    2. share-network should be able to be deleted successfully

li,chen (chen-li)
description: updated
description: updated
Thiago Gomes (fthiagogv)
Changed in manila:
assignee: nobody → Thiago Gomes (fthiagogv)
Revision history for this message
Valeriy Ponomaryov (vponomaryov) wrote :

Share server with ERROR was created. So, it should be deleted first.

Also, share-network is definition within Manila and it does not have any relation to routers at all. Network of tenant, that is provided within share-network should have interface in public router.

Revision history for this message
Thiago Gomes (fthiagogv) wrote :

I follow your steps and don't occur any error.
Do you try run stack again?
Do you verify if the modules are running correctly on screen?

Changed in manila:
status: New → Incomplete
Revision history for this message
Jason Grosso (jgrosso) wrote :

Is this bug still happening ?

Revision history for this message
Jason Grosso (jgrosso) wrote :

If this is still occurring can you please reopen in a newer defect.

Changed in manila:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.