openbaton / NFVO

Repository containing the source code of the NFVO
Apache License 2.0
61 stars 52 forks source link

[bug] Refresh VIM #132

Closed Rizwan-Qamar closed 7 years ago

Rizwan-Qamar commented 7 years ago

Steps to reproduce:

  1. Create a new Dummy network in Openstack
  2. Refresh Vim in Openbaton (This will work)
  3. Delete the Network from OpenStack
  4. Refresh Vim in Openbaton (Exception)

Idea is to invoke this line networkRepository.delete(networks_old); when networks_old has objects. This should happen for images also, but I didn't check.

Cannot delete or update a parent row: a foreign key constraint fails (openbaton.vim_instance_networks, CONSTRAINT FK_e3jms0mwmxqihj9q6q0825idc FOREIGN KEY (networks_id) REFERENCES network (id))

lorenzotomasini commented 7 years ago

This can be reproduced just by refreshing the vim instance test.

Rizwan-Qamar commented 7 years ago

@lorenzotomasini Although now there is no exception now, but this doesn't remove the entry of the network (network table) from the database. Open new bug?