1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-04-02 10:50:07 +03:00

Feature #4317: New groupadmin(_vcenter) views based on admin.yaml

This commit is contained in:
Carlos Martín 2016-02-19 15:51:32 +01:00
parent 9818ae0bbd
commit 1f6e793d8c
5 changed files with 1469 additions and 78 deletions

View File

@ -1,39 +1,198 @@
small_logo: images/opennebula-sunstone-v4.14-small.png
provision_logo: images/one_small_logo.png
enabled_tabs:
- provision-tab
- dashboard-tab
- system-tab
- users-tab
- groups-tab
#- vdcs-tab
#- acls-tab
- vresources-tab
- vms-tab
- templates-tab
#- images-tab
#- files-tab
- infra-tab
#- clusters-tab
#- hosts-tab
#- datastores-tab
- vnets-topology-tab
- vnets-tab
- secgroups-tab
- vrouters-tab
#- zones-tab
- oneflow-dashboard-tab
- oneflow-services-tab
- oneflow-templates-tab
#- marketplaces-tab
#- marketplaceapps-tab
- settings-tab
#- support-tab
autorefresh: true
features:
showback: true
tabs:
provision-tab:
dashboard-tab:
panel_tabs:
vm_info_tab: false
vm_capacity_tab: false
vm_hotplugging_tab: false
vm_network_tab: false
actions:
Dashboard.refresh: false
Sunstone.toggle_top: false
widgets_three_per_row:
widgets_two_per_row:
- groupquotas
- quotas
widgets_one_per_row:
- vms
- users
widgets_one_footer:
system-tab:
panel_tabs:
actions:
users-tab:
panel_tabs:
user_info_tab: true
user_quotas_tab: true
user_groups_tab: true
user_accounting_tab: true
user_showback_tab: true
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Name
#- 3 # Group
#- 4 # Auth driver
- 5 # VMs
- 6 # Memory
- 7 # CPU
#- 8 # Group ID
#- 9 # Hidden User Data
#- 10 # Labels
actions:
User.refresh: true
User.create_dialog: true
User.update_password: true
User.quotas_dialog: true
User.groups_dialog: false
User.chgrp: false
User.addgroup: false
User.delgroup: false
User.change_authentication: false
User.delete: true
groups-tab:
panel_tabs:
group_info_tab: true
group_users_tab: true
group_quotas_tab: true
group_accounting_tab: true
group_showback_tab: true
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Name
- 3 # Users
- 4 # VMs
- 5 # Memory
- 6 # CPU
#- 7 # Labels
actions:
Group.refresh: true
Group.create_dialog: false
Group.update_dialog: false
Group.quotas_dialog: false
Group.delete: false
Group.edit_admins: false
vdcs-tab:
panel_tabs:
vdc_info_tab: true
vdc_groups_tab: true
vdc_resources_tab: true
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Name
- 3 # Groups
- 4 # Clusters
- 5 # Hosts
- 6 # VNets
- 7 # Datastores
#- 8 # Labels
actions:
Vdc.refresh: true
Vdc.create_dialog: true
Vdc.update_dialog: true
Vdc.rename: true
Vdc.delete: true
acls-tab:
panel_tabs:
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Applies to
- 3 # Affected resources
- 4 # Resource ID / Owned by
- 5 # Allowed operations
- 6 # Zone
#- 7 # ACL String
actions:
Acl.refresh: true
Acl.create_dialog: true
Acl.delete: true
vresources-tab:
panel_tabs:
actions:
vms-tab:
panel_tabs:
vm_info_tab: true
vm_capacity_tab: true
vm_hotplugging_tab: true
vm_network_tab: true
vm_snapshot_tab: false
vm_placement_tab: false
vm_actions_tab: false
vm_template_tab: false
vm_log_tab: false
provision_tabs:
users: true
flows: true
templates: true
actions: &provisionactions
Template.chmod: true
Template.delete: true
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Owner
#- 3 # Group
- 4 # Name
- 5 # Status
#- 6 # Used CPU
#- 7 # Used Memory
#- 8 # Host
- 9 # IPs
#- 10 # Start Time
- 11 # VNC
#- 12 # Hidden Template
#- 13 # Labels
actions:
VM.refresh: true
VM.create_dialog: true
VM.rename: true
VM.chown: true
VM.chgrp: false
VM.chmod: false
VM.deploy: false
VM.migrate: false
VM.migrate_live: false
VM.hold: true
VM.release: true
VM.suspend: false
VM.resume: true
VM.stop: false
VM.recover: false
VM.reboot: true
VM.reboot_hard: true
VM.poweroff: true
VM.poweroff_hard: true
VM.undeploy: false
VM.undeploy_hard: false
VM.undeploy: true
VM.undeploy_hard: true
VM.shutdown: true
VM.shutdown_hard: true
VM.delete: true
VM.delete_recreate: false
VM.resize: false
VM.attachdisk: false
VM.detachdisk: false
@ -46,28 +205,52 @@ tabs:
VM.disk_snapshot_create: false
VM.disk_snapshot_revert: false
VM.disk_snapshot_delete: false
dashboard:
quotas: false
vms: false
vdcquotas: true
vdcvms: true
users: true
create_vm:
capacity_select: true
network_select: true
disk_resize: true
settings-tab:
VM.resched: false
VM.unresched: false
VM.saveas_template: true
templates-tab:
panel_tabs:
user_info_tab: false
user_config_tab: true
user_quotas_tab: true
user_accounting_tab: true
user_showback_tab: true
template_info_tab: true
template_template_tab: false
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Owner
- 3 # Group
- 4 # Name
- 5 # Registration time
#- 6 # Labels
actions:
User.quotas_dialog: false
vms-tab:
actions: *provisionactions
Template.refresh: true
Template.create_dialog: false
Template.import_dialog: false
Template.update_dialog: false
Template.instantiate_vms: true
Template.rename: true
Template.chown: true
Template.chgrp: false
Template.chmod: false
Template.clone_dialog: false
Template.delete: false
Template.delete_recursive: true
Template.share: true
Template.unshare: true
template_creation_tabs:
general: true
storage: true
network: true
os_booting: true
features: true
input_output: true
context: true
scheduling: true
hybrid: true
other: true
images-tab:
panel_tabs:
image_info_tab: true
image_vms_tab: true
image_snapshots_tab: true
table_columns:
- 0 # Checkbox
- 1 # ID
@ -82,16 +265,381 @@ tabs:
- 10 # Status
- 11 # #VMs
#- 12 # Target
vnets-tab:
#- 13 # Labels
actions:
Image.refresh: true
Image.create_dialog: true
Image.export_dialog: true
Image.rename: true
Image.chown: true
Image.chgrp: true
Image.chmod: true
Image.enable: true
Image.disable: true
Image.persistent: true
Image.nonpersistent: true
Image.clone_dialog: true
Image.delete: true
Image.snapshot_flatten: true
Image.snapshot_revert: true
Image.snapshot_delete: true
files-tab:
panel_tabs:
file_info_tab: true
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Owner
- 3 # Group
- 4 # Name
- 5 # Reservation
- 5 # Datastore
#- 6 # Size
- 7 # Type
#- 8 # Registration time
#- 9 # Persistent
- 10 # Status
#- 11 # #VMs
#- 12 # Target
#- 13 # Labels
actions:
File.refresh: true
File.create_dialog: true
File.rename: true
File.chown: true
File.chgrp: true
File.chmod: true
File.enable: true
File.disable: true
File.delete: true
infra-tab:
panel_tabs:
actions:
clusters-tab:
panel_tabs:
cluster_info_tab: true
cluster_host_tab: true
cluster_vnet_tab: true
cluster_datastore_tab: true
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Name
- 3 # Hosts
- 4 # VNets
- 5 # Datastores
#- 6 # Labels
actions:
Cluster.refresh: true
Cluster.create_dialog: true
Cluster.update_dialog: true
Cluster.delete: true
Cluster.rename: true
hosts-tab:
panel_tabs:
host_info_tab: true
host_monitoring_tab: true
host_vms_tab: true
host_wilds_tab: true
host_esx_tab: true
host_pci_tab: true
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Name
- 3 # Cluster
- 4 # RVMs
#- 5 # Real CPU
- 6 # Allocated CPU
#- 7 # Real MEM
- 8 # Allocated MEM
- 9 # Status
#- 10 # IM MAD
#- 11 # VM MAD
#- 12 # Last monitored on
#- 13 # Labels
actions:
Host.refresh: true
Host.create_dialog: true
Host.addtocluster: true
Host.rename: true
Host.enable: true
Host.disable: true
Host.delete: true
datastores-tab:
panel_tabs:
datastore_info_tab: true
datastore_image_tab: true
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Owner
- 3 # Group
- 4 # Name
- 5 # Capacity
- 6 # Cluster
#- 7 # Basepath
#- 8 # TM
#- 9 # DS
- 10 # Type
- 11 # Status
#- 12 # Labels
actions:
Datastore.refresh: true
Datastore.create_dialog: true
Datastore.addtocluster: true
Datastore.rename: true
Datastore.chown: true
Datastore.chgrp: true
Datastore.chmod: true
Datastore.delete: true
Datastore.enable: true
Datastore.disable: true
vnets-topology-tab:
panel_tabs:
actions:
NetworkTopology.refresh: true
NetworkTopology.toggleVMs: true
vnets-tab:
panel_tabs:
vnet_info_tab: false
vnet_ar_list_tab: false
vnet_leases_tab: true
vnet_sg_list_tab: true
vnet_vr_list_tab: false
table_columns:
- 0 # Checkbox
- 1 # ID
#- 2 # Owner
#- 3 # Group
- 4 # Name
#- 5 # Reservation
#- 6 # Cluster
#- 7 # Bridge
- 8 # Leases
#- 8 # Leases
#- 9 # VLAN ID
#- 10 # Labels
actions:
Network.refresh: true
Network.create_dialog: false
Network.import_dialog: false
Network.update_dialog: false
Network.reserve_dialog: false
Network.addtocluster: false
Network.rename: false
Network.chown: false
Network.chgrp: false
Network.chmod: false
Network.delete: false
Network.hold_lease: false
Network.release_lease: false
Network.add_ar: false
Network.remove_ar: false
Network.update_ar: false
secgroups-tab:
panel_tabs:
security_group_info_tab: true
table_columns:
- 0 # Checkbox
- 1 # ID
#- 2 # Owner
#- 3 # Group
- 4 # Name
#- 5 # Labels
actions:
SecurityGroup.refresh: true
SecurityGroup.create_dialog: false
SecurityGroup.update_dialog: false
SecurityGroup.rename: false
SecurityGroup.chown: false
SecurityGroup.chgrp: false
SecurityGroup.chmod: false
SecurityGroup.clone_dialog: false
SecurityGroup.delete: false
vrouters-tab:
panel_tabs:
virtual_router_info_tab: true
virtual_router_vms_tab: true
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Owner
#- 3 # Group
- 4 # Name
actions:
VirtualRouter.refresh: true
VirtualRouter.create_dialog: true
VirtualRouter.rename: true
VirtualRouter.chown: true
VirtualRouter.chgrp: false
VirtualRouter.chmod: false
VirtualRouter.delete: true
VirtualRouter.attachnic: false
VirtualRouter.detachnic: false
oneflow-dashboard-tab:
panel_tabs:
table_columns:
actions:
oneflow-services-tab:
panel_tabs:
service_info_tab: true
service_roles_tab: true
service_log_tab: true
panel_tabs_actions:
service_roles_tab:
Role.scale: true
Role.hold: true
Role.release: true
Role.suspend: false
Role.resume: true
Role.stop: false
Role.reboot: true
Role.reboot_hard: true
Role.poweroff: true
Role.poweroff_hard: true
Role.undeploy: true
Role.undeploy_hard: true
Role.shutdown: true
Role.shutdown_hard: true
Role.delete: true
Role.delete_recreate: false
RoleVM.hold: true
RoleVM.release: true
RoleVM.suspend: false
RoleVM.resume: true
RoleVM.stop: false
RoleVM.reboot: true
RoleVM.reboot_hard: true
RoleVM.poweroff: true
RoleVM.poweroff_hard: true
RoleVM.undeploy: true
RoleVM.undeploy_hard: true
RoleVM.shutdown: true
RoleVM.shutdown_hard: true
RoleVM.delete: true
RoleVM.delete_recreate: false
RoleVM.resched: false
RoleVM.unresched: false
RoleVM.recover: false
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Owner
#- 3 # Group
- 4 # Name
- 5 # State
actions:
Service.refresh: true
Service.chown: true
Service.chgrp: false
Service.chmod: false
Service.rename: true
Service.shutdown: true
Service.recover: true
Service.delete: true
oneflow-templates-tab:
panel_tabs:
service_template_info_tab: true
service_template_roles_tab: true
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Owner
- 3 # Group
- 4 # Name
actions:
ServiceTemplate.refresh: true
ServiceTemplate.create_dialog: false
ServiceTemplate.update_dialog: false
ServiceTemplate.instantiate: true
ServiceTemplate.chown: false
ServiceTemplate.chgrp: false
ServiceTemplate.chmod: false
ServiceTemplate.rename: false
ServiceTemplate.clone_dialog: false
ServiceTemplate.delete: false
zones-tab:
panel_tabs:
zone_info_tab: true
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Name
- 3 # Endpoint
#- 4 # Labels
actions:
Zone.refresh: true
Zone.create_dialog: true
Zone.rename: true
Zone.delete: true
support-tab:
panel_tabs:
support_info_tab: true
table_columns:
#- 0 # Checkbox
- 1 # ID
- 2 # Subject
- 3 # Created at
- 4 # Status
actions:
Support.refresh: true
Support.create_dialog: true
settings-tab:
panel_tabs:
user_info_tab: true
user_quotas_tab: true
group_quotas_tab: true
user_accounting_tab: true
user_showback_tab: true
actions:
User.quotas_dialog: false
marketplaces-tab:
panel_tabs:
marketplace_info_tab: true
marketplace_apps_tab: true
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Owner
- 3 # Group
- 4 # Name
- 5 # Capacity
- 6 # Apps
- 7 # Driver
#- 8 # Labels
actions:
MarketPlace.refresh: true
MarketPlace.create_dialog: true
MarketPlace.update_dialog: true
MarketPlace.rename: true
MarketPlace.chown: true
MarketPlace.chgrp: true
MarketPlace.chmod: true
MarketPlace.delete: true
marketplaceapps-tab:
panel_tabs:
marketplaceapp_info_tab: true
marketplaceapp_templates_tab: true
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Owner
- 3 # Group
- 4 # Name
#- 5 # Version
- 6 # Size
- 7 # State
#- 8 # Type
- 9 # Registration
- 10 # Marketplace
#- 11 # Labels
actions:
MarketPlaceApp.refresh: true
MarketPlaceApp.create_dialog: true
MarketPlaceApp.export_dialog: true
MarketPlaceApp.rename: true
MarketPlaceApp.chown: true
MarketPlaceApp.chgrp: true
MarketPlaceApp.chmod: true
MarketPlaceApp.enable: true
MarketPlaceApp.disable: true
MarketPlaceApp.delete: true

