gnt-cluster verify: consider shared file storage
[ganeti-local] / qa / qa-sample.json
index 05f36ec..8ec6614 100644 (file)
 {
+  "# Note:": null,
+  "# This file is stored in the JSON format and does not support": null,
+  "# comments. As a work-around, comments are keys starting with a hash": null,
+  "# sign (#).": null,
+
   "name": "xen-test",
+
+  "# Name used for renaming cluster": null,
   "rename": "xen-test-rename",
+
+  "# Virtual cluster": null,
+  "#vcluster-master": "xen-vcluster",
+  "#vcluster-basedir": "/srv/ganeti/vcluster",
+
   "enabled-hypervisors": "xen-pvm",
+  "# Dict of hypervisor name and parameters (like on the cmd line)": null,
+  "hypervisor-parameters": {},
+  "# Backend parameters (like on the cmd line)": null,
+  "backend-parameters": "",
+  "# Dict of OS name and parameters (like on the cmd line)": null,
+  "os-parameters": {},
+  "# Dict of OS name and value dict of hypervisor  parameters": null,
+  "os-hvp": {},
+  "primary_ip_version": 4,
+  "# Name of the LVM group for the cluster": null,
+  "vg-name": "xenvg",
+  "# Cluster-level value of the exclusive-storage flag": null,
+  "exclusive-storage": null,
+
+  "# Only enable disk templates that the QA machines can actually use.": null,
+  "enabled-disk-templates": [
+    "plain",
+    "drbd",
+    "diskless"
+  ],
+
+  "# Default file storage dir (used also for shared storage)": null,
+  "default-file-storage-dir": "/srv/ganeti/file-storage",
+
+  "# Additional arguments for initializing cluster": null,
+  "cluster-init-args": [],
+
+  "# Network interface for master role": null,
+  "#master-netdev": "xen-br0",
+
+  "# Default network interface parameters": null,
+  "#default-nicparams": {
+    "mode": "bridged",
+    "link": "xen-br0"
+  },
 
   "os": "debian-etch",
-  "mem": "512M",
+  "maxmem": "1024M",
+  "minmem": "512M",
+
+  "# Instance policy specs": null,
+  "#ispec_cpu_count_max": null,
+  "#ispec_cpu_count_min": null,
+  "#ispec_cpu_count_std": null,
+  "#ispec_disk_count_max": null,
+  "#ispec_disk_count_min": null,
+  "#ispec_disk_count_std": null,
+  "#ispec_disk_size_max": null,
+  "ispec_disk_size_min": 512,
+  "#ispec_disk_size_std": null,
+  "ispec_mem_size_max": 1024,
+  "#ispec_mem_size_min": null,
+  "#ispec_mem_size_std": null,
+  "#ispec_nic_count_max": null,
+  "#ispec_nic_count_min": null,
+  "#ispec_nic_count_std": null,
+
+  "# Lists of disks": null,
+  "disks": [
+    {
+      "size": "1G",
+      "spindles": 2,
+      "name": "disk0",
+      "growth": "2G",
+      "spindles-growth": 1
+    },
+    {
+      "size": "512M",
+      "spindles": 1,
+      "name": "disk1",
+      "growth": "768M",
+      "spindles-growth": 0
+    }
+  ],
 
-  "rapi-user": "foobar",
-  "rapi-pass": "barfoo",
+  "# Script to check instance status": null,
+  "instance-check": null,
 
-  "# Lists of disk sizes": null,
-  "disk": ["1G", "512M"],
-  "disk-growth": ["2G", "768M"],
+  "# Regular expression to ignore existing tags": null,
+  "ignore-tags-re": null,
 
   "nodes": [
     {
       "# Master node": null,
       "primary": "xen-test-0",
-      "secondary": "192.168.1.1"
+      "secondary": "192.0.2.1"
     },
 
     {
       "primary": "xen-test-1",
-      "secondary": "192.168.1.2"
+      "secondary": "192.0.2.2"
     }
   ],
 
   "instances": [
     {
-      "name": "xen-test-inst1"
+      "name": "xen-test-inst1",
+
+      "# Static MAC address": null,
+      "#nic.mac/0": "AA:00:00:11:11:11"
     },
     {
-      "name": "xen-test-inst2"
+      "name": "xen-test-inst2",
+
+      "# Static MAC address": null,
+      "#nic.mac/0": "AA:00:00:22:22:22"
     }
   ],
 
+  "groups": {
+    "group-with-nodes": "default",
+    "inexistent-groups": [
+      "group1",
+      "group2",
+      "group3"
+    ]
+  },
+
+  "networks": {
+    "inexistent-networks": [
+      "network1",
+      "network2",
+      "network3"
+    ]
+  },
+
   "tests": {
+    "# Whether tests are enabled or disabled by default": null,
+    "default": true,
+
     "env": true,
     "os": true,
     "tags": true,
     "rapi": true,
+    "test-jobqueue": true,
+    "delay": true,
 
     "create-cluster": true,
     "cluster-verify": true,
     "cluster-renew-crypto": true,
     "cluster-destroy": true,
     "cluster-rename": true,
+    "cluster-reserved-lvs": true,
+    "cluster-modify": true,
+    "cluster-oob": true,
+    "cluster-epo": true,
+    "cluster-redist-conf": true,
+    "cluster-repair-disk-sizes": true,
+    "cluster-exclusive-storage": true,
+    "cluster-instance-policy": true,
+
+    "haskell-confd": true,
+    "htools": true,
+
+    "group-list": true,
+    "group-rwops": true,
 
+    "network": false,
+
+    "node-list": true,
     "node-info": true,
     "node-volumes": true,
     "node-readd": true,
     "node-storage": true,
+    "node-modify": true,
+    "node-oob": true,
 
-    "# This test needs at least three nodes": null,
+    "# These tests need at least three nodes": null,
     "node-evacuate": false,
+    "node-migrate": false,
 
     "# This test needs at least two nodes": null,
     "node-failover": false,
 
     "instance-add-plain-disk": true,
+    "instance-add-file": true,
+    "instance-add-shared-file": true,
     "instance-add-drbd-disk": true,
+    "instance-add-diskless": true,
+    "instance-add-restricted-by-disktemplates": true,
     "instance-convert-disk": true,
+    "instance-plain-rapi-common-tests": true,
+    "instance-remove-drbd-offline": true,
 
-    "instance-automatic-restart": false,
-    "instance-consecutive-failures": false,
     "instance-export": true,
     "instance-failover": true,
+    "instance-grow-disk": true,
     "instance-import": true,
     "instance-info": true,
     "instance-list": true,
+    "instance-migrate": true,
     "instance-modify": true,
+    "instance-modify-primary": true,
+    "instance-modify-disks": false,
     "instance-reboot": true,
     "instance-reinstall": true,
     "instance-rename": true,
     "instance-shutdown": true,
+    "instance-device-names": true,
+
+    "job-list": true,
+
+    "# cron/ganeti-watcher should be disabled for these tests": null,
+    "instance-automatic-restart": false,
+    "instance-consecutive-failures": false,
 
     "# This test might fail with certain hypervisor types, depending": null,
     "# on whether they support the `gnt-instance console' command.": null,
     "instance-console": false,
 
-    "# Disabled by default because it takes rather long": null,
+    "# Disabled by default because they take rather long": null,
     "instance-replace-disks": false,
+    "instance-recreate-disks": false,
 
     "# Whether to test the tools/move-instance utility": null,
     "inter-cluster-instance-move": false,
 
-    "# Make sure not to include the disk(s) required for Dom0 to be up": null,
-    "# in the volume group used for instances. Otherwise the whole": null,
-    "# system may stop working until restarted.": null,
-    "instance-disk-failure": false
+    "# Run instance tests with different cluster configurations": null,
+    "default-instance-tests": true,
+    "exclusive-storage-instance-tests": false,
+
+    "mon-collector": true
   },
 
   "options": {
     "burnin-disk-template": "drbd",
     "burnin-in-parallel": false,
     "burnin-check-instances": false,
-    "burnin-rename": "xen-test-rename"
+    "burnin-rename": "xen-test-rename",
+    "burnin-reboot": true,
+    "reboot-types": ["soft", "hard", "full"],
+    "use-iallocators": false
   },
 
   "# vim: set syntax=javascript :": null