Bug 700415

Summary: Need to update the RHEVM API ClusterID to clusterId
Product: Red Hat Enterprise Linux 6 Reporter: yuping zhang <yupzhang>
Component: doc-V2V_GuideAssignee: Cheryn Tan <chetan>
Status: CLOSED CURRENTRELEASE QA Contact: John Skeoch <jskeoch>
Severity: high Docs Contact:
Priority: high    
Version: 6.1CC: leiwang, mshao, qguan, rlandman, rwu, whuang, yupzhang
Target Milestone: rcKeywords: Documentation
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-23 00:05:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description yuping zhang 2011-04-28 10:51:08 UTC
Description of problem:
http://documentation-stage.bne.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/96/html/V2V_Guide/ch03s02s04.html
Example 3.4. Importing all VMs from the export storage domain to the DataStore storage domain on the Default Data Center

$exportdomain = Get-StorageDomain | ? {$_.Name -eq "export"}
$datadomain = Get-StorageDomain | ? {$_.Name -eq "DataStore"}
$dc = Select-DataCenter Name=Default
$cluster = Select-Cluster Name=Default
$candidates = Get-VmImportCandidates -StorageDomainId $exportdomain.StorageDomainId -DataCenterId $dc.DataCenterId
foreach ($candidate in $candidates)
{
	Import-Vm -DataCenterId $dc.DataCenterId -SourceDomainId $exportdomain.StorageDomainId -DestDomainId $datadomain.StorageDomainId -ClusterID $cluster.ClusterID -VmId $candidate.VmId
}

The API ClusterID should be ClusterId.
Update this avoid customers copy the script directly to run and will fail.


Additional info:
Set Priority/Severity to high/high and raise the blocker flag, as it's better
to fix this doc bug in rhel-6.1.0.

Comment 4 Cheryn Tan 2011-04-28 23:47:15 UTC
Fixed in 
http://documentation-stage.bne.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/96/html/V2V_Guide/ch03s02s04.html

Example 3.4. Importing all VMs from the export storage domain to the DataStore storage domain on the Default Data Center

$exportdomain = Get-StorageDomain | ? {$_.Name -eq "export"}
$datadomain = Get-StorageDomain | ? {$_.Name -eq "DataStore"}
$dc = Select-DataCenter Name=Default
$cluster = Select-Cluster Name=Default
$candidates = Get-VmImportCandidates -StorageDomainId $exportdomain.StorageDomainId -DataCenterId $dc.DataCenterId
foreach ($candidate in $candidates)
{
	Import-Vm -DataCenterId $dc.DataCenterId -SourceDomainId $exportdomain.StorageDomainId -DestDomainId $datadomain.StorageDomainId -ClusterId $cluster.ClusterId -VmId $candidate.VmId
}

Comment 5 yuping zhang 2011-04-29 05:17:23 UTC
Verified this issue:
$exportdomain = Get-StorageDomain | ? {$_.Name -eq "export"}
$datadomain = Get-StorageDomain | ? {$_.Name -eq "DataStore"}
$dc = Select-DataCenter Name=Default
$cluster = Select-Cluster Name=Default
$candidates = Get-VmImportCandidates -StorageDomainId $exportdomain.StorageDomainId -DataCenterId $dc.DataCenterId
foreach ($candidate in $candidates)
{
	Import-Vm -DataCenterId $dc.DataCenterId -SourceDomainId $exportdomain.StorageDomainId -DestDomainId $datadomain.StorageDomainId -ClusterId $cluster.ClusterId -VmId $candidate.VmId
}

So Change the status to VERIFIED.