View File

@ -0,0 +1,97 @@
provision_logo: images/one_small_logo.png
enabled_tabs:
- provision-tab
- users-tab
- settings-tab
features:
showback: true
tabs:
provision-tab:
panel_tabs:
vm_info_tab: false
vm_capacity_tab: false
vm_hotplugging_tab: false
vm_network_tab: false
vm_snapshot_tab: false
vm_placement_tab: false
vm_actions_tab: false
vm_template_tab: false
vm_log_tab: false
provision_tabs:
users: true
flows: true
templates: true
actions: &provisionactions
Template.chmod: true
Template.delete: true
VM.rename: true
VM.resume: true
VM.reboot: true
VM.reboot_hard: true
VM.poweroff: true
VM.poweroff_hard: true
VM.undeploy: false
VM.undeploy_hard: false
VM.shutdown_hard: true
VM.delete: true
VM.resize: false
VM.attachdisk: false
VM.detachdisk: false
VM.disk_saveas: false
VM.attachnic: false
VM.detachnic: false
VM.snapshot_create: false
VM.snapshot_revert: false
VM.snapshot_delete: false
VM.disk_snapshot_create: false
VM.disk_snapshot_revert: false
VM.disk_snapshot_delete: false
dashboard:
quotas: false
vms: false
vdcquotas: true
vdcvms: true
users: true
create_vm:
capacity_select: true
network_select: true
disk_resize: true
settings-tab:
panel_tabs:
user_info_tab: false
user_config_tab: true
user_quotas_tab: true
user_accounting_tab: true
user_showback_tab: true
actions:
User.quotas_dialog: false
vms-tab:
actions: *provisionactions
images-tab:
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Owner
- 3 # Group
- 4 # Name
- 5 # Datastore
#- 6 # Size
- 7 # Type
#- 8 # Registration time
#- 9 # Persistent
- 10 # Status
- 11 # #VMs
#- 12 # Target
vnets-tab:
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Owner
- 3 # Group
- 4 # Name
- 5 # Reservation
- 6 # Cluster
#- 7 # Bridge
- 8 # Leases
#- 9 # VLAN ID

