OpenNebula / one

The open source Cloud & Edge Computing Platform bringing real freedom to your Enterprise Cloud 🚀
http://opennebula.io
Apache License 2.0
1.23k stars 478 forks source link

Allow specific actions per hypervisor/storage/network configuration #2614

Open OpenNebulaSupport opened 5 years ago

OpenNebulaSupport commented 5 years ago

Some features can be supported by some hypervisors but not for others. For example, snapshots for powered off VMs can be taken on vCenter but not for KVM VMs. They should be allowed in some cases.

Progress Status

paczerny commented 1 year ago

Some abilities of hypervisor can be read from oned.conf. I suppose Sunstone gets the info via one.system.config call.

VM_MAD = [
    NAME              = "vcenter",
    ...
    KEEP_SNAPSHOTS    = "yes",
    DS_LIVE_MIGRATION = "yes",
    COLD_NIC_ATTACH   = "yes",
    LIVE_RESIZE       = "yes",
]

User permissions

It would be nice to enable/disable Sunstone actions based on user permissions, that would require new functionality from oned, the idea is:

Note: VM action authorization operation may be modified in oned.conf. And one.vm.action needs special handling for sub-actions