sunstone not allowing custom attributes in datastore definitions
|Assignee:||Abel Coronado||% Done:|
|Target version:||Release 5.4|
|Affected Versions:||OpenNebula 5.2|
The current implementation is closing the sunstone interface to alter only the known(to sunstone) attributes
How to reproduce:
It is easilly reproducible when creating a new datastore with custom TM_MAD and DS_MAD.
The when custom is selected the sunstone wizard suggest only known attributes: LVM, Gluster, CEPH and iSCSI which is OK as they are the upstream MADs
After the datastore is registered I am trying to add attributes that are relevant to the "custom" MADs like 'CUSTOM_ATTR' with value '2'
The interface forbid adding attributes that are not known with error message "Not valid attribute"
IMO the sunstone must allow any attribute if it is custom template. Or there should be attribute whitelist in the given DS_MAD/TM_MAD definition in oned.conf. Or oneadmin user should have the rights to add any attribute(as it is in 5.2.1 and below)