View File

@ -1,39 +1,198 @@
small_logo: images/opennebula-sunstone-v4.14-small.png
provision_logo: images/one_small_logo.png
enabled_tabs:
- provision-tab
- dashboard-tab
- system-tab
- users-tab
- groups-tab
#- vdcs-tab
#- acls-tab
- vresources-tab
- vms-tab
#- templates-tab
#- images-tab
#- files-tab
- infra-tab
#- clusters-tab
#- hosts-tab
#- datastores-tab
- vnets-topology-tab
- vnets-tab
#- secgroups-tab
- vrouters-tab
#- zones-tab
- oneflow-dashboard-tab
- oneflow-services-tab
- oneflow-templates-tab
#- marketplaces-tab
#- marketplaceapps-tab
- settings-tab
#- support-tab
autorefresh: true
features:
showback: true
tabs:
provision-tab:
dashboard-tab:
panel_tabs:
vm_info_tab: false
vm_capacity_tab: false
vm_hotplugging_tab: false
vm_network_tab: false
actions:
Dashboard.refresh: false
Sunstone.toggle_top: false
widgets_three_per_row:
widgets_two_per_row:
- groupquotas
- quotas
widgets_one_per_row:
- vms
- users
widgets_one_footer:
system-tab:
panel_tabs:
actions:
users-tab:
panel_tabs:
user_info_tab: true
user_quotas_tab: true
user_groups_tab: true
user_accounting_tab: true
user_showback_tab: true
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Name
#- 3 # Group
#- 4 # Auth driver
- 5 # VMs
- 6 # Memory
- 7 # CPU
#- 8 # Group ID
#- 9 # Hidden User Data
#- 10 # Labels
actions:
User.refresh: true
User.create_dialog: true
User.update_password: true
User.quotas_dialog: true
User.groups_dialog: false
User.chgrp: false
User.addgroup: false
User.delgroup: false
User.change_authentication: false
User.delete: true
groups-tab:
panel_tabs:
group_info_tab: true
group_users_tab: true
group_quotas_tab: true
group_accounting_tab: true
group_showback_tab: true
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Name
- 3 # Users
- 4 # VMs
- 5 # Memory
- 6 # CPU
#- 7 # Labels
actions:
Group.refresh: true
Group.create_dialog: false
Group.update_dialog: false
Group.quotas_dialog: false
Group.delete: false
Group.edit_admins: false
vdcs-tab:
panel_tabs:
vdc_info_tab: true
vdc_groups_tab: true
vdc_resources_tab: true
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Name
- 3 # Groups
- 4 # Clusters
- 5 # Hosts
- 6 # VNets
- 7 # Datastores
#- 8 # Labels
actions:
Vdc.refresh: true
Vdc.create_dialog: true
Vdc.update_dialog: true
Vdc.rename: true
Vdc.delete: true
acls-tab:
panel_tabs:
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Applies to
- 3 # Affected resources
- 4 # Resource ID / Owned by
- 5 # Allowed operations
- 6 # Zone
#- 7 # ACL String
actions:
Acl.refresh: true
Acl.create_dialog: true
Acl.delete: true
vresources-tab:
panel_tabs:
actions:
vms-tab:
panel_tabs:
vm_info_tab: true
vm_capacity_tab: true
vm_hotplugging_tab: true
vm_network_tab: true
vm_snapshot_tab: false
vm_placement_tab: false
vm_actions_tab: false
vm_template_tab: false
vm_log_tab: false
provision_tabs:
users: true
flows: true
templates: false
actions: &provisionactions
Template.chmod: false
Template.delete: true
VM.rename: false
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Owner
#- 3 # Group
- 4 # Name
- 5 # Status
#- 6 # Used CPU
#- 7 # Used Memory
#- 8 # Host
- 9 # IPs
#- 10 # Start Time
- 11 # VNC
#- 12 # Hidden Template
#- 13 # Labels
actions:
VM.refresh: true
VM.create_dialog: true
VM.rename: true
VM.chown: true
VM.chgrp: false
VM.chmod: false
VM.deploy: false
VM.migrate: false
VM.migrate_live: false
VM.hold: true
VM.release: true
VM.suspend: false
VM.resume: true
VM.stop: false
VM.recover: false
VM.reboot: true
VM.reboot_hard: true
VM.poweroff: true
VM.poweroff_hard: true
VM.undeploy: false
VM.undeploy_hard: false
VM.undeploy: true
VM.undeploy_hard: true
VM.shutdown: true
VM.shutdown_hard: true
VM.delete: true
VM.delete_recreate: false
VM.resize: false
VM.attachdisk: false
VM.detachdisk: false
@ -46,27 +205,52 @@ tabs:
VM.disk_snapshot_create: false
VM.disk_snapshot_revert: false
VM.disk_snapshot_delete: false
dashboard:
quotas: false
vms: false
vdcquotas: true
vdcvms: true
users: true
create_vm:
capacity_select: false
network_select: true
settings-tab:
VM.resched: false
VM.unresched: false
VM.saveas_template: false
templates-tab:
panel_tabs:
user_info_tab: false
user_config_tab: true
user_quotas_tab: true
user_accounting_tab: true
user_showback_tab: true
template_info_tab: true
template_template_tab: false
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Owner
- 3 # Group
- 4 # Name
- 5 # Registration time
#- 6 # Labels
actions:
User.quotas_dialog: false
vms-tab:
actions: *provisionactions
Template.refresh: true
Template.create_dialog: false
Template.import_dialog: false
Template.update_dialog: false
Template.instantiate_vms: true
Template.rename: true
Template.chown: true
Template.chgrp: false
Template.chmod: false
Template.clone_dialog: false
Template.delete: false
Template.delete_recursive: true
Template.share: true
Template.unshare: true
template_creation_tabs:
general: true
storage: true
network: true
os_booting: true
features: true
input_output: true
context: true
scheduling: true
hybrid: true
other: true
images-tab:
panel_tabs:
image_info_tab: true
image_vms_tab: true
image_snapshots_tab: true
table_columns:
- 0 # Checkbox
- 1 # ID
@ -81,16 +265,381 @@ tabs:
- 10 # Status
- 11 # #VMs
#- 12 # Target
vnets-tab:
#- 13 # Labels
actions:
Image.refresh: true
Image.create_dialog: true
Image.export_dialog: true
Image.rename: true
Image.chown: true
Image.chgrp: true
Image.chmod: true
Image.enable: true
Image.disable: true
Image.persistent: true
Image.nonpersistent: true
Image.clone_dialog: true
Image.delete: true
Image.snapshot_flatten: true
Image.snapshot_revert: true
Image.snapshot_delete: true
files-tab:
panel_tabs:
file_info_tab: true
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Owner
- 3 # Group
- 4 # Name
- 5 # Reservation
- 5 # Datastore
#- 6 # Size
- 7 # Type
#- 8 # Registration time
#- 9 # Persistent
- 10 # Status
#- 11 # #VMs
#- 12 # Target
#- 13 # Labels
actions:
File.refresh: true
File.create_dialog: true
File.rename: true
File.chown: true
File.chgrp: true
File.chmod: true
File.enable: true
File.disable: true
File.delete: true
infra-tab:
panel_tabs:
actions:
clusters-tab:
panel_tabs:
cluster_info_tab: true
cluster_host_tab: true
cluster_vnet_tab: true
cluster_datastore_tab: true
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Name
- 3 # Hosts
- 4 # VNets
- 5 # Datastores
#- 6 # Labels
actions:
Cluster.refresh: true
Cluster.create_dialog: true
Cluster.update_dialog: true
Cluster.delete: true
Cluster.rename: true
hosts-tab:
panel_tabs:
host_info_tab: true
host_monitoring_tab: true
host_vms_tab: true
host_wilds_tab: true
host_esx_tab: true
host_pci_tab: true
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Name
- 3 # Cluster
- 4 # RVMs
#- 5 # Real CPU
- 6 # Allocated CPU
#- 7 # Real MEM
- 8 # Allocated MEM
- 9 # Status
#- 10 # IM MAD
#- 11 # VM MAD
#- 12 # Last monitored on
#- 13 # Labels
actions:
Host.refresh: true
Host.create_dialog: true
Host.addtocluster: true
Host.rename: true
Host.enable: true
Host.disable: true
Host.delete: true
datastores-tab:
panel_tabs:
datastore_info_tab: true
datastore_image_tab: true
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Owner
- 3 # Group
- 4 # Name
- 5 # Capacity
- 6 # Cluster
#- 7 # Basepath
#- 8 # TM
#- 9 # DS
- 10 # Type
- 11 # Status
#- 12 # Labels
actions:
Datastore.refresh: true
Datastore.create_dialog: true
Datastore.addtocluster: true
Datastore.rename: true
Datastore.chown: true
Datastore.chgrp: true
Datastore.chmod: true
Datastore.delete: true
Datastore.enable: true
Datastore.disable: true
vnets-topology-tab:
panel_tabs:
actions:
NetworkTopology.refresh: true
NetworkTopology.toggleVMs: true
vnets-tab:
panel_tabs:
vnet_info_tab: false
vnet_ar_list_tab: false
vnet_leases_tab: true
vnet_sg_list_tab: false
vnet_vr_list_tab: false
table_columns:
- 0 # Checkbox
- 1 # ID
#- 2 # Owner
#- 3 # Group
- 4 # Name
#- 5 # Reservation
#- 6 # Cluster
#- 7 # Bridge
- 8 # Leases
#- 8 # Leases
#- 9 # VLAN ID
#- 10 # Labels
actions:
Network.refresh: true
Network.create_dialog: false
Network.import_dialog: false
Network.update_dialog: false
Network.reserve_dialog: false
Network.addtocluster: false
Network.rename: false
Network.chown: false
Network.chgrp: false
Network.chmod: false
Network.delete: false
Network.hold_lease: false
Network.release_lease: false
Network.add_ar: false
Network.remove_ar: false
Network.update_ar: false
secgroups-tab:
panel_tabs:
security_group_info_tab: true
table_columns:
- 0 # Checkbox
- 1 # ID
#- 2 # Owner
#- 3 # Group
- 4 # Name
#- 5 # Labels
actions:
SecurityGroup.refresh: true
SecurityGroup.create_dialog: false
SecurityGroup.update_dialog: false
SecurityGroup.rename: false
SecurityGroup.chown: false
SecurityGroup.chgrp: false
SecurityGroup.chmod: false
SecurityGroup.clone_dialog: false
SecurityGroup.delete: false
vrouters-tab:
panel_tabs:
virtual_router_info_tab: true
virtual_router_vms_tab: true
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Owner
#- 3 # Group
- 4 # Name
actions:
VirtualRouter.refresh: true
VirtualRouter.create_dialog: true
VirtualRouter.rename: true
VirtualRouter.chown: true
VirtualRouter.chgrp: false
VirtualRouter.chmod: false
VirtualRouter.delete: true
VirtualRouter.attachnic: false
VirtualRouter.detachnic: false
oneflow-dashboard-tab:
panel_tabs:
table_columns:
actions:
oneflow-services-tab:
panel_tabs:
service_info_tab: true
service_roles_tab: true
service_log_tab: true
panel_tabs_actions:
service_roles_tab:
Role.scale: true
Role.hold: true
Role.release: true
Role.suspend: false
Role.resume: true
Role.stop: false
Role.reboot: true
Role.reboot_hard: true
Role.poweroff: true
Role.poweroff_hard: true
Role.undeploy: true
Role.undeploy_hard: true
Role.shutdown: true
Role.shutdown_hard: true
Role.delete: true
Role.delete_recreate: false
RoleVM.hold: true
RoleVM.release: true
RoleVM.suspend: false
RoleVM.resume: true
RoleVM.stop: false
RoleVM.reboot: true
RoleVM.reboot_hard: true
RoleVM.poweroff: true
RoleVM.poweroff_hard: true
RoleVM.undeploy: true
RoleVM.undeploy_hard: true
RoleVM.shutdown: true
RoleVM.shutdown_hard: true
RoleVM.delete: true
RoleVM.delete_recreate: false
RoleVM.resched: false
RoleVM.unresched: false
RoleVM.recover: false
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Owner
#- 3 # Group
- 4 # Name
- 5 # State
actions:
Service.refresh: true
Service.chown: true
Service.chgrp: false
Service.chmod: false
Service.rename: true
Service.shutdown: true
Service.recover: true
Service.delete: true
oneflow-templates-tab:
panel_tabs:
service_template_info_tab: true
service_template_roles_tab: true
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Owner
- 3 # Group
- 4 # Name
actions:
ServiceTemplate.refresh: true
ServiceTemplate.create_dialog: false
ServiceTemplate.update_dialog: false
ServiceTemplate.instantiate: true
ServiceTemplate.chown: false
ServiceTemplate.chgrp: false
ServiceTemplate.chmod: false
ServiceTemplate.rename: false
ServiceTemplate.clone_dialog: false
ServiceTemplate.delete: false
zones-tab:
panel_tabs:
zone_info_tab: true
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Name
- 3 # Endpoint
#- 4 # Labels
actions:
Zone.refresh: true
Zone.create_dialog: true
Zone.rename: true
Zone.delete: true
support-tab:
panel_tabs:
support_info_tab: true
table_columns:
#- 0 # Checkbox
- 1 # ID
- 2 # Subject
- 3 # Created at
- 4 # Status
actions:
Support.refresh: true
Support.create_dialog: true
settings-tab:
panel_tabs:
user_info_tab: true
user_quotas_tab: true
group_quotas_tab: true
user_accounting_tab: true
user_showback_tab: true
actions:
User.quotas_dialog: false
marketplaces-tab:
panel_tabs:
marketplace_info_tab: true
marketplace_apps_tab: true
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Owner
- 3 # Group
- 4 # Name
- 5 # Capacity
- 6 # Apps
- 7 # Driver
#- 8 # Labels
actions:
MarketPlace.refresh: true
MarketPlace.create_dialog: true
MarketPlace.update_dialog: true
MarketPlace.rename: true
MarketPlace.chown: true
MarketPlace.chgrp: true
MarketPlace.chmod: true
MarketPlace.delete: true
marketplaceapps-tab:
panel_tabs:
marketplaceapp_info_tab: true
marketplaceapp_templates_tab: true
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Owner
- 3 # Group
- 4 # Name
#- 5 # Version
- 6 # Size
- 7 # State
#- 8 # Type
- 9 # Registration
- 10 # Marketplace
#- 11 # Labels
actions:
MarketPlaceApp.refresh: true
MarketPlaceApp.create_dialog: true
MarketPlaceApp.export_dialog: true
MarketPlaceApp.rename: true
MarketPlaceApp.chown: true
MarketPlaceApp.chgrp: true
MarketPlaceApp.chmod: true
MarketPlaceApp.enable: true
MarketPlaceApp.disable: true
MarketPlaceApp.delete: true

