[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-7051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14059513#comment-14059513
 ] 

Yoshikazu Nojima commented on CLOUDSTACK-7051:
----------------------------------------------

Here is a log CopyCommand works for my environment.

2014-07-11 19:44:12,774 DEBUG [cloud.agent.Agent] (agentRequest-Handler-1:null) 
Request:Seq 1-6160642815266127881:  { Cmd , MgmtId: 161330501388, via: 1, Ver: 
v1, Flags: 100011, 
[{"org.apache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"8764e810-094f-11e4-905f-0025900c170c","origUrl":"http://download.cloud.com/templates/4.3/systemvm64template-2014-01-14-master-kvm.qcow2.bz2","uuid":"8764e810-094f-11e4-905f-0025900c170c","id":3,"format":"QCOW2","accountId":1,"checksum":"85a1bed07bf43cbf022451cb2ecae4ff","hvm":false,"displayText":"SystemVM
 Template 
(KVM)","imageDataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"ef9d8d36-ef60-321f-a2c3-7a74371293d7","id":3,"poolType":"NetworkFilesystem","host":"10.1.3.46","path":"/exports/stack8-primary1","port":2049,"url":"NetworkFilesystem://10.1.3.46/exports/stack8-primary1/?ROLE=Primary&STOREUUID=ef9d8d36-ef60-321f-a2c3-7a74371293d7"}},"name":"routing-3","hypervisorType":"KVM"}},"destTO":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"7f71939b-77bd-4917-9e3b-0fa3378cdfce","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"ef9d8d36-ef60-321f-a2c3-7a74371293d7","id":3,"poolType":"NetworkFilesystem","host":"10.1.3.46","path":"/exports/stack8-primary1","port":2049,"url":"NetworkFilesystem://10.1.3.46/exports/stack8-primary1/?ROLE=Primary&STOREUUID=ef9d8d36-ef60-321f-a2c3-7a74371293d7"}},"name":"ROOT-19","size":0,"volumeId":19,"vmName":"s-19-VM","accountId":1,"format":"QCOW2","provisioningType":"THIN","id":19,"deviceId":0,"hypervisorType":"KVM"}},"executeInSequence":false,"options":{},"wait":0}}]
 }
2014-07-11 19:44:12,774 DEBUG [cloud.agent.Agent] (agentRequest-Handler-1:null) 
Processing command: org.apache.cloudstack.storage.command.CopyCommand
2014-07-11 19:44:12,775 DEBUG [kvm.storage.LibvirtStorageAdaptor] 
(agentRequest-Handler-1:null) Trying to fetch storage pool 
ef9d8d36-ef60-321f-a2c3-7a74371293d7 from libvirt
2014-07-11 19:44:12,804 DEBUG [kvm.storage.LibvirtStorageAdaptor] 
(agentRequest-Handler-1:null) Trying to fetch storage pool 
ef9d8d36-ef60-321f-a2c3-7a74371293d7 from libvirt
2014-07-11 19:44:12,845 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(agentRequest-Handler-1:null) Creating volume 
7f71939b-77bd-4917-9e3b-0fa3378cdfce from template 
8764e810-094f-11e4-905f-0025900c170c in pool 
ef9d8d36-ef60-321f-a2c3-7a74371293d7 (NetworkFilesystem) with size 0
2014-07-11 19:44:12,845 INFO  [kvm.storage.LibvirtStorageAdaptor] 
(agentRequest-Handler-1:null) Attempting to create volume 
7f71939b-77bd-4917-9e3b-0fa3378cdfce (NetworkFilesystem) in pool 
ef9d8d36-ef60-321f-a2c3-7a74371293d7 with size 2621440000
2014-07-11 19:44:12,845 DEBUG [utils.script.Script] 
(agentRequest-Handler-1:null) Executing: qemu-img create -o preallocation=off, 
-f qcow2 
/mnt/ef9d8d36-ef60-321f-a2c3-7a74371293d7/7f71939b-77bd-4917-9e3b-0fa3378cdfce 
2621440000
2014-07-11 19:44:12,868 DEBUG [utils.script.Script] 
(agentRequest-Handler-1:null) Execution is successful.
2014-07-11 19:44:12,869 DEBUG [utils.script.Script] 
(agentRequest-Handler-1:null) Formatting 
'/mnt/ef9d8d36-ef60-321f-a2c3-7a74371293d7/7f71939b-77bd-4917-9e3b-0fa3378cdfce',
 fmt=qcow2 size=2621440000 encryption=off cluster_size=65536 preallocation='off'

2014-07-11 19:44:17,225 INFO  [cloud.agent.Agent] (UgentTask-4:null) Connected 
to the server
2014-07-11 19:44:17,225 DEBUG [utils.script.Script] 
(agentRequest-Handler-1:null) Executing: qemu-img info --output json 
/mnt/ef9d8d36-ef60-321f-a2c3-7a74371293d7/7f71939b-77bd-4917-9e3b-0fa3378cdfce
2014-07-11 19:44:17,233 DEBUG [utils.script.Script] 
(agentRequest-Handler-1:null) Execution is successful.
2014-07-11 19:44:17,234 DEBUG [utils.script.Script] 
(agentRequest-Handler-1:null) Executing: qemu-img create -o preallocation=off, 
-f qcow2 -b 
/mnt/ef9d8d36-ef60-321f-a2c3-7a74371293d7/8764e810-094f-11e4-905f-0025900c170c 
/mnt/ef9d8d36-ef60-321f-a2c3-7a74371293d7/7f71939b-77bd-4917-9e3b-0fa3378cdfce 
2621440000
2014-07-11 19:44:17,266 DEBUG [utils.script.Script] 
(agentRequest-Handler-1:null) Execution is successful.
2014-07-11 19:44:17,266 DEBUG [utils.script.Script] 
(agentRequest-Handler-1:null) Formatting 
'/mnt/ef9d8d36-ef60-321f-a2c3-7a74371293d7/7f71939b-77bd-4917-9e3b-0fa3378cdfce',
 fmt=qcow2 size=2621440000 
