Feature #5061

Option to override TM_MAD's SHARED=[YES/NO] per datastore

Added by Anton Todorov over 4 years ago. Updated over 4 years ago.

Status:NewStart date:03/14/2017
Priority:NormalDue date:
Assignee:-% Done:


Category:Drivers - Storage
Target version:-
Resolution: Pull request:



I am in a refactoring cycle for our addon and I am currently stuck at this situation:

The IMAGE_DS has TM_MAD named 'storpool' with attribute SHARED=YES in /etc/one/oned.conf

When the SYSTEM DS is of type `shared` everything is OK - datastore stats are reported in the DATASTORE tab.

When the SYSTEM_DS is set as `ssh` I've implemented two variants:
Variant A: use same TM_MAD as the IMAGE_DS but add additional datastore attribute to notify the driver to threat the datastore as ssh (even if the SHARED=YES in the TM_MAD)
Variant B: symlink the TM_MAD folder as different name and use it in second TM_MAD definition in /etc/one/oned.conf with SHARED=NO.

I've made variant B because in the case of variant A there are no datastore stats collected/reported in the HOST tab.

When there are two SYSTEM_DS defined - one with variant A(historical reasons) and one with variant B(to have stats) it is not possible to migrate VMs from one to another because the TM_MAD name differ.

I believe that making the SHARED attribute override-able per DS the issue could be easily solved. And in this case I'll use only one TM_MAD definition for both setups.

Kind Regards,
Anton Todorov

Related issues

Related to Bug #5069: Ceph driver removes data in system datastore when using s... Closed 03/20/2017


#1 Updated by Ruben S. Montero over 4 years ago

  • Status changed from Pending to New
  • Target version set to Release 5.4

#2 Updated by Ruben S. Montero over 4 years ago

  • Related to Bug #5069: Ceph driver removes data in system datastore when using shared system datastore added

#3 Updated by OpenNebula Systems Support Team over 4 years ago

  • Target version deleted (Release 5.4)

We are going to evaluate this and fix it for future versions.

Meanwhile we suggest creating a new set of drivers with a different name implementing the variants proposed.

#4 Updated by Anton Todorov over 4 years ago

I honor your decision!
Just would like to note that addon already can work as different name but then it is not possible to change/migrate VM's SYSTEM datastores because the TM_MAD names differ :)

I think it is possible to workaround this constraint so it is not show stopper in any way.

Happy coding,

Also available in: Atom PDF