Feature #1749

[Self-service] Add a check to avoid duplicate vm name

Added by Nicolas AGIUS over 8 years ago. Updated about 8 years ago.

Status:ClosedStart date:01/31/2013
Priority:NormalDue date:
Assignee:-% Done:


Target version:-
Resolution:wontfix Pull request:


When a user create a vm with a name that already exist, it could cause some problems (ie. with DNS records or some mismatch when deleting)

compute.js-issue1749.patch Magnifier (887 Bytes) Nicolas AGIUS, 01/31/2013 04:31 PM

OCCIServer.rb-issue1749.patch Magnifier (1.32 KB) Nicolas AGIUS, 02/04/2013 02:15 PM


#1 Updated by Nicolas AGIUS over 8 years ago

This patch check if the name of the new vm does'nt already exist in the list of the user's vm.
It does'nt check the name against other users' vm.

This patch has only been tested with Opennebula 1.8.1
Thank Mathieu Alorent for this code.

#2 Updated by Nicolas AGIUS over 8 years ago

Same patch but directly in the OCCI daemon to also protect access by the API.

#3 Updated by Carlos Martín about 8 years ago

  • Status changed from New to Closed
  • Resolution set to wontfix

Closing this one, since self-service is now discontinued.

If there is really a need to make VM names unique, it should be implemented at the oned level. Maybe as an option in oned.conf.

Also available in: Atom PDF