From 6b08eadba129de50815dfc99b4695163059b2d80 Mon Sep 17 00:00:00 2001 From: Jan Orel Date: Mon, 9 Nov 2026 17:17:26 +0100 Subject: [PATCH] F #-: Introduce 7.4.1 -> 7.4.2 migrator (#4693) --- src/onecfg/share/etc/files.yaml | 28 + src/onecfg/share/migrators/7.4.1_to_7.4.2.rb | 37 + .../share/migrators/7.4.1_to_7.4.2.yaml | 10396 ++++++++++++++++ 3 files changed, 10461 insertions(+) create mode 100644 src/onecfg/share/migrators/7.4.1_to_7.4.2.rb create mode 100644 src/onecfg/share/migrators/7.4.1_to_7.4.2.yaml diff --git a/src/onecfg/share/etc/files.yaml b/src/onecfg/share/etc/files.yaml index 9aa92f7258..3bd78cf7f6 100644 --- a/src/onecfg/share/etc/files.yaml +++ b/src/onecfg/share/etc/files.yaml @@ -352,6 +352,34 @@ mode: '0640' src: src/oneks/etc/oneks-server.conf +- name: /etc/one/fabricmanager.conf + class: Augeas::Shell + owner: root + group: oneadmin + mode: '0640' + src: src/onefabric/host/etc/fabricmanager.conf + +- name: /etc/one/one-fabricmanager.xml + class: Simple + owner: root + group: oneadmin + mode: '0640' + src: src/onefabric/host/etc/one-fabricmanager.xml + +- name: /etc/one/ovirtapi-server.yml + class: Yaml + owner: root + group: root + mode: '0644' + src: src/ovirtapi/etc/ovirtapi-server.yml + +- name: /etc/one/ovirtapi-puma.rb + class: Simple + owner: root + group: root + mode: '0644' + src: src/ovirtapi/etc/ovirtapi-puma.rb + ### Dir: /var/lib/one/remotes/etc/ ######################### - name: /var/lib/one/remotes/etc/datastore/datastore.conf diff --git a/src/onecfg/share/migrators/7.4.1_to_7.4.2.rb b/src/onecfg/share/migrators/7.4.1_to_7.4.2.rb new file mode 100644 index 0000000000..5da86ca96d --- /dev/null +++ b/src/onecfg/share/migrators/7.4.1_to_7.4.2.rb @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------- # +# Copyright 2019-2026, OpenNebula Systems S.L. # +# # +# Licensed under the OpenNebula Software License # +# (the "License"); you may not use this file except in compliance with # +# the License. You may obtain a copy of the License as part of the software # +# distribution. # +# # +# See https://github.com/OpenNebula/one/blob/master/LICENSE.onsla # +# (or copy bundled with OpenNebula in /usr/share/doc/one/). # +# # +# Unless agreed to in writing, software distributed under the License is # +# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # +# KIND, either express or implied. See the License for the specific language # +# governing permissions and limitations under the License. # +# -------------------------------------------------------------------------- # + +# frozen_string_literal: true + +# Migrator +module Migrator + + # Preupgrade steps + def pre_up + # new directory for tm/san/backup.conf + ['/var/lib/one/remotes/etc/tm/san'].each do |dir| + @fops.mkdir(dir) + @fops.chown(dir, 'oneadmin', 'oneadmin') + @fops.chmod(dir, 0o750) + end + end + + # Upgrade steps + def up + end + +end diff --git a/src/onecfg/share/migrators/7.4.1_to_7.4.2.yaml b/src/onecfg/share/migrators/7.4.1_to_7.4.2.yaml new file mode 100644 index 0000000000..89254e1db8 --- /dev/null +++ b/src/onecfg/share/migrators/7.4.1_to_7.4.2.yaml @@ -0,0 +1,10396 @@ +--- +patches: + "/etc/one/auth/ldap_auth.conf": + class: Yaml::Strict + owner: root + group: oneadmin + mode: '0640' + content: | + server 1: + # Ldap user able to query, if not set connects as anonymous. For + # Active Directory append the domain name. Example: + # Administrator@my.domain.com + #:user: 'admin' + #:password: 'password' + + # Ldap authentication method + :auth_method: :simple + + # Ldap server + :host: localhost + :port: 389 + + # Connection and authentication timeout + #:timeout: 15 + + # Uncomment this line for tls connections, use :simple_tls or :start_tls + #:encryption: :simple_tls + + # base hierarchy where to search for users and groups + :base: 'dc=domain' + + # group the users need to belong to. If not set any user will do + #:group: 'cn=cloud,ou=groups,dc=domain' + + # field that holds the user name, if not set 'cn' will be used + :user_field: 'cn' + + # for Active Directory use this user_field instead + #:user_field: 'sAMAccountName' + + # field name for group membership, by default it is 'member' + #:group_field: 'member' + + # user field that is in the group group_field, if not set 'dn' will be used + #:user_group_field: 'dn' + + # Generate mapping file from group template info + :mapping_generate: true + + # Seconds a mapping file remain untouched until the next regeneration + :mapping_timeout: 300 + + # Name of the mapping file in OpenNebula var directory + :mapping_filename: server1.yaml + + # Key from the OpenNebula template to map to an AD group + :mapping_key: GROUP_DN + + # Default group ID used for users in an AD group not mapped + :mapping_default: 1 + + # use RFC2307bis for groups + # if false, depending on your LDAP server configuration, + # set user_field and user_group_field 'uid' and group_field 'memberUid' + :rfc2307bis: true + + # DN of a group, if user is member of that group in LDAP, this user + # will be group admin of all mapped LDAP groups in OpenNebula. + #:group_admin_group_dn: 'cn=admins,ou=groups,dc=domain' + + # this example server wont be called as it is not in the :order list + server 2: + :auth_method: :simple + :host: localhost + :port: 389 + :base: 'dc=domain' + #:group: 'cn=cloud,ou=groups,dc=domain' + :user_field: 'cn' + + # There are 2 (mutually exclusive) options of how the servers are chosen + # + # 1. :order: + # ---------- + # + # List the order the servers are queried + # + # :order is defined as a list of server names and/or nested lists + # of server names (representing the availability group). The servers + # in the main list are consulted in the order they are written until + # the authentication succeeds. In the nested server lists (avail. + # groups), user is authenticated only against the first online server. + # If user is passed/refused by the server in the availability group, + # no other server is consulted from the same group, but + # the authentication process continues with the next server/group in + # the main list. + # + # Examples: + # + # 1) simple list + # :order: + # - server1 + # - server2 + # - server3 + # + # 2) list with availability group + # :order: + # - server1 + # - ['server2', 'server3', 'server4'] # availability group + # - server5 + # + :order: + - server 1 + #- server 2 + # + # 2. :match_user_regex: + # --------------------- + # + # Allows mapping user by matching a regex to a particual LDAP server + # or server list + # + # Example: + # + # :match_user_regex: + # "^(.*)@orgA$": server1 + # "^(.*)@orgB$": server2 + # "^(.*)@orgC$": ['server3', 'server4'] + # + # In this example user `joe@orgA` will be searched in server1 and user + # `paul@orgC` will be searched in server3 (and server4 if not found) + # + # If the regex contains capture group like here, only this part of the + # username is searched in the LDAP actually. So the user entry only + # have attribute like `cn: paul`. The suffix is only used to identify + # the server. + "/etc/one/auth/saml_auth.conf": + class: Yaml::Strict + owner: root + group: oneadmin + mode: '0640' + content: |- + # -------------------------------------------------------------------------- # + # Global Service Provider (SP) Configuration # + # -------------------------------------------------------------------------- # + # The unique identifier for this OpenNebula instance as a Service Provider. + # This exact value must be configured in each Identity Provider (IdP) that + # you connect (e.g., as the Client ID in Keycloak or Audience URI in Okta). + # It is used to validate the 'Audience' in the SAML assertion. + :sp_entity_id: 'your-opennebula-sp-entity-id' + + # -------------------------------------------------------------------------- # + # Assertion Consumer Service (ACS) URL # + # -------------------------------------------------------------------------- # + # The endpoint where OpenNebula receives SAML assertions. + # This value must exactly match the 'Recipient' URL that the IdP + # includes in the SAML assertion, preventing SAML redirect attacks + :acs_url: 'https://your-opennebula-domain.com/fireedge/api/auth/acs' + + # -------------------------------------------------------------------------- # + # Identity Provider (IdP) Definitions # + # -------------------------------------------------------------------------- # + # A map containing the configuration for each trusted Identity Provider, + # where the key is the name of the provider. + :identity_providers: + :keycloak_idp: + # The 'issuer' is a unique identifier for the Identity Provider. + # This value from the SAML assertion's element is used + # to find the correct configuration block. + # Example: "https://your-keycloak-domain.com/realms/your-realm" + :issuer: 'https://your-keycloak-domain.com/realms/your-realm' + + # The X.509 public key certificate of the Identity Provider. + # This is used to verify the signature of the SAML assertion. + # The certificate should be in PEM format, without the -----BEGIN... + # and -----END... lines, and on a single line. + :idp_cert: 'MIID...your...IdP...cert...here...A==' + + # Field in the SAML assertion that contains the username. + # By default, the driver will use the content of the element. + :user_field: 'NameID' + + # Field in the SAML assertion that contains the group membership information. + # This should correspond to an with the Name specified here. + # Default is 'member'. + :group_field: 'member' + + # If set, SAML users must belong to this group in order to be allowed access to + # OpenNebula. If not set, any valid SAML user will be granted access. If that's + # the case and no group membership is reported, the ONE group ID defined in + # :mapping_default will be used. + # :group_required: 'one-users' + + # --- Group Mapping Configuration --- + + # If 'true', the driver will automatically generate a group mapping file + # from the information in the OpenNebula groups template. This is similar to the + # LDAP driver's functionality. + :mapping_generate: true + + # Key from the OpenNebula group template to map to a SAML group. + # Only relevant if mapping_generate is true + :mapping_key: 'SAML_GROUP' + + # Group mapping mode. Triggers IDP-dependant logic. + # Used to support specific IDP features (e.g. group nesting in Keycloak) + # Possible values: + # strict => strict mapping between the group names reported by the IdP and + # the ones in the mapping file. + # keycloak => handles Keycloak full group path syntax, supporting group nesting + # E.g. A user member of /group1/subgroup1 is considered both member + # of group1 and member of subgroup1. + :mapping_mode: 'keycloak' + + # Time in seconds that a mapping file will be considered valid before + # it is regenerated. Only relevant if mapping_generate is true + :mapping_timeout: 300 + + # The name of the group mapping file, which will be stored in + # OpenNebula's var directory ( /var/lib/one ). + # If mapping_generate is true, this file will be automatically created and + # populated. + :mapping_filename: 'keycloak_groups.yaml' + + # The default OpenNebula group ID to assign to a user if none of their SAML + # groups is found in the mapping file. + :mapping_default: 1 + + # Name of a group from the Identity Provider. If a user is a member of this group, + # they will be granted admin rights for ALL their mapped OpenNebula groups. + :group_admin_name: '/opennebula-admins' + :okta_idp: + :issuer: 'https://your-okta-domain.com/app/your-app-id/sso/saml' + :idp_cert: 'MIID...your...IdP...cert...here...A==' + :user_field: 'NameID' + :group_field: 'member' + # :group_required: 'opennebula-users' + :mapping_generate: true + :mapping_key: 'OKTA_GROUP' + :mapping_mode: 'strict' + :mapping_timeout: 300 + :mapping_filename: 'okta_groups.yaml' + :mapping_default: 1 + :group_admin_name: 'okta-opennebula-admins' + "/etc/one/auth/server_x509_auth.conf": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + # User to be used for x509 server authentication + + #:srv_user: serveradmin + + # Path to the certificate used by the OpenNebula Services + # Certificates must be in PEM format + + #:one_cert: "/etc/one/auth/cert.pem" + #:one_key: "/etc/one/auth/pk.pem" + "/etc/one/auth/x509_auth.conf": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + # Path to the trusted CA directory. It should contain the trusted CA's for + # the server, each CA certificate shoud be name CA_hash.0 + + #:ca_dir: "/etc/one/auth/certificates" + + # Uncoment this line if you want to force crl checking + #:check_crl: true + "/etc/one/cli/ks_cluster.yaml": + class: Yaml::Strict + owner: root + group: root + mode: '0644' + content: | + --- + :ID: + :desc: ONE identifier for OneKS Cluster + :size: 4 + :adjust: true + + :USER: + :desc: Username of the OneKS Cluster owner + :size: 8 + :left: true + + :GROUP: + :desc: Group of the OneKS Cluster + :size: 8 + :left: true + + :NAME: + :desc: Name of the OneKS Cluster + :size: 15 + :left: true + :expand: true + + :STATE: + :desc: State of the OneKS Cluster + :size: 20 + :left: true + :adjust: true + + :REGTIME: + :desc: Registration time of the OneKS Cluster + :size: 15 + + :default: + - :ID + - :USER + - :GROUP + - :NAME + - :STATE + - :REGTIME + "/etc/one/cli/ks_group.yaml": + class: Yaml::Strict + owner: root + group: root + mode: '0644' + content: | + --- + :ID: + :desc: ONE identifier for OneKS group + :size: 4 + :adjust: true + + :USER: + :desc: Username of the OneKS group owner + :size: 8 + :left: true + + :GROUP: + :desc: Group of the OneKS group + :size: 8 + :left: true + + :NAME: + :desc: Name of the OneKS group + :size: 15 + :left: true + :expand: true + + :FLAVOUR: + :desc: Flavour of the OneKS group + :size: 15 + :left: true + + :CLUSTER: + :desc: Parent cluster ID of the OneKS group + :size: 4 + + :ROLE: + :desc: Role of the OneKS group + :size: 15 + :left: true + + :STATE: + :desc: State of the OneKS group + :size: 20 + :left: true + :adjust: true + + :REGTIME: + :desc: Registration time of the OneKS group + :size: 15 + + :default: + - :ID + - :USER + - :GROUP + - :NAME + - :ROLE + - :FLAVOUR + - :STATE + - :REGTIME + "/etc/one/cli/oneacct.yaml": + class: Yaml::Strict + owner: root + group: root + mode: '0644' + content: | + --- + :UID: + :desc: User ID + :size: 4 + + :VID: + :desc: Virtual Machine ID + :size: 4 + + :SEQ: + :desc: History record sequence number + :size: 3 + + :HOSTNAME: + :desc: Host name + :size: 15 + :left: true + + :ACTION: + :desc: VM state change action + :size: 16 + :left: true + + :START_TIME: + :desc: Start time + :size: 14 + + :END_TIME: + :desc: End time + :size: 14 + + :MEMORY: + :desc: Assigned memory + :size: 6 + + :CPU: + :desc: Number of CPUs + :size: 3 + + :NETRX: + :desc: Data received from the network + :size: 6 + + :NETTX: + :desc: Data sent to the network + :size: 6 + + :DISK: + :desc: Total disk size used + :size: 6 + + :default: + - :VID + - :HOSTNAME + - :ACTION + - :START_TIME + - :END_TIME + - :MEMORY + - :CPU + - :NETRX + - :NETTX + - :DISK + "/etc/one/cli/oneacl.yaml": + class: Yaml::Strict + owner: root + group: root + mode: '0644' + content: | + --- + :ID: + :desc: To which resource owner the rule applies to + :size: 4 + :right: true + :adjust: true + + :USER: + :desc: To which resource owner the rule applies to + :size: 8 + :right: true + + :RES_VHNIUTGDCOZSvRMAPtB: + :desc: Which resource the rule applies to + :size: 23 + + :RID: + :desc: Resource ID + :size: 5 + :right: true + + :ZONE: + :desc: Zone ID + :size: 5 + :right: true + + :OPE_UMAC: + :desc: Operation to which the rule applies + :size: 8 + :right: true + + :STRING: + :desc: ACL rule in string format + :adjust: true + :left: true + + :default: + - :ID + - :USER + - :RES_VHNIUTGDCOZSvRMAPtB + - :RID + - :OPE_UMAC + - :ZONE + "/etc/one/cli/onebackupjob.yaml": + class: Yaml::Strict + owner: root + group: root + mode: '0644' + content: | + --- + :ID: + :desc: ONE identifier for Backup Job + :size: 4 + :adjust: true + + :USER: + :desc: Username of the Backup Job owner + :size: 8 + :left: true + + :GROUP: + :desc: Group of the Backup Job + :size: 8 + :left: true + + :PRIO: + :desc: Priority of the Backup Job + :size: 4 + :left: true + + :NAME: + :desc: Name of the Backup Job + :size: 15 + :left: true + :expand: true + + :LAST: + :desc: Date for the last backup operation + :size: 15 + :left: true + :expand: true + + :VMS: + :desc: VM IDs part of this backup job + :size: 15 + :left: true + :expand: true + + # todo Add more columns + + :default: + - :ID + - :USER + - :GROUP + - :PRIO + - :NAME + - :LAST + - :VMS + "/etc/one/cli/onecluster.yaml": + class: Yaml::Strict + owner: root + group: root + mode: '0644' + content: | + --- + :ID: + :desc: ONE identifier for the Cluster + :size: 4 + :adjust: true + + :NAME: + :desc: Name of the Cluster + :size: 15 + :left: true + :expand: true + + :HOSTS: + :desc: Number of Hosts + :size: 10 + + :VNETS: + :desc: Number of Networks + :size: 10 + + :DATASTORES: + :desc: Number of Datastores + :size: 10 + + :default: + - :ID + - :NAME + - :HOSTS + - :VNETS + - :DATASTORES + "/etc/one/cli/onedatastore.yaml": + class: Yaml::Strict + owner: root + group: root + mode: '0644' + content: | + --- + :ID: + :desc: ONE identifier for the Datastore + :size: 4 + :adjust: true + + :USER: + :desc: Username of the Datastore owner + :size: 8 + :left: true + + :GROUP: + :desc: Group of the Datastore + :size: 8 + :left: true + + :NAME: + :desc: Name of the Datastore + :size: 10 + :left: true + :expand: true + + :SIZE: + :desc: Total Datastore size + :size: 6 + + :AVAIL: + :desc: Free Datastore size (%) + :size: 3 + :left: true + + :CLUSTERS: + :desc: Cluster IDs + :size: 8 + :left: true + + :IMAGES: + :desc: Number of Images + :size: 6 + + :TYPE: + :desc: Datastore type + :size: 4 + :left: true + + :DS: + :desc: Datastore driver + :size: 7 + :left: true + + :TM: + :desc: Transfer driver + :size: 7 + :left: true + + :STAT: + :desc: State of the Datastore + :size: 4 + :left: true + + :default: + - :ID + - :NAME + - :SIZE + - :AVAIL + - :CLUSTERS + - :IMAGES + - :TYPE + - :DS + - :TM + - :STAT + "/etc/one/cli/oneflow.yaml": + class: Yaml::Strict + owner: root + group: root + mode: '0644' + content: | + --- + :ID: + :desc: ONE identifier for Service + :size: 4 + :adjust: true + + :USER: + :desc: Username of the Service owner + :size: 8 + :left: true + + :GROUP: + :desc: Group of the Service + :size: 8 + :left: true + + :NAME: + :desc: Name of the Service + :size: 15 + :left: true + :expand: true + + :STARTTIME: + :desc: Start time of the Service + :size: 15 + + :STAT: + :desc: Actual status + :size: 8 + :adjust: true + + :default: + - :ID + - :USER + - :GROUP + - :NAME + - :STARTTIME + - :STAT + "/etc/one/cli/oneflowtemplate.yaml": + class: Yaml::Strict + owner: root + group: root + mode: '0644' + content: | + --- + :ID: + :desc: ONE identifier for Service Template + :size: 4 + :adjust: true + + :NAME: + :desc: Name of the Service Template + :size: 15 + :left: true + :expand: true + + :USER: + :desc: Username of the Service Template owner + :size: 8 + :left: true + + :GROUP: + :desc: Group of the Service Template + :size: 8 + :left: true + + :REGTIME: + :desc: Registration time of the Service Template + :size: 15 + + :default: + - :ID + - :USER + - :GROUP + - :NAME + - :REGTIME + "/etc/one/cli/oneform.yaml": + class: Yaml::Strict + owner: root + group: root + mode: '0644' + content: | + --- + :NAME: + :desc: Name of the driver + :size: 15 + :left: true + + :DEPLOYMENTS: + :desc: Available deployments for the driver + :size: 15 + :left: true + :expand: true + + :VERSION: + :desc: Version of the driver + :size: 8 + :left: true + + :STATE: + :desc: Indicates the driver state + :size: 10 + :left: true + + :default: + - :NAME + - :DEPLOYMENTS + - :STATE + "/etc/one/cli/onegroup.yaml": + class: Yaml::Strict + owner: root + group: root + mode: '0644' + content: | + --- + :ID: + :desc: ONE identifier for the Group + :size: 4 + :adjust: true + + :NAME: + :desc: Name of the Group + :size: 15 + :left: true + :expand: true + + :USERS: + :desc: Number of Users in this group + :size: 5 + + :VMS: + :desc: Number of VMS + :size: 9 + + :MEMORY: + :desc: Total memory allocated to user VMs + :size: 15 + + :CPU: + :desc: Total CPU allocated to user VMs + :size: 11 + + :PCI: + :desc: Total PCIs allocated to user VMs + :size: 9 + + :default: + - :ID + - :NAME + - :USERS + - :VMS + - :MEMORY + - :CPU + - :PCI + "/etc/one/cli/onehook.yaml": + class: Yaml::Strict + owner: root + group: root + mode: '0644' + content: | + --- + :ID: + :desc: ONE identifier for Hook + :size: 4 + :adjust: true + + :NAME: + :desc: Name of the Hook + :size: 19 + :left: true + :expand: true + + :TYPE: + :desc: Type of the hook + :size: 8 + + :default: + - :ID + - :NAME + - :TYPE + "/etc/one/cli/onehost.yaml": + class: Yaml::Strict + owner: root + group: root + mode: '0644' + content: | + --- + :ID: + :desc: ONE identifier for Host + :size: 4 + :adjust: true + + :NAME: + :desc: Name of the Host + :size: 15 + :left: true + :expand: true + + :CLUSTER: + :desc: Name of the Cluster + :size: 10 + :left: true + + :TVM: + :desc: Total Virtual Machines allocated to the Host + :size: 3 + + :ZVM: + :desc: Number of Virtual Machine zombies + :size: 3 + + :TCPU: + :desc: Total CPU percentage + :size: 4 + + :FCPU: + :desc: Free CPU percentage + :size: 4 + + :ACPU: + :desc: Available cpu percentage (not reserved by VMs) + :size: 4 + + :TMEM: + :desc: Total Memory + :size: 7 + + :FMEM: + :desc: Free Memory + :size: 7 + + :AMEM: + :desc: Available Memory (not reserved by VMs) + :size: 7 + + :ALLOCATED_CPU: + :desc: Allocated CPU + :size: 18 + + :REAL_CPU: + :desc: Real CPU + :size: 18 + + :ALLOCATED_MEM: + :desc: Allocated MEM + :size: 18 + + :REAL_MEM: + :desc: Real MEM + :size: 18 + + :PROVIDER: + :desc: Host provider + :size: 8 + + :STAT: + :desc: Host status + :size: 4 + :left: true + + :default: + - :ID + - :NAME + - :CLUSTER + - :TVM + - :ALLOCATED_CPU + - :ALLOCATED_MEM + - :STAT + + :default_actions: + - :flush: resched + "/etc/one/cli/oneimage.yaml": + class: Yaml::Strict + owner: root + group: root + mode: '0644' + content: | + --- + :ID: + :desc: ONE identifier for the Image + :size: 4 + :adjust: true + + :USER: + :desc: Username of the Image owner + :size: 8 + :left: true + + :GROUP: + :desc: Group of the Image + :size: 8 + :left: true + + :NAME: + :desc: Name of the Image + :size: 15 + :left: true + :expand: true + + :DATASTORE: + :desc: Name of the Datastore + :size: 10 + :left: true + + :SIZE: + :desc: Size of the Image + :size: 7 + + :TYPE: + :desc: Type of the Image + :size: 4 + :left: true + + :REGTIME: + :desc: Registration time of the Image + :size: 15 + + :MODTIME: + :desc: Last modified + :size: 15 + + :PERSISTENT: + :desc: Whether the Image is persistent or not + :size: 3 + + :STAT: + :desc: State of the Image + :size: 4 + :left: true + + :RVMS: + :desc: Number of VMs currently running from this Image + :size: 4 + + :default: + - :ID + - :USER + - :GROUP + - :NAME + - :DATASTORE + - :SIZE + - :TYPE + - :PERSISTENT + - :STAT + - :RVMS + "/etc/one/cli/onemarket.yaml": + class: Yaml::Strict + owner: root + group: root + mode: '0644' + content: | + --- + :ID: + :desc: ONE identifier for the Marketplace + :size: 4 + :adjust: true + + :USER: + :desc: Username of the Marketplace owner + :size: 8 + :left: true + + :GROUP: + :desc: Group of the Marketplace + :size: 8 + :left: true + + :NAME: + :desc: Name of the Marketplace + :size: 15 + :left: true + :expand: true + + :SIZE: + :desc: Marketplace total size + :size: 10 + + :AVAIL: + :desc: MarketPlace free size (%) + :size: 10 + :left: true + + :APPS: + :desc: Number of Marketplace Apps + :size: 6 + + :MAD: + :desc: Marketplace driver + :size: 7 + :left: true + + :STAT: + :desc: Marketplace status + :size: 4 + :left: true + + :default: + - :ID + - :NAME + - :SIZE + - :AVAIL + - :APPS + - :MAD + - :ZONE + - :STAT + "/etc/one/cli/onemarketapp.yaml": + class: Yaml::Strict + owner: root + group: root + mode: '0644' + content: | + --- + :ID: + :desc: ONE identifier for the MarketPlaceApp + :size: 4 + :adjust: true + + :NAME: + :desc: Name of the MarketPlaceApp + :size: 20 + :left: true + :expand: true + + :VERSION: + :desc: Version of the MarketPlaceApp + :size: 10 + + :SIZE: + :desc: MarketPlaceApp size + :size: 5 + + :ARCH: + :desc: Architecture of the Guest OS + :size: 7 + + :HYPERVISOR: + :desc: Hypervisor the appliance can be virtualized with + :size: 10 + :left: true + + :STAT: + :desc: State of the app + :size: 4 + + :TYPE: + :desc: MarketPlaceApp type + :size: 4 + + :REGTIME: + :desc: Registration time of the MarketplaceApp + :size: 8 + + :MARKET: + :desc: Name of the MarketPlace + :size: 10 + :left: true + + :ZONE: + :desc: Zone ID + :size: 4 + + :default: + - :ID + - :NAME + - :VERSION + - :SIZE + - :ARCH + - :HYPERVISOR + - :STAT + - :TYPE + - :REGTIME + - :MARKET + - :ZONE + "/etc/one/cli/oneprovider.yaml": + class: Yaml::Strict + owner: root + group: root + mode: '0644' + content: | + --- + :ID: + :desc: ONE identifier for Provider + :size: 4 + :adjust: true + + :USER: + :desc: Username of the Provider owner + :size: 8 + :left: true + + :GROUP: + :desc: Group of the Provider + :size: 8 + :left: true + + :NAME: + :desc: Name of the Provider + :size: 15 + :left: true + :expand: true + + :REGTIME: + :desc: Registration time of the Provider + :size: 15 + + :default: + - :ID + - :USER + - :GROUP + - :NAME + - :REGTIME + "/etc/one/cli/oneprovision.yaml": + class: Yaml::Strict + owner: root + group: root + mode: '0644' + content: |+ + --- + :ID: + :desc: ONE identifier for Provision + :size: 4 + :adjust: true + + :USER: + :desc: Username of the Provision owner + :size: 8 + :left: true + + :GROUP: + :desc: Group of the Provision + :size: 8 + :left: true + + :NAME: + :desc: Name of the Provision + :size: 15 + :left: true + :expand: true + + :STATE: + :desc: State of the Provision + :size: 30 + :left: true + :adjust: true + + :REGTIME: + :desc: Registration time of the Provision + :size: 15 + + :default: + - :ID + - :USER + - :GROUP + - :NAME + - :STATE + - :REGTIME + + "/etc/one/cli/onesecgroup.yaml": + class: Yaml::Strict + owner: root + group: root + mode: '0644' + content: | + --- + :ID: + :desc: ONE identifier for the Security Group + :size: 4 + :adjust: true + + :NAME: + :desc: Name of the Security Group + :size: 15 + :left: true + :expand: true + + :USER: + :desc: Username of the Security Group owner + :size: 8 + :left: true + + :GROUP: + :desc: Group of the Security Group + :size: 8 + :left: true + + :UPDATED: + :desc: Number of VMs with updated rules + :size: 8 + :left: false + + :OUTDATED: + :desc: Number of VMs with outdated rules + :size: 8 + :left: false + + :ERROR: + :desc: Number of VMs that failed to update rules + :size: 8 + :left: false + + :default: + - :ID + - :USER + - :GROUP + - :NAME + - :UPDATED + - :OUTDATED + - :ERROR + "/etc/one/cli/oneshowback.yaml": + class: Yaml::Strict + owner: root + group: root + mode: '0644' + content: | + --- + :UID: + :desc: User ID + :size: 4 + :adjust: true + + :USER_NAME: + :desc: User name + :size: 8 + + :GID: + :desc: Group ID + :size: 4 + + :GROUP_NAME: + :desc: Group name + :size: 8 + + :VM_ID: + :desc: Virtual Machine ID + :size: 6 + + :VM_NAME: + :desc: Virtual Machine name + :size: 15 + + :MONTH: + :desc: Month + :size: 5 + + :YEAR: + :desc: Year + :size: 5 + + :HOURS: + :desc: Hours + :size: 6 + + :RUNNING_HOURS: + :desc: Running hours + :size: 7 + + :COST: + :desc: Cost + :size: 15 + + :default: + - :USER_NAME + - :GROUP_NAME + - :VM_ID + - :VM_NAME + - :MONTH + - :YEAR + - :HOURS + - :RUNNING_HOURS + - :COST + "/etc/one/cli/onetemplate.yaml": + class: Yaml::Strict + owner: root + group: root + mode: '0644' + content: | + --- + :ID: + :desc: ONE identifier for the Template + :size: 4 + :adjust: true + + :NAME: + :desc: Name of the Template + :size: 15 + :left: true + :expand: true + + :USER: + :desc: Username of the Template owner + :size: 8 + :left: true + + :GROUP: + :desc: Group of the Template + :size: 8 + :left: true + + :REGTIME: + :desc: Registration time of the Template + :size: 15 + + :default: + - :ID + - :USER + - :GROUP + - :NAME + - :REGTIME + "/etc/one/cli/oneuser.yaml": + class: Yaml::Strict + owner: root + group: root + mode: '0644' + content: | + --- + :ID: + :desc: ONE identifier for the User + :size: 4 + :adjust: true + + :NAME: + :desc: Name of the User + :size: 10 + :left: true + :expand: true + + :ENABLED: + :desc: User is enabled + :size: 4 + :left: true + + :GROUP: + :desc: Group of the User + :size: 8 + :left: true + + :AUTH: + :desc: Auth driver of the User + :size: 8 + :left: true + + :VMS: + :desc: Number of VMS + :size: 9 + + :MEMORY: + :desc: Total memory allocated to user VMs + :size: 15 + + :CPU: + :desc: Total CPU allocated to user VMs + :size: 10 + + :PCI: + :desc: Total PCIs allocated to user VMs + :size: 9 + + :PASSWORD: + :desc: Password of the User + :size: 50 + + :default: + - :ID + - :NAME + - :ENABLED + - :GROUP + - :AUTH + - :VMS + - :MEMORY + - :CPU + - :PCI + "/etc/one/cli/onevdc.yaml": + class: Yaml::Strict + owner: root + group: root + mode: '0644' + content: | + --- + :ID: + :desc: ONE identifier for the VDC + :size: 4 + :adjust: true + + :NAME: + :desc: Name of the VDC + :size: 15 + :left: true + :expand: true + + :GROUPS: + :desc: Number of Groups + :size: 8 + + :CLUSTERS: + :desc: Number of Clusters + :size: 10 + + :HOSTS: + :desc: Number of Hosts + :size: 10 + + :VNETS: + :desc: Number of Networks + :size: 10 + + :DATASTORES: + :desc: Number of Datastores + :size: 10 + + :default: + - :ID + - :NAME + - :GROUPS + - :CLUSTERS + - :HOSTS + - :VNETS + - :DATASTORES + "/etc/one/cli/onevm.yaml": + class: Yaml::Strict + owner: root + group: root + mode: '0644' + content: | + --- + :ID: + :desc: ONE identifier for Virtual Machine + :size: 4 + :adjust: true + + :NAME: + :desc: Name of the Virtual Machine + :size: 15 + :left: true + :expand: true + + :USER: + :desc: Username of the Virtual Machine owner + :size: 8 + :left: true + + :GROUP: + :desc: Group of the Virtual Machine + :size: 8 + :left: true + + :STAT: + :desc: Actual status + :size: 4 + + :CPU: + :desc: CPU assigned to the VM + :size: 4 + + :MEM: + :desc: Memory assigned by the VM + :size: 7 + + :HOST: + :desc: Host where the VM is running + :size: 10 + :left: true + :expand: true + + :CLUSTER: + :desc: Cluster where the VM is running + :size: 10 + :left: true + + :TIME: + :desc: Time since the VM was submitted + :size: 10 + + :IP: + :desc: VM IP addresses + :left: true + :size: 15 + + :default: + - :ID + - :USER + - :GROUP + - :NAME + - :STAT + - :CPU + - :MEM + - :HOST + - :TIME + + :default_conf: + :user: + - :ID + - :NAME + - :IP + - :STAT + - :CPU + - :MEM + - :HOST + - :TIME + + :charters: + :suspend: + :time: "+1209600" + :warning: + :time: 86400 + :terminate: + :time: "+1209600" + :warning: + :time: 86400 + "/etc/one/cli/onevmgroup.yaml": + class: Yaml::Strict + owner: root + group: root + mode: '0644' + content: | + --- + :ID: + :desc: ONE identifier for the VM Group + :size: 4 + :adjust: true + + :NAME: + :desc: Name of the VM Group + :size: 15 + :left: true + :expand: true + + :USER: + :desc: Username of the VM Group owner + :size: 8 + :left: true + + :GROUP: + :desc: Group of the VM Group + :size: 8 + :left: true + + :VMS: + :desc: Number of VMs in the VM Group + :size: 4 + :lef: true + + :ROLES: + :desc: Roles in the VM Group + :size: 36 + :left: true + + :default: + - :ID + - :USER + - :GROUP + - :NAME + - :VMS + - :ROLES + "/etc/one/cli/onevnet.yaml": + class: Yaml::Strict + owner: root + group: root + mode: '0644' + content: | + --- + :ID: + :desc: ONE identifier for Virtual Network + :size: 4 + :adjust: true + + :USER: + :desc: Username of the Virtual Network owner + :size: 8 + :left: true + + :GROUP: + :desc: Group of the Virtual Network + :size: 8 + :left: true + + :NAME: + :desc: Name of the Virtual Network + :size: 15 + :left: true + :expand: true + + :CLUSTERS: + :desc: Cluster IDs + :size: 10 + :left: true + + :BRIDGE: + :desc: Bridge associated to the Virtual Network + :size: 8 + :left: true + :expand: true + + :STATE: + :desc: State of the Virtual Network + :size: 6 + :left: true + :expand: true + + :LEASES: + :desc: Number of this Virtual Networks given leases + :size: 6 + + :UPDATED: + :desc: Number of VMs with updated VN attributes + :size: 4 + + :OUTDATED: + :desc: Number of VMs with outdated VN attributes + :size: 4 + + :ERROR: + :desc: Number of VMs that failed to update VN attributes + :size: 4 + + :default: + - :ID + - :USER + - :GROUP + - :NAME + - :CLUSTERS + - :BRIDGE + - :STATE + - :LEASES + - :OUTDATED + - :ERROR + "/etc/one/cli/onevntemplate.yaml": + class: Yaml::Strict + owner: root + group: root + mode: '0644' + content: | + --- + :ID: + :desc: ONE identifier for the Template + :size: 4 + :adjust: true + + :NAME: + :desc: Name of the Template + :size: 15 + :left: true + :expand: true + + :USER: + :desc: Username of the Template owner + :size: 8 + :left: true + + :GROUP: + :desc: Group of the Template + :size: 8 + :left: true + + :REGTIME: + :desc: Registration time of the Template + :size: 15 + + :default: + - :ID + - :USER + - :GROUP + - :NAME + - :REGTIME + "/etc/one/cli/onevrouter.yaml": + class: Yaml::Strict + owner: root + group: root + mode: '0644' + content: | + --- + :ID: + :desc: ONE identifier for the Virtual Router + :size: 4 + :adjust: true + + :NAME: + :desc: Name of the Virtual Router + :size: 15 + :left: true + :expand: true + + :USER: + :desc: Username of the Virtual Router owner + :size: 8 + :left: true + + :GROUP: + :desc: Group of the Virtual Router + :size: 8 + :left: true + + :default: + - :ID + - :USER + - :GROUP + - :NAME + "/etc/one/cli/onezone.yaml": + class: Yaml::Strict + owner: root + group: root + mode: '0644' + content: |- + --- + :CURRENT: + :desc: Active Zone + :size: 1 + + :ID: + :desc: ONE identifier for the Zone + :size: 4 + :adjust: true + + :NAME: + :desc: Name of the Zone + :size: 15 + :left: true + :expand: true + + :ENDPOINT: + :desc: Endpoint of the Zone + :size: 45 + + :FED_INDEX: + :desc: Federation index + :size: 10 + + :STAT: + :desc: Zone status + :size: 4 + :left: true + + :default: + - :CURRENT + - :ID + - :NAME + - :ENDPOINT + - :FED_INDEX + - :STAT + "/etc/one/defaultrc": + class: Augeas::Shell + owner: root + group: oneadmin + mode: '0640' + content: | + #------------------------------------------------------------------------------- + # Global environment configuration file for ONE MADS + # -------------------------------------------------------- + # + # This file is sourced before a driver is started. Also the variables + # declared here are "exported". + # + # Values in this file will be overridden or completed by the MAD + # specific rc file. + # + # This file MUST preserve SH syntax + #------------------------------------------------------------------------------- + + # Debug for MADs. + # If set, MADs will generate cores and logs in $ONE_LOCATION/var. If OpenNebula + # is installed in /, then the files will be in /var/lib/one and /var/log/one, + # respectively. + # Possible values are [0=ERROR, 1=DEBUG] + ONE_MAD_DEBUG= + + # Nice Priority to run the drivers + PRIORITY=19 + "/etc/one/fireedge-server.conf": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: |+ + ################################################################################ + # Server Configuration + ################################################################################ + + # System log (Morgan) prod or dev + log: prod + + # Enable cors (cross-origin resource sharing) + cors: true + + # FireEdge server IP + host: '0.0.0.0' + + # FireEdge server port + port: 2616 + + # OpenNebula: use it if you have oned and fireedge on different servers + one_xmlrpc: 'http://localhost:2633/RPC2' + + # Flow Server: use it if you have flow-server and fireedge on different servers + oneflow_server: 'http://localhost:2474' + + # Form Server: use it if you have form-server and fireedge on different servers + oneform_server: 'http://localhost:13013/api/v1' + + # JWT expiration time (minutes) + session_expiration: 180 + + # JWT expiration time when using remember check box (minutes) + session_remember_expiration: 3600 + + # Minimum time to reuse previously generated JWTs (minutes) + minimum_opennebula_expiration: 30 + + # Endpoint to subscribe for OpenNebula events must match those in + # oned.conf + subscriber_endpoint: tcp://localhost:2101 + + # Log debug level: https://github.com/winstonjs/winston#using-logging-levels + # 0 = ERROR, 1 = WARNING, 2 = INFO, 5 = DEBUG + # + debug_level: 2 + + # Maximum length of log messages (chars) + # Messages exceeding this limit will be truncated + # -1 => No limit + truncate_max_length: 150 + + ################################################################################ + # Global API Timeout + ################################################################################ + + # This configuration option sets the maximum time (in milliseconds) that the application + # will wait for a response from the server before considering the request as timed out. + # If the server does not respond within this timeframe, the request will be aborted, + # and the connection will be closed. + api_timeout: 120_000 + + # Guacamole daemon + guacd: + port: 4822 + host: 'localhost' + + # Local zone in a Federation setup + # This attribute must point to the Zone ID of the local OpenNebula to which this FireEdge belongs to. + default_zone: + id: 0 + name: 'OpenNebula' + endpoint: 'http://localhost:2633/RPC2' + + # Authentication driver for incoming requests + # opennebula: the authentication will be done by the opennebula core using the + # driver defined for the user + # remote: performs the login based on a Kerberos X-Auth-Username header + # provided by authentication backend + auth: 'opennebula' + + # This configuration is for the login button redirect. The available options are: "/", "." or a URL + # auth_redirect: '/' + + "/etc/one/fireedge/sunstone/sunstone-server.conf": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: "################################################################################\n# Protected Settings\n################################################################################\n\n# + Zendesk support URL\nsupport_url: 'https://opennebula.zendesk.com/api/v2'\n\n# Optional parameter for Sunstone + commands\nsunstone_prepend: ''\n\n# Directory to store temporal files when uploading images\ntmpdir: '/var/tmp'\n\n# + Max size upload file (bytes)\nmax_upload_file_size: 10737418240 # 10 GiB\n\n\n################################################################################\n# + Proxy\n################################################################################\n\n#Enable an http proxy + for the support portal and to download MarketPlaceApps\n# from the MarketPlace to the user's desktop.\n\n#proxy: + \"\"\n\n################################################################################\n# Check Official support + - Support enterprise token\n################################################################################\n\n#token_remote_support: + \"\"\n\n################################################################################\n# UI Settings\n################################################################################\n\n# + Enforces 2FA authentication for ALL users.\nenforce_2fa: false\n\n# True to display 'Keep me logged in' option\nkeep_me_logged: + true\n\n# This automatically adds scheduling actions\n#\n# Allowed periods: years, months, weeks, days, hours, + minutes\n# eg: execute_after_minutes: 30\n#\n# edit: allows to edit the form\n# execute_after_weeks: + days to execute the action\n# warn_before_days: alert a time before the action (in days)\nleases:\n terminate:\n + \ edit: false\n execute_after_weeks: 2\n warn_before_days: 1\n\n# Support filesystem\n# You may want to + update SUPPORTED_FS in datastore.conf\nsupported_fs:\n - ext4\n - ext3\n - ext2\n - xfs\n\n# Use the + extended VM pool \n# By default this value is true\n# https://docs.opennebula.io/6.8/integration_and_development/system_interfaces/api.html#one-vmpool-infoextended\n#use_extended_vmpool: + true\n\n# Currency formatting\n# Possible values are the ISO 4217 currency codes\n# https://www.six-group.com/en/products-services/financial-information/data-standards.html\ncurrency: + EUR\n\n# Default language setting\ndefault_lang: en\n\n# Translations: use it if you want to use certain languages + on the client\n# Check that the language exists in client/assets/languages\nlangs:\n # bg_BG: 'Bulgarian (Bulgaria)'\n + \ # bg: 'Bulgarian'\n # ca: 'Catalan'\n # cs_CZ: 'Czech'\n # da: 'Danish'\n # de_CH: 'German (Switzerland)'\n + \ de: 'German'\n # el_GR: 'Greek (Greece)'\n en: 'English'\n es_ES: 'Spanish'\n # et_EE: 'Estonian'\n # fa_IR: + 'Persian (Iran)'\n # fa: 'Persian'\n # fr_CA: 'French (Canada)'\n fr_FR: 'French'\n # hu_HU: 'Hungary'\n it_IT: + 'Italian'\n # ja: 'Japanese'\n # ka: 'Georgian'\n # lt_LT: 'Lithuanian'\n # nl_NL: 'Dutch'\n # pl: Polish\n + \ # pt_PT: 'Portuguese'\n # ro_RO: 'Romanian'\n # ru_RU: 'Russian'\n ru: 'Russian'\n # si: 'Sinhala'\n sk_SK: + 'Slavak'\n # sr_RS: 'Serbian'\n # sv: 'Swedish'\n # th_TH: 'Thai (Thailand)'\n # th: 'Thai'\n # tr_TR: 'Turkish + (Turkey)'\n # tr: 'Turkish'\n # uk_UA: 'Ukrainian (Ukraine)'\n # uk: 'Ukrainian'\n # vi: 'Vietnamese'\n zh_CN: + 'Chinese (China)'\n # zh_TW: 'Chinese (Taiwan)'\n\n# Time Zone\n# You may use it to change the time zone.\n# + https://en.wikipedia.org/wiki/List_of_tz_database_time_zones\n# currentTimeZone: \"Europe/Madrid\"\n\n# Type of + rows of data tables.\n# Styles can be \"card\" or \"list\", default is card. \nrowStyle: + 'card'\n\n# Show resources info in full mode\nfullViewMode: 'false'\n" + "/etc/one/fireedge/sunstone/profiles/base.template": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: "---\n### WARNING ###\n# This profile is not intended for direct use. It serves as a template for creating\n# + custom profiles and must be carefully modified to suit individual needs.\n\n\"General\":\n NAME: \"Base OS profile\"\n + \ LOGO: \"images/logos/default.png\"\n HYPERVISOR: \"kvm\"\n DESCRIPTION: \"Base Template\"\n VROUTER: \"Yes\"\n + \ AS_GID: \"0\"\n AS_UID: \"0\"\n VMGROUP:\n VMGROUP_ID: \"0\"\n ROLE: \"role1\"\n DISK_COST: 1\n CPU_COST: + 2\n MEMORY_COST: 3\n MEMORY: 1\n MEMORYUNIT: \"GB\"\n HOT_RESIZE:\n MEMORY_HOT_ADD_ENABLED: \"Yes\"\n CPU_HOT_ADD_ENABLED: + \"Yes\"\n MEMORY_MAX: 3\n MODIFICATION:\n MEMORY:\n min: 1\n max: 2\n options:\n - + 1\n - 2\n - 3\n type: \"list\"\n CPU:\n type: \"range\"\n options:\n - + 1 \n - 2 \n - 3 \n VCPU:\n type: \"fixed\"\n MEMORY_RESIZE_MODE: \"HOTPLUG\"\n MEMORY_SLOTS: + 1\n CPU: 1\n VCPU: 2\n VCPU_MAX: 3\n\n\"Advanced options\":\n Storage:\n DISK:\n - NAME: DISK0\n + \ CACHE: writeback\n DISCARD: ignore\n DISK_ID: \"0\"\n FORMAT: qcow2\n FS: + ext4\n IO: threads\n SIZE: \"123\"\n TYPE: fs\n\n - NAME: DISK1\n CACHE: + writeback\n TARGET: \"sdc\"\n DEV_PREFIX: \"vd\"\n DISCARD: \"ignore\"\n IMAGE: + \"test\"\n IMAGE_ID: 0\n IO: \"threads\"\n IOTHREADS: 2\n READONLY: \"NO\"\n READ_BYTES_SEC: + 1\n READ_BYTES_SEC_MAX: 1\n READ_BYTES_SEC_MAX_LENGTH: 1\n READ_IOPS_SEC: 1\n READ_IOPS_SEC_MAX: + 1\n READ_IOPS_SEC_MAX_LENGTH: 1\n RECOVERY_SNAPSHOT_FREQ: 1\n SIZE: 1\n SIZE_IOPS_SEC: + 1\n TOTAL_BYTES_SEC: 1\n TOTAL_BYTES_SEC_MAX: 1\n TOTAL_BYTES_SEC_MAX_LENGTH: 1\n TOTAL_IOPS_SEC: + 1\n TOTAL_IOPS_SEC_MAX: 1\n TOTAL_IOPS_SEC_MAX_LENGTH: 1\n WRITE_BYTES_SEC: 1\n WRITE_BYTES_SEC_MAX: + 1\n WRITE_BYTES_SEC_MAX_LENGTH: 1\n WRITE_IOPS_SEC: 1\n WRITE_IOPS_SEC_MAX_LENGTH: 1\n\n + \ Network:\n NIC:\n - NAME: NIC0\n NETWORK_MODE: \"auto\"\n GATEWAY6: \"a.b.c.d\"\n GATEWAY: + \"0.0.0.0\"\n GUEST_MTU: \"1500\"\n INBOUND_AVG_BW: 1\n INBOUND_PEAK_BW: 2\n INBOUND_PEAK_KB: + 3\n IP6: \"5.6.7.8\"\n IP6_METHOD: \"dhcp\"\n IP: \"1.2.3.4\"\n MAC: \"ABC123\"\n + \ METHOD: \"static\"\n MODEL: \"ABC\"\n NETWORK: \"Some Virtual Network\"\n NETWORK_ADDRESS: + \"1.2.3.4\"\n NETWORK_MASK: \"255.255.255.255\"\n NETWORK_UID: \"0\"\n NETWORK_UNAME: \"oneadmin\"\n + \ OUTBOUND_AVG_BW: 1\n OUTBOUND_PEAK_BW: 2\n OUTBOUND_PEAK_KB: 3\n PCI_TYPE: \"emulated\"\n + \ RDP: \"Yes\"\n RDP_DISABLE_AUDIO: \"Yes\"\n RDP_DISABLE_BITMAP_CACHING: \"Yes\"\n RDP_DISABLE_GLYPH_CACHING: + \"Yes\"\n RDP_DISABLE_OFFSCREEN_CACHING: \"Yes\"\n RDP_ENABLE_AUDIO_INPUT: \"Yes\"\n RDP_ENABLE_DESKTOP_COMPOSITION: + \"Yes\"\n RDP_ENABLE_FONT_SMOOTHING: \"Yes\"\n RDP_ENABLE_FULL_WINDOW_DRAG: \"Yes\"\n RDP_ENABLE_MENU_ANIMATIONS: + \"Yes\"\n RDP_ENABLE_THEMING: \"Yes\"\n RDP_ENABLE_WALLPAPER: \"Yes\"\n RDP_RESIZE_METHOD: + \"display-update\"\n RDP_SERVER_LAYOUT: \"en-us-qwerty\"\n SEARCH_DOMAIN: \"some.domain.example\"\n + \ SHORT_ADDRESS: \"123ABC\"\n SSH: \"Yes\"\n VIRTIO_QUEUES: 8\n TYPE: \"NIC\"\n\n OsCpu:\n + \ OS:\n ARCH: X86_64\n SD_DISK_BUS: scsi\n MACHINE: host-passthrough\n FIRMWARE: BIOS\n + \ BOOT: \"disk0,disk1,nic0\"\n FEATURES:\n ACPI: \"Yes\"\n PAE: \"Yes\"\n APIC: \"Yes\"\n + \ HYPERV: \"Yes\"\n LOCALTIME: \"Yes\"\n GUEST_AGENT: \"Yes\"\n VIRTIO_SCSI_QUEUES: \"auto\"\n + \ VIRTIO_BLK_QUEUES: \"auto\"\n # IOTHREADS:\n CPU_MODEL:\n MODEL: \"host-passthrough\"\n # + FEATURES:\n # - Tunable depending on host CPU support\n # -\n RAW:\n DATA: |-\n \n + \ \n \n \n \n \n \n \n \n \n \n \n \n \n + \ \n \n \n \n \n \n \n + \ \n \n VALIDATE: \"Yes\"\n\n PciDevices:\n + \ PCI:\n - NAME: PCI0\n CLASS: \"0300\"\n DEVICE: \"0863\"\n VENDOR: \"10de\"\n\n + \ - NAME: PCI1\n CLASS: \"0c03\"\n DEVICE: \"0aa7\"\n VENDOR: \"10de\"\n\n InputOutput:\n + \ VIDEO:\n TYPE: \"virtio\"\n VRAM: 20000\n RESOLUTION: \"1280x720\"\n IOMMU: \"Yes\"\n + \ ATS: \"Yes\"\n\n INPUT:\n - BUS: \"usb\"\n TYPE: \"mouse\"\n\n - BUS: \"ps2\"\n TYPE: + \"tablet\"\n\n GRAPHICS:\n TYPE: \"VNC\"\n LISTEN: \"0.0.0.0\"\n PORT: 5901\n KEYMAP: \"en-us\"\n + \ PASSWD: \"password123\"\n RANDOM_PASSWD: \"No\"\n COMMAND: \"Some Command\"\n\n Context:\n CONTEXT:\n + \ SSH_PUBLIC_KEY: \"$USER[SSH_PUBLIC_KEY]\"\n START_SCRIPT: \"Some start script\"\n NETWORK: \"Yes\"\n + \ TOKEN: \"Yes\"\n REPORT_READY: \"Yes\"\n INIT_SCRIPTS:\n - \"script1.sh\"\n - \"script2.sh\"\n + \ CUSTOM_VAR1: \"123\"\n CUSTOM_VAR2: \"abc\"\n\n USER_INPUTS:\n - name: \"FeatureSelector1\"\n + \ mandatory: true\n type: \"list\"\n label: \"Select a feature\"\n options:\n - + \"a\"\n - \"b\"\n - \"c\"\n default: \"a\"\n\n - name: \"FeatureSelector2\"\n mandatory: + false\n type: \"list\"\n label: \"Select a feature\"\n options:\n - \"d\"\n - + \"e\"\n - \"f\"\n default: \"f\"\n\n ScheduleAction:\n SCHED_ACTION:\n - ACTION: \"backup\"\n + \ ARGS: \"1\"\n DAYS: \"0,1,2,3,4,5,6\"\n END_TYPE: \"1\"\n END_VALUE: 2\n NAME: + \"SCHED_ACTION0\"\n REPEAT: \"0\"\n TIME: \"1729760400\"\n\n Placement:\n SCHED_DS_RANK: \"FREE_MB\"\n + \ SCHED_DS_REQUIREMENTS: 'ID=\"1\"'\n SCHED_RANK: \"-RUNNING_VMS\"\n SCHED_REQUIREMENTS: \"HYPERVISOR=kvm + | ID = 1\"\n\n NUMA:\n TOPOLOGY:\n CORES: 8\n HUGEPAGE_SIZE: \"1024\"\n MEMORY_ACCESS: \"private\"\n + \ PIN_POLICY: \"CORE\"\n SOCKETS: 1\n THREADS: 2\n\n Backup:\n BACKUP_CONFIG:\n BACKUP_VOLATILE: + \"Yes\"\n FS_FREEZE: \"AGENT\"\n INCREMENT_MODE: \"CBT\"\n KEEP_LAST: 3\n MODE: \"INCREMENT\"\n\n" + "/etc/one/fireedge/sunstone/profiles/windows_optimized.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This profile defines some default windows optimizations + "General": + NAME: "Optimized Windows Profile" + + "Advanced options": + OsCpu: + OS: + ARCH: x86_64 + SD_DISK_BUS: scsi + MACHINE: q35 + FIRMWARE: UEFI + FEATURES: + ACPI: "Yes" + PAE: "Yes" + APIC: "Yes" + HYPERV: "Yes" + LOCALTIME: "Yes" + GUEST_AGENT: "Yes" + VIRTIO_SCSI_QUEUES: "auto" + VIRTIO_BLK_QUEUES: "auto" + # IOTHREADS: + CPU_MODEL: + MODEL: "host-passthrough" + # FEATURES: + # - Tunable depending on host CPU support + # - + RAW: + DATA: |- + + + + + + + + + + + + + + + + + + + + + + + + VALIDATE: "Yes" + "/etc/one/fireedge/sunstone/tabs/oneks-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: |- + - title: Kubernetes + icon: XrayView + routes: + - title: Create Kubernetes Cluster + path: /kubernetes/create + Component: CreateOneKsCluster + - title: Kubernetes Logs + path: /kubernetes/create_kubernetes_logs/:id + Component: CreateKubernetesLogs + - title: K8S Clusters + path: /kubernetes + icon: XrayView + sidebar: true + Component: OneKs + - title: k8S Clusters + path: /kubernetes/:id + Component: OneKsDetail + "/etc/one/fireedge/sunstone/views/sunstone-views.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + # This file describes which Sunstone views are available according to the + # primary group a user belongs to + + # Specify the filename for a custom logo to be used in the UI. + # Acceptable formats include: .jpg, .jpeg, .png. + # Ensure the filename adheres to the pattern: [a-zA-Z0-9-_]+.(jpg|jpeg|png) + # Example: + # + # logo: custom_logo.png + + # Specify the filename for a custom favicon to be used in the browser tab. + # Acceptable formats include: .ico, .jpg, .jpeg, .png. + # Ensure the filename adheres to the pattern: [a-zA-Z0-9-_]+.(ico|jpg|jpeg|png) + # The file must exist in assets/favicon/sunstone. + # Example: + # + # favicon: custom_logo.png + + groups: + oneadmin: + - admin + - groupadmin + - user + - cloud + default: + - user + - cloud + + # Name and description of each view. + # + # More views could be added creating a new object under views attribute. + # Example: + # customview: + # name: Name of the custom view + # description: Description of the custom view + + views: + admin: + name: groups.view.admin.name + description: groups.view.admin.description + cloud: + name: groups.view.cloud.name + description: groups.view.cloud.description + groupadmin: + name: groups.view.groupadmin.name + description: groups.view.groupadmin.description + user: + name: groups.view.user.name + description: groups.view.user.description + "/etc/one/fireedge/sunstone/views/admin/acl-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: |+ + --- + # This file describes the information and actions available in the GROUP tab + + # Resource + + resource_name: "ACL" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: true + delete: true + + # Filters - List of criteria to filter the resources + + filters: + id: true + idresourcename: true + idresourcetype: true + idusername: true + idusertype: true + zonename: true + zonetype: true + test: true + + "/etc/one/fireedge/sunstone/views/admin/backup-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the IMAGE tab + + # Resource + + resource_name: "BACKUP" + + # Actions - Which buttons are visible to operate over the resources + + actions: + restore: true + chown: true + chgrp: true + delete: true + lock: true + unlock: true + edit_labels: true + + # Filters - List of criteria to filter the resources + + filters: + state: true + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + permissions_panel: + enabled: true + actions: + chmod: true + ownership_panel: + enabled: true + actions: + chown: true + chgrp: true + attributes_panel: + enabled: true + actions: + copy: true + add: true + edit: true + delete: true + vms: + enabled: true + increments: + enabled: true + "/etc/one/fireedge/sunstone/views/admin/backupjobs-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: "---\n# This file describes the information and actions available in the Backup Jobs tab\n\n# Resource\n\nresource_name: + \"BACKUPJOBS\"\n\n# Actions - Which buttons are visible to operate over the resources\n\nactions:\n create_dialog: + true\n update_dialog: true\n delete: true\n chown: true\n chgrp: true\n lock: true\n unlock: true\n start: + true\n cancel: true\n edit_labels: true\n\n# Filters - List of criteria to filter the resources\n\nfilters:\n\n# + Info Tabs - Which info tabs are used to show extended information\n\ninfo-tabs:\n info:\n enabled: true\n + \ information_panel:\n enabled: true\n actions:\n rename: true\n priority: true\n permissions_panel:\n + \ enabled: true\n actions:\n chmod: true\n ownership_panel:\n enabled: true\n actions:\n + \ chown: true\n chgrp: true\n attributes_panel:\n enabled: true\n actions:\n copy: + true\n add: true\n edit: true\n delete: true\n\n vms:\n enabled: true\n sched_actions:\n + \ enabled: true\n actions:\n sched_action_create: true\n sched_action_update: true\n sched_action_delete: + true\n \n\n# Dialogs\ndialogs:\n create_dialog:\n general: true\n vms: true\n datastores: true\n sched_actions: + true\n" + "/etc/one/fireedge/sunstone/views/admin/cluster-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: "---\n# This file describes the information and actions available in the CLUSTER tab\n\n# Resource\n\nresource_name: + \"CLUSTER\"\n\n# Actions - Which buttons are visible to operate over the resources\n\nactions:\n create_dialog: + true\n create_cloud_dialog: true\n create_cloud_dialog_logs: true\n update_dialog: true\n deprovision: true\n + \ retry: true\n delete: true\n edit_labels: true\n\n# Filters - List of criteria to filter the resources\n\nfilters:\n\n# + Info Tabs - Which info tabs are used to show extended information\n\ninfo-tabs:\n info:\n enabled: true\n + \ information_panel:\n enabled: true\n actions:\n rename: true\n overcommitment:\n enabled: + true\n actions:\n update_cpu: true\n update_memory: true\n attributes_panel:\n enabled: + true\n actions:\n copy: true\n add: true\n edit: true\n delete: true\n\n host:\n + \ enabled: true\n provision:\n actions:\n add: true\n delete: true\n vnet:\n enabled: + true\n provision:\n actions:\n add: true\n delete: true\n delete_ar: true\n \n + \ datastore:\n enabled: true\n drs:\n enabled: true\n events:\n enabled: true \n logs:\n enabled: + true \n" + "/etc/one/fireedge/sunstone/views/admin/dashboard-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + # This file configures the cards available in the dashboard for the admin view. + # + # Cards are rendered by ascending order. Supported sizes are: + # quarter, third, half, full, wide and narrow. + # The to option enables navigation for the card or its resource rows. + + resource_name: 'DASHBOARD' + + cards: + - id: virtual-machines + order: 10 + size: quarter + to: true + - id: hosts-summary + order: 20 + size: quarter + to: true + - id: virtual-networks + order: 30 + size: quarter + to: true + - id: images + order: 40 + size: quarter + to: true + - id: cluster-capacity + order: 70 + size: wide + to: false + - id: system + order: 80 + size: narrow + to: true + "/etc/one/fireedge/sunstone/views/admin/datastore-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the DATASTORE tab + + # Resource + + resource_name: "DATASTORE" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: true + update_dialog: true + import_dialog: true + change_cluster: true + chown: true + chgrp: true + delete: true + enable: true + disable: true + edit_labels: true + + # Filters - List of criteria to filter the resources + + filters: + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + permissions_panel: + enabled: true + actions: + chmod: true + ownership_panel: + enabled: true + actions: + chown: true + chgrp: true + attributes_panel: + enabled: true + actions: + copy: true + add: true + edit: true + delete: true + + images: + enabled: true + + clusters: + enabled: true + "/etc/one/fireedge/sunstone/views/admin/driver-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the DRIVER tab + + # Resource + + resource_name: "DRIVER" + + # Actions - Which buttons are visible to operate over the resources + + actions: + enable: true + disable: true + sync: true + edit_labels: true + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + info: + enabled: true + information_panel: + enabled: true + connection: + enabled: false + deployment_confs: + enabled: false + user_inputs: + enabled: false + "/etc/one/fireedge/sunstone/views/admin/file-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the FILE tab + + # Resource + + resource_name: "FILE" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: true + import_dialog: true + disable: true + enable: true + lock: true + unlock: true + chown: true + chgrp: true + delete: true + edit_labels: true + + # Filters - List of criteria to filter the resources + + filters: + state: true + + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + permissions_panel: + enabled: true + actions: + chmod: true + ownership_panel: + enabled: true + actions: + chown: true + chgrp: true + attributes_panel: + enabled: true + actions: + copy: true + add: true + edit: true + delete: true + "/etc/one/fireedge/sunstone/views/admin/group-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: |- + --- + # This file describes the information and actions available in the GROUP tab + + # Resource + + resource_name: "GROUP" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: true + update_dialog: true + delete: true + + # Filters - List of criteria to filter the resources + + filters: + + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + attributes_panel: + enabled: true + actions: + copy: true + add: true + edit: true + delete: true + + user: + enabled: true + actions: + edit_admins: true + add_users: true + remove_users: true + + quota: + enabled: true + actions: + quotas_dialog: true + + accounting: + enabled: true + actions: + get_accounting: true + + showback: + enabled: true + actions: + get_showback: true + + vlanrules: + enabled: true + actions: + add_vlan_rule: true + update_vlan_rule: true + delete_vlan_rule: true + "/etc/one/fireedge/sunstone/views/admin/host-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the HOST tab + + # Resource + + resource_name: "HOST" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: true + change_cluster: true + enable: true + disable: true + offline: true + flush: true + delete: true + edit_labels: true + + # Filters - List of criteria to filter the resources + + filters: + state: true + + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + monitoring_panel: + enabled: true + actions: + copy: false + add: false + edit: false + delete: false + attributes_panel: + enabled: true + actions: + copy: true + add: true + edit: true + delete: true + + vms: + enabled: true + graphs: + enabled: true + wild: + enabled: true + zombies: + enabled: true + esx: + enabled: true + pci: + enabled: true + numa: + enabled: true + + # Dialogs + # ** Required means that it's necessary for the operation of the form + + dialogs: + create_dialog: + information: true # required + "/etc/one/fireedge/sunstone/views/admin/image-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the IMAGE tab + + # Resource + + resource_name: "IMAGE" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: true + import_dialog: true + clone: true + lock: true + unlock: true + disable: true + enable: true + persistent: true + nonpersistent: true + chown: true + chgrp: true + delete: true + edit_labels: true + + # Filters - List of criteria to filter the resources + + filters: + state: true + locked: true + + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + permissions_panel: + enabled: true + actions: + chmod: true + ownership_panel: + enabled: true + actions: + chown: true + chgrp: true + attributes_panel: + enabled: true + actions: + copy: true + add: true + edit: true + delete: true + vms: + enabled: true + snapshot: + enabled: true + actions: + snapshot_flatten: true + snapshot_revert: true + snapshot_delete: true + "/etc/one/fireedge/sunstone/views/admin/marketplace-app-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the App tab + + # Resource + + resource_name: "MARKETPLACE-APP" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: true + export: true + download: true + chown: true + chgrp: true + enable: true + disable: true + delete: true + edit_labels: true + lock: true + unlock: true + + # Filters - List of criteria to filter the resources + + filters: + owner: true + group: true + state: true + type: true + marketplace: true + zone: true + hypervisor: true + architecture: true + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + permissions_panel: + enabled: true + actions: + chmod: true + ownership_panel: + enabled: true + actions: + chown: true + chgrp: true + attributes_panel: + enabled: true + actions: + copy: true + add: true + edit: true + delete: true + + template: + enabled: true + "/etc/one/fireedge/sunstone/views/admin/marketplace-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the MARKETPLACE tab + + # Resource + + resource_name: "MARKETPLACE" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: true + update_dialog: true + chown: true + chgrp: true + delete: true + disable: true + enable: true + edit_labels: true + + # Filters - List of criteria to filter the resources + + filters: + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + permissions_panel: + enabled: true + actions: + chmod: true + ownership_panel: + enabled: true + actions: + chown: true + chgrp: true + attributes_panel: + enabled: true + actions: + copy: true + add: true + edit: true + delete: true + + apps: + enabled: true + "/etc/one/fireedge/sunstone/views/admin/oneks-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: |- + --- + # This file describes the information and actions available in the ONEKS tab + + # Resource + + resource_name: "KUBERNETES" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: true + recover: true + upgrade: true + edit_labels: true + delete: true + + # Filters - List of criteria to filter the resources + + filters: + id: true + name: true + state: true + version: true + locked: true + created: true + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + info: + enabled: true + information_panel: + enabled: true + permissions_panel: + enabled: true + actions: + chmod: true + ownership_panel: + enabled: true + actions: + chown: true + chgrp: true + nodegroup: + enabled: true + actions: + create_dialog: true + logs: + enabled: true + events: + enabled: true + kubeconfig: + enabled: true + "/etc/one/fireedge/sunstone/views/admin/provider-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the PROVIDER tab + + # Resource + + resource_name: "PROVIDER" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: true + update_dialog: false + delete: true + chown: true + chgrp: true + edit_labels: true + + # Filters - List of criteria to filter the resources + + filters: + owner: true + group: true + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + permissions_panel: + enabled: true + actions: + chmod: true + ownership_panel: + enabled: true + actions: + chown: true + chgrp: true + + template: + enabled: true + + # Dialogs + + dialogs: + create_dialog: + "/etc/one/fireedge/sunstone/views/admin/sec-group-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the SECURITY GROUP tab + + # Resource + + resource_name: "SECURITY-GROUP" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: true + update_dialog: true + clone: true + commit: true + chown: true + chgrp: true + delete: true + edit_labels: true + + # Filters - List of criteria to filter the resources + + filters: + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + permissions_panel: + enabled: true + actions: + chmod: true + ownership_panel: + enabled: true + actions: + chown: true + chgrp: true + rules_panel: + enabled: true + attributes_panel: + enabled: true + actions: + copy: true + add: true + edit: true + delete: true + + vms: + enabled: true + "/etc/one/fireedge/sunstone/views/admin/service-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the Service tab + + # Resource + + resource_name: "SERVICE" + + # Actions - Which buttons are visible to operate over the resources + + actions: + instantiate_dialog: true # reference to deploy_dialog in service-template-tab.yaml + recover: true + recover_delete: true + delete: true + chown: true + chgrp: true + share: true + unshare: true + edit_labels: true + + # Filters - List of criteria to filter the resources + + filters: + state: true + owner: true + group: true + + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + permissions_panel: + enabled: true + actions: + chmod: true + ownership_panel: + enabled: true + actions: + chown: true + chgrp: true + + roles: + enabled: true + actions: + add_role: true + scale: true + resume: true + release: true + hold: true + suspend: true + stop: true + poweroff: true + poweroff-hard: true + reboot: true + reboot-hard: true + undeploy: true + undeploy-hard: true + terminate: true + terminate-hard: true + snapshot-create: true + snapshot-revert: true + snapshot-delete: true + disk-snapshot-create: true + disk-snapshot-revert: true + disk-snapshot-delete: true + + networks: + enabled: true + + log: + enabled: true + + sched_actions: + enabled: true + actions: + sched-add: true + sched-update: true + sched-delete: true + + template: + enabled: true + + # Dialogs + + dialogs: + # update_dialog: + "/etc/one/fireedge/sunstone/views/admin/service-template-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the Service Template tab + + # Resource + + resource_name: "SERVICE-TEMPLATE" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: true + instantiate_dialog: true + update_dialog: true + deploy_dialog: true + create_app_dialog: true # reference to create_dialog in marketplace-app-tab.yaml + clone: true + delete: true + chown: true + recover: true + chgrp: true + share: true + unshare: true + edit_labels: true + + # Filters - List of criteria to filter the resources + + filters: + owner: true + group: true + + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + permissions_panel: + enabled: true + actions: + chmod: true + ownership_panel: + enabled: true + actions: + chown: true + chgrp: true + + roles: + enabled: true + + networks: + enabled: true + + template: + enabled: true + + # Dialogs + + dialogs: + deploy_dialog: + create_dialog: + "/etc/one/fireedge/sunstone/views/admin/support-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + # -------------------------------------------------------------------------- # + # Copyright 2002-2026, OpenNebula Project, OpenNebula Systems # + # # + # Licensed under the Apache License, Version 2.0 (the "License"); you may # + # not use this file except in compliance with the License. You may obtain # + # a copy of the License at # + # # + # http://www.apache.org/licenses/LICENSE-2.0 # + # # + # Unless required by applicable law or agreed to in writing, software # + # distributed under the License is distributed on an "AS IS" BASIS, # + # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # + # See the License for the specific language governing permissions and # + # limitations under the License. # + #--------------------------------------------------------------------------- # + + --- + # This file describes the information and actions available in the SUPPORT tab + + # Resource + + resource_name: "SUPPORT" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: true + logout: true + edit_labels: true + + # Filters - List of criteria to filter the resources + + filters: + state: true + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + info: + enabled: true + information_panel: + enabled: true + comments: + enabled: true + actions: + comment: true + "/etc/one/fireedge/sunstone/views/admin/user-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: |- + --- + # This file describes the information and actions available in the USER tab + + # Resource + + resource_name: "USER" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: true + chgrp: true + delete: true + enable: true + disable: true + + # Filters - List of criteria to filter the resources + + filters: + state: true + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + attributes_panel: + enabled: true + actions: + copy: true + add: true + edit: true + delete: true + + group: + enabled: true + actions: + chgrp: true + add_to_group: true + remove_from_group: true + change_primary_group: true + + quota: + enabled: true + actions: + quotas_dialog: true + + accounting: + enabled: true + actions: + get_accounting: true + + showback: + enabled: true + actions: + get_showback: true + + authentication: + enabled: true + actions: + change_authentication: true + update_password: true + login_token: true + two_factor_auth: true + public_ssh_key: true + private_ssh_key: true + private_ssh_key_passphrase: true + "/etc/one/fireedge/sunstone/views/admin/vdc-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: "---\n# This file describes the information and actions available in the VIRTUAL DATA CENTER tab\n\n# Resource\n\nresource_name: + \"VIRTUAL-DATA-CENTER\"\n\n# Actions - Which buttons are visible to operate over the resources\n\nactions:\n create_dialog: + true\n update_dialog: true\n delete: true\n edit_labels: true\n\n# Filters - List of criteria to filter the + resources\n\nfilters:\n\n# Info Tabs - Which info tabs are used to show extended information\n\ninfo-tabs:\n info:\n + \ enabled: true\n information_panel:\n enabled: true\n actions:\n rename: true\n attributes_panel:\n + \ enabled: true\n actions:\n copy: true\n add: true\n edit: true\n delete: + true\n\n groups:\n enabled: true\n clusters:\n enabled: true\n datastores:\n enabled: true\n hosts:\n + \ enabled: true\n vnets:\n enabled: true\n \n\n# Dialogs\ndialogs:\n create_dialog:\n clusters: true\n + \ datastores: true\n hosts: true\n vnets: true" + "/etc/one/fireedge/sunstone/views/admin/vm-group-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: "---\n# This file describe the information add actions available in the VM GROUP TEMPLATES tab\n\n# Resource\n\nresource_name: + \"VM-GROUP\"\n\n# Actions - Which buttons are visible to operate over the resource\n\nactions: \n create_dialog: + true\n update_dialog: true\n enable: true\n disable: true\n chgrp: true\n chown: true\n delete: true\n edit_labels: + true\n\n# Filters - List of criteria to filter the resource\n\nfilters: \n state: true\n\n\n\n# Info Tabs - + Which info tabs are used to show extended information\n\ninfo-tabs:\n info:\n enabled: true\n information_panel:\n + \ enabled: true\n actions:\n rename: true\n permissions_panel:\n enabled: true\n actions:\n + \ chmod: true\n ownership_panel:\n enabled: true\n actions:\n chown: true\n chgrp: + true\n roles_panel:\n enabled: true\n roles-affinity_panel:\n enabled: true\n vms:\n enabled: + true\n" + "/etc/one/fireedge/sunstone/views/admin/vm-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the VM tab + + # Resource + + resource_name: "VM" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: true + create_app_dialog: true # reference to create_dialog in marketplace-app-tab.yaml + deploy: true + migrate: true + live-migrate: true + hold: true + release: true + suspend: true + resume: true + stop: true + recover: true + reboot: true + reboot-hard: true + poweroff: true + poweroff-hard: true + undeploy: true + undeploy-hard: true + terminate: true + terminate-hard: true + resched: true + unresched: true + save_as_template: true + chown: true + chgrp: true + lock: true + unlock: true + vnc: true + ssh: true + rdp: true + edit_labels: true + backup: true + restore: true + + # Filters - List of criteria to filter the resources + + filters: + state: true + owner: true + group: true + type: true + locked: true + ips: true + hostname: true + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + permissions_panel: + enabled: true + actions: + chmod: true + ownership_panel: + enabled: true + actions: + chown: true + chgrp: true + capacity_panel: + enabled: true + actions: + resize: true + lxc_panel: + enabled: true + actions: + copy: true + add: true + edit: true + delete: true + monitoring_panel: + enabled: true + actions: + copy: true + attributes_panel: + enabled: true + actions: + copy: true + add: true + edit: true + delete: true + + storage: + enabled: true + actions: + disk-attach-image: true + disk-attach-volatile: true + disk-detach: true + disk-resize: true + disk-saveas: true + disk-snapshot-create: true + disk-snapshot-delete: true + disk-snapshot-rename: true + disk-snapshot-revert: true + + network: + enabled: true + actions: + nic-attach: true + nic-attach-alias: true + nic-detach: true + nic-update: true + sg-attach: true + sg-detach: true + + pci: + enabled: true + actions: + pci-attach: true + pci-detach: true + + snapshot: + enabled: true + actions: + snapshot-create: true + snapshot-revert: true + snapshot-delete: true + + backup: + enabled: true + actions: + backup-configure: true + backup-create: true + backup-restore: true + + history: + enabled: true + + sched_actions: + enabled: true + actions: + sched-add: true + sched-update: true + sched-delete: true + charter_create: true + + configuration: + enabled: true + actions: + update_configuration: true + + template: + enabled: true + + logs: + enabled: true + "/etc/one/fireedge/sunstone/views/admin/vm-template-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the VM Template tab + + # Resource + + resource_name: "VM-TEMPLATE" + + # Features - + + features: + # True to hide the CPU setting in the dialogs + hide_cpu: false + + # False to not scale the CPU. + # An integer value would be used as a multiplier as follows: + # CPU = cpu_factor * VCPU + # Set it to 1 to tie CPU and vCPU. + cpu_factor: false + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: true + import_dialog: true + update_dialog: true + instantiate_dialog: true + create_app_dialog: true # reference to create_dialog in marketplace-app-tab.yaml + clone: true + delete: true + chown: true + chgrp: true + lock: true + unlock: true + share: true + unshare: true + edit_labels: true + + # Filters - List of criteria to filter the resources + + filters: + owner: true + group: true + locked: true + vrouter: true + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + permissions_panel: + enabled: true + actions: + chmod: true + ownership_panel: + enabled: true + actions: + chown: true + chgrp: true + + template: + enabled: true + + # Dialogs + + dialogs: + instantiate_dialog: + information: true + ownership: true + capacity: true + vm_group: true + network: true + storage: true + pci: true + placement: true + sched_action: true + booting: true + backup: true + create_dialog: + ownership: true + capacity: true + showback: true + vm_group: true + network: true + storage: true + placement: true + pci: true + input_output: true + sched_action: true + context: true + booting: true + numa: true + backup: true + "/etc/one/fireedge/sunstone/views/admin/vnet-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + action: apply + change: + - path: + - info-tabs + key: port_mirroring + value: + enabled: true + actions: + mirror_create: true + mirror_update: true + mirror_addport: true + mirror_delport: true + mirror_delete: true + state: ins + extra: {} + content: | + --- + # This file describes the information and actions available in the VIRTUAL NETWORK tab + + # Resource + + resource_name: "VIRTUAL-NETWORK" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: true + import_dialog: true + instantiate_dialog: true + reserve_dialog: true + update_dialog: true + change_cluster: true + chown: true + chgrp: true + lock: true + unlock: true + delete: true + edit_labels: true + + # Filters - List of criteria to filter the resources + + filters: + state: true + owner: true + group: true + locked: true + vn_mad: true + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + permissions_panel: + enabled: true + actions: + chmod: true + ownership_panel: + enabled: true + actions: + chown: true + chgrp: true + qos_panel: + enabled: true + attributes_panel: + enabled: true + actions: + copy: true + add: true + edit: true + delete: true + + address: + enabled: true + actions: + add_ar: true + update_ar: true + delete_ar: true + + lease: + enabled: true + actions: + hold_lease: true + release_lease: true + + security: + enabled: true + actions: + add_secgroup: true + delete_secgroup: true + + virtual_router: + enabled: true + + cluster: + enabled: true + + port_mirroring: + enabled: true + actions: + mirror_create: true + mirror_update: true + mirror_addport: true + mirror_delport: true + mirror_delete: true + + create-tabs: + address: + enabled: true + security: + enabled: true + context: + enabled: true + configuration: + enabled: true + "/etc/one/fireedge/sunstone/views/admin/vnet-template-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the V. NETWORK TEMPLATE tab + + # Resource + + resource_name: "NETWORK-TEMPLATE" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: true + instantiate_dialog: true + update_dialog: true + delete: true + chown: true + chgrp: true + lock: true + unlock: true + edit_labels: true + + # Filters - List of criteria to filter the resources + + filters: + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + permissions_panel: + enabled: true + actions: + chmod: true + ownership_panel: + enabled: true + actions: + chown: true + chgrp: true + qos_panel: + enabled: true + attributes_panel: + enabled: true + actions: + copy: true + add: true + edit: true + delete: true + + address: + enabled: true + actions: + add_ar: true + update_ar: true + delete_ar: true + + security: + enabled: true + + cluster: + enabled: true + + template: + enabled: true + + instantiate-tabs: + address: + enabled: true + security: + enabled: true + context: + enabled: true + configuration: + enabled: true + "/etc/one/fireedge/sunstone/views/admin/vrouter-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the VRouter Template tab + + # Resource + + resource_name: "VROUTER" + + # Actions - Which buttons are visible to operate over the resources + + actions: + instantiate_dialog: true + delete: true + chown: true + recover: true + chgrp: true + lock: true + unlock: true + edit_labels: true + + # Filters - List of criteria to filter the resources + + filters: + owner: true + group: true + + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + permissions_panel: + enabled: true + actions: + chmod: true + ownership_panel: + enabled: true + actions: + chown: true + chgrp: true + attributes_panel: + enabled: true + actions: + copy: true + add: true + edit: true + delete: true + vms: + enabled: true + nics: + enabled: true + + template: + enabled: true + + + # Dialogs + + dialogs: + deploy_dialog: + create_dialog: + "/etc/one/fireedge/sunstone/views/admin/vrouter-template-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the VRouter Template tab + + # Resource + + resource_name: "VROUTER-TEMPLATE" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: true + instantiate_dialog: true + update_dialog: true + deploy_dialog: true + clone: true + delete: true + chown: true + recover: true + chgrp: true + lock: true + unlock: true + share: true + unshare: true + edit_labels: true + + # Filters - List of criteria to filter the resources + + filters: + owner: true + group: true + + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + permissions_panel: + enabled: true + actions: + chmod: true + ownership_panel: + enabled: true + actions: + chown: true + chgrp: true + + roles: + enabled: true + + template: + enabled: true + + # Dialogs + + dialogs: + deploy_dialog: + create_dialog: + "/etc/one/fireedge/sunstone/views/admin/zone-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the USER tab + + # Resource + + resource_name: "ZONE" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: true + delete: true + edit_labels: true + + # Filters - List of criteria to filter the resources + + filters: + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + server_pool_panel: + enabled: true + attributes_panel: + enabled: true + actions: + copy: true + add: true + edit: true + delete: true + "/etc/one/fireedge/sunstone/views/cloud/dashboard-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + # This file configures the cards available in the dashboard for the cloud view. + # + # Cards are rendered by ascending order. Supported sizes are: + # quarter, third, half, full, wide and narrow. + # The to option enables navigation for the card or its resource rows. + + resource_name: 'DASHBOARD' + + cards: + - id: virtual-machines + order: 10 + size: full + to: true + "/etc/one/fireedge/sunstone/views/cloud/marketplace-app-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the App tab + + # Resource + + resource_name: "MARKETPLACE-APP" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: false + export: true + download: true + chown: false + chgrp: false + enable: false + disable: false + delete: false + edit_labels: false + lock: false + unlock: false + + # Filters - List of criteria to filter the resources + + filters: + owner: true + group: true + state: true + type: true + marketplace: true + zone: true + hypervisor: true + architecture: true + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + + info: + enabled: true + information_panel: + enabled: true + actions: + rename: false + permissions_panel: + enabled: true + actions: + chmod: false + ownership_panel: + enabled: true + actions: + chown: true + chgrp: false + attributes_panel: + enabled: false + actions: + copy: false + add: false + edit: false + delete: false + + template: + enabled: true + "/etc/one/fireedge/sunstone/views/cloud/service-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the Service tab + + # Resource + + resource_name: "SERVICE" + + # Actions - Which buttons are visible to operate over the resources + + actions: + instantiate_dialog: true # reference to deploy_dialog in service-template-tab.yaml + create_dialog: true + recover: true + recover_delete: true + delete: true + chown: false + chgrp: false + share: false + unshare: false + edit_labels: false + + # Filters - List of criteria to filter the resources + + filters: + state: true + owner: true + group: true + + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + + info: + enabled: true + information_panel: + enabled: true + actions: + rename: false + permissions_panel: + enabled: true + actions: + chmod: false + ownership_panel: + enabled: true + actions: + chown: false + chgrp: false + + roles: + enabled: true + actions: + add_role: true + scale: true + resume: true + release: true + hold: true + suspend: true + stop: true + poweroff: true + poweroff-hard: true + reboot: true + reboot-hard: true + undeploy: true + undeploy-hard: true + terminate: true + terminate-hard: true + snapshot-create: true + snapshot-revert: true + snapshot-delete: true + disk-snapshot-create: true + disk-snapshot-revert: true + disk-snapshot-delete: true + + networks: + enabled: true + + log: + enabled: true + + sched_actions: + enabled: true + actions: + sched-add: true + sched-update: true + sched-delete: true + + template: + enabled: true + + # Dialogs + + dialogs: + # update_dialog: + "/etc/one/fireedge/sunstone/views/cloud/user-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: |- + --- + # This file describes the information and actions available in the USER tab + + # Resource + + resource_name: "USER" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: false + chgrp: false + delete: false + enable: false + disable: false + + # Filters - List of criteria to filter the resources + + filters: + label: false + state: false + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + + info: + enabled: true + information_panel: + enabled: true + actions: + rename: false + attributes_panel: + enabled: true + actions: + copy: false + add: false + edit: false + delete: false + + group: + enabled: false + actions: + chgrp: false + + quota: + enabled: true + actions: + quotas_dialog: true + + accounting: + enabled: true + actions: + get_accounting: true + + showback: + enabled: true + actions: + get_showback: true + + authentication: + enabled: false + actions: + change_authentication: false + update_password: false + login_token: false + two_factor_auth: false + public_ssh_key: false + private_ssh_key: false + private_ssh_key_passphrase: false + "/etc/one/fireedge/sunstone/views/cloud/vm-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: "---\n# This file describes the information and actions available in the VM tab\n\n# Resource\n\nresource_name: + \"VM\"\n\n# Actions - Which buttons are visible to operate over the resources\n\nactions:\n create_dialog: true\n + \ create_app_dialog: true # reference to create_dialog in marketplace-app-tab.yaml\n deploy: false\n migrate: + false\n migrate_live: false\n hold: false\n release: false\n suspend: false\n resume: true\n stop: false\n + \ recover: false\n reboot: true\n reboot-hard: true\n poweroff: true\n poweroff-hard: true\n undeploy: false\n + \ undeploy-hard: false\n terminate: true\n terminate-hard: true\n resched: false\n unresched: false\n save_as_template: + true\n chown: false\n chgrp: false\n lock: false\n unlock: false\n vnc: true\n ssh: true\n rdp: true\n + \ edit_labels: false\n backup: false \n\n# Filters - List of criteria to filter the resources\n\nfilters:\n + \ state: true\n owner: true\n group: true\n type: true\n locked: true\n ips: true\n hostname: true\n\n\n# + Info Tabs - Which info tabs are used to show extended information\n\ninfo-tabs:\n\n info:\n enabled: true\n + \ information_panel:\n enabled: true\n actions:\n rename: false\n permissions_panel:\n enabled: + true\n actions:\n chmod: false\n ownership_panel:\n enabled: true\n actions:\n chown: + false\n chgrp: false\n capacity_panel:\n enabled: true\n actions:\n resize: true\n + \ monitoring_panel:\n enabled: true\n actions:\n copy: true\n attributes_panel:\n enabled: + false\n actions:\n copy: true\n add: false\n edit: false\n delete: false\n\n + \ storage:\n enabled: true\n actions:\n disk-attach:\n enabled: true\n disk-detach: true\n + \ disk-resize: true\n disk_saveas:\n enabled: true\n\n network:\n enabled: true\n actions:\n + \ nic-attach: true\n nic-detach: true\n nic-update: true\n sg-attach: true\n sg-detach: + true\n\n snapshot:\n enabled: true\n actions:\n snapshot-create: true\n snapshot-revert: true\n + \ snapshot-delete: true\n\n backup:\n enabled: false\n\n history:\n enabled: false\n\n sched_actions:\n + \ enabled: true\n actions:\n sched-add: true\n sched-update: true\n sched-delete: true\n charter_create: + true\n\n configuration:\n enabled: false\n actions:\n update_configuration: false\n\n template:\n + \ enabled: false\n" + "/etc/one/fireedge/sunstone/views/cloud/vm-template-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the VM Template tab + + # Resource + + resource_name: "VM-TEMPLATE" + + # Features + + features: + # True to hide the CPU setting in the dialogs + hide_cpu: true + + # False to not scale the CPU. + # An integer value would be used as a multiplier as follows: + # CPU = cpu_factor * VCPU + # Set it to 1 to tie CPU and vCPU. + cpu_factor: 1 + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: false + import_dialog: false + update_dialog: false + instantiate_dialog: true + create_app_dialog: false # reference to create_dialog in marketplace-app-tab.yaml + clone: false + delete: true + chown: false + chgrp: false + lock: false + unlock: false + share: false + unshare: false + edit_labels: false + + # Filters - List of criteria to filter the resources + + filters: + owner: true + group: true + locked: true + vrouter: true + + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + info: + enabled: true + information_panel: + enabled: true + actions: + rename: false + permissions_panel: + enabled: true + actions: + chmod: false + ownership_panel: + enabled: true + actions: + chown: false + chgrp: false + + template: + enabled: true + + # Dialogs + + dialogs: + instantiate_dialog: + information: true + ownership: true + capacity: true + vm_group: true + network: true + storage: true + placement: true + sched_action: true + booting: true + create_dialog: + ownership: true + capacity: true + showback: true + vm_group: true + network: true + storage: true + placement: true + input_output: true + sched_action: true + context: true + booting: true + numa: + enabled: true + not_on: + - lxc + backup: true + "/etc/one/fireedge/sunstone/views/groupadmin/backup-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the IMAGE tab + + # Resource + + resource_name: "BACKUP" + + # Actions - Which buttons are visible to operate over the resources + + actions: + restore: true + chown: true + chgrp: false + delete: true + + # Filters - List of criteria to filter the resources + + filters: + state: true + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + permissions_panel: + enabled: true + actions: + chmod: true + ownership_panel: + enabled: true + actions: + chown: true + chgrp: false + attributes_panel: + enabled: true + actions: + copy: true + add: true + edit: true + delete: true + vms: + enabled: true + increments: + enabled: true + "/etc/one/fireedge/sunstone/views/groupadmin/dashboard-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + # This file configures the cards available in the dashboard for the groupadmin view. + # + # Cards are rendered by ascending order. Supported sizes are: + # quarter, third, half, full, wide and narrow. + # The to option enables navigation for the card or its resource rows. + + resource_name: 'DASHBOARD' + + cards: + - id: virtual-machines + order: 10 + size: third + to: true + - id: virtual-networks + order: 30 + size: third + to: true + - id: images + order: 40 + size: third + to: true + - id: system + order: 80 + size: full + to: true + "/etc/one/fireedge/sunstone/views/groupadmin/file-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: |- + --- + # This file describes the information and actions available in the FILE tab + + # Resource + + resource_name: "FILE" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: true + import_dialog: true + disable: true + enable: true + chown: true + chgrp: false + delete: true + + # Filters - List of criteria to filter the resources + + filters: + state: true + + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + permissions_panel: + enabled: true + actions: + chmod: true + ownership_panel: + enabled: true + actions: + chown: true + chgrp: false + attributes_panel: + enabled: true + actions: + copy: true + add: true + edit: true + delete: true + "/etc/one/fireedge/sunstone/views/groupadmin/group-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: |- + --- + # This file describes the information and actions available in the GROUP tab + + # Resource + + resource_name: "GROUP" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: true + update_dialog: true + + # Filters - List of criteria to filter the resources + + filters: + + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + attributes_panel: + enabled: true + actions: + copy: true + add: true + edit: true + delete: true + + user: + enabled: true + actions: + edit_admins: true + add_users: true + + quota: + enabled: true + actions: + quotas_dialog: false + + accounting: + enabled: true + actions: + get_accounting: true + + showback: + enabled: true + actions: + get_showback: true + + 'VLAN Group': + enabled: true + "/etc/one/fireedge/sunstone/views/groupadmin/image-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: |- + --- + # This file describes the information and actions available in the IMAGE tab + + # Resource + + resource_name: "IMAGE" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: true + import_dialog: true + clone: true + lock: true + unlock: true + disable: true + enable: true + persistent: true + nonpersistent: true + chown: true + chgrp: false + delete: true + + # Filters - List of criteria to filter the resources + + filters: + state: true + locked: true + + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + permissions_panel: + enabled: true + actions: + chmod: true + ownership_panel: + enabled: true + actions: + chown: true + chgrp: false + attributes_panel: + enabled: true + actions: + copy: true + add: true + edit: true + delete: true + vms: + enabled: true + snapshot: + enabled: true + actions: + snapshot_flatten: true + snapshot_revert: true + snapshot_delete: true + "/etc/one/fireedge/sunstone/views/groupadmin/marketplace-app-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the App tab + + # Resource + + resource_name: "MARKETPLACE-APP" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: false + export: true + download: true + chown: false + chgrp: false + enable: false + disable: false + delete: false + edit_labels: false + lock: false + unlock: false + + # Filters - List of criteria to filter the resources + + filters: + owner: true + group: true + state: true + type: true + marketplace: true + zone: true + hypervisor: true + architecture: true + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + + info: + enabled: true + information_panel: + enabled: true + actions: + rename: false + permissions_panel: + enabled: true + actions: + chmod: false + ownership_panel: + enabled: true + actions: + chown: false + chgrp: false + attributes_panel: + enabled: false + actions: + copy: false + add: false + edit: false + delete: false + + template: + enabled: true + "/etc/one/fireedge/sunstone/views/groupadmin/sec-group-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the SECURITY GROUP tab + + # Resource + + resource_name: "SECURITY-GROUP" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: false + update_dialog: false + clone: false + commit: false + chown: false + chgrp: false + delete: false + + # Filters - List of criteria to filter the resources + + filters: + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + info: + enabled: true + information_panel: + enabled: true + actions: + rename: false + permissions_panel: + enabled: true + actions: + chmod: false + ownership_panel: + enabled: true + actions: + chown: false + chgrp: false + rules_panel: + enabled: true + attributes_panel: + enabled: true + actions: + copy: true + add: true + edit: true + delete: true + + vms: + enabled: true + "/etc/one/fireedge/sunstone/views/groupadmin/service-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the Service tab + + # Resource + + resource_name: "SERVICE" + + # Actions - Which buttons are visible to operate over the resources + + actions: + instantiate_dialog: true # reference to deploy_dialog in service-template-tab.yaml + create_dialog: true + recover: true + recover_delete: true + delete: true + chown: true + chgrp: true + share: true + unshare: true + + # Filters - List of criteria to filter the resources + + filters: + state: true + owner: true + group: true + + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + permissions_panel: + enabled: true + actions: + chmod: true + ownership_panel: + enabled: true + actions: + chown: true + chgrp: true + + roles: + enabled: true + actions: + add_role: true + scale: true + resume: true + release: true + hold: true + suspend: true + stop: true + poweroff: true + poweroff-hard: true + reboot: true + reboot-hard: true + undeploy: true + undeploy-hard: true + terminate: true + terminate-hard: true + snapshot-create: true + snapshot-revert: true + snapshot-delete: true + disk-snapshot-create: true + disk-snapshot-revert: true + disk-snapshot-delete: true + + networks: + enabled: true + + log: + enabled: true + + sched_actions: + enabled: true + actions: + sched-add: true + sched-update: true + sched-delete: true + + template: + enabled: true + + # Dialogs + + dialogs: + # update_dialog: + "/etc/one/fireedge/sunstone/views/groupadmin/service-template-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the Service Template tab + + # Resource + + resource_name: "SERVICE-TEMPLATE" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: false + instantiate_dialog: true + update_dialog: false + deploy_dialog: true + create_app_dialog: true # reference to create_dialog in marketplace-app-tab.yaml + clone: false + delete: false + chown: false + recover: false + chgrp: false + share: false + unshare: false + edit_labels: false + + # Filters - List of criteria to filter the resources + + filters: + owner: true + group: true + + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + + info: + enabled: true + information_panel: + enabled: true + actions: + rename: false + permissions_panel: + enabled: true + actions: + chmod: false + ownership_panel: + enabled: true + actions: + chown: false + chgrp: false + + roles: + enabled: true + + networks: + enabled: true + + template: + enabled: true + + # Dialogs + + dialogs: + deploy_dialog: + create_dialog: + "/etc/one/fireedge/sunstone/views/groupadmin/user-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: |- + --- + # This file describes the information and actions available in the USER tab + + # Resource + + resource_name: "USER" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: true + chgrp: true + delete: true + enable: true + disable: true + + # Filters - List of criteria to filter the resources + + filters: + state: true + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + attributes_panel: + enabled: true + actions: + copy: true + add: true + edit: true + delete: true + + group: + enabled: true + actions: + chgrp: true + + quota: + enabled: true + actions: + quotas_dialog: true + + accounting: + enabled: true + actions: + get_accounting: true + + showback: + enabled: true + actions: + get_showback: true + + authentication: + enabled: true + actions: + change_authentication: true + update_password: true + login_token: true + two_factor_auth: true + public_ssh_key: true + private_ssh_key: true + private_ssh_key_passphrase: true + "/etc/one/fireedge/sunstone/views/groupadmin/vm-group-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: "---\n# This file describe the information add actions available in the VM GROUP TEMPLATES tab\n\n# Resource\n\nresource_name: + \"VM-GROUP\"\n\n# Actions - Which buttons are visible to operate over the resource\n\nactions: \n create_dialog: + true\n update_dialog: true\n enable: true\n disable: true\n chgrp: true\n chown: true\n delete: true\n\n# + Filters - List of criteria to filter the resource\n\nfilters: \n state: true\n\n\n\n# Info Tabs - Which info + tabs are used to show extended information\n\ninfo-tabs:\n info:\n enabled: true\n information_panel:\n + \ enabled: true\n actions:\n rename: true\n permissions_panel:\n enabled: true\n actions:\n + \ chmod: true\n ownership_panel:\n enabled: true\n actions:\n chown: true\n cgrp: + true\n roles_panel:\n enabled: true\n roles-affinity_panel:\n enabled: true\n vms:\n enabled: + true\n\n" + "/etc/one/fireedge/sunstone/views/groupadmin/vm-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: "---\n# This file describes the information and actions available in the VM tab\n\n# Resource\n\nresource_name: + \"VM\"\n\n# Actions - Which buttons are visible to operate over the resources\n\nactions:\n create_dialog: true\n + \ create_app_dialog: true # reference to create_dialog in marketplace-app-tab.yaml\n deploy: false\n migrate: + true\n migrate_live: true\n hold: true\n release: true\n suspend: true\n resume: true\n stop: true\n recover: + true\n reboot: true\n reboot-hard: true\n poweroff: true\n poweroff-hard: true\n undeploy: true\n undeploy-hard: + true\n terminate: true\n terminate-hard: true\n resched: true\n unresched: true\n save_as_template: false\n + \ chown: false\n chgrp: false\n lock: true\n unlock: true\n vnc: true\n ssh: true\n rdp: true\n edit_labels: + false\n backup: true \n\n# Filters - List of criteria to filter the resources\n\nfilters:\n state: true\n owner: + true\n group: true\n type: true\n locked: true\n ips: true\n hostname: true\n\n\n# Info Tabs - Which info + tabs are used to show extended information\n\ninfo-tabs:\n\n info:\n enabled: true\n information_panel:\n + \ enabled: true\n actions:\n rename: true\n permissions_panel:\n enabled: true\n actions:\n + \ chmod: false\n ownership_panel:\n enabled: true\n actions:\n chown: false\n chgrp: + false\n capacity_panel:\n enabled: true\n actions:\n resize_capacity: true\n lxc_panel:\n + \ enabled: true\n actions:\n copy: true\n add: false\n edit: false\n delete: + false\n monitoring_panel:\n enabled: true\n actions:\n copy: true\n attributes_panel:\n + \ enabled: true\n actions:\n copy: true\n add: true\n edit: false\n delete: + false\n\n storage:\n enabled: true\n actions:\n attach_disk:\n enabled: true\n disk-detach: + true\n snapshot_disk_create: true\n snapshot_disk_rename: true\n snapshot_disk_revert: true\n snapshot_disk_delete: + true\n resize_disk: true\n disk_saveas:\n enabled: true\n\n network:\n enabled: true\n actions:\n + \ attach_nic: true\n detach_nic: true\n update_nic: true\n attach_secgroup: true\n detach_secgroup: + true\n\n snapshot:\n enabled: true\n actions:\n snapshot-create: true\n snapshot-revert: true\n + \ snapshot-delete: true\n\n backup:\n enabled: true\n\n history:\n enabled: true\n\n sched_actions:\n + \ enabled: true\n actions:\n sched_action_create: true\n sched_action_update: true\n sched_action_delete: + true\n charter_create: true\n\n configuration:\n enabled: true\n actions:\n update_configuration: + true\n\n template:\n enabled: true\n" + "/etc/one/fireedge/sunstone/views/groupadmin/vm-template-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the VM Template tab + + # Resource + + resource_name: "VM-TEMPLATE" + + # Features + + features: + # True to hide the CPU setting in the dialogs + hide_cpu: true + + # False to not scale the CPU. + # An integer value would be used as a multiplier as follows: + # CPU = cpu_factor * VCPU + # Set it to 1 to tie CPU and vCPU. + cpu_factor: 1 + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: false + import_dialog: false + update_dialog: true + instantiate_dialog: true + create_app_dialog: false # reference to create_dialog in marketplace-app-tab.yaml + clone: true + delete: true + chown: true + chgrp: false + lock: true + unlock: true + share: true + unshare: true + edit_labels: false + + # Filters - List of criteria to filter the resources + + filters: + owner: true + group: true + locked: true + vrouter: true + + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + permissions_panel: + enabled: true + actions: + chmod: true + ownership_panel: + enabled: true + actions: + chown: true + chgrp: true + + template: + enabled: true + + # Dialogs + + dialogs: + instantiate_dialog: + information: true + ownership: true + capacity: true + vm_group: true + network: true + storage: true + placement: true + sched_action: true + booting: true + create_dialog: + ownership: true + capacity: true + showback: true + vm_group: true + network: true + storage: true + placement: true + input_output: true + sched_action: true + context: true + booting: true + numa: + enabled: true + not_on: + - lxc + backup: true + "/etc/one/fireedge/sunstone/views/groupadmin/vnet-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + action: apply + change: + - path: + - info-tabs + key: port_mirroring + value: + enabled: true + actions: + mirror_create: false + mirror_update: false + mirror_addport: false + mirror_delport: false + mirror_delete: false + state: ins + extra: {} + content: | + --- + # This file describes the information and actions available in the VIRTUAL NETWORK tab + + # Resource + + resource_name: "VIRTUAL-NETWORK" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: false + import_dialog: false + instantiate_dialog: true + reserve_dialog: true + update_dialog: false + change_cluster: false + chown: false + chgrp: false + lock: true + unlock: true + delete: false + + # Filters - List of criteria to filter the resources + + filters: + state: true + owner: true + group: true + locked: true + vn_mad: true + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + info: + enabled: true + information_panel: + enabled: true + actions: + rename: false + permissions_panel: + enabled: true + actions: + chmod: false + ownership_panel: + enabled: true + actions: + chown: false + chgrp: false + qos_panel: + enabled: true + attributes_panel: + enabled: true + actions: + copy: false + add: false + edit: false + delete: false + + address: + enabled: true + actions: + add_ar: false + update_ar: false + delete_ar: false + + lease: + enabled: true + actions: + hold_lease: false + release_lease: false + + security: + enabled: true + actions: + add_secgroup: false + delete_secgroup: false + + virtual_router: + enabled: true + + cluster: + enabled: true + + port_mirroring: + enabled: true + actions: + mirror_create: false + mirror_update: false + mirror_addport: false + mirror_delport: false + mirror_delete: false + "/etc/one/fireedge/sunstone/views/groupadmin/vnet-template-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the V. NETWORK TEMPLATE tab + + # Resource + + resource_name: "NETWORK-TEMPLATE" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: false + instantiate_dialog: true + update_dialog: true + delete: true + chown: true + chgrp: true + lock: true + unlock: true + + # Filters - List of criteria to filter the resources + + filters: + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + permissions_panel: + enabled: true + actions: + chmod: true + ownership_panel: + enabled: true + actions: + chown: true + chgrp: true + qos_panel: + enabled: true + attributes_panel: + enabled: true + actions: + copy: true + add: true + edit: true + delete: true + + address: + enabled: true + actions: + add_ar: true + update_ar: true + delete_ar: true + + security: + enabled: true + + cluster: + enabled: true + + template: + enabled: true + "/etc/one/fireedge/sunstone/views/groupadmin/vrouter-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the VRouter Template tab + + # Resource + + resource_name: "VROUTER" + + # Actions - Which buttons are visible to operate over the resources + + actions: + instantiate_dialog: true + delete: true + chown: true + recover: true + chgrp: true + lock: true + unlock: true + + # Filters - List of criteria to filter the resources + + filters: + owner: true + group: true + + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + permissions_panel: + enabled: true + actions: + chmod: true + ownership_panel: + enabled: true + actions: + chown: true + chgrp: true + attributes_panel: + enabled: true + actions: + copy: true + add: true + edit: true + delete: true + vms: + enabled: true + nics: + enabled: true + + template: + enabled: true + + + # Dialogs + + dialogs: + deploy_dialog: + create_dialog: + "/etc/one/fireedge/sunstone/views/groupadmin/vrouter-template-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the VRouter Template tab + + # Resource + + resource_name: "VROUTER-TEMPLATE" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: false + instantiate_dialog: true + update_dialog: false + deploy_dialog: true + clone: true + delete: true + chown: true + recover: false + chgrp: false + lock: false + unlock: false + share: true + unshare: true + edit_labels: false + + # Filters - List of criteria to filter the resources + + filters: + owner: true + group: true + + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + permissions_panel: + enabled: true + actions: + chmod: true + ownership_panel: + enabled: true + actions: + chown: true + chgrp: false + + roles: + enabled: true + + template: + enabled: true + + # Dialogs + + dialogs: + deploy_dialog: + create_dialog: + "/etc/one/fireedge/sunstone/views/user/backup-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the IMAGE tab + + # Resource + + resource_name: "BACKUP" + + # Actions - Which buttons are visible to operate over the resources + + actions: + restore: true + chown: true + chgrp: true + delete: true + + # Filters - List of criteria to filter the resources + + filters: + state: true + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + permissions_panel: + enabled: true + actions: + chmod: true + ownership_panel: + enabled: true + actions: + chown: true + chgrp: true + attributes_panel: + enabled: true + actions: + copy: true + add: true + edit: true + delete: true + vms: + enabled: true + increments: + enabled: true + "/etc/one/fireedge/sunstone/views/user/dashboard-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + # This file configures the cards available in the dashboard for the user view. + # + # Cards are rendered by ascending order. Supported sizes are: + # quarter, third, half, full, wide and narrow. + # The to option enables navigation for the card or its resource rows. + + resource_name: 'DASHBOARD' + + cards: + - id: virtual-machines + order: 10 + size: third + to: true + - id: virtual-networks + order: 30 + size: third + to: true + - id: images + order: 40 + size: third + to: true + "/etc/one/fireedge/sunstone/views/user/file-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: |- + --- + # This file describes the information and actions available in the FILE tab + + # Resource + + resource_name: "FILE" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: true + import_dialog: true + disable: true + enable: true + chown: true + chgrp: true + delete: true + + # Filters - List of criteria to filter the resources + + filters: + state: true + + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + permissions_panel: + enabled: true + actions: + chmod: true + ownership_panel: + enabled: true + actions: + chown: true + chgrp: true + attributes_panel: + enabled: true + actions: + copy: true + add: true + edit: true + delete: true + "/etc/one/fireedge/sunstone/views/user/group-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: |- + --- + # This file describes the information and actions available in the GROUP tab + + # Resource + + resource_name: "GROUP" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: false + update_dialog: false + delete: false + + # Filters - List of criteria to filter the resources + + filters: + + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + info: + enabled: true + information_panel: + enabled: true + actions: + rename: false + attributes_panel: + enabled: true + actions: + copy: false + add: false + edit: false + delete: false + + user: + enabled: false + actions: + edit_admins: false + add_users: false + remove_users: false + + quota: + enabled: false + actions: + quotas_dialog: false + + accounting: + enabled: false + actions: + get_accounting: false + + showback: + enabled: false + actions: + get_showback: false + + vlanrules: + enabled: true + actions: + add_vlan_rule: false + update_vlan_rule: false + delete_vlan_rule: false + "/etc/one/fireedge/sunstone/views/user/image-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: |- + --- + # This file describes the information and actions available in the IMAGE tab + + # Resource + + resource_name: "IMAGE" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: true + import_dialog: true + clone: true + lock: true + unlock: true + disable: true + enable: true + persistent: true + nonpersistent: true + chown: true + chgrp: true + delete: true + + # Filters - List of criteria to filter the resources + + filters: + state: true + locked: true + + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + permissions_panel: + enabled: true + actions: + chmod: true + ownership_panel: + enabled: true + actions: + chown: true + chgrp: true + attributes_panel: + enabled: true + actions: + copy: true + add: true + edit: true + delete: true + vms: + enabled: true + snapshot: + enabled: true + actions: + snapshot_flatten: true + snapshot_revert: true + snapshot_delete: true + "/etc/one/fireedge/sunstone/views/user/marketplace-app-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the App tab + + # Resource + + resource_name: "MARKETPLACE-APP" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: true + export: true + download: true + chown: true + chgrp: true + enable: true + disable: true + delete: true + edit_labels: true + + # Filters - List of criteria to filter the resources + + filters: + owner: true + group: true + state: true + type: true + marketplace: true + zone: true + hypervisor: true + architecture: true + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + permissions_panel: + enabled: true + actions: + chmod: true + ownership_panel: + enabled: true + actions: + chown: true + chgrp: true + attributes_panel: + enabled: true + actions: + copy: true + add: true + edit: true + delete: true + + template: + enabled: true + "/etc/one/fireedge/sunstone/views/user/oneks-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the ONEKS tab + + # Resource + + resource_name: "KUBERNETES" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: true + recover: true + delete: true + + # Filters - List of criteria to filter the resources + + filters: + id: true + name: true + state: true + version: true + locked: true + created: true + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + info: + enabled: true + information_panel: + enabled: true + permissions_panel: + enabled: true + actions: + chmod: true + ownership_panel: + enabled: true + actions: + chown: true + chgrp: true + nodegroup: + enabled: true + actions: + create_dialog: true + logs: + enabled: true + events: + enabled: true + kubeconfig: + enabled: true + "/etc/one/fireedge/sunstone/views/user/sec-group-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the SECURITY GROUP tab + + # Resource + + resource_name: "SECURITY-GROUP" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: true + update_dialog: true + clone: true + commit: true + chown: true + chgrp: true + delete: true + + # Filters - List of criteria to filter the resources + + filters: + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + permissions_panel: + enabled: true + actions: + chmod: true + ownership_panel: + enabled: true + actions: + chown: true + chgrp: true + rules_panel: + enabled: true + attributes_panel: + enabled: true + actions: + copy: true + add: true + edit: true + delete: true + + vms: + enabled: true + "/etc/one/fireedge/sunstone/views/user/service-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the Service tab + + # Resource + + resource_name: "SERVICE" + + # Actions - Which buttons are visible to operate over the resources + + actions: + instantiate_dialog: true # reference to deploy_dialog in service-template-tab.yaml + create_dialog: true + recover: true + recover_delete: true + delete: true + chown: false + chgrp: false + share: true + unshare: true + edit_labels: true + + # Filters - List of criteria to filter the resources + + filters: + state: true + owner: true + group: true + + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + permissions_panel: + enabled: true + actions: + chmod: false + ownership_panel: + enabled: true + actions: + chown: false + chgrp: false + + roles: + enabled: true + actions: + add_role: true + scale: true + resume: true + release: true + hold: true + suspend: true + stop: true + poweroff: true + poweroff-hard: true + reboot: true + reboot-hard: true + undeploy: true + undeploy-hard: true + terminate: true + terminate-hard: true + snapshot-create: true + snapshot-revert: true + snapshot-delete: true + disk-snapshot-create: true + disk-snapshot-revert: true + disk-snapshot-delete: true + + networks: + enabled: true + + log: + enabled: true + + sched_actions: + enabled: true + actions: + sched-add: true + sched-update: true + sched-delete: true + + template: + enabled: true + + # Dialogs + + dialogs: + # update_dialog: + "/etc/one/fireedge/sunstone/views/user/vm-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: "---\n# This file describes the information and actions available in the VM tab\n\n# Resource\n\nresource_name: + \"VM\"\n\n# Actions - Which buttons are visible to operate over the resources\n\nactions:\n backup: true \n + \ chgrp: false\n chown: false\n create_app_dialog: true # reference to create_dialog in marketplace-app-tab.yaml\n + \ create_dialog: true\n deploy: false\n edit_labels: false\n hold: true\n live-migrate: true\n lock: true\n + \ migrate: true\n poweroff-hard: true\n poweroff: true\n rdp: true\n reboot-hard: true\n reboot: true\n recover: + true\n release: true\n resched: true\n restore: false\n resume: true\n save_as_template: false\n ssh: true\n + \ stop: true\n suspend: true\n terminate-hard: true\n terminate: true\n undeploy-hard: true\n undeploy: true\n + \ unlock: true\n unresched: true\n update-user-template: true\n vnc: true\n\n# Filters - List of criteria to + filter the resources\n\nfilters:\n state: true\n owner: true\n group: true\n type: true\n locked: true\n + \ ips: true\n hostname: true\n\n\n# Info Tabs - Which info tabs are used to show extended information\n\ninfo-tabs:\n\n + \ info:\n enabled: true\n information_panel:\n enabled: true\n actions:\n rename: true\n + \ permissions_panel:\n enabled: true\n actions:\n chmod: false\n ownership_panel:\n enabled: + true\n actions:\n chown: false\n chgrp: false\n capacity_panel:\n enabled: true\n actions:\n + \ resize: true\n lxc_panel:\n enabled: true\n actions:\n copy: true\n add: false\n + \ edit: false\n delete: false\n monitoring_panel:\n enabled: true\n actions:\n copy: + true\n attributes_panel:\n enabled: true\n actions:\n copy: true\n add: true\n edit: + false\n delete: false\n\n storage:\n enabled: true\n actions:\n disk-attach-image: true\n disk-attach-volatile: + true\n disk-detach: true\n disk-snapshot-create: true\n disk-snapshot-delete: true\n disk-snapshot-rename: + true\n disk-snapshot-revert: true\n disk-resize: true\n disk-saveas: true\n\n network:\n enabled: + true\n actions:\n nic-attach: true\n nic-attach-alias: true\n nic-detach: true\n nic-update: + true\n sg-attach: true\n sg-detach: true\n \n pci:\n enabled: true\n actions:\n pci-attach: + true\n pci-detach: true \n\n snapshot:\n enabled: true\n actions:\n snapshot-create: true\n + \ snapshot-revert: true\n snapshot-delete: true\n\n backup:\n enabled: true\n\n history:\n enabled: + true\n\n sched_actions:\n enabled: true\n actions:\n sched-add: true\n sched-update: true\n sched-delete: + true\n charter_create: true\n\n configuration:\n enabled: true\n actions:\n update_configuration: + true\n\n template:\n enabled: true\n" + "/etc/one/fireedge/sunstone/views/user/vm-template-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + --- + # This file describes the information and actions available in the VM Template tab + + # Resource + + resource_name: "VM-TEMPLATE" + + # Features + + features: + # True to hide the CPU setting in the dialogs + hide_cpu: true + + # False to not scale the CPU. + # An integer value would be used as a multiplier as follows: + # CPU = cpu_factor * VCPU + # Set it to 1 to tie CPU and vCPU. + cpu_factor: 1 + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: true + import_dialog: false + update_dialog: true + instantiate_dialog: true + create_app_dialog: false # reference to create_dialog in marketplace-app-tab.yaml + clone: true + delete: true + chown: false + chgrp: false + lock: true + unlock: true + share: true + unshare: true + edit_labels: false + + # Filters - List of criteria to filter the resources + + filters: + owner: true + group: true + locked: true + vrouter: true + + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + permissions_panel: + enabled: true + actions: + chmod: true + ownership_panel: + enabled: true + actions: + chown: true + chgrp: true + + template: + enabled: true + + # Dialogs + + dialogs: + instantiate_dialog: + information: true + ownership: true + capacity: true + vm_group: true + + network: true + storage: true + placement: true + sched_action: true + booting: true + create_dialog: + ownership: true + capacity: true + showback: true + vm_group: true + network: true + storage: true + pci: true + placement: true + input_output: true + sched_action: true + context: true + booting: true + numa: + enabled: true + not_on: + - lxc + backup: true + "/etc/one/fireedge/sunstone/views/user/vnet-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + action: apply + change: + - path: + - info-tabs + key: port_mirroring + value: + enabled: true + actions: + mirror_create: true + mirror_update: true + mirror_addport: true + mirror_delport: true + mirror_delete: true + state: ins + extra: {} + content: | + --- + # This file describes the information and actions available in the VIRTUAL NETWORK tab + + # Resource + + resource_name: "VIRTUAL-NETWORK" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: false + import_dialog: false + instantiate_dialog: true + reserve_dialog: true + update_dialog: true + change_cluster: false + chown: false + chgrp: false + lock: true + unlock: true + delete: true + + # Filters - List of criteria to filter the resources + + filters: + state: true + owner: true + group: true + locked: true + vn_mad: true + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + info: + enabled: true + information_panel: + enabled: true + actions: + rename: true + permissions_panel: + enabled: true + actions: + chmod: true + ownership_panel: + enabled: true + actions: + chown: false + chgrp: false + qos_panel: + enabled: true + attributes_panel: + enabled: true + actions: + copy: true + add: true + edit: true + delete: true + + address: + enabled: true + actions: + add_ar: true + update_ar: true + delete_ar: true + + lease: + enabled: true + actions: + hold_lease: true + release_lease: true + + security: + enabled: true + actions: + add_secgroup: true + delete_secgroup: true + + virtual_router: + enabled: true + + cluster: + enabled: true + + port_mirroring: + enabled: true + actions: + mirror_create: true + mirror_update: true + mirror_addport: true + mirror_delport: true + mirror_delete: true + "/etc/one/fireedge/sunstone/views/user/vnet-template-tab.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: |- + --- + # This file describes the information and actions available in the V. NETWORK TEMPLATE tab + + # Resource + + resource_name: "NETWORK-TEMPLATE" + + # Actions - Which buttons are visible to operate over the resources + + actions: + create_dialog: false + instantiate_dialog: true + update_dialog: false + delete: false + chown: false + chgrp: false + lock: false + unlock: false + + # Filters - List of criteria to filter the resources + + filters: + + # Info Tabs - Which info tabs are used to show extended information + + info-tabs: + info: + enabled: true + information_panel: + enabled: true + actions: + rename: false + permissions_panel: + enabled: true + actions: + chmod: false + ownership_panel: + enabled: true + actions: + chown: false + chgrp: false + qos_panel: + enabled: true + attributes_panel: + enabled: true + actions: + copy: false + add: false + edit: false + delete: false + + address: + enabled: true + actions: + add_ar: false + update_ar: false + delete_ar: false + + security: + enabled: false + + cluster: + enabled: true + + template: + enabled: true + + instantiate-tabs: + address: + enabled: true + security: + enabled: true + context: + enabled: true + configuration: + enabled: true + "/etc/one/fireedge/sunstone/default-labels.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: "# -----------------------------------------------------------\n# Default Labels Configuration\n#\n# This + configuration defines default labels available for users and groups.\n# These labels appear as empty default options + in the Sunstone UI but are not saved \n# in any template until interacted with.\n#\n# Structure and Usage:\n#\n# + - For 'user' labels:\n# Labels are organized as nested categories and subcategories under each user template.\n#\n# + \ Example:\n#\n# user:\n# Test1:\n# A:\n# B:\n# C:\n#\n# + - For 'group' labels:\n# The first level key is the group name.\n# Under each group, labels are organized + similarly to users, with nested categories and subcategories.\n#\n# Example:\n# group:\n# oneadmin:\n# + \ Test2:\n# D:\n# E:\n# F:\n#\n# group-1:\n# GroupLabel1:\n# + \ NestedLabel: { \"vm-template\": [\"1\",\"2\",\"3\"] }\n#\n# Note:\n# - Labels under each user or + group can include information about the resources they are applied to. \n# Such as the example with \"vm-template\" + containing an array of vm-template IDs.\n# - The default labels tree structure is merged together with the user/group + defined tree, \n# with respect to the user/group tree.\n\ngroup: {}\n\nuser: {}\n" + "/etc/one/fireedge/sunstone/remotes-config.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + UtilsModule: + name: UtilsModule + entry: __HOST__/fireedge/modules/UtilsModule/remoteEntry.js + ConstantsModule: + name: ConstantsModule + entry: __HOST__/fireedge/modules/ConstantsModule/remoteEntry.js + ContainersModule: + name: ContainersModule + entry: __HOST__/fireedge/modules/ContainersModule/remoteEntry.js + ResourcesModule: + name: ResourcesModule + entry: __HOST__/fireedge/modules/ResourcesModule/remoteEntry.js + ComponentsModule: + name: ComponentsModule + entry: __HOST__/fireedge/modules/ComponentsModule/remoteEntry.js + FeaturesModule: + name: FeaturesModule + entry: __HOST__/fireedge/modules/FeaturesModule/remoteEntry.js + ProvidersModule: + name: ProvidersModule + entry: __HOST__/fireedge/modules/ProvidersModule/remoteEntry.js + StylesModule: + name: StylesModule + entry: __HOST__/fireedge/modules/StylesModule/remoteEntry.js + ModelsModule: + name: ModelsModule + entry: __HOST__/fireedge/modules/ModelsModule/remoteEntry.js + HooksModule: + name: HooksModule + entry: __HOST__/fireedge/modules/HooksModule/remoteEntry.js + "/etc/one/fireedge/sunstone/tab-manifest.yaml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + - title: Instances + icon: GridAdd + routes: + - title: VMs + path: /vm + sidebar: true + icon: ModernTv + Component: VirtualMachines + - title: Create VM + path: /vm/create + Component: CreateVm + - title: Virtual Routers + path: /vrouter + sidebar: true + icon: Shuffle + Component: VirtualRouters + - title: Instantiate Virtual Router + path: /vrouter/instantiate + Component: InstantiateVrTemplate + - title: Virtual Routers + path: /vrouter/:id + Component: VirtualRouterDetail + - title: Services + path: /service + sidebar: true + icon: Packages + Component: Services + - title: Instantiate Service Template + path: /service/instantiate/ + Component: InstantiateServiceTemplate + - title: Service + path: /service/:id + Component: ServiceDetail + - title: Templates + icon: ViewStructureDown + routes: + - title: VM Templates + path: /vm-template + sidebar: true + icon: EmptyPage + Component: VmTemplates + - title: Instantiate VM Template + path: /vm-template/instantiate + Component: InstantiateVmTemplate + - title: Create VM Template + path: /vm-template/create + Component: CreateVmTemplate + - title: Update VM Template + path: /vm-template/update + Component: CreateVmTemplate + - title: VM Template + path: /vm-template/:id + Component: VmTemplateDetail + - title: Instantiate Service Template + path: /service-template/instantiate/ + Component: InstantiateServiceTemplate + - title: Service Templates + path: /service-template + sidebar: true + icon: MultiplePagesEmpty + Component: ServiceTemplates + - title: Create Service Template + path: /service-template/create + Component: CreateServiceTemplate + - title: Service Template + path: /service-template/:id + Component: ServiceTemplateDetail + - title: Instantiate VR Template + path: /vrouter-template/instantiate/ + Component: InstantiateVrTemplate + - title: Virtual Routers + path: /vrouter-template + sidebar: true + icon: Shuffle + Component: VrTemplates + - title: Create VR Template + path: /vrouter-template/create + Component: CreateVrTemplate + - title: Update VR Template + path: /vrouter-template/update + Component: CreateVrTemplate + - title: VR Template + path: /vrouter-template/:id + Component: VrTemplateDetail + - title: Create VM group + path: /vm-group/create + Component: CreateVmGroup + - title: VM Groups + path: /vm-group + icon: Folder + sidebar: true + Component: VmGroups + - title: Storage + icon: DatabaseStats + routes: + - title: Datastores + path: /datastore + sidebar: true + icon: Db + Component: Datastores + - title: Create Datastore + path: /datastore/create + Component: CreateDatastore + - title: Update Datastore + path: /datastore/update + Component: CreateDatastore + - title: Datastore + path: /datastore/:id + Component: DatastoreDetail + - title: Images + path: /image + sidebar: true + icon: BoxIso + Component: Images + - title: Create Image + path: /image/create + Component: CreateImage + - title: Files + path: /file + sidebar: true + icon: Archive + Component: Files + - title: Create File + path: /file/create + Component: CreateFile + - title: Backups + path: /backup + sidebar: true + icon: RefreshDouble + Component: Backups + - title: Backup + path: /backup/:id + Component: BackupDetail + - title: Marketplaces + path: /marketplace + sidebar: true + icon: SimpleCart + Component: Marketplaces + - title: Create Marketplace + path: /marketplace/create + Component: CreateMarketplace + - title: Marketplace + path: /marketplace/:id + Component: MarketplaceDetail + - title: Apps + path: /marketplace-app + sidebar: true + icon: CloudDownload + Component: MarketplaceApps + - title: Create Marketplace App + path: /marketplace-app/create + Component: CreateMarketplaceApp + - title: App + path: /marketplace-app/:id + Component: MarketplaceAppDetail + - title: Create BackupJob + path: /backupjobs/create + Component: CreateBackupJob + - title: BackupJobs + path: /backupjobs + sidebar: true + icon: Clock + Component: BackupJobs + - title: BackupJob + path: /backupjobs/:id + Component: BackupJobDetail + - title: Networks + icon: Network + routes: + - title: Virtual networks + path: /virtual-network + sidebar: true + icon: NetworkAlt + Component: VirtualNetworks + - title: Instantiate Network Template + path: /network-template/instantiate + Component: InstantiateVnTemplate + - title: Create Virtual Network + path: /virtual-network/create + Component: CreateVirtualNetwork + - title: Update Virtual Network + path: /virtual-network/update + Component: CreateVirtualNetwork + - title: Virtual networks + path: /virtual-network/:id + Component: VirtualNetworkDetail + - title: Network Templates + path: /network-template + sidebar: true + icon: KeyframesCouple + Component: VnTemplates + - title: Create Virtual Network Template + path: /network-template/create + Component: CreateVnTemplate + - title: Security groups + path: /security-group + sidebar: true + icon: HistoricShield + Component: SecurityGroups + - title: Create Security Group + path: /security-group/create + Component: CreateSecurityGroup + - title: Infrastructure + icon: Cloud + routes: + - title: Drivers + path: /driver + sidebar: false + icon: DataTransferUp + Component: Drivers + - title: Providers + path: /provider + sidebar: true + icon: SettingsProfiles + Component: Providers + - title: Create Provider + path: /provider/create + Component: CreateProvider + - title: Clusters + path: /cluster + sidebar: true + icon: Server + Component: Clusters + - title: Create Cluster + path: /cluster/create + Component: CreateCluster + - title: Create Cluster + path: /cluster/create_cloud + Component: CreateClusterCloud + - title: Cluster Logs + path: /cluster/create_cloud_logs/:id + Component: CreateClusterCloudLogs + - title: Cluster + path: /cluster/:id + Component: ClusterDetail + - title: Hosts + path: /host + sidebar: true + icon: HardDrive + Component: Hosts + - title: Create Host + path: /host/create + Component: CreateHost + - title: Host + path: /host/:id + Component: HostDetail + - title: Zones + path: /zone + sidebar: true + icon: MinusPinAlt + Component: Zones + - title: System + icon: Tools + routes: + - title: Create User + path: /user/create + Component: CreateUser + - title: Users + path: /user + sidebar: true + icon: User + Component: Users + - title: User + path: /user/:id + Component: UserDetail + - title: Create Group + path: /group/create + Component: CreateGroup + - title: Groups + path: /group + sidebar: true + icon: Group + Component: Groups + - title: Group + path: /group/:id + Component: GroupDetail + - title: Create VDC + path: /virtual-data-center/create + Component: CreateVDC + - title: VDCs + path: /virtual-data-center + sidebar: true + icon: List + Component: VDCs + - title: VDC + path: /virtual-data-center/:id + Component: VDCDetail + - title: Create ACL + path: /acl/create + Component: CreateACL + - title: ACLs + path: /acl + sidebar: true + icon: KeyAlt + Component: ACLs + - title: Support + path: /support + sidebar: true + icon: HeadsetHelp + Component: Support + - title: Create Ticket + path: /support/create + Component: CreateTicket + - title: Guacamole + path: /guacamole/:id/:type + sidebar: false + Component: Guacamole + "/etc/one/monitord.conf": + class: Augeas::ONE + owner: root + group: oneadmin + mode: '0640' + content: | + #******************************************************************************* + # Monitord Configuration file + #******************************************************************************* + + #******************************************************************************* + # Daemon configuration attributes + #------------------------------------------------------------------------------- + # MANAGER_TIMER: Timer in seconds, monitord evaluates host timeouts. + # MONITORING_INTERVAL_HOST has to be greater than this value. + # + # MONITORING_INTERVAL_HOST: Monitord will wait this time (in seconds) without + # receiving any beacon before restarting the probes + # + # HOST_MONITORING_EXPIRATION_TIME: Time, in seconds, to expire monitoring + # information. Use 0 to disable HOST monitoring + # recording. + # + # VM_MONITORING_EXPIRATION_TIME: Time, in seconds, to expire monitoring + # information. Use 0 to disable VM monitoring recording. + # + # DB: Database configuration attributes. Monitord will use the DB configuration + # in oned.conf. The following attributes can be tuned: + # - CONNECTIONS: Number of DB connections. The DB needs to be configure to + # support oned + monitord connections. + # + # LOG: Configuration for the logging system + # - system: defines the logging system: + # file to log in the monitor.log file + # syslog to use the syslog facilities + # - debug_level: + # 0 = ERROR + # 1 = WARNING + # 2 = INFO + # 3 = DEBUG Includes general scheduling information (default) + # 4 = DDEBUG Includes time taken for each step + # 5 = DDDEBUG Includes detailed information about the monitor systems + # and messages received. + #******************************************************************************* + + #MANAGER_TIMER = 15 + #MONITORING_INTERVAL_HOST = 180 + #HOST_MONITORING_EXPIRATION_TIME = 43200 + #VM_MONITORING_EXPIRATION_TIME = 43200 + + DB = [ + CONNECTIONS = 15 + ] + + LOG = [ + system = "FILE", + debug_level = 3 + ] + + #******************************************************************************* + # Network + #******************************************************************************* + # Reads messages from monitor agent + # + # addresss : network address to bind the UDP listener to. + # monitor_address: agents will send updates to this monitor address + # if "auto" is used, agents will detect the address + # from the ssh connection frontend -> host ($SSH_CLIENT), + # "auto" is not usable for HA setup + # + # port : listening port + # threads : number of processing threads + # pubkey : Absolute path to public key (agents). Empty for no encryption. + # prikey : Absolute path to private key (monitord). Empty for no encryption. + #******************************************************************************* + NETWORK = [ + ADDRESS = "::", + MONITOR_ADDRESS = "auto", + PORT = 4124, + THREADS = 8, + PUBKEY = "", + PRIKEY = "" + ] + + #******************************************************************************* + # Probes Configuration + #******************************************************************************* + # PROBES_PERIOD: Time in seconds to execute each probe category + # beacon_host: heartbeat for the host + # system_host: host static/configuration information + # monitor_host: host variable information + # state_vm: VM status (ie. running, error, stopped...) + # exec_vm: Retrieve VM command execution result (using QEMU-GA) + # monitor_vm: VM resource usage metrics + # sync_vm_state: When monitor probes have been stopped more than sync_vm_state + # seconds, send a complete VM report. + #******************************************************************************* + PROBES_PERIOD = [ + BEACON_HOST = 30, + SYSTEM_HOST = 600, + MONITOR_HOST = 120, + STATE_VM = 5, + EXEC_VM = 5, + MONITOR_VM = 30, + SYNC_STATE_VM = 180 + ] + + #******************************************************************************* + # Information Driver Configuration + #******************************************************************************* + # You can add more monitor drivers with different configurations but make + # sure it has different names. + # + # name : name for this monitor driver + # + # executable: path of the monitor driver executable, can be an + # absolute path or relative to $ONE_LOCATION/lib/mads (or + # /usr/lib/one/mads/ if OpenNebula was installed in /) + # + # arguments : for the driver executable, usually a probe configuration file, + # can be an absolute path or relative to $ONE_LOCATION/etc (or + # /etc/one/ if OpenNebula was installed in /) + # + # threads : How many threads should be used to process messages + # 0 process the message in main loop + #******************************************************************************* + + #------------------------------------------------------------------------------- + # KVM/QEMU Information Driver Manager Configuration + # -r number of retries when monitoring a host + # -t number of threads, i.e. number of hosts monitored at the same time + # -w Timeout in seconds to execute external commands (default unlimited) + #------------------------------------------------------------------------------- + IM_MAD = [ + NAME = "kvm", + SUNSTONE_NAME = "KVM", + EXECUTABLE = "one_im_ssh", + ARGUMENTS = "-r 3 -t 15 -w 90 kvm", + THREADS = 0 + ] + + + IM_MAD = [ + NAME = "qemu", + SUNSTONE_NAME = "QEMU", + EXECUTABLE = "one_im_ssh", + ARGUMENTS = "-r 3 -t 15 -w 90 qemu", + THREADS = 0 + ] + + #------------------------------------------------------------------------------- + # LXC Information Driver Manager Configuration + # -r number of retries when monitoring a host + # -t number of threads, i.e. number of hosts monitored at the same time + # -w Timeout in seconds to execute external commands (default unlimited) + #------------------------------------------------------------------------------- + IM_MAD = [ + NAME = "lxc", + SUNSTONE_NAME = "LXC", + EXECUTABLE = "one_im_ssh", + ARGUMENTS = "-r 3 -t 15 -w 90 lxc", + THREADS = 0 + ] + #------------------------------------------------------------------------------- + + #------------------------------------------------------------------------------- + # Dummy Information Driver Manager Configuration + #------------------------------------------------------------------------------- + # IM_MAD = [ + # NAME = "dummy", + # SUNSTONE_NAME = "Dummy", + # EXECUTABLE = "one_im_sh", + # ARGUMENTS = "-r 3 -t 15 -w 90 dummy", + # THREADS = 0 + # ] + #------------------------------------------------------------------------------- + "/etc/one/hm/hmrc": + class: Augeas::Shell + owner: root + group: oneadmin + mode: '0640' + content: "# hmrc configuration\n" + "/etc/one/oned.conf": + class: Augeas::ONE + owner: root + group: oneadmin + mode: '0640' + content: | + #******************************************************************************* + # OpenNebula Configuration file + #******************************************************************************* + + #******************************************************************************* + # Daemon configuration attributes + #------------------------------------------------------------------------------- + # MANAGER_TIMER: Time in seconds the core uses to evaluate periodical functions. + # MONITORING_INTERVALS cannot have a smaller value than MANAGER_TIMER. + # + # MONITORING_INTERVAL_MARKET: Time in seconds between market monitorization. + # MONITORING_INTERVAL_DATASTORE: Time in seconds between image monitorization. + # monitoring information. -1 to disable DB updating and 0 to write every update + # + # DS_MONITOR_VM_DISK: Number of MONITORING_INTERVAL_DATASTORE intervals to monitor + # VM disks. 0 to disable. Only applies to fs and fs_lvm datastores + # + # SCRIPTS_REMOTE_DIR: Remote path to store the monitoring and VM management + # scripts. + # + # DB: Configuration attributes for the database backend + # backend : can be sqlite or mysql (default is sqlite) + # server : (mysql) host name or an IP address for the MySQL server + # port : (mysql) port for the connection to the server. + # If set to 0, the default port is used. + # user : (mysql) user's MySQL login ID + # passwd : (mysql) the password for user + # db_name : (mysql) the database name + # connections: (mysql) number of max. connections to mysql server + # compare_binary: (mysql) compare strings using BINARY clause + # makes name searches case sensitive. + # encoding: charset to use for the db connections + # timeout : (sqlite) timeout in ms for acquiring lock to DB, + # should be at least 100 ms + # errors_limit : number of consecutive DB errors to stop oned node in HA + # default 25, use -1 to disable this feature + # + # VNC_PORTS: VNC port pool for automatic VNC port assignment, if possible the + # port will be set to ``START`` + ``VMID`` + # start : first port to assign + # reserved: comma separated list of ports or ranges. Two numbers separated by + # a colon indicate a range. + # + # MAX_BACKUPS: Maximum number of concurrent backup operations in the cloud. + # The scheduler will not start pending scheduled backups beyond this limit + # + # MAX_BACKUPS_HOST: Maximum number of active backup operations per host. + # + # LOG: Configuration for the logging system + # system: defines the logging system: + # file to log in the oned.log file + # syslog to use the syslog facilities + # std to use the default log stream (stderr) to use with systemd + # debug_level: + # 0 = ERROR + # 1 = WARNING + # 2 = INFO + # 3 = DEBUG + # 4 = DDEBUG + # 5 = DDDEBUG + # use_vms_location: defines if store VM logs in VMS_LOCATION + # + #******************************************************************************* + + LOG = [ + SYSTEM = "file", + DEBUG_LEVEL = 3, + USE_VMS_LOCATION = "NO" + ] + + #MANAGER_TIMER = 15 + + MONITORING_INTERVAL_DATASTORE = 300 + MONITORING_INTERVAL_MARKET = 600 + + #DS_MONITOR_VM_DISK = 10 + + SCRIPTS_REMOTE_DIR=/var/tmp/one + + DB = [ BACKEND = "sqlite", + TIMEOUT = 2500 ] + + # Sample configuration for MySQL + # DB = [ BACKEND = "mysql", + # SERVER = "localhost", + # PORT = 0, + # USER = "oneadmin", + # PASSWD = "oneadmin", + # DB_NAME = "opennebula", + # CONNECTIONS = 25, + # COMPARE_BINARY = "no" ] + + VNC_PORTS = [ + START = 5900, + RESERVED = "32768:65536" + # RESERVED = "6800, 6801, 6810:6820, 9869" + ] + + MAX_BACKUPS = 5 + MAX_BACKUPS_HOST = 2 + + #******************************************************************************* + # Server network and connection + #------------------------------------------------------------------------------- + # PORT, GRPC_PORT: Port where oned will listen for xmlrpc/grpc calls. + # + # LISTEN_ADDRESS, GRPC_LISTEN_ADDRESS: Host IP to listen on for xmlrpc/grpc calls + # + # HOSTNAME: This Hostname is used by OpenNebula daemon to connect to the + # frontend during drivers operations. If this variable is not set, OpenNebula + # will auto detect it. It can be in FQDN format, hostname or an IP + + PORT = 2633 + + LISTEN_ADDRESS = "0.0.0.0" + + GRPC_PORT = 2634 + + GRPC_LISTEN_ADDRESS = "0.0.0.0" + + # HOSTNAME = "one-hostname" + + #******************************************************************************* + # API configuration attributes + #------------------------------------------------------------------------------- + # VM_SUBMIT_ON_HOLD: Forces VMs to be created on hold state instead of pending. + # Values: YES or NO. + # API_LIST_ORDER: Sets order (by ID) of elements in list API calls. + # Values: ASC (ascending order) or DESC (descending order) + #******************************************************************************* + # + #API_LIST_ORDER = "DESC" + #VM_SUBMIT_ON_HOLD = "NO" + + #******************************************************************************* + # Federation & HA configuration attributes + #------------------------------------------------------------------------------- + # Control the federation capabilities of oned. Operation in a federated setup + # requires a special DB configuration. + # + # FEDERATION: Federation attributes + # MODE: Operation mode of this oned. + # STANDALONE no federated.This is the default operational mode + # MASTER this oned is the master zone of the federation + # SLAVE this oned is a slave zone + # ZONE_ID: The zone ID as returned by onezone command + # SERVER_ID: ID identifying this server in the zone as returned by the + # onezone server-add command. This ID controls the HA configuration of + # OpenNebula: + # -1 (default) OpenNebula will operate in "solo" mode no HA + # Operate in HA (leader election and state replication) + # MASTER_ONED: The xml-rpc endpoint of the master oned, e.g. + # http://master.one.org:2633/RPC2 + # MASTER_ONED_GRPC: The GRPC endpoint of the master oned, e.g. + # master.one.org:2634 + # + # RAFT: Algorithm attributes + # LIMIT_PURGE: Number of logs that will be deleted on each purge. + # LOG_RETENTION: Number of DB log records kept, it determines the + # synchronization window across servers and extra storage space needed. + # LOG_PURGE_TIMEOUT: How often applied records are purged according the log + # retention value. (in seconds) + # ELECTION_TIMEOUT_MS: Timeout to start a election process if no heartbeat + # or log is received from leader. + # BROADCAST_TIMEOUT_MS: How often heartbeats are sent to followers. + # XMLRPC_TIMEOUT_MS: To timeout raft related API calls. To set an infinite + # timeout set this value to 0. + # + # RAFT_LEADER_HOOK: Executed when a server transits from follower->leader + # The purpose of this hook is to configure the Virtual IP. + # COMMAND: raft/vip.sh is a fully working script, this should not be changed + # ARGUMENTS: and must be replaced. For example + # ARGUMENTS = "leader ens1 10.0.0.2/24" + # + # RAFT_FOLLOWER_HOOK: Executed when a server transits from leader->follower + # The purpose of this hook is to configure the Virtual IP. + # COMMAND: raft/vip.sh is a fully working script, this should not be changed + # ARGUMENTS: and must be replaced. For example + # ARGUMENTS = "follower ens1 10.0.0.2/24" + # + # NOTE: Timeout tunning depends on the latency of the servers (network and load) + # as well as the max downtime tolerated by the system. Timeouts needs to be + # greater than 10ms + # + #******************************************************************************* + + FEDERATION = [ + MODE = "STANDALONE", + ZONE_ID = 0, + SERVER_ID = -1, + MASTER_ONED = "", + MASTER_ONED_GRPC = "" + ] + + RAFT = [ + LIMIT_PURGE = 100000, + LOG_RETENTION = 250000, + LOG_PURGE_TIMEOUT = 60, + ELECTION_TIMEOUT_MS = 5000, + BROADCAST_TIMEOUT_MS = 500, + XMLRPC_TIMEOUT_MS = 1000 + ] + + # Executed when a server transits from follower->leader + # RAFT_LEADER_HOOK = [ + # COMMAND = "raft/vip.sh", + # ARGUMENTS = "leader interface ip_cidr [interface ip_cidr ...]" + # ] + + # Executed when a server transits from leader->follower + # RAFT_FOLLOWER_HOOK = [ + # COMMAND = "raft/vip.sh", + # ARGUMENTS = "follower interface ip_cidr [interface ip_cidr ...]" + # ] + + #******************************************************************************* + # Default showback cost + #------------------------------------------------------------------------------- + # The following attributes define the default cost for Virtual Machines that + # don't have a CPU, MEMORY or DISK cost. This is used by the oneshowback + # calculate method. + #******************************************************************************* + + DEFAULT_COST = [ + CPU_COST = 0, + MEMORY_COST = 0, + DISK_COST = 0 + ] + + # Should showback calculation count only running VMs. + # If 'no' showback will inlcude also reserved CPU and MEMORY, e.g. VM states + # POWEROFF or SUSPENDED + SHOWBACK_ONLY_RUNNING = "no" + + #******************************************************************************* + # XML-RPC server configuration + #------------------------------------------------------------------------------- + # These are configuration parameters for oned's xmlrpc-c server + # + # MAX_CONN: Maximum number of simultaneous TCP connections the server + # will maintain + # + # MAX_CONN_BACKLOG: Maximum number of TCP connections the operating system + # will accept on the server's behalf without the server accepting them from + # the operating system + # + # KEEPALIVE_TIMEOUT: Maximum time in seconds that the server allows a + # connection to be open between RPCs + # + # KEEPALIVE_MAX_CONN: Maximum number of RPCs that the server will execute on + # a single connection + # + # TIMEOUT: Maximum time in seconds the server will wait for the client to + # do anything while processing an RPC. This timeout will be also used when + # proxy calls to the master in a federation. + # + # RPC_LOG: Create a separated log file for xml-rpc requests, in + # "/var/log/one/one_xmlrpc.log". + # + # MESSAGE_SIZE: Buffer size in bytes for XML-RPC responses. + # + # LOG_CALL_FORMAT: Format string to log XML-RPC calls. Interpreted strings: + # %i -- request id + # %m -- method name + # %u -- user id + # %U -- user name + # %l[number] -- param list and number of characters (optional) to print + # each parameter, default is 20. Example: %l300 + # %p -- user password + # %g -- group id + # %G -- group name + # %a -- auth token + # %A -- client IP address (only IPv4 supported) + # %P -- client TCP port + # %% -- % + # + # LOG_RESULT_LENGTH: Max number of characters to show for API results + # in the log (default is 20). + #******************************************************************************* + + #MAX_CONN = 15 + #MAX_CONN_BACKLOG = 15 + #KEEPALIVE_TIMEOUT = 15 + #KEEPALIVE_MAX_CONN = 30 + #TIMEOUT = 15 + #RPC_LOG = NO + #MESSAGE_SIZE = 1073741824 + #LOG_CALL_FORMAT = "Req:%i UID:%u IP:%A %m invoked %l20" + #LOG_RESULT_LENGTH = 20 + + #******************************************************************************* + # Physical Networks configuration + #******************************************************************************* + # NETWORK_SIZE: Here you can define the default size for the virtual networks + # + # MAC_PREFIX: Default MAC prefix to be used to create the auto-generated MAC + # addresses is defined here (this can be overwritten by the Virtual Network + # template) + # + # MAC_GLOBAL_SPACE: Enable the global MAC address space generation mode. + # MAC addresses are generated from a global pool preventing collisions across + # VNETs. This does not apply to IP networks and limits the number of VNETs to + # 2^20, with a max of 2^20 leases per VNET. + # Values: YES or NO. + # + # VLAN_IDS: VLAN ID pool for the automatic VLAN_ID assignment. This pool + # is for 802.1Q networks (Open vSwitch and 802.1Q drivers). The driver + # will try first to allocate VLAN_IDS[START] + VNET_ID + # start: First VLAN_ID to use + # reserved: Comma separated list of VLAN_IDs or ranges. Two numbers + # separated by a colon indicate a range. + # + # VXLAN_IDS: Automatic VXLAN Network ID (VNI) assignment. This is used + # for vxlan networks. + # start: First VNI to use + # NOTE: reserved is not supported by this pool + # + # PCI_PASSTHROUGH_BUS: Default bus to attach passthrough devices in the guest, + # in hex notation. It may be overwritten in the PCI device using the BUS + # attribute. + #******************************************************************************* + + NETWORK_SIZE = 254 + + MAC_PREFIX = "02:00" + + MAC_GLOBAL_SPACE = "NO" + + VLAN_IDS = [ + START = "2", + RESERVED = "0, 1, 4095" + ] + + VXLAN_IDS = [ + START = "2" + ] + + #PCI_PASSTHROUGH_BUS = "0x01" + + #******************************************************************************* + # Context + #******************************************************************************* + # CONTEXT_RESTRICTED_DIRS: List of space separated directories, + # which can’t be used in CONTEXT/FILES attribute. + # + # CONTEXT_SAFE_DIRS: List of space separated directories, which allows + # use of subdirectories from CONTEXT_RESTRICTED_DIRS. + # + # CONTEXT_ALLOW_ETH_UPDATES: Allow manual updates of CONTEXT->ETH* values. + # It may lead to inconsistencies between VM NIC settings and CONTEXT attributes, + # but it might be useful for some use cases. Default value = NO. + #******************************************************************************* + + CONTEXT_RESTRICTED_DIRS = "/etc" + + CONTEXT_SAFE_DIRS = "" + + CONTEXT_ALLOW_ETH_UPDATES = "NO" + + #******************************************************************************* + # DataStore Configuration + #******************************************************************************* + # DATASTORE_LOCATION: Path for Datastores. It IS the same for all the hosts + # and front-end. It defaults to /var/lib/one/datastores (in self-contained mode + # defaults to $ONE_LOCATION/var/datastores). Each datastore has its own + # directory (called BASE_PATH) in the form: $DATASTORE_LOCATION/ + # You can symlink this directory to any other path if needed. BASE_PATH is + # generated from this attribute each time oned is started. + # + # DATASTORE_CAPACITY_CHECK: Checks that there is enough capacity before + # creating a new image. Defaults to Yes + # + # DEFAULT_IMAGE_TYPE: This can take values + # OS Image file holding an operating system + # CDROM Image file holding a CDROM + # DATABLOCK Image file holding a datablock, created as an empty block + # + # DEFAULT_DEVICE_PREFIX: This can be set to + # hd IDE prefix + # sd SCSI + # vd KVM virtual disk + # + # DEFAULT_IMAGE_PERSISTENT: Control the default value for the PERSISTENT + # attribute on image creation (oneimage clone, onevm disk-saveas). If blank + # images will inherit the persistent attribute from the base image. + # + # DEFAULT_IMAGE_PERSISTENT_NEW: Control the default value for the PERSISTENT + # attribute on image creation (oneimage create). By default images are no + # persistent if not set. + # + # VM_SNAPSHOT_FACTOR: How much disk size is counted as disk snapshot + # size. Default value 0 (0%) (Use 0.1 means 10%) + #******************************************************************************* + + #DATASTORE_LOCATION = /var/lib/one/datastores + + DATASTORE_CAPACITY_CHECK = "yes" + + DEFAULT_DEVICE_PREFIX = "sd" + + DEFAULT_IMAGE_TYPE = "OS" + #DEFAULT_IMAGE_PERSISTENT = "" + #DEFAULT_IMAGE_PERSISTENT_NEW = "" + + VM_SNAPSHOT_FACTOR = "0" + + #******************************************************************************* + # Monitor Daemon + #******************************************************************************* + # Monitor daemon, specific monitor drivers can be added in the monitord + # configuration file (monitord.conf) + # + # name : OpenNebula name for the daemon + # + # executable : path of the information driver executable, can be an + # absolute path or relative to $ONE_LOCATION/lib/mads (or + # /usr/lib/one/mads/ if OpenNebula was installed in /) + # + # arguments : for the monitor daemon + # -c : configuration file (monitord.conf by default) + # + # threads : number of threads used to process messages from monitor daemon + #******************************************************************************* + IM_MAD = [ + NAME = "monitord", + EXECUTABLE = "onemonitord", + ARGUMENTS = "-c monitord.conf", + THREADS = 8 ] + + #******************************************************************************* + # Virtualization Driver Configuration + #******************************************************************************* + # You can add more virtualization managers with different configurations but + # make sure it has different names. + # + # name : name of the virtual machine manager driver + # + # executable: path of the virtualization driver executable, can be an + # absolute path or relative to $ONE_LOCATION/lib/mads (or + # /usr/lib/one/mads/ if OpenNebula was installed in /) + # + # arguments : for the driver executable + # + # default : default values and configuration parameters for the driver, can + # be an absolute path or relative to $ONE_LOCATION/etc (or + # /etc/one/ if OpenNebula was installed in /) + # + # type : driver type, supported drivers: xen, kvm, xml + # + # keep_snapshots: do not remove snapshots on power on/off cycles and live + # migrations if the hypervisor supports that. + # + # live_resize: [yes|no] Hypervisor supports hotplug VCPU and memory + # + # support_shareable: [yes|no] Hypervisor supports shareable disks + #******************************************************************************* + + #------------------------------------------------------------------------------- + # KVM Virtualization Driver Manager Configuration + # -r number of retries when monitoring a host + # -t number of threads, i.e. number of hosts monitored at the same time + # -l actions executed locally, command can be + # overridden for each action. + # Valid actions: deploy, shutdown, cancel, save, restore, migrate, poll + # An example: "-l migrate=migrate_local,save" + # -d comma separated list of actions which forward SSH agent + # from frontend to remote host (default migrate) + # -p more than one action per host in parallel, needs support from hypervisor + # -s to execute remote commands, bash by default + # -w Timeout in seconds to execute external commands (default unlimited) + # + # Note: You can use type = "qemu" to use qemu emulated guests, e.g. if your + # CPU does not have virtualization extensions or use nested Qemu-KVM hosts + #------------------------------------------------------------------------------- + VM_MAD = [ + NAME = "kvm", + SUNSTONE_NAME = "KVM", + EXECUTABLE = "one_vmm_exec", + ARGUMENTS = "-t 15 -r 0 kvm -p", + DEFAULT = "vmm_exec/vmm_exec_kvm.conf", + TYPE = "kvm", + KEEP_SNAPSHOTS = "yes", + LIVE_RESIZE = "yes", + SUPPORT_SHAREABLE = "yes" + ] + + # This variant should be used for nested virtualization + VM_MAD = [ + NAME = "qemu", + SUNSTONE_NAME = "QEMU", + EXECUTABLE = "one_vmm_exec", + ARGUMENTS = "-t 15 -r 0 kvm", + DEFAULT = "vmm_exec/vmm_exec_kvm.conf", + TYPE = "qemu", + KEEP_SNAPSHOTS = "yes", + LIVE_RESIZE = "yes", + SUPPORT_SHAREABLE = "yes" + ] + #------------------------------------------------------------------------------- + + #------------------------------------------------------------------------------- + # LXC Virtualization Driver Manager Configuration + # -r number of retries when monitoring a host + # -t number of threads, i.e. number of hosts monitored at the same time + # -l actions executed locally, command can be + # overridden for each action. + # Valid actions: deploy, shutdown, cancel, save, restore, migrate, poll + # An example: "-l migrate=migrate_local,save" + # -d comma separated list of actions which forward SSH agent + # from frontend to remote host (default migrate) + # -p more than one action per host in parallel, needs support from hypervisor + # -s to execute remote commands, bash by default + # -w Timeout in seconds to execute external commands (default unlimited) + # + #------------------------------------------------------------------------------- + VM_MAD = [ + NAME = "lxc", + SUNSTONE_NAME = "LXC", + EXECUTABLE = "one_vmm_exec", + ARGUMENTS = "-t 15 -r 0 lxc", + # DEFAULT = "vmm_exec/vmm_exec_lxc.conf", + TYPE = "xml", + KEEP_SNAPSHOTS = "no" + ] + #------------------------------------------------------------------------------- + + #------------------------------------------------------------------------------- + # Dummy Virtualization Driver Configuration + #------------------------------------------------------------------------------- + #VM_MAD = [ NAME="dummy", SUNSTONE_NAME="Testing", EXECUTABLE="one_vmm_dummy", + # TYPE="xml" ] + #------------------------------------------------------------------------------- + + #******************************************************************************* + # Transfer Manager Driver Configuration + #******************************************************************************* + # You can add more transfer managers with different configurations but make + # sure it has different names. + # name : name for this transfer driver + # + # executable: path of the transfer driver executable, can be an + # absolute path or relative to $ONE_LOCATION/lib/mads (or + # /usr/lib/one/mads/ if OpenNebula was installed in /) + # arguments : + # -t: number of threads, i.e. number of transfers made at the same time + # -d: list of transfer drivers separated by commas, if not defined all the + # drivers available will be enabled + # -w: Timeout in seconds to execute external commands (default unlimited) + #******************************************************************************* + + TM_MAD = [ + EXECUTABLE = "one_tm", + ARGUMENTS = "-t 15 -d dummy,lvm,shared,fs_lvm,fs_lvm_ssh,qcow2,ssh,local,ceph,dev,iscsi_libvirt,netapp,purefa" + ] + + #******************************************************************************* + # Datastore Driver Configuration + #******************************************************************************* + # Drivers to manage the datastores, specialized for the storage backend + # executable: path of the transfer driver executable, can be an + # absolute path or relative to $ONE_LOCATION/lib/mads (or + # /usr/lib/one/mads/ if OpenNebula was installed in /) + # + # arguments : for the driver executable + # -t number of threads, i.e. number of repo operations at the same time + # -d datastore mads separated by commas + # -s system datastore tm drivers, used to monitor shared system ds. + # -w Timeout in seconds to execute external commands (default unlimited) + #******************************************************************************* + + DATASTORE_MAD = [ + EXECUTABLE = "one_datastore", + ARGUMENTS = "-t 15 -d dummy,fs,lvm,ceph,dev,iscsi_libvirt,restic,rsync,netapp,purefa,virtiofs,interactive -s dummy,lvm,shared,ssh,local,ceph,fs_lvm,fs_lvm_ssh,qcow2,netapp,purefa" + ] + + #******************************************************************************* + # Marketplace Driver Configuration + #******************************************************************************* + # Drivers to manage different marketplaces, specialized for the storage backend + # executable: path of the transfer driver executable, can be an + # absolute path or relative to $ONE_LOCATION/lib/mads (or + # /usr/lib/one/mads/ if OpenNebula was installed in /) + # + # arguments : for the driver executable + # -t number of threads, i.e. number of repo operations at the same time + # -m marketplace mads separated by commas + # --proxy proxy address if required to access the internet + # -w Timeout in seconds to execute external commands (default unlimited) + #******************************************************************************* + + MARKET_MAD = [ + EXECUTABLE = "one_market", + ARGUMENTS = "-t 15 -m http,s3,one,linuxcontainers" + ] + + #******************************************************************************* + # IPAM Driver Configuration + #******************************************************************************* + # Drivers to manage different IPAMs + # executable: path of the IPAM driver executable, can be an + # absolute path or relative to $ONE_LOCATION/lib/mads (or + # /usr/lib/one/mads/ if OpenNebula was installed in /) + # + # arguments : for the driver executable + # -t number of threads, i.e. number of operations at the same time + # -i IPAM mads separated by commas + #******************************************************************************* + + IPAM_MAD = [ + EXECUTABLE = "one_ipam", + ARGUMENTS = "-t 1 -i dummy,aws,equinix,vultr,scaleway" + ] + + #******************************************************************************* + # Scheduler + #******************************************************************************* + # SCHED_MAD: Scheduler driver to manage different schedulers + # * executable: path of the scheduler driver executable, can be an + # absolute path or relative to /usr/lib/one/mads/ + # + # * arguments: for the scheduler driver + # -t number of threads, i.e. number of operations at the same time + # -p scheduler for initial VM placement: + # * rank, OpenNebula default match-making algorithm + # * one_drs, optimize VM placement and load-balance clusters + # -o scheduler for optimizing cluster VM allocation: + # * one_drs, optimize VM placement and load-balance clusters + # + # Scheduler Window + # OpenNebula will create an schedule window when a request for VM placement + # is received (i.e. new pending or resched VM). A placement request will be sent + # to the scheduler when: + # * The window has been open for more than SCHED_MAX_WND_TIME + # * The number of VMs waiting for placement is greater than SCHED_MAX_WND_LENGTH + # + # The window will be closed when the place request is made. + # + # SCHED_RETRY_TIME. For VMs that cannot be placed (i.e. no resources available) + # a new placement request will be made every RETRY_TIME. + # + # MAX_ACTIONS_PER_HOST: Max number of scheduled deploy/migrate actions per host + # + # MAX_ACTIONS_PER_CLUSTER: Max number of scheduled deploy/migrate actions per cluster + # + # ACTION_TIMEOUT: Time in sec to mark pending actions as TIMEOUT failure + # + # LIVE_RESCHEDS: Perform live (1) or cold migrations (0) when rescheduling a VM + # + # COLD_MIGRATE_MODE: Type of cold migration, see documentation for one.vm.migrate + # 0 = save - default + # 1 = poweroff + # 2 = poweroff-hard + # + # DRS_INTERVAL: Time in seconds between DRS actions. -1 to disable DRS + # + #******************************************************************************* + SCHED_MAD = [ + EXECUTABLE = "one_sched", + ARGUMENTS = "-t 15 -p rank -o one_drs" + ] + + SCHED_MAX_WND_TIME = 10 + SCHED_MAX_WND_LENGTH = 7 + + SCHED_RETRY_TIME = 60 + + MAX_ACTIONS_PER_HOST = 1 + MAX_ACTIONS_PER_CLUSTER = 30 + + ACTION_TIMEOUT = 300 + + LIVE_RESCHEDS = 0 + COLD_MIGRATE_MODE = 0 + + DRS_INTERVAL = 600 + + #******************************************************************************* + # Hook Manager Configuration + #******************************************************************************* + # The Driver (HM_MAD) + # ----------------------------------------------- + # + # Used to execute the Hooks: + # executable: path of the hook driver executable, can be an + # absolute path or relative to $ONE_LOCATION/lib/mads (or + # /usr/lib/one/mads/ if OpenNebula was installed in /) + # + # arguments : for the driver executable, can be an absolute path or relative + # to $ONE_LOCATION/etc (or /etc/one/ if OpenNebula was installed + # in /) + # + + HM_MAD = [ + EXECUTABLE = "one_hm", + ARGUMENTS = "-p 2101 -l 2102 -b 127.0.0.1"] + + #******************************************************************************* + # Hook Log Configuration + #******************************************************************************* + # + # LOG_RETENTION: Number of execution records saved in the database for each hook. + # + + HOOK_LOG_CONF = [ + LOG_RETENTION = 20 ] + + #******************************************************************************* + # Auth Manager Configuration + #******************************************************************************* + # AUTH_MAD: The Driver that will be used to authenticate (authn) and + # authorize (authz) OpenNebula requests. If defined OpenNebula will use the + # built-in auth policies. + # + # executable: path of the auth driver executable, can be an + # absolute path or relative to $ONE_LOCATION/lib/mads (or + # /usr/lib/one/mads/ if OpenNebula was installed in /) + # + # authn : list of authentication modules separated by commas, if not + # defined all the modules available will be enabled + # authz : list of authentication modules separated by commas + # + # DEFAULT_AUTH: The default authentication driver to use when OpenNebula does + # not know the user and needs to authenticate it externally. If you want to + # use "default" (not recommended, but supported for backwards compatibility + # reasons) make sure you create a symlink pointing to the actual authentication + # driver in /var/lib/one/remotes/auth, and add "default" to the 'auth' + # parameter in the 'AUTH_MAD' section. + # + # SESSION_EXPIRATION_TIME: Time in seconds to keep an authenticated token as + # valid. During this time, the driver is not used. Use 0 to disable session + # caching + # + # ENABLE_OTHER_PERMISSIONS: Whether or not users can set the permissions for + # 'other', so publishing or sharing resources with others. Users in the oneadmin + # group will still be able to change these permissions. Values: YES or NO. + # + # DEFAULT_UMASK: Similar to Unix umask, sets the default resources permissions. + # Its format must be 3 octal digits. For example a umask of 137 will set + # the new object's permissions to 640 "um- u-- ---" + #******************************************************************************* + + AUTH_MAD = [ + EXECUTABLE = "one_auth_mad", + AUTHN = "ssh,x509,ldap,server_cipher,server_x509,saml" + ] + + #DEFAULT_AUTH = "default" + + SESSION_EXPIRATION_TIME = 900 + + #ENABLE_OTHER_PERMISSIONS = "YES" + + DEFAULT_UMASK = 177 + + #******************************************************************************* + # OneGate + # ONEGATE_ENDPOINT: The URL for the onegate server (the Gate to OpenNebula for + # VMs). The onegate server is started using a separate command. The endpoint + # MUST be consistent with the values in onegate-server.conf + #******************************************************************************* + + #ONEGATE_ENDPOINT = "http://169.254.16.9:5030" + + #******************************************************************************* + # VM Operations Permissions + #****************************************************************************** + # The following parameters define the operations associated to the ADMIN, + # MANAGE and USE permissions. Note that some VM operations require additional + # permissions on other objects. Also some operations refers to a class of + # actions: + # - disk-snapshot, includes create, delete and revert actions + # - disk-attach, includes attach and detach actions + # - nic-attach, includes attach, detach and nic update actions + # - pci-attach, includes attach, detach operations of PCI devices + # - snapshot, includes create, delete and revert actions + # - resched, includes resched and unresched actions + # - migrate, includes migrate, live-migrate, poweroff-migrate actions + # - sched-action, includes sched action add, delete and update actions + # - sg-attach, includes attach and detach actions + # - exec, includes execution, retry and cancel command actions + #****************************************************************************** + + VM_ADMIN_OPERATIONS = "migrate, delete, recover, retry, deploy, resched, + backup, restore" + + VM_MANAGE_OPERATIONS = "undeploy, hold, release, stop, suspend, resume, reboot, + poweroff, disk-attach, nic-attach, disk-snapshot, terminate, disk-resize, + snapshot, updateconf, rename, resize, update, disk-saveas, sched-action, + sg-attach, pci-attach, exec, vmgroup" + + VM_USE_OPERATIONS = "" + + #******************************************************************************* + # Default Permissions for VDC ACL rules + #******************************************************************************* + # Default ACL rules created when resource is added to a VDC. The following + # attributes configures the permissions granted to the VDC group for each + # resource types: + # DEFAULT_VDC_HOST_ACL: permissions granted on hosts added to a VDC. + # DEFAULT_VDC_NET_ACL: permissions granted on vnets added to a VDC. + # DEFAULT_VDC_DATASTORE_ACL: permissions granted on datastores to a VDC. + # + # DEFAULT_VDC_CLUSTER_HOST_ACL: permissions granted to cluster hosts when a + # cluster is added to the VDC. + # DEFAULT_VDC_CLUSTER_NET_ACL: permissions granted to cluster vnets when a + # cluster is added to the VDC. + # DEFAULT_VDC_CLUSTER_DATASTORE_ACL: permissions granted to cluster datastores + # when a cluster is added to the VDC. + # + # When defining the permissions you can use "" or "-" to not add any rule to + # that specific resource. Also you can combine several permissions with "+", + # for exampl "MANAGE+USE". Valid permissions are USE, MANAGE or ADMIN. + # + # Example: + # DEFAULT_VDC_HOST_ACL = "MANAGE" + # Adds @ HOST/# MANAGE # when a host is added to the VDC, + # eg. onevdc addhost + # + # DEFAULT_VDC_VNET_ACL = "USE" + # Adds @ NET/# USE # when a vnet is added to the VDC, + # eg. onevdc addvnet + # + # DEFAULT_VDC_DATASTORE_ACL = "USE" + # Adds @ DATASTORE/# USE # when a vnet is added to the VDC, + # eg. onevdc adddatastore + # + # DEFAULT_VDC_CLUSTER_HOST_ACL = "MANAGE" + # DEFAULT_VDC_CLUSTER_NET_ACL = "USE" + # DEFAULT_VDC_CLUSTER_DATASTORE_ACL = "USE" + # Adds: + # @ HOST/% MANAGE # + # @ DATASTORE+NET/% USE # + # when a cluster is added to the VDC, e.g. onevdc addcluster + #******************************************************************************* + + DEFAULT_VDC_HOST_ACL = "MANAGE" + DEFAULT_VDC_VNET_ACL = "USE" + DEFAULT_VDC_DATASTORE_ACL = "USE" + + DEFAULT_VDC_CLUSTER_HOST_ACL = "MANAGE" + DEFAULT_VDC_CLUSTER_NET_ACL = "USE" + DEFAULT_VDC_CLUSTER_DATASTORE_ACL = "USE" + + #******************************************************************************* + # Generic VM Quotas Configuration + #******************************************************************************* + # The following attributes may be limited by quotas. Use any numeric attribute + # from Template or User Template + #******************************************************************************* + + #QUOTA_VM_ATTRIBUTE = "VCPU" + + #******************************************************************************* + # Restricted Attributes Configuration + #******************************************************************************* + # The following attributes are restricted to users outside the oneadmin group + #******************************************************************************* + + VM_RESTRICTED_ATTR = "CONTEXT/FILES" + VM_RESTRICTED_ATTR = "NIC/MAC" + VM_RESTRICTED_ATTR = "NIC/VLAN_ID" + VM_RESTRICTED_ATTR = "NIC/BRIDGE" + VM_RESTRICTED_ATTR = "NIC/FILTER" + VM_RESTRICTED_ATTR = "NIC/FILTER_IP_SPOOFING" + VM_RESTRICTED_ATTR = "NIC/FILTER_MAC_SPOOFING" + VM_RESTRICTED_ATTR = "NIC/INBOUND_AVG_BW" + VM_RESTRICTED_ATTR = "NIC/INBOUND_PEAK_BW" + VM_RESTRICTED_ATTR = "NIC/INBOUND_PEAK_KB" + VM_RESTRICTED_ATTR = "NIC/OUTBOUND_AVG_BW" + VM_RESTRICTED_ATTR = "NIC/OUTBOUND_PEAK_BW" + VM_RESTRICTED_ATTR = "NIC/OUTBOUND_PEAK_KB" + VM_RESTRICTED_ATTR = "NIC/OPENNEBULA_MANAGED" + VM_RESTRICTED_ATTR = "NIC/EXTERNAL" + VM_RESTRICTED_ATTR = "NIC/VLAN_TAGGED_ID" + VM_RESTRICTED_ATTR = "NIC_ALIAS/MAC" + VM_RESTRICTED_ATTR = "NIC_ALIAS/VLAN_ID" + VM_RESTRICTED_ATTR = "NIC_ALIAS/BRIDGE" + VM_RESTRICTED_ATTR = "NIC_ALIAS/INBOUND_AVG_BW" + VM_RESTRICTED_ATTR = "NIC_ALIAS/INBOUND_PEAK_BW" + VM_RESTRICTED_ATTR = "NIC_ALIAS/INBOUND_PEAK_KB" + VM_RESTRICTED_ATTR = "NIC_ALIAS/OUTBOUND_AVG_BW" + VM_RESTRICTED_ATTR = "NIC_ALIAS/OUTBOUND_PEAK_BW" + VM_RESTRICTED_ATTR = "NIC_ALIAS/OUTBOUND_PEAK_KB" + VM_RESTRICTED_ATTR = "NIC_ALIAS/OPENNEBULA_MANAGED" + VM_RESTRICTED_ATTR = "NIC_DEFAULT/MAC" + VM_RESTRICTED_ATTR = "NIC_DEFAULT/VLAN_ID" + VM_RESTRICTED_ATTR = "NIC_DEFAULT/BRIDGE" + VM_RESTRICTED_ATTR = "NIC_DEFAULT/FILTER" + VM_RESTRICTED_ATTR = "NIC_DEFAULT/EXTERNAL" + VM_RESTRICTED_ATTR = "DISK/TOTAL_BYTES_SEC" + VM_RESTRICTED_ATTR = "DISK/TOTAL_BYTES_SEC_MAX_LENGTH" + VM_RESTRICTED_ATTR = "DISK/TOTAL_BYTES_SEC_MAX" + VM_RESTRICTED_ATTR = "DISK/READ_BYTES_SEC" + VM_RESTRICTED_ATTR = "DISK/READ_BYTES_SEC_MAX_LENGTH" + VM_RESTRICTED_ATTR = "DISK/READ_BYTES_SEC_MAX" + VM_RESTRICTED_ATTR = "DISK/WRITE_BYTES_SEC" + VM_RESTRICTED_ATTR = "DISK/WRITE_BYTES_SEC_MAX_LENGTH" + VM_RESTRICTED_ATTR = "DISK/WRITE_BYTES_SEC_MAX" + VM_RESTRICTED_ATTR = "DISK/TOTAL_IOPS_SEC" + VM_RESTRICTED_ATTR = "DISK/TOTAL_IOPS_SEC_MAX_LENGTH" + VM_RESTRICTED_ATTR = "DISK/TOTAL_IOPS_SEC_MAX" + VM_RESTRICTED_ATTR = "DISK/READ_IOPS_SEC" + VM_RESTRICTED_ATTR = "DISK/READ_IOPS_SEC_MAX_LENGTH" + VM_RESTRICTED_ATTR = "DISK/READ_IOPS_SEC_MAX" + VM_RESTRICTED_ATTR = "DISK/WRITE_IOPS_SEC" + VM_RESTRICTED_ATTR = "DISK/WRITE_IOPS_SEC_MAX_LENGTH" + VM_RESTRICTED_ATTR = "DISK/WRITE_IOPS_SEC_MAX" + VM_RESTRICTED_ATTR = "DISK/SIZE_IOPS_SEC" + VM_RESTRICTED_ATTR = "DISK/OPENNEBULA_MANAGED" + #VM_RESTRICTED_ATTR = "DISK/SIZE" + VM_RESTRICTED_ATTR = "DISK/ORIGINAL_SIZE" + VM_RESTRICTED_ATTR = "DISK/SIZE_PREV" + VM_RESTRICTED_ATTR = "DEPLOY_ID" + VM_RESTRICTED_ATTR = "CPU_COST" + VM_RESTRICTED_ATTR = "MEMORY_COST" + VM_RESTRICTED_ATTR = "DISK_COST" + VM_RESTRICTED_ATTR = "PCI" + VM_RESTRICTED_ATTR = "EMULATOR" + VM_RESTRICTED_ATTR = "RAW/DATA" + VM_RESTRICTED_ATTR = "USER_PRIORITY" + VM_RESTRICTED_ATTR = "USER_INPUTS/CPU" + VM_RESTRICTED_ATTR = "USER_INPUTS/MEMORY" + VM_RESTRICTED_ATTR = "USER_INPUTS/VCPU" + VM_RESTRICTED_ATTR = "TOPOLOGY/PIN_POLICY" + VM_RESTRICTED_ATTR = "TOPOLOGY/HUGEPAGE_SIZE" + + #VM_RESTRICTED_ATTR = "RANK" + #VM_RESTRICTED_ATTR = "SCHED_RANK" + #VM_RESTRICTED_ATTR = "REQUIREMENTS" + #VM_RESTRICTED_ATTR = "SCHED_REQUIREMENTS" + + IMAGE_RESTRICTED_ATTR = "SOURCE" + + #******************************************************************************* + # The following restricted attributes only apply to VNets that are a reservation. + # Normal VNets do not have restricted attributes. + #******************************************************************************* + + VNET_RESTRICTED_ATTR = "VN_MAD" + VNET_RESTRICTED_ATTR = "PHYDEV" + VNET_RESTRICTED_ATTR = "QINQ_TYPE" + VNET_RESTRICTED_ATTR = "BRIDGE" + VNET_RESTRICTED_ATTR = "CONF" + VNET_RESTRICTED_ATTR = "BRIDGE_CONF" + VNET_RESTRICTED_ATTR = "OVS_BRIDGE_CONF" + VNET_RESTRICTED_ATTR = "IP_LINK_CONF" + VNET_RESTRICTED_ATTR = "FILTER" + VNET_RESTRICTED_ATTR = "FILTER_IP_SPOOFING" + VNET_RESTRICTED_ATTR = "FILTER_MAC_SPOOFING" + + VNET_RESTRICTED_ATTR = "AR/VN_MAD" + VNET_RESTRICTED_ATTR = "AR/PHYDEV" + VNET_RESTRICTED_ATTR = "AR/BRIDGE" + VNET_RESTRICTED_ATTR = "AR/FILTER" + VNET_RESTRICTED_ATTR = "AR/FILTER_IP_SPOOFING" + VNET_RESTRICTED_ATTR = "AR/FILTER_MAC_SPOOFING" + + VNET_RESTRICTED_ATTR = "CLUSTER_IDS" + + VNET_RESTRICTED_ATTR = "EXTERNAL" + + USER_RESTRICTED_ATTR = "VM_USE_OPERATIONS" + USER_RESTRICTED_ATTR = "VM_MANAGE_OPERATIONS" + USER_RESTRICTED_ATTR = "VM_ADMIN_OPERATIONS" + + GROUP_RESTRICTED_ATTR = "VM_USE_OPERATIONS" + GROUP_RESTRICTED_ATTR = "VM_MANAGE_OPERATIONS" + GROUP_RESTRICTED_ATTR = "VM_ADMIN_OPERATIONS" + + #******************************************************************************* + # Encrypted Attributes Configuration + #******************************************************************************* + # The following attributes are encrypted. OpenNebula objects that support + # encrypted attributes are: + # - CLUSTER_ENCRYPTED_ATTR + # - VM_ENCRYPTED_ATTR + # - HOST_ENCRYPTED_ATTR + # - VNET_ENCRYPTED_ATTR + # - USER_ENCRYPTED_ATTR + # - DATASTORE_ENCRYPTED_ATTR + # - IMAGE_ENCRYPTED_ATTR + # - DOCUMENT_ENCRYPTED_ATTR + #******************************************************************************* + + VM_ENCRYPTED_ATTR = "CONTEXT/PASSWORD" + VM_ENCRYPTED_ATTR = "ONEAPP_ONEKS_CLUSTER_SPEC" + + # Encrypted attrs for Edge Cluster documents + DOCUMENT_ENCRYPTED_ATTR = "PROVISION_BODY" + + USER_ENCRYPTED_ATTR = "SSH_PRIVATE_KEY" + USER_ENCRYPTED_ATTR = "SSH_PASSPHRASE" + + # CLUSTER_ENCRYPTED_ATTR = "" + # VNET_ENCRYPTED_ATTR = "" + + DATASTORE_ENCRYPTED_ATTR = "RESTIC_PASSWORD" + DATASTORE_ENCRYPTED_ATTR = "NETAPP_PASS" + DATASTORE_ENCRYPTED_ATTR = "PUREFA_API_TOKEN" + + #******************************************************************************* + # Inherited Attributes Configuration + #******************************************************************************* + # The following attributes will be copied from the resource template to the + # instantiated VMs. More than one attribute can be defined. + # + # INHERIT_IMAGE_ATTR: Attribute to be copied from the Image template + # to each VM/DISK. + # + # INHERIT_DATASTORE_ATTR: Attribute to be copied from the Datastore template + # to each VM/DISK. + # + # INHERIT_VNET_ATTR: Attribute to be copied from the Network template + # to each VM/NIC. + #******************************************************************************* + + #INHERIT_IMAGE_ATTR = "EXAMPLE" + #INHERIT_IMAGE_ATTR = "SECOND_EXAMPLE" + #INHERIT_DATASTORE_ATTR = "COLOR" + #INHERIT_VNET_ATTR = "BANDWIDTH_THROTTLING" + + INHERIT_DATASTORE_ATTR = "CEPH_HOST" + INHERIT_DATASTORE_ATTR = "CEPH_SECRET" + INHERIT_DATASTORE_ATTR = "CEPH_KEY" + INHERIT_DATASTORE_ATTR = "CEPH_USER" + INHERIT_DATASTORE_ATTR = "CEPH_CONF" + INHERIT_DATASTORE_ATTR = "CEPH_TRASH" + INHERIT_DATASTORE_ATTR = "POOL_NAME" + + INHERIT_DATASTORE_ATTR = "ISCSI_USER" + INHERIT_DATASTORE_ATTR = "ISCSI_USAGE" + INHERIT_DATASTORE_ATTR = "ISCSI_HOST" + + INHERIT_IMAGE_ATTR = "ISCSI_USER" + INHERIT_IMAGE_ATTR = "ISCSI_USAGE" + INHERIT_IMAGE_ATTR = "ISCSI_HOST" + INHERIT_IMAGE_ATTR = "ISCSI_IQN" + INHERIT_IMAGE_ATTR = "LUKS_SECRET" + + INHERIT_DATASTORE_ATTR = "GLUSTER_HOST" + INHERIT_DATASTORE_ATTR = "GLUSTER_VOLUME" + + INHERIT_DATASTORE_ATTR = "DISK_TYPE" + INHERIT_DATASTORE_ATTR = "ALLOW_ORPHANS" + INHERIT_DATASTORE_ATTR = "QCOW2_STANDALONE" + INHERIT_DATASTORE_ATTR = "SPARSE" + INHERIT_DATASTORE_ATTR = "LVM_THIN_ENABLE" + INHERIT_DATASTORE_ATTR = "PERSISTENT_SNAPSHOTS" + + INHERIT_IMAGE_ATTR = "DISK_TYPE" + INHERIT_IMAGE_ATTR = "SERIAL" + INHERIT_IMAGE_ATTR = "MOUNT_POINT" + INHERIT_IMAGE_ATTR = "MOUNT_TAG" + + INHERIT_VNET_ATTR = "VLAN_TAGGED_ID" + INHERIT_VNET_ATTR = "FILTER" + INHERIT_VNET_ATTR = "FILTER_IP_SPOOFING" + INHERIT_VNET_ATTR = "FILTER_MAC_SPOOFING" + INHERIT_VNET_ATTR = "MTU" + INHERIT_VNET_ATTR = "METRIC" + INHERIT_VNET_ATTR = "IP6_METRIC" + INHERIT_VNET_ATTR = "METHOD" + INHERIT_VNET_ATTR = "IP6_METHOD" + INHERIT_VNET_ATTR = "INBOUND_AVG_BW" + INHERIT_VNET_ATTR = "INBOUND_PEAK_BW" + INHERIT_VNET_ATTR = "INBOUND_PEAK_KB" + INHERIT_VNET_ATTR = "OUTBOUND_AVG_BW" + INHERIT_VNET_ATTR = "OUTBOUND_PEAK_BW" + INHERIT_VNET_ATTR = "OUTBOUND_PEAK_KB" + INHERIT_VNET_ATTR = "CONF" + INHERIT_VNET_ATTR = "BRIDGE_CONF" + INHERIT_VNET_ATTR = "OVS_BRIDGE_CONF" + INHERIT_VNET_ATTR = "IP_LINK_CONF" + INHERIT_VNET_ATTR = "EXTERNAL_IP" + INHERIT_VNET_ATTR = "AWS_ALLOCATION_ID" + INHERIT_VNET_ATTR = "VULTR_IP_ID" + INHERIT_VNET_ATTR = "GATEWAY" + INHERIT_VNET_ATTR = "DNS" + INHERIT_VNET_ATTR = "VXLAN_MODE" + INHERIT_VNET_ATTR = "VXLAN_TEP" + INHERIT_VNET_ATTR = "VXLAN_MC" + INHERIT_VNET_ATTR = "CVLANS" + INHERIT_VNET_ATTR = "QINQ_TYPE" + INHERIT_VNET_ATTR = "TRUST" + INHERIT_VNET_ATTR = "SPOOFCHK" + + #******************************************************************************* + # Transfer Manager Driver Behavior Configuration + #******************************************************************************* + # The configuration for each driver is defined in TM_MAD_CONF. These + # values are used when creating a new datastore and should not be modified + # since they define the datastore behavior. + # name : name of the transfer driver, listed in the -d option of the + # TM_MAD section + # ln_target : determines how the persistent images will be cloned when + # a new VM is instantiated. + # NONE: The image will be linked and no more storage capacity will be used + # SELF: The image will be cloned in the Images datastore + # SYSTEM: The image will be cloned in the System datastore + # clone_target : determines how the non persistent images will be + # cloned when a new VM is instantiated. + # NONE: The image will be linked and no more storage capacity will be used + # SELF: The image will be cloned in the Images datastore + # SYSTEM: The image will be cloned in the System datastore + # shared : determines if the storage holding the system datastore is shared + # among the different hosts or not. Valid values: "yes" or "no" + # ds_migrate : The driver allows migrations across datastores. Valid values: + # "yes" or "no". Note: THIS ONLY APPLIES TO SYSTEM DS. + # ds_live_migrate : The driver allows live migrations across datastores. Valid values: + # "yes" or "no". Note: THIS ONLY APPLIES TO SYSTEM DS. + # allow_orphans: Snapshots can live without parents. Suported values: + # YES: Children can be orphan (no parent snapshot) + # |- snap_1 + # |- snap_2 + # |- snap_3 + # NO: New snapshots are set active and child of the previous one + # |- snap_1 + # |- snap_2 + # |- snap_3 + # MIXED: Snapshots are children of last snapshot reverted to + # |- snap_1 (<--- revert) + # |- snap_3 + # |- snap_4 + # |- snap_2 + # FORMAT: Snapshots depend on the image format + # - raw: Orphans are allowed, acts as "YES" + # - qcow2: Orphans are not allowed, acts as "NO" + # LINEAR: No parent snapshot, in case of revert all younger snapshot are deleted + # |- snap_1 + # |- snap_2 (<--- revert, delete snap_3) + # |- snap_3 + # persistent_snapshots: Save snaphosts back to the corresponding Image. Valid values: + # "yes" (default) or "no". + #******************************************************************************* + + TM_MAD_CONF = [ + NAME = "dummy", LN_TARGET = "NONE", CLONE_TARGET = "SYSTEM", SHARED = "YES", + DS_MIGRATE = "YES", DS_LIVE_MIGRATE = "YES", DS_MIGRATE_SNAP = "YES" + ] + + TM_MAD_CONF = [ + NAME = "shared", LN_TARGET = "NONE", CLONE_TARGET = "SYSTEM", SHARED = "YES", + TM_MAD_SYSTEM = "ssh", LN_TARGET_SSH = "SYSTEM", CLONE_TARGET_SSH = "SYSTEM", + DISK_TYPE_SSH = "FILE", ALLOW_ORPHANS="FORMAT", DS_MIGRATE = "YES", + DS_LIVE_MIGRATE = "YES", DS_MIGRATE_SNAP = "YES" + ] + + TM_MAD_CONF = [ + NAME = "lvm", LN_TARGET = "NONE", CLONE_TARGET = "SELF", SHARED = "YES", + DRIVER = "raw", DISK_TYPE = "BLOCK", ALLOW_ORPHANS = "YES", DS_MIGRATE = "YES", + DS_LIVE_MIGRATE = "NO", DS_MIGRATE_SNAP = "NO" + ] + + TM_MAD_CONF = [ + NAME = "fs_lvm", LN_TARGET = "SYSTEM", CLONE_TARGET = "SYSTEM", SHARED="YES", + DRIVER = "raw", DISK_TYPE = "BLOCK", DS_MIGRATE = "YES", DS_LIVE_MIGRATE = "NO", + DS_MIGRATE_SNAP = "NO" + ] + + TM_MAD_CONF = [ + NAME = "fs_lvm_ssh", LN_TARGET = "SYSTEM", CLONE_TARGET = "SYSTEM", SHARED="YES", + DRIVER = "raw", DISK_TYPE = "BLOCK", PERSISTENT_SNAPSHOTS = "NO", ALLOW_ORPHANS = "YES", + DS_MIGRATE = "YES", DS_LIVE_MIGRATE = "YES", DS_MIGRATE_SNAP = "NO" + ] + + TM_MAD_CONF = [ + NAME = "qcow2", LN_TARGET = "NONE", CLONE_TARGET = "SYSTEM", SHARED = "YES", + TM_MAD_SYSTEM = "ssh", LN_TARGET_SSH = "SYSTEM", + CLONE_TARGET_SSH = "SYSTEM", DISK_TYPE_SSH = "FILE", DRIVER = "qcow2", + ALLOW_ORPHANS="FORMAT", DS_MIGRATE = "YES", DS_LIVE_MIGRATE = "YES", + DS_MIGRATE_SNAP = "YES" + ] + + TM_MAD_CONF = [ + NAME = "ssh", LN_TARGET = "SYSTEM", CLONE_TARGET = "SYSTEM", SHARED = "NO", + ALLOW_ORPHANS="YES", DS_MIGRATE = "YES", DS_LIVE_MIGRATE = "YES", + DS_MIGRATE_SNAP = "YES" + ] + + TM_MAD_CONF = [ + NAME = "local", LN_TARGET = "SYSTEM", CLONE_TARGET = "SYSTEM", SHARED = "NO", + ALLOW_ORPHANS="FORMAT", DS_MIGRATE = "YES", DS_LIVE_MIGRATE = "YES", + DS_MIGRATE_SNAP = "YES" + ] + + TM_MAD_CONF = [ + NAME = "ceph", LN_TARGET = "NONE", CLONE_TARGET = "SELF", SHARED = "YES", + DRIVER = "raw", ALLOW_ORPHANS="mixed", TM_MAD_SYSTEM = "ssh", + LN_TARGET_SSH = "SYSTEM", CLONE_TARGET_SSH = "SYSTEM", + DISK_TYPE_SSH = "FILE", DS_MIGRATE = "NO", DS_LIVE_MIGRATE = "NO", DS_MIGRATE_SNAP = "NO" + ] + + TM_MAD_CONF = [ + NAME = "iscsi_libvirt", LN_TARGET = "NONE", CLONE_TARGET = "SELF", SHARED = "YES", + DRIVER = "raw", DS_MIGRATE = "NO", DS_LIVE_MIGRATE = "NO", DS_MIGRATE_SNAP = "NO" + ] + + TM_MAD_CONF = [ + NAME = "dev", LN_TARGET = "NONE", CLONE_TARGET = "NONE", SHARED = "YES", + DRIVER = "raw", DS_MIGRATE = "NO", DS_LIVE_MIGRATE = "NO", DS_MIGRATE_SNAP = "NO" + ] + + TM_MAD_CONF = [ + NAME = "netapp", LN_TARGET = "NONE", CLONE_TARGET = "SELF", SHARED = "YES", + DRIVER = "raw", DISK_TYPE = "BLOCK", ALLOW_ORPHANS = "LINEAR", + DS_MIGRATE = "NO", DS_LIVE_MIGRATE = "NO", DS_MIGRATE_SNAP = "NO" + ] + + TM_MAD_CONF = [ + NAME = "purefa", LN_TARGET = "NONE", CLONE_TARGET = "SELF", SHARED = "YES", + DRIVER = "raw", DISK_TYPE = "BLOCK", ALLOW_ORPHANS = "YES", + DS_MIGRATE = "NO", DS_LIVE_MIGRATE = "NO", DS_MIGRATE_SNAP = "NO" + ] + + TM_MAD_CONF = [ + NAME = "virtiofs", LN_TARGET = "NONE", CLONE_TARGET = "NONE", SHARED = "YES", + DRIVER = "virtiofs", DISK_TYPE = "filesystem", + DS_MIGRATE = "NO", DS_LIVE_MIGRATE = "NO", DS_MIGRATE_SNAP = "NO" + ] + + #******************************************************************************* + # Datastore Manager Driver Behavior Configuration + #******************************************************************************* + # The configuration for each driver is defined in DS_MAD_CONF. These + # values are used when creating a new datastore and should not be modified + # since they define the datastore behavior. + # name : name of the transfer driver, listed in the -d option of the + # DS_MAD section + # required_attrs : comma separated list of required attributes in the DS + # template + # persistent_only: specifies whether the datastore can only manage persistent + # images + #******************************************************************************* + + DS_MAD_CONF = [ + NAME = "ceph", + REQUIRED_ATTRS = "DISK_TYPE,BRIDGE_LIST", + PERSISTENT_ONLY = "NO", + MARKETPLACE_ACTIONS = "export" + ] + + DS_MAD_CONF = [ + NAME = "dev", REQUIRED_ATTRS = "DISK_TYPE", PERSISTENT_ONLY = "YES" + ] + + DS_MAD_CONF = [ + NAME = "iscsi_libvirt", REQUIRED_ATTRS = "DISK_TYPE,ISCSI_HOST", + PERSISTENT_ONLY = "YES" + ] + + DS_MAD_CONF = [ + NAME = "dummy", REQUIRED_ATTRS = "", PERSISTENT_ONLY = "NO" + ] + + DS_MAD_CONF = [ + NAME = "fs", REQUIRED_ATTRS = "", PERSISTENT_ONLY = "NO", + MARKETPLACE_ACTIONS = "export" + ] + + DS_MAD_CONF = [ + NAME = "lvm", REQUIRED_ATTRS = "", + PERSISTENT_ONLY = "NO" + ] + + DS_MAD_CONF = [ + NAME = "restic", REQUIRED_ATTRS = "RESTIC_PASSWORD", PERSISTENT_ONLY = "YES" + ] + + DS_MAD_CONF = [ + NAME = "rsync", REQUIRED_ATTRS = "RSYNC_HOST,RSYNC_USER", PERSISTENT_ONLY = "YES" + ] + + DS_MAD_CONF = [ + NAME = "netapp", PERSISTENT_ONLY = "NO", + REQUIRED_ATTRS = "NETAPP_HOST,NETAPP_USER,NETAPP_PASS,NETAPP_AGGREGATES,NETAPP_SVM,NETAPP_IGROUP,NETAPP_TARGET" + ] + + DS_MAD_CONF = [ + NAME = "purefa", PERSISTENT_ONLY = "NO", + REQUIRED_ATTRS = "PUREFA_HOST,PUREFA_API_TOKEN,PUREFA_TARGET" + ] + + DS_MAD_CONF = [ + NAME = "virtiofs", REQUIRED_ATTRS = "", PERSISTENT_ONLY = "NO", DATASTORE_CAPACITY_CHECK = "NO" + ] + + DS_MAD_CONF = [ + NAME = "interactive", REQUIRED_ATTRS = "", PERSISTENT_ONLY = "NO", DATASTORE_CAPACITY_CHECK = "NO" + ] + + #******************************************************************************* + # MarketPlace Driver Behavior Configuration + #******************************************************************************* + # The configuration for each driver is defined in MARKET_MAD_CONF. These + # values are used when creating a new marketplaces and should not be modified + # since they define the marketplace behavior. + # name : name of the market driver + # required_attrs : comma separated list of required attributes in the Market + # template + # app_actions: List of actions allowed for a MarketPlaceApp + # - monitor The apps of the marketplace will be monitored + # - create, the app in the marketplace + # - delete, the app from the marketplace + # public: set to yes for external marketplaces. A public marketplace can be + # removed even if it has registered apps. + #******************************************************************************* + + MARKET_MAD_CONF = [ + NAME = "one", + SUNSTONE_NAME = "OpenNebula.org Marketplace", + REQUIRED_ATTRS = "", + APP_ACTIONS = "monitor", + PUBLIC = "yes" + ] + + MARKET_MAD_CONF = [ + NAME = "http", + SUNSTONE_NAME = "HTTP server", + REQUIRED_ATTRS = "BASE_URL,PUBLIC_DIR", + APP_ACTIONS = "create, delete, monitor" + ] + + MARKET_MAD_CONF = [ + NAME = "s3", + SUNSTONE_NAME = "Amazon S3", + REQUIRED_ATTRS = "ACCESS_KEY_ID,SECRET_ACCESS_KEY,REGION,BUCKET", + APP_ACTIONS = "create, delete, monitor" + ] + + MARKET_MAD_CONF = [ + NAME = "linuxcontainers", + SUNSTONE_NAME = "LinuxContainers.org", + REQUIRED_ATTRS = "", + APP_ACTIONS = "monitor", + PUBLIC = "yes" + ] + + #******************************************************************************* + # Authentication Driver Behavior Definition + #******************************************************************************* + # The configuration for each driver is defined in AUTH_MAD_CONF. These + # values must not be modified since they define the driver behavior. + # name : name of the auth driver + # + # password_change : allow the end users to change their own password. Oneadmin + # can still change other user's passwords + # + # driver_managed_groups : allow the driver to set the user's group even after + # user creation. In this case addgroup, delgroup and chgrp + # will be disabled, with the exception of chgrp to one of + # the groups in the list of secondary groups + # + # driver_managed_group_admin : when set to "NO" user needs to manage group + # admin membership manually; when "YES" group admin + # membership is managed by the auth driver + # (see ldap_auth.conf) + # + # max_token_time : limit the maximum token validity, in seconds. Use -1 for + # unlimited maximum, 0 to disable login tokens + #******************************************************************************* + + AUTH_MAD_CONF = [ + NAME = "core", + PASSWORD_CHANGE = "YES", + DRIVER_MANAGED_GROUPS = "NO", + DRIVER_MANAGED_GROUP_ADMIN = "NO", + MAX_TOKEN_TIME = "-1" + ] + + AUTH_MAD_CONF = [ + NAME = "public", + PASSWORD_CHANGE = "NO", + DRIVER_MANAGED_GROUPS = "NO", + DRIVER_MANAGED_GROUP_ADMIN = "NO", + MAX_TOKEN_TIME = "-1" + ] + + AUTH_MAD_CONF = [ + NAME = "ssh", + PASSWORD_CHANGE = "YES", + DRIVER_MANAGED_GROUPS = "NO", + DRIVER_MANAGED_GROUP_ADMIN = "NO", + MAX_TOKEN_TIME = "-1" + ] + + AUTH_MAD_CONF = [ + NAME = "x509", + PASSWORD_CHANGE = "NO", + DRIVER_MANAGED_GROUPS = "NO", + DRIVER_MANAGED_GROUP_ADMIN = "NO", + MAX_TOKEN_TIME = "-1" + ] + + AUTH_MAD_CONF = [ + NAME = "ldap", + PASSWORD_CHANGE = "YES", + PASSWORD_REQUIRED = "NO", + DRIVER_MANAGED_GROUPS = "YES", + DRIVER_MANAGED_GROUP_ADMIN = "YES", + MAX_TOKEN_TIME = "86400" + ] + + AUTH_MAD_CONF = [ + NAME = "saml", + PASSWORD_CHANGE = "YES", + PASSWORD_REQUIRED = "NO", + DRIVER_MANAGED_GROUPS = "YES", + DRIVER_MANAGED_GROUP_ADMIN = "YES", + MAX_TOKEN_TIME = "86400" + ] + + AUTH_MAD_CONF = [ + NAME = "server_cipher", + PASSWORD_CHANGE = "NO", + DRIVER_MANAGED_GROUPS = "NO", + DRIVER_MANAGED_GROUP_ADMIN = "NO", + MAX_TOKEN_TIME = "-1" + ] + + AUTH_MAD_CONF = [ + NAME = "server_x509", + PASSWORD_CHANGE = "NO", + DRIVER_MANAGED_GROUPS = "NO", + DRIVER_MANAGED_GROUP_ADMIN = "NO", + MAX_TOKEN_TIME = "-1" + ] + + #******************************************************************************* + # Virtual Network Driver Behavior Definition + #******************************************************************************* + # The configuration for each driver is defined in VN_MAD_CONF. These + # values must not be modified since they define the driver behavior. + # name : name of the auth driver + # BRIDGE_TYPE : define the technology used by the driver + #******************************************************************************* + + VN_MAD_CONF = [ + NAME = "dummy", + BRIDGE_TYPE = "linux" + ] + + VN_MAD_CONF = [ + NAME = "802.1Q", + BRIDGE_TYPE = "linux" + ] + + VN_MAD_CONF = [ + NAME = "fw", + BRIDGE_TYPE = "linux" + ] + + VN_MAD_CONF = [ + NAME = "ovswitch", + BRIDGE_TYPE = "openvswitch,openvswitch_dpdk" + ] + + VN_MAD_CONF = [ + NAME = "vxlan", + BRIDGE_TYPE = "linux" + ] + + VN_MAD_CONF = [ + NAME = "ovswitch_vxlan", + BRIDGE_TYPE = "openvswitch" + ] + + VN_MAD_CONF = [ + NAME = "bridge", + BRIDGE_TYPE = "linux" + ] + + VN_MAD_CONF = [ + NAME = "elastic", + BRIDGE_TYPE = "linux" + ] + + VN_MAD_CONF = [ + NAME = "nodeport", + BRIDGE_TYPE = "linux" + ] + "/etc/one/oneflow-server.conf": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + ################################################################################ + # Server Configuration + ################################################################################ + + # OpenNebula daemon contact information + # + :one_xmlrpc: http://localhost:2633/RPC2 + + # :subscriber_endpoint to subscribe for OpenNebula events must match those in + # oned.conf + :subscriber_endpoint: 'tcp://localhost:2101' + + # Time in seconds between each time scale rules are evaluated + # + :autoscaler_interval: 90 + + # Host and port where OneFlow server will run + :host: 127.0.0.1 + :port: 2474 + + # Force deletion of VMs on terminate signal + :force_deletion: false + + ################################################################################ + # Defaults + ################################################################################ + + # Default retries in case of aborting call due to authentication issue + :retries: 5 + + # Default cooldown period after a scale operation, in seconds + :default_cooldown: 300 + + # Default timeout in seconds to wait VMs to report different states + # This timeout is used when option report ready is true and for normal actions + :wait_timeout: 30 + + # Number of threads to make actions with flows + # Tune this depending of the load you will have + :concurrency: 10 + + # Default shutdown action. Values: 'terminate', 'terminate-hard' + :shutdown_action: 'terminate' + + # Default number of virtual machines (action_number) that will receive the + # given call in each interval defined by action_period, when an action + # is performed on a role. + :action_number: 1 + :action_period: 60 + + # Default name for the Virtual Machines and Virtual Networks created by oneflow. You can use any + # of the following placeholders: + # $SERVICE_ID + # $SERVICE_NAME + # $ROLE_NAME + # $VM_NUMBER (onely for VM names) + + :vm_name_template: '$ROLE_NAME_$VM_NUMBER_(service_$SERVICE_ID)' + #:vn_name_template: '$ROLE_NAME(service_$SERVICE_ID)' + + # Default page size when purging DONE services + :page_size: 10 + + ############################################################# + # Auth + ############################################################# + + # Authentication driver to communicate with OpenNebula core + # - cipher, for symmetric cipher encryption of tokens + # - x509, for x509 certificate encryption of tokens + :core_auth: cipher + + ################################################################################ + # Log + ################################################################################ + + # Log debug level + # 0 = ERROR, 1 = WARNING, 2 = INFO, 3 = DEBUG + # + # System + # - file: log to log file + # - syslog: log to syslog + :log: + :level: 2 + :system: 'file' + "/etc/one/onegate-server.conf": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + ################################################################################ + # Server Configuration + ################################################################################ + + # OpenNebula sever contact information + # + :one_xmlrpc: http://localhost:2633/RPC2 + + # Sinatra server configuration + :server: + :bind: 127.0.0.1 + :port: 5030 + + # SSL proxy URL that serves the API (set if is being used) + #:ssl_server: https://service.endpoint.fqdn:port/ + + ################################################################################ + # Log + ################################################################################ + + # Log debug level + # 0 = ERROR, 1 = WARNING, 2 = INFO, 3 = DEBUG + # + # System + # - file: log to log file + # - syslog: log to syslog + :log: + :level: 2 + :system: 'file' + + ################################################################################ + # Auth + ################################################################################ + + # Authentication driver for incomming requests + # onegate, based on token provided in the context + # + :auth: onegate + + # Authentication driver to communicate with OpenNebula core + # cipher, for symmetric cipher encryption of tokens + # x509, for x509 certificate encryption of tokens + # + :core_auth: cipher + + + ################################################################################ + # OneFlow Endpoint + ################################################################################ + + :oneflow_server: http://localhost:2474 + + + ################################################################################ + # Permissions + ################################################################################ + + :permissions: + :vm: + :show: true + :show_by_id: true + :update: true + :update_by_id: true + :action_by_id: true + :service: + :show: true + :change_cardinality: true + :vrouter: + :show: true + :vnet: + :show_by_id: true + + # Attrs that cannot be modified when updating a VM template + :restricted_attrs: + - SCHED_REQUIREMENTS + - SERVICE_ID + - ROLE_NAME + + # Attrs of the Virtual Network template that will be retrieved + # with onegate vnet | get /vnet/:id requests. + :vnet_template_attributes: + - NETWORK_ADDRESS + - NETWORK_MASK + - GATEWAY + - GATEWAY6 + - DNS + - GUEST_MTU + - METRIC + - IP6_METRIC + - SEARCH_DOMAIN + + # Actions that cannot be performed on a VM + :restricted_actions: + #- deploy + #- hold + #- livemigrate + #- migrate + #- resume + #- release + #- stop + #- suspend + #- saveas + #- snapshot_create + #- snapshot_revert + #- snapshot_delete + #- terminate + #- reboot + #- poweroff + #- chown + #- chmod + #- resize + #- attachdisk + #- detachdisk + #- attachnic + #- detachnic + #- rename + #- undeploy + #- resched + #- unresched + #- recover + "/etc/one/schedulers/rank.conf": + class: Augeas::ONE + owner: root + group: oneadmin + mode: '0640' + content: | + #******************************************************************************* + # OpenNebula Configuration file + #******************************************************************************* + + #******************************************************************************* + # Daemon configuration attributes + #-------------------------------------------------------------------------------< + # MAX_HOST: Maximum number of Virtual Machines dispatched to each host in + # each scheduling action + # DEFAULT_SCHED: Definition of the default scheduling algorithm + # - policy: + # 0 = Packing. Heuristic that minimizes the number of hosts in use by + # packing the VMs in the hosts to reduce VM fragmentation + # 1 = Striping. Heuristic that tries to maximize resources available for + # the VMs by spreading the VMs in the hosts + # 2 = Load-aware. Heuristic that tries to maximize resources available for + # the VMs by using those nodes with less load + # 3 = Custom. + # - rank: Custom arithmetic expression to rank suitable hosts based in + # their attributes + # 4 = Fixed. Hosts will be ranked according to the PRIORITY attribute found + # in the Host or Cluster template. + # + # DEFAULT_DS_SCHED: Definition of the default storage scheduling algorithm + # - policy: + # 0 = Packing. Tries to optimize storage usage by selecting the DS with + # less free space + # 1 = Striping. Tries to optimize I/O by distributing the VMs across + # datastores. + # 2 = Custom. + # - rank: Custom arithmetic expression to rank suitable datastores based + # on their attributes + # 3 = Fixed. Datastores will be ranked according to the PRIORITY attribute + # found in the Datastore template. + # + # DEFAULT_NIC_SCHED: Definition of the default virtual network scheduler + # - policy: + # 0 = Packing. Tries to pack address usage by selecting the VNET with + # less free leases + # 1 = Striping. Tries to distribute address usage across VNETs. + # 2 = Custom. + # - rank: Custom arithmetic expression to rank suitable datastores based + # on their attributes + # 3 = Fixed. Virtual Networks will be ranked according to the PRIORITY + # attribute found in the Virtual Network template. + # + # DIFFERENT_VNETS: When set (YES) the NICs of a VM will be forced to be in + # different Virtual Networks. + # + # LOG: Configuration for the logging system + # - system: defines the logging system: + # file to log in the sched.log file + # syslog to use the syslog facilities + # std to use the default log stream (stderr) to use with systemd + # - debug_level: + # 0 = ERROR + # 1 = WARNING + # 2 = INFO + # 3 = DEBUG Includes general scheduling information (default) + # 4 = DDEBUG Includes time taken for each step + # 5 = DDDEBUG Includes detailed information about the scheduling + # decision, such as VM requirements, Host ranking for + # each VM, etc. This will impact the performance + # + # MEMORY_SYSTEM_DS_SCALE: This factor scales the VM usage of the system DS with + # the memory size. This factor can be use to make the scheduler consider the + # overhead of checkpoint files: + # system_ds_usage = system_ds_usage + memory_system_ds_scale * memory + # + #******************************************************************************* + + MEMORY_SYSTEM_DS_SCALE = 0 + + + MAX_HOST = 1 + + DIFFERENT_VNETS = YES + + DEFAULT_SCHED = [ + POLICY = 1 + ] + + DEFAULT_DS_SCHED = [ + POLICY = 1 + ] + + DEFAULT_NIC_SCHED = [ + POLICY = 1 + ] + + #DEFAULT_SCHED = [ + # POLICY = 3, + # RANK = "- (RUNNING_VMS * 50 + FREE_CPU)" + #] + + LOG = [ + SYSTEM = "file", + DEBUG_LEVEL = 3 + ] + "/etc/one/schedulers/one_drs.conf": + class: Yaml::Strict + owner: root + group: oneadmin + mode: '0640' + content: "#*******************************************************************************\n# OpenNebula + Configuration file\n#*******************************************************************************\n\n#*******************************************************************************\n# + ILP Optimizer configuration attributes\n#-------------------------------------------------------------------------------\n# + \ DEFAULT_SCHED: Definition of the default scheduling algorithm\n# - solver: Specifies the ILP solver to be + used. Available options:\n# \"CBC\" -> CBC solver: https://coin-or.github.io/pulp/technical/solvers.html#pulp.apis.PULP_CBC_CMD\n# + \ \"GLPK\" -> GLPK solver: https://coin-or.github.io/pulp/technical/solvers.html#pulp.apis.GLPK_CMD\n# \"COINMP\"-> + COINMP_DLL solver: https://coin-or.github.io/pulp/technical/solvers.html#pulp.apis.COINMP_DLL\n# - solver_path: + Specifies the path to the solver binary. The \"$arch\"\n# placeholder is resolved at runtime to the host + architecture\n# (\"i64\" on x86_64, \"arm64\" on aarch64).\n#\n# PLACEMENT: The initial placement settings\n# + \ - POLICY:\n# - \"BALANCE\": Specifies that VMs should be distributed to ensure an even load across + hosts.\n# - \"PACK\": Indicates that VMs should be placed onto the minimum number of hosts.\n# - WEIGHTS:\n# + \ - CPU: Relative importance of the total CPU.\n# - MEMORY: Relative importance of total memory.\n#\n# + OPTIMIZATION: The optimization settings\n# - POLICY: \n# - \"BALANCE\": Specifies that VMs should be + distributed to ensure an even load across hosts.\n# - \"PACK\": Indicates that VMs should be placed onto + the minimum number of hosts.\n# - MIGRATION_THRESHOLD: Sets the maximum combined number of host and\n# datastore + migrations. Default is -1 that means no migration\n# threshold is configured and imposed.\n# - HOST_MIGRATION_THRESHOLD: + Sets the maximum number of VM\n# migrations allowed between hosts. Default is -1 that means no\n# host + migration threshold is configured and imposed.\n# - DS_MIGRATION_THRESHOLD: Sets the maximum number of VM migrations\n# + \ allowed between datastores. Default is 0 that means migrations\n# between datastores are not allowed. + Use -1 for unlimited\n# storage migrations.\n# - WEIGHTS:\n# - CPU_USAGE: Relative importance + of the CPU usage metric.\n# - CPU: Relative importance of the total CPU.\n# - MEMORY: Relative + importance of total memory.\n# - DISK: Relative importance of disk usage (read and written).\n# - + NET: Relative importanve of network usage (transmitted and received)\n#\n# PREDICTIVE: Integrates both current + and forecasted resource usage into scheduling decisions.\n# A value of 0.3 means that 30% of the optimization + is based on predicted resource usage,\n# with the remaining 70% derived from current resource usage.\n#\n# MEMORY_SYSTEM_DS_SCALE: + This factor scales the VM usage of the system DS with\n# the memory size. This factor can be use to make the + scheduler consider the\n# overhead of checkpoint files:\n# system_ds_usage = system_ds_usage + memory_system_ds_scale + * memory\n#\n# DIFFERENT_VNETS: When set (YES) the NICs of a VM will be forced to be in\n# different Virtual + Networks.\n#*******************************************************************************\n\nDEFAULT_SCHED:\n + \ SOLVER: \"CBC\"\n SOLVER_PATH: \"/usr/lib/one/python/pulp/solverdir/cbc/linux/$arch/cbc\"\n\nPLACE:\n POLICY: + \"BALANCE\"\n WEIGHTS:\n CPU: 1\n\nOPTIMIZE:\n POLICY: \"BALANCE\"\n MIGRATION_THRESHOLD: -1\n HOST_MIGRATION_THRESHOLD: + -1\n DS_MIGRATION_THRESHOLD: 0\n PRIORITIZE_STORAGE_MIGRATIONS: \"NO\"\n WEIGHTS:\n CPU_USAGE: 1\n\nPREDICTIVE: + 0\n\nMEMORY_SYSTEM_DS_SCALE: 0\n\nDIFFERENT_VNETS: YES" + "/etc/one/onehem-server.conf": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + ################################################################################ + # OpenNebula server contact information is obtained from + # - Environment: ONE_XMLRPC and ONE_AUTH + # - Filesystem: ~/.one/one_endpoint and ~/.one/one_auth + ################################################################################ + + ################################################################################ + # Log + ################################################################################ + # debug_level: Log debug level (0 = ERROR, 1 = WARNING, 2 = INFO, 3 = DEBUG) + :debug_level: 2 + + ################################################################################ + # Hook Execution Manager configuration + ################################################################################ + # :hook_base_path location of hook scripts when commands not given as an + # absolute path + # :remote_hook_base_path location of hook scripts when commands not given as an + # absolute path and REMOTE = yes is specified + :hook_base_path: '/var/lib/one/remotes/hooks' + :remote_hook_base_path: '/var/tmp/one/hooks' + + # :subscriber_endpoint to subscribe for OpenNebula events must match those in + # oned.conf + :subscriber_endpoint: 'tcp://localhost:2101' + + # :replier_endpoint to send to oned hook execution results (reply to events) must + # match those in oned.conf + :replier_endpoint: 'tcp://localhost:2102' + + # :concurrency number of hooks executed simultaneously + :concurrency: 10 + "/etc/one/tmrc": + class: Augeas::Shell + owner: root + group: oneadmin + mode: '0640' + content: | + #------------------------------------------------------------------------------- + # Global environment configuration file for TM MADS + # -------------------------------------------------------- + # + # This file is sourced before TM MAD is started. Also the variables + # declared here are "exported". + # + # This file MUST preserve SH syntax + #------------------------------------------------------------------------------- + + # Options sent to qemu-img for clone images + #QCOW2_OPTIONS="-o compat=0.10" + "/etc/one/guacd": + class: Augeas::Shell + owner: root + group: oneadmin + mode: '0640' + content: OPTS="-b 0.0.0.0" + "/etc/one/vmm_exec/vmm_exec_kvm.conf": + class: Augeas::ONE + owner: root + group: oneadmin + mode: '0640' + content: |+ + # ----------------------------------------------------------------------------- + # Default configuration attributes for the KVM driver + # ----------------------------------------------------------------------------- + # (all domains will use these values as defaults). These values can + # be overridden in each VM template, host or cluster. Valid atributes are: + # * EMULATOR + # * OS: + # - KERNEL + # - INITRD + # - ROOT + # - KERNEL_CMD + # - ARCH + # - MACHINE + # - SD_DISK_BUS + # - FIRMWARE + # - FIRMWARE_FORMAT + # - FIRMWARE_SECURE + # - BOOTLOADER + # * VCPU + # * VCPU_MAX + # * MEMORY_SLOTS: number of memory slots for hotplug memory + # * GRAPHICS: + # - TYPE + # - LISTEN + # - PASSWD + # - KEYMAP + # - RANDOM_PASSWD + # * VIDEO: + # - IOMMU + # - ATS + # - TYPE + # - VRAM + # - RESOLUTION + # * FEATURES: + # - ACPI + # - PAE + # - APIC + # - HYPERV + # - LOCALTIME + # - GUEST_AGENT, + # - IOTHREADS + # - VIRTIO_SCSI_QUEUES + # - VIRTIO_BLK_QUEUES + # * CPU_MODEL: + # - MODEL + # - FEATURES + # * DISK: + # - DRIVER + # - CACHE + # - IO + # - DISCARD + # - TOTAL_BYTES_SEC + # - TOTAL_BYTES_SEC_MAX + # - TOTAL_BYTES_SEC_MAX_LENGTH + # - TOTAL_IOPS_SEC + # - TOTAL_IOPS_SEC_MAX + # - TOTAL_IOPS_SEC_MAX_LENGTH + # - READ_BYTES_SEC + # - READ_BYTES_SEC_MAX + # - READ_BYTES_SEC_MAX_LENGTH + # - WRITE_BYTES_SEC + # - WRITE_BYTES_SEC_MAX + # - WRITE_BYTES_SEC_MAX_LENGTH + # - READ_IOPS_SEC + # - READ_IOPS_SEC_MAX + # - READ_IOPS_SEC_MAX_LENGTH + # - WRITE_IOPS_SEC + # - WRITE_IOPS_SEC_MAX + # - WRITE_IOPS_SEC_MAX_LENGTH + # - SIZE_IOPS_SEC + # - UID_MAP + # - GID_MAP + # * NIC: + # - FILTER + # - MODEL + # - VIRTIO_QUEUES + # * RAW: raw attribute value is appended to that on the VM template + # * HYPERV_OPTIONS: options used for FEATURES = [ HYPERV = yes ] + # * HYPERV_TIMERS: timers added when HYPERV is set to yes in FEATURES + # * SPICE_OPTIONS + # * MEMORY_TUNE_OFFSET: Offset in MiB to add to VM memory for memory encryption + # + # The following attributes can be overridden at Cluster and Host level, + # but not within individual VM configuration: + # * Q35_NUMA_PCIE: Generate a NUMA-aware PCIe topology for pinned VMs + # * Q35_ROOT_PORTS: Number of PCI ports allocated for VMs of type q35. + # * OVMF_UEFIS: List of firmware available to users (full path in the hosts) + # * CGROUPS_VERSION: Use '2' to use Cgroup V2 + # all other values or undefined: use Cgroup V1 + # * EMULATOR_CPUS: Value used for + # ----------------------------------------------------------------------------- + + #EMULATOR = /usr/libexec/qemu-kvm + + #VCPU = 1 + + MEMORY_SLOTS = 16 + + OS = [ + ARCH = "x86_64", + MACHINE = "q35" + ] + + FEATURES = [ + PAE = "no", + ACPI = "yes", + APIC = "no", + HYPERV = "no", + GUEST_AGENT = "yes", + VIRTIO_SCSI_QUEUES = "auto", + # VIRTIO_BLK_QUEUES = "auto", + IOTHREADS = "0" + ] + + #CPU_MODEL = [ MODEL = "host-passthrough"] + + DISK = [ + DRIVER = "raw", + CACHE = "none", + DISCARD = "unmap", + UID_MAP = "100000", + GID_MAP = "100000" + ] + + NIC = [ + MODEL = "virtio", + VIRTIO_QUEUES = "auto" + # FILTER = "clean-traffic" + ] + + # GRAPHICS = [ + # TYPE = "vnc", + # LISTEN = "0.0.0.0", + # PASSWD = "", + # KEYMAP = "", + # RANDOM_PASSWD = "YES" + # ] + + # VIDEO = [ + # TYPE = "virtio", + # IOMMU = "yes", + # ATS = "yes", + # VRAM = "8192", + # RESOLUTION = "1920x1080" + # ] + + #RAW = "" + + HYPERV_OPTIONS = " + + + + + + + + + + + + + " + + HYPERV_TIMERS = " + + + + " + + SPICE_OPTIONS = " + + + + + + + + " + + MEMORY_TUNE_OFFSET = 256 + + Q35_ROOT_PORTS = 16 + + Q35_NUMA_PCIE = "YES" + + # Open Virtual Machine Firware (UEFI Firmware) + # List of valid firmware available to users (full path in the hosts) + OVMF_UEFIS = "/usr/share/AAVMF/AAVMF_CODE.fd /usr/share/OVMF/OVMF_CODE.fd /usr/share/OVMF/OVMF_CODE.secboot.fd /usr/share/OVMF/OVMF_CODE_4M.fd /usr/share/OVMF/OVMF_CODE_4M.secboot.fd /usr/share/edk2/ovmf/OVMF_CODE.fd /usr/share/edk2/ovmf/OVMF_CODE.secboot.fd" + + "/etc/one/vmm_exec/vmm_execrc": + class: Augeas::Shell + owner: root + group: oneadmin + mode: '0640' + content: | + # Space separated list of VMM-TM pairs that support live disk snapshots. VMM + # and TM must be separated by '-' + LIVE_DISK_SNAPSHOTS="kvm-qcow2 kvm-shared kvm-ceph kvm-ssh kvm-local kvm-lvm_thin kvm-lvm kvm-netapp qemu-qcow2 qemu-shared qemu-ceph qemu-ssh qemu-local qemu-netapp kvm-purefa lxc-qcow2 lxc-shared lxc-ceph lxc-ssh lxc-local lxc-lvm_thin lxc-lvm" + + # Space separated list VNM_MAD-ACTION pairs that run locally + VNMAD_LOCAL_ACTIONS="elastic-post elastic-clean" + "/etc/one/alertmanager/alertmanager.yml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + route: + group_by: ['alertname'] + group_wait: 30s + group_interval: 5m + repeat_interval: 1h + receiver: 'web.hook' + receivers: + - name: 'web.hook' + webhook_configs: + - url: 'http://127.0.0.1:5001/' + inhibit_rules: + - source_match: + severity: 'critical' + target_match: + severity: 'warning' + equal: ['alertname', 'dev', 'instance'] + "/etc/one/prometheus/prometheus.yml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + global: + scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute. + evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute. + # scrape_timeout is set to the global default (10s). + + # Alertmanager configuration + alerting: + alertmanagers: + - static_configs: + - targets: ['localhost:9093'] + + # Load rules once and periodically evaluate them according to the global 'evaluation_interval'. + rule_files: ['rules.yml'] + + # A scrape configuration containing exactly one endpoint to scrape: + # Here it's Prometheus itself. + scrape_configs: + # The job name is added as a label `job=` to any timeseries scraped from this config. + - job_name: prometheus + + # metrics_path defaults to '/metrics' + # scheme defaults to 'http'. + + static_configs: + - targets: ['localhost:9090'] + "/etc/one/prometheus/rules.yml": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + action: apply + change: + - path: &1 + - groups + key: + old: + name: OpenNebulaServices + rules: + - alert: OnedDown + expr: opennebula_oned_state == 0 + for: 30s + annotations: + title: OpenNebula oned {{ $labels.one_server_fqdn }} down + description: OpenNebula oned {{ $labels.one_server_fqdn }} of job {{ $labels.job }} has been down + for more than 30 seconds + labels: + severity: critical + - alert: SchedulerDown + expr: opennebula_scheduler_state == 0 + for: 30s + annotations: + title: OpenNebula scheduler {{ $labels.one_server_fqdn }} down + description: OpenNebula scheduler {{ $labels.one_server_fqdn }} of job {{ $labels.job }} has been + down for more than 30 seconds + labels: + severity: critical + - alert: HookManagerDown + expr: opennebula_hem_state == 0 + for: 30s + annotations: + title: OpenNebula hook manager {{ $labels.one_server_fqdn }} down + description: OpenNebula hook manager {{ $labels.one_server_fqdn }} of job {{ $labels.job }} has been + down for more than 30 seconds + labels: + severity: critical + state: rm + extra: {} + - path: *1 + key: + value: + name: OpenNebulaServices + rules: + - alert: OnedDown + expr: opennebula_oned_state == 0 + for: 30s + annotations: + title: OpenNebula oned {{ $labels.one_server_fqdn }} down + description: OpenNebula oned {{ $labels.one_server_fqdn }} of job {{ $labels.job }} has been down + for more than 30 seconds + labels: + severity: critical + - alert: SchedulerDown + expr: opennebula_scheduler_state == 0 + for: 30s + annotations: + title: OpenNebula scheduler {{ $labels.one_server_fqdn }} down + description: OpenNebula scheduler {{ $labels.one_server_fqdn }} of job {{ $labels.job }} has been + down for more than 30 seconds + labels: + severity: critical + - alert: HookManagerDown + expr: opennebula_hem_state == 0 unless on(one_server_fqdn) opennebula_ha_is_leader == 0 + for: 30s + annotations: + title: OpenNebula hook manager {{ $labels.one_server_fqdn }} down + description: OpenNebula hook manager {{ $labels.one_server_fqdn }} of job {{ $labels.job }} has been + down for more than 30 seconds + labels: + severity: critical + state: ins + extra: {} + content: | + groups: + - name: AllInstances + rules: + - alert: InstanceDown + expr: up == 0 + for: 30s + annotations: + title: 'Instance {{ $labels.instance }} down' + description: '{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 30 seconds' + labels: { severity: critical } + + - alert: DiskFree + expr: (node_filesystem_avail_bytes{mountpoint="/",fstype!="rootfs"} / node_filesystem_size_bytes{mountpoint="/",fstype!="rootfs"} * 100) <= 10 + for: 30s + annotations: + title: 'Instance {{ $labels.instance }} has less than 10% of free space in rootfs' + labels: { severity: warning } + + - alert: AvailableMemory10 + expr: ((node_memory_MemAvailable_bytes * 100) / node_memory_MemTotal_bytes) <= 10 + for: 30s + annotations: + title: 'Instance {{ $labels.instance }} has less than 10% of free memory' + labels: { severity: warning } + + - alert: LoadAverage15 + expr: node_load15 > count without(cpu, mode) (node_cpu_seconds_total{mode="idle"}) * 0.8 + for: 30s + annotations: + title: 'Instance {{ $labels.instance }} has higher load average then 80% CPU count in last 15 minutes' + labels: { severity: warning } + + - alert: RebootInLast5Minutes + expr: rate(node_boot_time_seconds[5m]) > 0 + annotations: + title: 'Instance {{ $labels.instance }} has has been rebooted in last 5 minutes' + labels: { severity: warning } + + - name: OpenNebulaHosts + rules: + - alert: HostDown + expr: opennebula_host_state != 2 + for: 30s + annotations: + title: "OpenNebula host {{ $labels.one_host_id }} down" + description: "OpenNebula host {{ $labels.one_host_id }} of job {{ $labels.job }} has been down for more than 30 seconds" + labels: { severity: critical } + + - alert: LibvirtDown + expr: opennebula_libvirt_daemon_up == 0 + for: 30s + annotations: + title: "Libvirt daemon on host {{ $labels.one_host_id }} down" + description: "Libvirt daemon on host {{ $labels.one_host_id }} of job {{ $labels.job }} has been down for more than 30 seconds" + labels: { severity: critical } + + + - name: OpenNebulaVirtualMachines + rules: + - alert: VMFailed + expr: > + count((opennebula_vm_lcm_state >= 36 and opennebula_vm_lcm_state <=42) or + opennebula_vm_lcm_state == 44 or + (opennebula_vm_lcm_state >= 46 and opennebula_vm_lcm_state <=50) or + opennebula_vm_lcm_state == 61) by (instance, name) > 0 + for: 30s + annotations: + title: "OpenNebula VMs in failed state" + description: "OpenNebula VMs of job {{ $labels.job }} are in failed state for more than 30 seconds" + labels: { severity: critical } + + - alert: VMPending + expr: count(opennebula_vm_state == 1) by (instance, name) > 0 + for: 300s + annotations: + title: "OpenNebula VMs in pending" + description: "OpenNebula VMs of job {{ $labels.job }} are in pending state for more than 300 seconds" + labels: { severity: critical } + + - name: OpenNebulaServices + rules: + - alert: OnedDown + expr: opennebula_oned_state == 0 + for: 30s + annotations: + title: "OpenNebula oned {{ $labels.one_server_fqdn }} down" + description: "OpenNebula oned {{ $labels.one_server_fqdn }} of job {{ $labels.job }} has been down for more than 30 seconds" + labels: { severity: critical } + - alert: SchedulerDown + expr: opennebula_scheduler_state == 0 + for: 30s + annotations: + title: "OpenNebula scheduler {{ $labels.one_server_fqdn }} down" + description: "OpenNebula scheduler {{ $labels.one_server_fqdn }} of job {{ $labels.job }} has been down for more than 30 seconds" + labels: { severity: critical } + - alert: HookManagerDown + # the raft hooks run hem on the leader only: do not alert on HA followers + expr: opennebula_hem_state == 0 unless on(one_server_fqdn) opennebula_ha_is_leader == 0 + for: 30s + annotations: + title: "OpenNebula hook manager {{ $labels.one_server_fqdn }} down" + description: "OpenNebula hook manager {{ $labels.one_server_fqdn }} of job {{ $labels.job }} has been down for more than 30 seconds" + labels: { severity: critical } + "/etc/one/oneform-server.conf": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + ################################################################################ + # Server Configuration + ################################################################################ + + # OpenNebula daemon contact information + :one_xmlrpc: http://localhost:2633/RPC2 + + # Host and port where OneForm server will run + :host: 127.0.0.1 + :port: 13013 + + ################################################################################ + # Defaults + ################################################################################ + + # Path where OneForm will store the generated files for each provision + :work_dir: /tmp/oneform/ + + ################################################################################ + # One-Deploy Configuration + ################################################################################ + + # OneDeploy tags to be used for the deployment + # - stage1: Solo, FED, HA or FED + HA Front-end deployments + # - stage2: KVM node provisioning + # - stage3: Manage OpenNebula objects (datastores and networks) + :onedeploy_tags: stage2,stage3,network + + ############################################################# + # Auth + ############################################################# + + # Authentication driver to communicate with OpenNebula core + # - cipher, for symmetric cipher encryption of tokens + # - x509, for x509 certificate encryption of tokens + :auth: opennebula + :core_auth: cipher + :expire_delta: 3600 + + ################################################################################ + # Log + ################################################################################ + + # Log debug level + # 0 = ERROR, 1 = WARNING, 2 = INFO, 3 = DEBUG + # + # System + # - file: log to log file + # - syslog: log to syslog + :log: + :level: 2 + :system: file + "/etc/one/oneks-server.conf": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + content: | + ################################################################################ + # Server Configuration + ################################################################################ + + # OpenNebula daemon contact information + :one_xmlrpc: http://localhost:2633/RPC2 + + # OpenNebula XML-RPC endpoint exposed through the TPROXY network. + # This endpoint is used by workloads that must reach OpenNebula through + # the cluster router, so TPROXY must be enabled in OpenNebula networking + # configuration file VAR_LOCATION/remotes/etc/vnm/OpenNebulaNetwork.conf + :one_xmlrpc_tproxy: http://169.254.16.9:2633/RPC2 + + # Server configuration where OneKS server will run + :server: + :environment: production + :bind: 127.0.0.1 + :port: 10780 + + # Subscribe endpoint for OpenNebula events (must match those in oned.conf) + :subscriber_endpoint: 'tcp://localhost:2101' + + # Default receive timeout, in seconds, for OpenNebula event subscribers + :subscriber_timeout: 10 + + ################################################################################ + # Kubernetes Configuration + ################################################################################ + + # Path to the kubectl binary used for Kubernetes operations + :kubectl_path: '/var/lib/rancher/rke2/bin/kubectl' + + # Path to the kubeconfig file used by kubectl commands + :kubeconfig_path: '/etc/rancher/rke2/rke2.yaml' + + # Timeout, in seconds, while waiting for Kubernetes command execution results + :k8s_timeout: 15 + + ################################################################################ + # Cluster Readiness Check + ################################################################################ + + # Cluster Readiness Check configuration. Comment out this section to disable it. + # When enabled, users can run environment validation checks through OneKS. + # The check deploys the OneKS appliance from the default control plane family + # in the image datastore selected by the deployment being checked. + # external_url : public URL used to validate DNS resolution and outbound + # Internet access + # timeout : maximum time, in seconds, to wait for the probe VM and + # each check + :readiness: + :external_url: 'https://get.rke2.io' + :timeout: 60 + + ################################################################################ + # Defaults + ################################################################################ + + # Default retries in case of aborting call + :retries: 5 + + # Default cooldown period after a scale operation, in seconds + :default_cooldown: 300 + + # Number of threads to make actions with clusters + # Tune this depending of the load you will have + :concurrency: 10 + + # Base prefix used when generating names for created resources + :base_name: 'oneks' + + ############################################################# + # Auth + ############################################################# + + # Authentication driver to communicate with OpenNebula core + # - cipher, for symmetric cipher encryption of tokens + # - x509, for x509 certificate encryption of tokens + :auth: opennebula + :core_auth: cipher + :expire_delta: 3600 + + ################################################################################ + # Log + ################################################################################ + + # Log debug level + # 0 = ERROR, 1 = WARNING, 2 = INFO, 3 = DEBUG + # + # System + # - file: log to log file + # - syslog: log to syslog + :log: + :level: 3 + :system: file + "/var/lib/one/remotes/etc/datastore/datastore.conf": + class: Augeas::Shell + owner: oneadmin + group: oneadmin + mode: '0640' + content: | + #------------------------------------------------------------------------------- + # Global environment configuration file for DATASTORE MADS + # -------------------------------------------------------- + # + # This file MUST preserve SH syntax + #------------------------------------------------------------------------------- + + # Options for formatting DATABLOCKS + # - SUPPORTED_FS: comma separated list with every supported file system. + # You may want to update :support_fs: in sunstoner_sever.conf. + # - FS_OPTS_: if special options needs to be set to create specific file + # system the corresponding FS_OPTS_ needs to be defines + # (e.g FS_OPTS_ext4="-b 16384"). If not set default MKFS options are used. + SUPPORTED_FS="ext2,ext3,ext4,xfs" + + # Path to store temporary files in the hosts while backing up a VM. This path + # needs to be the **SAME** in all hosts, although it can mount different devices + # or FS in each one. + #BACKUP_BASE_PATH="/path/in/the/hosts" + "/var/lib/one/remotes/etc/datastore/ceph/ceph.conf": + class: Augeas::Shell + owner: oneadmin + group: oneadmin + mode: '0640' + content: | + # Default POOL_NAME + POOL_NAME=one + + # Staging directory + # A directory in the Ceph server host where image will be transferred to + # temporarily during the create/mkfs processes. This directoy MUST exist, + # have enough space and be writeable by 'oneadmin' + STAGING_DIR=/var/tmp + + # Default RBD_FORMAT. By default RBD format 1 will be used. Uncomment the + # following options to enable support for RBD 2. This value affects all the ceph + # datastores, however it can be enabled per ceph datastore using the same + # option in the datastore template + RBD_FORMAT=2 + + # Block size for the dd commands + DD_BLOCK_SIZE=64k + + # Move to trash instead of `rm` (Luminous+) + CEPH_TRASH=no + "/var/lib/one/remotes/etc/datastore/fs/fs.conf": + class: Augeas::Shell + owner: oneadmin + group: oneadmin + mode: '0640' + content: | + # Block size for the dd commands + DD_BLOCK_SIZE=64k + "/var/lib/one/remotes/etc/im/kvm-probes.d/pci.conf": + class: Yaml + owner: oneadmin + group: oneadmin + mode: '0640' + content: | + # This option specifies the main filters for PCI card monitoring. The format + # is the same as used by lspci to filter on PCI card by vendor:device(:class) + # identification. Several filters can be added as a list, or separated + # by commas. The NULL filter will retrieve all PCI cards. + # + # From lspci help: + # -d []:[][:] + # Show only devices with specified vendor, device and class ID. + # The ID's are given in hexadecimal and may be omitted or given + # as "*", both meaning "any value"# + # + # For example: + # :filter: + # - '10de:*' # all NVIDIA VGA cards + # - '10de:11bf' # only GK104GL [GRID K2] + # - '*:10d3' # only 82574L Gigabit Network cards + # - '8086::0c03' # only Intel USB controllers + # + # or + # + # :filter: '*:*' # all devices + # + # or + # + # :filter: '0:0' # no devices + # + :filter: '0:0' + + # The PCI cards list restricted by the :filter option above can be even more + # filtered by the list of exact PCI addresses (bus:device.func). + # + # For example: + # :short_address: + # - '07:00.0' + # - '06:00.0' + # + :short_address: [] + + # The PCI cards list restricted by the :filter option above can be even more + # filtered by matching the device name against the list of regular expression + # case-insensitive patterns. + # + # For example: + # :device_name: + # - 'Virtual Function' + # - 'Gigabit Network' + # - 'USB.*Host Controller' + # - '^MegaRAID' + # + :device_name: [] + + # List of NVIDIA vendor IDs, these are used to recognize PCI devices from + # NVIDIA and use vGPU feature + :nvidia_vendors: + - '10de' + "/var/lib/one/remotes/etc/im/kvm-probes.d/probe_db.conf": + class: Yaml + owner: oneadmin + group: oneadmin + mode: '0640' + content: | + # Minutes. VM status entries older than this will be deleted + :obsolete: 720 + + # Number of monitors a VM is missing to consider it definitely lost + :times_missing: 5 + "/var/lib/one/remotes/etc/im/kvm-probes.d/guestagent.conf": + class: Yaml + owner: oneadmin + group: oneadmin + mode: '0640' + content: | + # This file controls the monitoring information received from the qemu-guest agent + # inside the VMs. + + # Enable or disable monitoring information from the qemu guest agent. + :enabled: false + + # Commands used to gather VM information. + # Each command key will appear on the MONITORING message from the poll probe + # The value will be run as a command executed with virsh qemu-agent-command + # The $vm_id substring, if existing, will be replaced by the VM ID when the monitoring probes + # are looping on each of the VMs on the host. Each command will be run once per VM. + # The expected response for each command is a JSON string with a "return" key. + # The contents of it will appear on the MONITORING message from the poll probe. + # + # SYNTAX OPTIONS (can be mixed): + # =============== + # + # Simple syntax: + # :command_name: one-$vm_id '{"execute":"guest-ping"}' --timeout 5 + # + # Alternative syntax for OS filtering: + # :command_name: + # command: one-$vm_id '{"execute":"guest-ping"}' --timeout 5 + # filter1: ['val1'] + # filter2: ['val1', 'val2'] + # ... + # + # Filtering works by previously extracting and storing special OS_ attributes from + # `guest-get-osinfo`, whose values will then be used to check each condition. They can also be + # accessed in the MONITORING section. The corresponding attribute must then match exactly (case + # sensitive) one of the given filters for the VM to be eligible to run the command. Providing + # several filters requires the VM to match each of them. + # + # This table summarizes the available filters and corresponding OS monitoring attributes: + # + # | Filter | Attribute Matched | Possible Values | Comments | + # | ----------- | ----------------- | ---------------------------------------- | --------------------------------------- | + # | os_types | OS_TYPE | `posix`, `mswindows` | | + # | os_ids | OS_ID | OS/distro ID (e.g., `ubuntu`, `freebsd`) | From os-release(5) ID attribute | + # | os_versions | OS_VERSION | Version ID (e.g., `3.20.9`, `24.04`) | From os-release(5) VERSION_ID attribute | + # | os_machines | OS_MACHINE | Architecture (e.g., `x86_64`, `amd64`) | From `uname -m` | + # + # Values will be 'unknown' if not provided by qemu-guest-agent. + # + :commands: + # String syntax - runs on all VMs + :vm_qemu_ping: one-$vm_id '{"execute":"guest-ping"}' --timeout 5 + + # Hash syntax examples (with OS filtering): + # + # Simple command without filters - runs on all VMs + # :vm_simple: + # :command: one-$vm_id '{"execute":"guest-ping"}' --timeout 5 + # + # Example: Run only on POSIX amd64 + # :vm_posix_amd64: + # :command: one-$vm_id '{"execute":"guest-exec","arguments":{"path":"/usr/bin/uname","arg":["-a"]}}' --timeout 10 + # :os_types: [posix] + # :os_machines: [x86_64, amd64] + # + # Example: Run only on Windows + # :vm_windows_only: + # :command: one-$vm_id '{"execute":"guest-exec","arguments":{"path":"C:\\Windows\\System32\\cmd.exe","arg":["/c","echo hello"]}}' --timeout 10 + # :os_types: [mswindows] + # + # Example: Run only on specific OS versions + # :vm_ubuntu_22_24: + # :command: one-$vm_id '{"execute":"guest-exec","arguments":{"path":"/usr/bin/cat","arg":["/etc/os-release"]}}' --timeout 10 + # :os_ids: [ubuntu] + # :os_versions: ['24.04', '22.04'] + "/var/lib/one/remotes/etc/im/kvm-probes.d/forecast.conf": + class: Yaml + owner: oneadmin + group: oneadmin + mode: '0640' + content: "# This section is related to the configuration for DB retention and forecast period\n# related to the hosts\nhost:\n + \ db_retention: 4 # Number of weeks\n forecast:\n enabled: true\n period: 5 # Number of minutes\n lookback: + 60 # The look-back windows in minutes to use for the predictions \n forecast_far: \n enabled: true\n period: + 43200 # Number of minutes\n lookback: 86400 # The look-back windows in minutes to use for the predictions\n\n# + This section is related to the configuration for DB retention and forecast \n# related to the virtual machines\nvirtualmachine:\n + \ db_retention: 2 # Number of weeks\n forecast:\n enabled: true \n period: 5 # Number of minutes\n + \ lookback: 60 # The look-back windows in minutes to use for the predictions\n forecast_far:\n enabled: + false\n period: 2880 # Number of minutes\n lookback: 10080 # The look-back windows in minutes to use + for the predictions\n" + "/var/lib/one/remotes/etc/im/qemu-probes.d/pci.conf": + class: Yaml + owner: oneadmin + group: oneadmin + mode: '0640' + content: | + # This option specifies the main filters for PCI card monitoring. The format + # is the same as used by lspci to filter on PCI card by vendor:device(:class) + # identification. Several filters can be added as a list, or separated + # by commas. The NULL filter will retrieve all PCI cards. + # + # From lspci help: + # -d []:[][:] + # Show only devices with specified vendor, device and class ID. + # The ID's are given in hexadecimal and may be omitted or given + # as "*", both meaning "any value"# + # + # For example: + # :filter: + # - '10de:*' # all NVIDIA VGA cards + # - '10de:11bf' # only GK104GL [GRID K2] + # - '*:10d3' # only 82574L Gigabit Network cards + # - '8086::0c03' # only Intel USB controllers + # + # or + # + # :filter: '*:*' # all devices + # + # or + # + # :filter: '0:0' # no devices + # + :filter: '0:0' + + # The PCI cards list restricted by the :filter option above can be even more + # filtered by the list of exact PCI addresses (bus:device.func). + # + # For example: + # :short_address: + # - '07:00.0' + # - '06:00.0' + # + :short_address: [] + + # The PCI cards list restricted by the :filter option above can be even more + # filtered by matching the device name against the list of regular expression + # case-insensitive patterns. + # + # For example: + # :device_name: + # - 'Virtual Function' + # - 'Gigabit Network' + # - 'USB.*Host Controller' + # - '^MegaRAID' + # + :device_name: [] + + # List of NVIDIA vendor IDs, these are used to recognize PCI devices from + # NVIDIA and use vGPU feature + :nvidia_vendors: + - '10de' + "/var/lib/one/remotes/etc/im/qemu-probes.d/forecast.conf": + class: Yaml + owner: oneadmin + group: oneadmin + mode: '0640' + content: "# This section is related to the configuration for DB retention and forecast period\n# related to the hosts\nhost:\n + \ db_retention: 4 # Number of weeks\n forecast:\n enabled: true\n period: 5 # Number of minutes\n lookback: + 60 # The look-back windows in minutes to use for the predictions \n forecast_far: \n enabled: true\n period: + 43200 # Number of minutes\n lookback: 86400 # The look-back windows in minutes to use for the predictions\n\n# + This section is related to the configuration for DB retention and forecast \n# related to the virtual machines\nvirtualmachine:\n + \ db_retention: 2 # Number of weeks\n forecast:\n enabled: true \n period: 5 # Number of minutes\n + \ lookback: 60 # The look-back windows in minutes to use for the predictions\n forecast_far:\n enabled: + false\n period: 2880 # Number of minutes\n lookback: 10080 # The look-back windows in minutes to use + for the predictions\n" + "/var/lib/one/remotes/etc/im/qemu-probes.d/probe_db.conf": + class: Yaml + owner: oneadmin + group: oneadmin + mode: '0640' + content: | + # Minutes. VM status entries older than this will be deleted + :obsolete: 720 + + # Number of monitors a VM is missing to consider it definitely lost + :times_missing: 5 + "/var/lib/one/remotes/etc/im/lxc-probes.d/probe_db.conf": + class: Yaml + owner: oneadmin + group: oneadmin + mode: '0640' + content: | + # Minutes. VM status entries older than this will be deleted + :obsolete: 720 + + # Number of monitors a VM is missing to consider it definitely lost + :times_missing: 5 + "/var/lib/one/remotes/etc/im/lxc-probes.d/forecast.conf": + class: Yaml + owner: oneadmin + group: oneadmin + mode: '0640' + content: "# This section is related to the configuration for DB retention and forecast period\n# related to the hosts\nhost:\n + \ db_retention: 4 # Number of weeks\n forecast:\n enabled: true\n period: 5 # Number of minutes\n lookback: + 60 # The look-back windows in minutes to use for the predictions \n forecast_far: \n enabled: true\n period: + 43200 # Number of minutes\n lookback: 86400 # The look-back windows in minutes to use for the predictions\n\n# + This section is related to the configuration for DB retention and forecast \n# related to the virtual machines\nvirtualmachine:\n + \ db_retention: 2 # Number of weeks\n forecast:\n enabled: true \n period: 5 # Number of minutes\n + \ lookback: 60 # The look-back windows in minutes to use for the predictions\n forecast_far:\n enabled: + false\n period: 2880 # Number of minutes\n lookback: 10080 # The look-back windows in minutes to use + for the predictions\n" + "/var/lib/one/remotes/etc/im/lxc-probes.d/pci.conf": + class: Yaml + owner: oneadmin + group: oneadmin + mode: '0640' + content: | + # This option specifies the main filters for PCI card monitoring. The format + # is the same as used by lspci to filter on PCI card by vendor:device(:class) + # identification. Several filters can be added as a list, or separated + # by commas. The NULL filter will retrieve all PCI cards. + # + # From lspci help: + # -d []:[][:] + # Show only devices with specified vendor, device and class ID. + # The ID's are given in hexadecimal and may be omitted or given + # as "*", both meaning "any value"# + # + # For example: + # :filter: + # - '10de:*' # all NVIDIA VGA cards + # - '10de:11bf' # only GK104GL [GRID K2] + # - '*:10d3' # only 82574L Gigabit Network cards + # - '8086::0c03' # only Intel USB controllers + # + # or + # + # :filter: '*:*' # all devices + # + # or + # + # :filter: '0:0' # no devices + # + :filter: '0:0' + + # The PCI cards list restricted by the :filter option above can be even more + # filtered by the list of exact PCI addresses (bus:device.func). + # + # For example: + # :short_address: + # - '07:00.0' + # - '06:00.0' + # + :short_address: [] + + # The PCI cards list restricted by the :filter option above can be even more + # filtered by matching the device name against the list of regular expression + # case-insensitive patterns. + # + # For example: + # :device_name: + # - 'Virtual Function' + # - 'Gigabit Network' + # - 'USB.*Host Controller' + # - '^MegaRAID' + # + :device_name: [] + + # List of NVIDIA vendor IDs, these are used to recognize PCI devices from + # NVIDIA and use vGPU feature + :nvidia_vendors: + - '10de' + "/var/lib/one/remotes/etc/market/http/http.conf": + class: Augeas::Shell + owner: oneadmin + group: oneadmin + mode: '0640' + content: | + # Block size for the dd commands + DD_BLOCK_SIZE=64k + "/var/lib/one/remotes/etc/tm/fs_lvm/fs_lvm.conf": + class: Augeas::Shell + owner: oneadmin + group: oneadmin + mode: '0640' + content: | + # Default ZERO'ing behavior for the driver. When these variables are set the driver + # will zero LVM space. This prevents data from a previous allocation to be exposed + # in new volumes. However this will increase the VM allocation time. + # + # Zero LVM volumes on creation or resizing + ZERO_LVM_ON_CREATE=yes + + # Zero LVM volumes on delete, when the VM disks are disposed + ZERO_LVM_ON_DELETE=yes + + # Block size for the dd commands + DD_BLOCK_SIZE=64k + "/var/lib/one/remotes/etc/tm/ssh/sshrc": + class: Augeas::Shell + owner: oneadmin + group: oneadmin + mode: '0640' + content: | + #------------------------------------------------------------------------------- + # Configuration file for the replica feature of SSH drivers + #------------------------------------------------------------------------------- + # WARNING! WARNING! This file must follow shell syntax WARNING! WARNING! + #------------------------------------------------------------------------------- + + # Timeout to expire lock operations it should be adjusted to the maximum + # image transfer time between Image Datastores and clusters. + REPLICA_COPY_LOCK_TIMEOUT=600 + + # Default directory to store the recovery snapshots. These snapshots are used to + # recover VMs in case of host failure in a cluster + REPLICA_RECOVERY_SNAPS_DIR="/var/lib/one/datastores/replica_snaps" + + # ssh options when copying from the replica to the hypervisor, prefer speed. + # Prefer weaker ciphers on secure networks (e.g. arcfour or blowfish) + REPLICA_SSH_OPTS="-c aes128-gcm@openssh.com -m umac-64@openssh.com" + + # ssh options when copying from the frontend to the replica, prefer security + REPLICA_SSH_FE_OPTS="" + + # Maximum size of cached images on replica in MB, if not specified + # REPLICA_MAX_USED_PERC is used + REPLICA_MAX_SIZE_MB="" + + # Maximum usage in % of the replica filesystem + REPLICA_MAX_USED_PERC=90 + "/var/lib/one/remotes/etc/vmm/kvm/kvmrc": + class: Augeas::Shell + owner: oneadmin + group: oneadmin + mode: '0640' + content: | + export LANG=C + + export LIBVIRT_URI=qemu:///system + + export QEMU_PROTOCOL=qemu+ssh + + export LIBVIRT_MD_URI=http://opennebula.org/xmlns/libvirt/1.0 + export LIBVIRT_MD_KEY=one + + # Seconds to wait after shutdown until timeout + export SHUTDOWN_TIMEOUT=180 + + # Instruct QEMU guest agent to synchronize the guest time from RTC + export SYNC_TIME=yes + + # Uncomment this line to force VM cancellation after shutdown timeout + export FORCE_DESTROY=yes + + # Default number of "virsh" command retries when required + # currently used in detach-interface, restore + export VIRSH_RETRIES=3 + + # Default "virsh" timeout for operations which might block indefinitely + export VIRSH_TIMEOUT=60 + + # Compact memory before running the VM + #CLEANUP_MEMORY_ON_START=yes + + # Compact memory after VM stops + CLEANUP_MEMORY_ON_STOP=no + + # Uncomment this line to force VM's without ACPI enabled to be destroyed + # on shutdown + #CANCEL_NO_ACPI=yes + + # This parameter will set the default cache type for new attached disks. It + # will be used in case the attached disk does not have an specific cache + # method set (can be set using templates when attaching a disk). + DEFAULT_ATTACH_CACHE=none + + # Uncomment this line to set options for the virsh migrate command + #MIGRATE_OPTIONS=--unsafe + + # IDE and SCSI disks always have the ability to issue "discard" + # (aka TRIM or UNMAP) commands. However, by default "discard" commands are + # silently ignored as they can cause performance degradation and fragmentation. + # To enable them, the "-drive" option now supports a "discard" suboption; the + # default value is "ignore" (or its synonym "off"), and the other valid value + # is "unmap" (or "on"). + DEFAULT_ATTACH_DISCARD=unmap + + # The default DISK I/O policy for new attached disks. + #DEFAULT_ATTACH_IO= + + # The default number of queues for virtio-blk driver. + #DEFAULT_ATTACH_VIRTIO_BLK_QUEUES= + + # The default iothread id to assign on virtio-blk hotplug. + #DEFAULT_ATTACH_VIRTIO_BLK_IOTHREAD= + + # These parameters set the default DISK I/O throttling attributes + # for the new attached disk in case they aren't set. + #DEFAULT_ATTACH_TOTAL_BYTES_SEC= + #DEFAULT_ATTACH_TOTAL_BYTES_SEC_MAX= + #DEFAULT_ATTACH_TOTAL_BYTES_SEC_MAX_LENGTH= + #DEFAULT_ATTACH_READ_BYTES_SEC= + #DEFAULT_ATTACH_READ_BYTES_SEC_MAX= + #DEFAULT_ATTACH_READ_BYTES_SEC_MAX_LENGTH= + #DEFAULT_ATTACH_WRITE_BYTES_SEC= + #DEFAULT_ATTACH_WRITE_BYTES_SEC_MAX= + #DEFAULT_ATTACH_WRITE_BYTES_SEC_MAX_LENGTH= + #DEFAULT_ATTACH_TOTAL_IOPS_SEC= + #DEFAULT_ATTACH_TOTAL_IOPS_SEC_MAX= + #DEFAULT_ATTACH_TOTAL_IOPS_SEC_MAX_LENGTH= + #DEFAULT_ATTACH_READ_IOPS_SEC= + #DEFAULT_ATTACH_READ_IOPS_SEC_MAX= + #DEFAULT_ATTACH_READ_IOPS_SEC_MAX_LENGTH= + #DEFAULT_ATTACH_WRITE_IOPS_SEC= + #DEFAULT_ATTACH_WRITE_IOPS_SEC_MAX= + #DEFAULT_ATTACH_WRITE_IOPS_SEC_MAX_LENGTH= + #DEFAULT_ATTACH_SIZE_IOPS_SEC= + + # This parameters will set the default NIC model and filter for + # the hot-attached interfaces. + DEFAULT_ATTACH_NIC_MODEL=virtio + #DEFAULT_ATTACH_NIC_FILTER=clean-traffic + + # Path to the virtiofsd binary. Can provide a single path or a + # space-separated list of potential locations. + VIRTIOFSD_BINARY_PATH="/usr/libexec/virtiofsd /usr/lib/qemu/virtiofsd /usr/lib/virtiofsd/virtiofsd" + + # Virtual Machine Firmware path to the NVRAM file + # OVMF_NVRAM="/usr/share/AAVMF/AAVMF_VARS.fd" for aarch64 guests + OVMF_NVRAM="/usr/share/OVMF/OVMF_VARS.fd" + "/var/lib/one/remotes/etc/vmm/lxc/lxcrc": + class: Yaml + owner: oneadmin + group: oneadmin + mode: '0640' + content: | + ############################################################################## + # VNC Options + ############################################################################## + # + # Options to customize the VNC access to the container: + # - :command: to be executed in the VNC terminal. + # - :width: of the terminal + # - :height: of the terminal + # - :timeout: seconds to close the terminal if no input has been received + :vnc: + :command: 'sudo lxc-console' + :width: 800 + :height: 600 + :timeout: 300 + + ################################################################################ + # OpenNebula Configuration Options + ################################################################################ + + # + # Default path for the datastores. This only need to be change if the + # corresponding value in oned.conf has been modified. + :datastore_location: /var/lib/one/datastores + # + # Path to the LXC default configuration file. This file will be included in + # the configuration of every LXC container (lxc.include) + :default_lxc_config: /usr/share/lxc/config/common.conf + + ################################################################################ + # Container storage interface mount options + ################################################################################ + # + # Options to customize the mounting process of the container disks + # :bindfs: arguments passed to bindfs -o + # :dev_: Mount options for disk devices (in the host). Options are set per + # fs type (e.g. dev_xfs, dev_ext3...) + # :disk: Mount options for data DISK (lxc.mount.entry). + # :rootfs: Mount options for root fs (lxc.rootfs.options) + # :mountpoint: Default Path to mount data disk in the container. This can be + # set per DISK using the TARGET attribute. + :mountopts: + :bindfs: 'suid' + :dev_xfs: 'nouuid' + :disk: 'rbind,create=dir,optional' + :rootfs: '' + :mountpoint: 'media/one-disk.$id' + "/var/lib/one/remotes/etc/vmm/lxc/profiles/profile_privileged": + class: Simple + owner: oneadmin + group: oneadmin + mode: '0640' + content: "# 'c 1:3 rwm' \t\tnull\n# 'c 1:5 rwm' \t\tzero\n# 'c 1:7 rwm' \t\tfull\n# 'c 1:8 rwm' \t\trandom\n# 'c 1:9 + rwm' \t\turandom\n# 'c 5:0 rwm' \t\ttty\n# 'c 5:1 rwm' \t\tconsole\n# 'c 5:2 rwm' \t\tptmx\n# 'c 10:229 rwm' \tfuse\n\nlxc.mount.entry + = 'mqueue dev/mqueue mqueue rw,relatime,create=dir,optional 0 0'\nlxc.cap.drop = 'sys_time sys_module sys_rawio'\nlxc.mount.auto + = 'proc:mixed'\nlxc.mount.auto = 'sys:mixed'\nlxc.cgroup.devices.deny = 'a'\nlxc.cgroup.devices.allow = 'b *:* + m'\nlxc.cgroup.devices.allow = 'c *:* m'\nlxc.cgroup.devices.allow = 'c 136:* rwm'\nlxc.cgroup.devices.allow = + 'c 1:3 rwm'\nlxc.cgroup.devices.allow = 'c 1:5 rwm'\nlxc.cgroup.devices.allow = 'c 1:7 rwm'\nlxc.cgroup.devices.allow + = 'c 1:8 rwm'\nlxc.cgroup.devices.allow = 'c 1:9 rwm'\nlxc.cgroup.devices.allow = 'c 5:0 rwm'\nlxc.cgroup.devices.allow + = 'c 5:1 rwm'\nlxc.cgroup.devices.allow = 'c 5:2 rwm'\nlxc.cgroup.devices.allow = 'c 10:229 rwm'\nlxc.cgroup.devices.allow + = 'c 10:200 rwm'\n" + "/var/lib/one/remotes/etc/vnm/OpenNebulaNetwork.conf": + class: Yaml + owner: oneadmin + group: oneadmin + mode: '0640' + content: | + ################################################################################ + # Overriding Options in Network Template + ################################################################################ + # + # Option can be overridden or added per network using this format + # in the network template: + # + # CONF="vxlan_mc=239.0.100.0,test=false,validate_vlan_id=true" + # BRIDGE_CONF="sethello=6" + # OVS_BRIDGE_CONF="stp_enable=true" + # IP_LINK_CONF="tos=10,udpcsum=,udp6zerocsumrx=__delete__" + # + # Options can have empty value when they don't need a parameter. Also the + # special value "__delete__" can be used to delete parameters set here. + + # Set to true to check that no other vlans are connected to the bridge. + # Works with 802.1Q and VXLAN. + :validate_vlan_id: false + + ################################################################################ + # Open vSwitch Options + ################################################################################ + + # Enable ARP Cache Poisoning Prevention Rules + :arp_cache_poisoning: true + + # This needs to be change only if DATASTORE_LOCATION in oned.conf has been changed + :datastore_location: /var/lib/one/datastores + + ################################################################################ + # 802.1Q Options + ################################################################################ + + # Default MTU for the 802.1Q interface + :vlan_mtu: 1500 + + ################################################################################ + # VXLAN Options + ################################################################################ + + # Multicast protocol for multi destination BUM traffic. Options: + # - multicast, for IP multicast + # - evpn, for BGP EVPN control plane + :vxlan_mode: multicast + # Base multicast address for each VLAN. The mc address is :vxlan_mc + :vlan_id + :vxlan_mc: 239.0.0.0 + # Time To Live (TTL) should be > 1 in routed multicast networks (IGMP) + :vxlan_ttl: 16 + # Default MTU for the VXLAN interface + :vxlan_mtu: 1500 + + # Tunnel endpoint communication type. Only for evpn vxlan_mode. + # - dev, tunnel endpoint communication is sent to PHYDEV + # - local_ip, first ip addr of PHYDEV is used as address for the communication + :vxlan_tep: dev + + # Additional ip link options, uncomment the following to disable learning for + # EVPN mode. If you use the IANA defined port 4789 uncomment :dstport: as well + # :ip_link_conf: + # :nolearning: + # :dstport: 4789 + + ################################################################################ + # Security Group Options + ################################################################################ + + # Maximal number of entries in the IP set + :ipset_maxelem: 65536 + + ################################################################################ + # Bridge and Interface Creation Options + ################################################################################ + + # Don't delete bridge with no virtual interfaces left + :keep_empty_bridge: false + + # Following options will be added when creating bridge. For example: + # + # ip link add name type bridge stp_state 1 + # + # :ip_bridge_conf: + # :stp_state: on + + # These options are set on the OvS bridge. For example, + # this command will be trigged for the following option: + # + # ovs-vsctl set-bridge stp_enable=true + # + # :ovs_bridge_conf: + # :stp_enable: true + + # These options will be added to the ip link add command. For example: + # + # sudo ip link add lxcbr0.260 type vxlan id 260 group 239.0.101.4 \ + # ttl 16 dev lxcbr0 udp6zerocsumrx tos 3 + # + # :ip_link_conf: + # :udp6zerocsumrx: + # :tos: 3 + + ################################################################################ + # TProxy / OneGate Options + ################################################################################ + + # Default log level for the proxy process. + # Logs are located on hypervisor hosts at /var/log/one_tproxy*.log. + # The proxy processes can be reloaded or restarted on demand (as root): + # `/var/tmp/one/vnm/tproxy reload` or `/var/tmp/one/vnm/tproxy restart`. + #:tproxy_debug_level: 2 # 0 = ERROR, 1 = WARNING, 2 = INFO, 3 = DEBUG + + # Each entry in the :tproxy array is a definition of a proxy instance: + # + # Port used by VM guests to access the proxy (for example 169.254.16.9:5030). + # - :service_port: 5030 + # + # IP address and port of a service to proxy connections to. + # It must be accessible from the hypervisor hosts. + # - :remote_addr: 10.11.12.13 + # :remote_port: 5030 + # + # Optionally a list of VNETs can be specified by name or id. + # If it's not defined (the default behavior), then the proxy code will be + # applied to all VNETs / NICs of all involved VM guests. + # - :networks: [0, vnet1] + # + # The simplest example of an OneGate proxy config applied to all VNETs: + # When a FQDN is configured for :remote_addr:, the host resolver will resolve + # it to an IP. + # :tproxy: + # - :service_port: 5030 + # :remote_addr: 10.11.12.13 # HA VIP or FQDN + # :remote_port: 5030 + "/var/lib/one/remotes/etc/onebex/onebex-server.conf": + class: Yaml + owner: root + group: oneadmin + mode: '0640' + action: apply + change: + - path: &2 [] + key: :shutdown_delay + old: 2 + state: rm + extra: {} + - path: *2 + key: :idle_timeout + old: 300 + state: rm + extra: {} + - path: *2 + key: :onebex_timeout + old: 1800 + state: rm + extra: {} + content: | + ################################################################################ + # Server Configuration + ################################################################################ + + # Host and port where OneBEX server will run + :host: 0.0.0.0 + :port: 13014 + + ################################################################################ + # Log + ################################################################################ + + # Log debug level + # 0 = ERROR, 1 = WARNING, 2 = INFO, 3 = DEBUG + # + # System + # - file: log to log file + # - syslog: log to syslog + :log: + :level: 2 + :system: file + + ################################################################################ + # Puma + ################################################################################ + + # Puma thread pool limits for concurrent OneBEX HTTP requests. + :puma: + :min_threads: 1 + :max_threads: 4 + "/etc/one/fabricmanager.conf": + class: Augeas::Shell + owner: root + group: oneadmin + mode: '0640' + action: create + content: | + # Configuration for the Fabric Manager VM + + # Version of the Fabric Manager VM image. + VERSION="7.0.0-1-20251127" + + # The URL to download the qcow2 image from. + IMAGE_URL="https://d24fmfybwxpuhu.cloudfront.net/service_FabricManager-${VERSION}.qcow2" + + # Local path to store the downloaded image. + IMAGE_PATH="/var/lib/one/fabricmanager/service_FabricManager-${VERSION}.qcow2" + + # SHA256 checksum of the image for verification. + IMAGE_SHA256="f3ea07971fcac47d5f3ddbbca46e25951cc5ae22ab0cd1a6f9aa38c7b102e5b5" + + # Owner of the image file. + IMAGE_OWNER="oneadmin:oneadmin" + + # Vendor & device IDs for NVIDIA NVSwitch PCI Devices + ## Important: All devices must use vfio-pci driver on the KVM host + VENDOR_ID="10de" + NVS_IDS="22a3" + "/etc/one/one-fabricmanager.xml": + class: Simple + owner: root + group: oneadmin + mode: '0640' + action: create + content: | + + one-fabricmanager + 4194304 + 2 + + 200 + + + + + + + + + + /usr/bin/qemu-kvm-one + + + + + + + + + + + + + + + + "/etc/one/ovirtapi-server.yml": + class: Yaml + owner: root + group: root + mode: '0644' + action: create + content: | + sinatra: + port: 5554 + logging: true + bind: "0.0.0.0" + + # Replace "nil" with the actual values for the ovirt api server configuration + app: + one_xmlrpc: "localhost" + endpoint_port: 2633 + cert_path: "/etc/one/ovirtapi-ssl.crt" + public_ip: "nil" + onebex_port: 13014 + onebex_port_ssl: 13015 + finalize_marker_timeout: 300 + tmp_images_path: "/var/tmp/one_ovirt_wrapper" + debug: "false" + backup_freeze: "NONE" + port_min: 3500 + port_max: 4500 + ports_path: "/var/lib/one" + "/etc/one/ovirtapi-puma.rb": + class: Simple + owner: root + group: root + mode: '0644' + action: create + content: | + # -------------------------------------------------------------------------- # + # Copyright 2002-2026, OpenNebula Project, OpenNebula Systems # + # # + # Licensed under the Apache License, Version 2.0 (the "License"); you may # + # not use this file except in compliance with the License. You may obtain # + # a copy of the License at # + # # + # http://www.apache.org/licenses/LICENSE-2.0 # + # # + # Unless required by applicable law or agreed to in writing, software # + # distributed under the License is distributed on an "AS IS" BASIS, # + # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # + # See the License for the specific language governing permissions and # + # limitations under the License. # + #--------------------------------------------------------------------------- # + + # Puma configuration for the OpenNebula oVirt API server + # (opennebula-ovirtapi.service). The application itself is configured in + # ovirtapi-server.yml. + + directory '/usr/lib/one/ovirtapi-server' + rackup '/usr/lib/one/ovirtapi-server/config.ru' + environment 'production' + + # Request handler threads (min, max) and number of worker processes. With + # workers 0 the server runs in a single process, a worker count > 0 forks + # that many processes, each with its own thread pool. + threads 4, 16 + workers 0 + + # The oVirt clients (Veeam) require the API on port 443. Plain HTTP on port + # 80 only serves the CA certificate, everything else is redirected to HTTPS. + bind 'tcp://0.0.0.0:80' + bind 'ssl://0.0.0.0:443?key=/etc/one/ovirtapi-ssl.key&cert=/etc/one/ovirtapi-ssl.crt' + + stdout_redirect '/var/log/one/ovirtapi.log', '/var/log/one/ovirtapi.log', true + "/var/lib/one/remotes/etc/tm/san/backup.conf": + class: Augeas::Shell + owner: oneadmin + group: oneadmin + mode: '0640' + action: create + content: |- + #------------------------------------------------------------------------------- + # Configuration file for the backups taken with SAN-based storage drivers + #------------------------------------------------------------------------------- + + # Block size to use when comparing two snapshots (in bytes) + BLOCK_SIZE=2097152 # 2MB + + # Block size for PureStorage FlashArray API to use when getting Volume Differences (in bytes) + BLOCK_SIZE_PUREFA=4096 # 4KB