backing_file='/mnt/ef9d8d36-ef60-321f-a2c3-7a74371293d7/8764e810-094f-11e4-905f-0025900c170c'
 encryption=off cluster_size=65536 preallocation='off'

2014-07-11 19:44:17,267 DEBUG [cloud.agent.Agent] (agentRequest-Handler-1:null) 
Seq 1-6160642815266127881:  { Ans: , MgmtId: 161330501388, via: 1, Ver: v1, 
Flags: 10, 
[{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"newData":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"size":0,"path":"7f71939b-77bd-4917-9e3b-0fa3378cdfce","accountId":0,"format":"QCOW2","id":0}},"result":true,"wait":0}}]
 }


> [Automation] Failed to create SSVM and CPVM in KVM, 
> ----------------------------------------------------
>
>                 Key: CLOUDSTACK-7051
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7051
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: KVM
>    Affects Versions: 4.5.0
>         Environment: RHEL : 6.3
> build : 4.5
>            Reporter: Rayees Namathponnan
>            Assignee: Kishan Kavala
>            Priority: Blocker
>             Fix For: 4.5.0
>
>         Attachments: agent.rar, management-server.rar
>
>
> SSVM and CPVM not creating with latest 4.5 build,  copy command failing form 
> agent  observed below error in agent log, 
> 2014-07-02 16:14:58,170 DEBUG [utils.script.Script] 
> (agentRequest-Handler-1:null) Execution is successful.
> 2014-07-02 16:14:58,171 DEBUG [utils.script.Script] 
> (agentRequest-Handler-1:null) Formatting '/mnt/4f3ad80a-b7
> 96-3db3-b126-9c12b5b5eafc/48ef9a74-0244-11e4-b040-1a6f7bb0d0a8', fmt=qcow2 
> size=2621440000 encryption=off clus
> ter_size=65536 preallocation='off'
> 2014-07-02 16:14:58,171 DEBUG [utils.script.Script] 
> (agentRequest-Handler-1:null) Executing: qemu-img info --o
> utput json 
> /mnt/4f3ad80a-b796-3db3-b126-9c12b5b5eafc/48ef9a74-0244-11e4-b040-1a6f7bb0d0a8
> 2014-07-02 16:14:58,173 DEBUG [utils.script.Script] 
> (agentRequest-Handler-1:null) Exit value is 1
> 2014-07-02 16:14:58,173 DEBUG [utils.script.Script] 
> (agentRequest-Handler-1:null) info: invalid option -- '-'q
> emu-img version 0.12.1, Copyright (c) 2004-2008 Fabrice Bellardusage: 
> qemu-img command [command options]QEMU d
> isk image utilityCommand syntax:  check [-f fmt] filename  create [-f fmt] 
> [-o options] filename [size]  commi
> t [-f fmt] [-t cache] filename  convert [-c] [-p] [-f fmt] [-t cache] [-O 
> output_fmt] [-o options] [-S sparse_
> size] filename [filename2 [...]] output_filename  info [-f fmt] filename  
> snapshot [-l | -a snapshot | -c snap
> shot | -d snapshot] filename  rebase [-f fmt] [-t cache] [-p] [-u] -b 
> backing_file [-F backing_fmt] filename
> resize filename [+ | -]sizeCommand parameters:  'filename' is a disk image 
> filename  'fmt' is the disk image f
> ormat. It is guessed automatically in most cases  'cache' is the cache mode 
> used to write the output disk imag
> e, the valid    options are: 'none', 'writeback' (default), 'writethrough' 
> and 'unsafe'  'size' is the disk im
> age size in bytes. Optional suffixes    'k' or 'K' (kilobyte, 1024), 'M' 
> (megabyte, 1024k), 'G' (gigabyte, 102
> 4M)    and T (terabyte, 1024G) are supported. 'b' is ignored.  
> 'output_filename' is the destination disk image
>  filename  'output_fmt' is the destination format  'options' is a comma 
> separated list of format specific opti
> ons in a    name=value format. Use -o ? for an overview of the options 
> supported by the    used format  '-c' i
> ndicates that target image must be compressed (qcow format only)  '-u' 
> enables unsafe rebasing. It is assumed
> that old and new backing file       match exactly. The image doesn't need a 
> working backing file before
> rebasing in this case (useful for renaming the backing file)  '-h' with or 
> without a command shows this help a
> nd lists the supported formats  '-p' show progress of command (only certain 
> commands)  '-S' indicates the cons
> ecutive number of bytes that must contain only zeros       for qemu-img to 
> create a sparse image during conver
> sionParameters to snapshot subcommand:  'snapshot' is the name of the 
> snapshot to create, apply or delete  '-a
> ' applies a snapshot (revert disk to saved state)  '-c' creates a snapshot  
> '-d' deletes a snapshot  '-l' lists all snapshots in the given imageSupported 
> formats: raw cow qcow vdi vmdk cloop dmg bochs vpc vvfat qcow2 qed parallels 
> nbd blkdebug host_cdrom host_floppy host_device file



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to