View File

@ -0,0 +1,96 @@
provision_logo: images/one_small_logo.png
enabled_tabs:
- provision-tab
- users-tab
- settings-tab
features:
showback: true
tabs:
provision-tab:
panel_tabs:
vm_info_tab: false
vm_capacity_tab: false
vm_hotplugging_tab: false
vm_network_tab: false
vm_snapshot_tab: false
vm_placement_tab: false
vm_actions_tab: false
vm_template_tab: false
vm_log_tab: false
provision_tabs:
users: true
flows: true
templates: false
actions: &provisionactions
Template.chmod: false
Template.delete: true
VM.rename: false
VM.resume: true
VM.reboot: true
VM.reboot_hard: true
VM.poweroff: true
VM.poweroff_hard: true
VM.undeploy: false
VM.undeploy_hard: false
VM.shutdown_hard: true
VM.delete: true
VM.resize: false
VM.attachdisk: false
VM.detachdisk: false
VM.disk_saveas: false
VM.attachnic: false
VM.detachnic: false
VM.snapshot_create: false
VM.snapshot_revert: false
VM.snapshot_delete: false
VM.disk_snapshot_create: false
VM.disk_snapshot_revert: false
VM.disk_snapshot_delete: false
dashboard:
quotas: false
vms: false
vdcquotas: true
vdcvms: true
users: true
create_vm:
capacity_select: false
network_select: true
settings-tab:
panel_tabs:
user_info_tab: false
user_config_tab: true
user_quotas_tab: true
user_accounting_tab: true
user_showback_tab: true
actions:
User.quotas_dialog: false
vms-tab:
actions: *provisionactions
images-tab:
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Owner
- 3 # Group
- 4 # Name
- 5 # Datastore
#- 6 # Size
- 7 # Type
#- 8 # Registration time
#- 9 # Persistent
- 10 # Status
- 11 # #VMs
#- 12 # Target
vnets-tab:
table_columns:
- 0 # Checkbox
- 1 # ID
- 2 # Owner
- 3 # Group
- 4 # Name
- 5 # Reservation
- 6 # Cluster
#- 7 # Bridge
- 8 # Leases
#- 9 # VLAN ID

