Bug #4993

addar allows to create the same AR template several times

Added by Alvaro Simon over 4 years ago.

Status:PendingStart date:01/24/2017
Priority:NormalDue date:
Assignee:-% Done:


Category:Client API & Library
Target version:-
Resolution: Pull request:
Affected Versions:OpenNebula 5.2



I don't know if this is done on purpose, but we found that addar command allows to include the same AR template several times within the same VNET. It seems that OpenNebula does not detect if the AR configuration already exits in the VNET database and only increases the id number. That could be confusing for the admin, if for some reason, the same AR appears several times within the VNET conf. The algorithm should make a quick check if the same AR (IP, MAC, lease number) it's already included and refuse to include the same AR or at least show a warning message.

Cheers and thansk!

Also available in: Atom PDF