openbaton / NFVO

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

NSD without VNFDs results in confusing error #184

Closed szengerle closed 7 years ago

szengerle commented 7 years ago

I had forgot to add the VNFD-Ids into the NSD before I uploaded it. The result was an error: No VNFManagers were found. Error code: 404 Because I used the wrong file and the message hasn't anything to do with the actually error, I searched at the wrong place and troubleshooted in NSDUtils.java. After I added some trace infos I found the error of the missing IDs. My suggestion is to validate if VNFDs exist in the NSD.

Would be core/core-impl/src/main/java/org/openbaton/nfvo/core/api/NetworkServiceDescriptorManagement.java during onboard/update method the right place to do such a validation? Then I can create a pull request.

gc4rella commented 7 years ago

Hi @szengerle, I can confirm the issue, however, it is only happening when you pass an empty VNFD json object. If you pass:

Thx

szengerle commented 7 years ago

I mean "vnfd": [ ] and it was already done in the latest develop HEAD. "vnfd": [{}] throw also exception. So, nothing todo.