Revision d06e7b3b
b/qa/qa_instance.py | ||
---|---|---|
280 | 280 |
def TestInstanceAddDiskless(nodes): |
281 | 281 |
"""gnt-instance add -t diskless""" |
282 | 282 |
assert len(nodes) == 1 |
283 |
if constants.DT_FILE in qa_config.GetEnabledDiskTemplates():
|
|
283 |
if constants.DT_DISKLESS in qa_config.GetEnabledDiskTemplates():
|
|
284 | 284 |
return CreateInstanceByDiskTemplateOneNode(nodes, constants.DT_DISKLESS) |
285 | 285 |
|
286 | 286 |
|
b/tools/vcluster-setup.in | ||
---|---|---|
290 | 290 |
|
291 | 291 |
Initialize cluster: |
292 | 292 |
cd $rootdir && node1/cmd gnt-cluster init --no-etc-hosts \\ |
293 |
--no-ssh-init --no-lvm-storage --no-drbd-storage $cluster_name |
|
294 |
|
|
295 |
Change cluster settings: |
|
296 |
cd $rootdir && node1/cmd gnt-cluster modify \\ |
|
297 |
--enabled-hypervisors=fake --specs-nic-count=min=0 \\ |
|
298 |
--specs-disk-size=min=0 --specs-disk-count=min=0 |
|
293 |
--no-ssh-init --master-netdev=lo \\ |
|
294 |
--enabled-disk-templates=diskless --enabled-hypervisors=fake \\ |
|
295 |
--ipolicy-bounds-specs=min:disk-size=0,cpu-count=1,disk-count=0,memory-size=1,nic-count=0,spindle-use=0/max:disk-size=1048576,cpu-count=8,disk-count=16,memory-size=32768,nic-count=8,spindle-use=12 \\ |
|
296 |
$cluster_name |
|
299 | 297 |
|
300 | 298 |
Add node: |
301 | 299 |
cd $rootdir && node1/cmd gnt-node add --no-ssh-key-check node2 |
Also available in: Unified diff