openbaton / openstack4j-plugin

Apache License 2.0
3 stars 12 forks source link

Network creation stays in a inconsistent state when no floating IPs are available #32

Open gc4rella opened 7 years ago

gc4rella commented 7 years ago

Scenario: deployment of a network service on a newly created tenant (without private networks available)

At first attempt the NFVO tries to create the private network and respective router. However, there are no floating IPs available, thus the NSR is not created.

After this operation, a new private network exists, but no router.

After allocating floating IPs to the tenant, a new NSD deployment is triggered. Since network already exists, NFVO does not try to create it. But deployment fails as the network is not associated to any external one (since no router was created) and floating IPs can't be allocated.

Opening it here, but I think it is an issue on the NFVO which does not clean correctly in case of failure

RuthDevlaeminck commented 6 years ago

@gc4rella Is the desired behavior be that if any step of the network creation (i.e. creating the subnet, creating the router, connecting to the router) fails should whatever is created of the router, network and subnet be deleted?

RuthDevlaeminck commented 6 years ago

Also how should we handle when a subnet is being added during a network update? Do we just ignore the error then? Or try to undo the update? Delete the entire network?

RuthDevlaeminck commented 6 years ago

@gc4rella per our discussion it does not look like the update function (https://github.com/openbaton/NFVO/blob/bdf9bb513866bac5d0986b0cd85b3ec205de8909/vim-impl/src/main/java/org/openbaton/vim_impl/vim/GenericVIM.java#L1045) is being used so I will not make any edits to it.