Bug 700415 - Need to update the RHEVM API ClusterID to clusterId
Summary: Need to update the RHEVM API ClusterID to clusterId
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: doc-V2V_Guide
Version: 6.1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Cheryn Tan
QA Contact: John Skeoch
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-28 10:51 UTC by yuping zhang
Modified: 2014-06-18 07:51 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-23 00:05:30 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.