View File

@ -21,6 +21,9 @@ define(function(require) {
var Notifier = require('utils/notifier');
var OpenNebulaVM = require('opennebula/vm');
var Accounting = require('utils/accounting');
var OpenNebula = require('opennebula');
var QuotaWidgets = require('utils/quotas/quota-widgets');
var QuotaDefaults = require('utils/quotas/quota-defaults');
var TemplateDashboard = require('hbs!./dashboard-tab/html');
@ -36,6 +39,8 @@ define(function(require) {
var IMAGES_CREATE_FORM_PANEL_ID = require('tabs/images-tab/form-panels/create/formPanelId');
var VNETS_CREATE_FORM_PANEL_ID = require('tabs/vnets-tab/form-panels/create/formPanelId');
var TAB_ID = require('./dashboard-tab/tabId');
var _initialized = false;
var _activeWidgets = [];
var _widgets = {
@ -112,6 +117,104 @@ define(function(require) {
data: options
});
}
},
'groupquotas': {
'html': require('hbs!./provision-tab/dashboard/vdc-quotas'),
'onShow': function() {
OpenNebula.Group.show({
data : {
id: "-1"
},
success: function(request,group_json){
var group = group_json.GROUP;
QuotaWidgets.initEmptyQuotas(group);
if (!$.isEmptyObject(group.VM_QUOTA)){
var default_group_quotas = QuotaDefaults.default_quotas(group.DEFAULT_GROUP_QUOTAS);
var vms = QuotaWidgets.quotaInfo(
group.VM_QUOTA.VM.VMS_USED,
group.VM_QUOTA.VM.VMS,
default_group_quotas.VM_QUOTA.VM.VMS,
true);
$("#"+TAB_ID+" #provision_dashboard_vdc_rvms_percentage").html(vms["percentage"]);
$("#"+TAB_ID+" #provision_dashboard_vdc_rvms_str").html(vms["str"]);
$("#"+TAB_ID+" #provision_dashboard_vdc_rvms_meter").css("width", vms["percentage"]+"%");
var memory = QuotaWidgets.quotaMBInfo(
group.VM_QUOTA.VM.MEMORY_USED,
group.VM_QUOTA.VM.MEMORY,
default_group_quotas.VM_QUOTA.VM.MEMORY,
true);
$("#"+TAB_ID+" #provision_dashboard_vdc_memory_percentage").html(memory["percentage"]);
$("#"+TAB_ID+" #provision_dashboard_vdc_memory_str").html(memory["str"]);
$("#"+TAB_ID+" #provision_dashboard_vdc_memory_meter").css("width", memory["percentage"]+"%");
var cpu = QuotaWidgets.quotaFloatInfo(
group.VM_QUOTA.VM.CPU_USED,
group.VM_QUOTA.VM.CPU,
default_group_quotas.VM_QUOTA.VM.CPU,
true);
$("#"+TAB_ID+" #provision_dashboard_vdc_cpu_percentage").html(cpu["percentage"]);
$("#"+TAB_ID+" #provision_dashboard_vdc_cpu_str").html(cpu["str"]);
$("#"+TAB_ID+" #provision_dashboard_vdc_cpu_meter").css("width", cpu["percentage"]+"%");
}
}
});
}
},
'quotas': {
'html': require('hbs!./provision-tab/dashboard/quotas'),
'onShow': function() {
OpenNebula.User.show({
data : {
id: "-1"
},
success: function(request,user_json){
var user = user_json.USER;
QuotaWidgets.initEmptyQuotas(user);
if (!$.isEmptyObject(user.VM_QUOTA)){
var default_user_quotas = QuotaDefaults.default_quotas(user.DEFAULT_USER_QUOTAS);
var vms = QuotaWidgets.quotaInfo(
user.VM_QUOTA.VM.VMS_USED,
user.VM_QUOTA.VM.VMS,
default_user_quotas.VM_QUOTA.VM.VMS,
true);
$("#"+TAB_ID+" #provision_dashboard_rvms_percentage").html(vms["percentage"]);
$("#"+TAB_ID+" #provision_dashboard_rvms_str").html(vms["str"]);
$("#"+TAB_ID+" #provision_dashboard_rvms_meter").css("width", vms["percentage"]+"%");
var memory = QuotaWidgets.quotaMBInfo(
user.VM_QUOTA.VM.MEMORY_USED,
user.VM_QUOTA.VM.MEMORY,
default_user_quotas.VM_QUOTA.VM.MEMORY,
true);
$("#"+TAB_ID+" #provision_dashboard_memory_percentage").html(memory["percentage"]);
$("#"+TAB_ID+" #provision_dashboard_memory_str").html(memory["str"]);
$("#"+TAB_ID+" #provision_dashboard_memory_meter").css("width", memory["percentage"]+"%");
var cpu = QuotaWidgets.quotaFloatInfo(
user.VM_QUOTA.VM.CPU_USED,
user.VM_QUOTA.VM.CPU,
default_user_quotas.VM_QUOTA.VM.CPU,
true);
$("#"+TAB_ID+" #provision_dashboard_cpu_percentage").html(cpu["percentage"]);
$("#"+TAB_ID+" #provision_dashboard_cpu_str").html(cpu["str"]);
$("#"+TAB_ID+" #provision_dashboard_cpu_meter").css("width", cpu["percentage"]+"%");
}
}
});
}
}
}
@ -130,8 +233,6 @@ define(function(require) {
},
}
var TAB_ID = require('./dashboard-tab/tabId');
var Tab = {
tabId: TAB_ID,
resource: 'Dashboard',