-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdata.py-dist
160 lines (139 loc) · 5.83 KB
/
data.py-dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
# Configuration file, to be adapted to one's needs
# Default user and password to connect to a host through XAPI
# Note: this won't be used for SSH.
# You need to have an SSH key into the hosts' /root/.ssh/authorized_keys.
HOST_DEFAULT_USER = "root"
HOST_DEFAULT_PASSWORD = ""
# The following prefix will be added to the `name-label` parameter of XAPI objects
# that the tests will create or import, such as VMs and SRs.
# Default value: [your login/user]
# OBJECTS_NAME_PREFIX = "[TEST]"
# Override settings for specific hosts
# skip_xo_config allows to not touch XO's configuration regarding the host
# Else the default behaviour is to add the host to XO servers at the beginning
# of the testing session and remove it at the end.
HOSTS = {
# "10.0.0.1": {"user": "root", "password": ""},
# "testhost1": {"user": "root", "password": "", 'skip_xo_config': True},
}
# PXE config server for automated XCP-ng installation
PXE_CONFIG_SERVER = 'pxe'
# Default VM images location
DEF_VM_URL = 'http://pxe/images/'
# Guest tools ISO download location
ISO_DOWNLOAD_URL = 'http://pxe/isos/'
# Definitions of Windows guest tool ISOs to be tested
WIN_GUEST_TOOLS_ISOS = {
"stable": {
# ISO name on SR or subpath of ISO_DOWNLOAD_URL
"name": "guest-tools-win.iso",
# Whether ISO should be downloaded from ISO_DOWNLOAD_URL
"download": True,
# ISO-relative path of MSI file to be installed
"package": "package\\XenDrivers-x64.msi",
# ISO-relative path of XenClean script
"xenclean_path": "package\\XenClean\\x64\\Invoke-XenClean.ps1",
# ISO-relative path of root cert file to be installed before guest tools (optional)
"testsign_cert": "testsign\\XCP-ng_Test_Signer.crt",
},
# Add more guest tool ISOs here as needed
}
# Definition of ISO containing other guest tools to be tested
OTHER_GUEST_TOOLS_ISO = {
"name": "other-guest-tools-win.iso",
"download": False,
}
# Definitions of other guest tools contained in OTHER_GUEST_TOOLS_ISO
OTHER_GUEST_TOOLS = {
"xcp-ng-9.0.9000": {
# Whether we are installing MSI files ("msi"), bare .inf drivers ("inf")
# or nothing in case of Windows Update (absent or null)
"type": "msi",
# ISO-relative path of this guest tool
"path": "xcp-ng-9.0.9000",
# "path"-relative path of MSI or driver files to be installed
"package": "package\\XenDrivers-x64.msi",
# Relative path of root cert file (optional)
"testsign_cert": "testsign\\XCP-ng_Test_Signer.crt",
# Whether this guest tool version wants vendor device to be activated (optional, defaults to False)
# Note: other guest tools may not install correctly with this setting enabled
"vendor_device": False,
# Can we upgrade automatically from this guest tool to our tools?
"upgradable": True,
},
"vendor": {
"vendor_device": True,
"upgradable": False,
},
}
# Values can be either full URLs or only partial URLs that will be automatically appended to DEF_VM_URL
VM_IMAGES = {
'mini-linux-x86_64-bios': 'alpine-minimal-3.12.0.xva',
'mini-linux-x86_64-uefi': 'alpine-uefi-minimal-3.12.0.xva'
}
# In some cases, we may prefer to favour a local SR to store test VM disks,
# to avoid latency or unstabilities related to network or shared file servers.
# However it's not good practice to make a local SR the default SR for a pool of several hosts.
# Hence this configuration value that you can set to `local` so that our tests use this SR by default.
# This setting affects VMs managed by the `imported_vm` fixture.
# Possible values:
# - 'default': keep using the pool's default SR
# - 'local': use the first local SR found instead
# - A UUID of the SR to be used
DEFAULT_SR = 'default'
# Whether to cache VMs on the test host, that is import them only if not already
# present in the target SR. This also causes the VM to be cloned at the beginning
# of each test module, so that the original VM remains untouched.
# /!\ The VM identifier in cache is simply the URL where it was imported from.
# No checksum or date is checked.
# A cached VM is just a VM which has a special description.
# Example description: "[Cache for http://example.com/images/filename.xva]"
# Delete the VM to remove it from cache.
# This setting affects VMs managed by the `imported_vm` fixture.
CACHE_IMPORTED_VM = False
# Default NFS device config:
NFS_DEVICE_CONFIG = {
# 'server': '10.0.0.2', # URL/Hostname of NFS server
# 'serverpath': '/path/to/shared/mount' # Path to shared mountpoint
}
# Default NFS4+ only device config:
NFS4_DEVICE_CONFIG = {
# 'server': '10.0.0.2', # URL/Hostname of NFS server
# 'serverpath': '/path_to_shared_mount' # Path to shared mountpoint
# 'nfsversion': '4.1'
}
# Default NFS ISO device config:
NFS_ISO_DEVICE_CONFIG = {
# 'location': '10.0.0.2:/path/to/shared/mount' # URL/Hostname of NFS server and path to shared mountpoint
}
# Default CIFS ISO device config:
CIFS_ISO_DEVICE_CONFIG = {
# 'location': r'\\10.0.0.2\<shared folder name>',
# 'username': '<user>',
# 'cifspassword': '<password>',
# 'type': 'cifs',
# 'vers': '<1.0> or <3.0>'
}
CEPHFS_DEVICE_CONFIG = {
# 'server': '10.0.0.2',
# 'serverpath': '/vms'
}
MOOSEFS_DEVICE_CONFIG = {
# 'masterhost': 'mfsmaster',
# 'masterport': '9421',
# 'rootpath': '/vms'
}
LVMOISCSI_DEVICE_CONFIG = {
# 'target': '192.168.1.1',
# 'port': '3260',
# 'targetIQN': 'target.example',
# 'SCSIid': 'id'
}
# compatibility settings for older tests
DEFAULT_NFS_DEVICE_CONFIG = NFS_DEVICE_CONFIG
DEFAULT_NFS4_DEVICE_CONFIG = NFS4_DEVICE_CONFIG
DEFAULT_NFS_ISO_DEVICE_CONFIG = NFS_ISO_DEVICE_CONFIG
DEFAULT_CIFS_ISO_DEVICE_CONFIG = CIFS_ISO_DEVICE_CONFIG
DEFAULT_CEPHFS_DEVICE_CONFIG = CEPHFS_DEVICE_CONFIG
DEFAULT_MOOSEFS_DEVICE_CONFIG = MOOSEFS_DEVICE_CONFIG
DEFAULT_LVMOISCSI_DEVICE_CONFIG = LVMOISCSI_DEVICE_CONFIG