[pve-devel] pve: cloning

Alexandre DERUMIER aderumier at odiso.com
Mon May 27 10:15:30 CEST 2013


Thanks Stefan,

It's working ! Patch sent !


----- Mail original ----- 

De: "Stefan Priebe - Profihost AG" <s.priebe at profihost.ag> 
À: "Alexandre DERUMIER" <aderumier at odiso.com> 
Cc: "Dietmar Maurer" <dietmar at proxmox.com>, pve-devel at pve.proxmox.com 
Envoyé: Lundi 27 Mai 2013 09:58:04 
Objet: Re: [pve-devel] pve: cloning 

Just do 

$size =~ m/^(\d+)$/ or die "size not valid"; 
$size = $1; 

it breaks for sure as it is an external value. 

Stefan 

Am 27.05.2013 um 09:45 schrieb Alexandre DERUMIER <aderumier at odiso.com>: 

> I made some progress, 
> 
> full clone : nexenta -> local 
> 
> seem that the problem occur if when we retrieve size of the original nexenta volume, 
> then it thrown the tainted mode error when we create the target volume on local (with qemu-img create) 
> 
> 
> 
> my ($size) = PVE::Storage::volume_size_info($storecfg, $drive->{file}, 3); 
> 
> forcing a size works fine. 
> my ($size) = 1073741824; 
> 
> 
> volume_size_info is just an call to api with HTTP::Request. 
> 
> So maybe using HTTP::Request break with tainted mode ? 
> 
> 
> 
> ----- Mail original ----- 
> 
> De: "Dietmar Maurer" <dietmar at proxmox.com> 
> À: "Alexandre DERUMIER" <aderumier at odiso.com> 
> Cc: pve-devel at pve.proxmox.com, "Michael Rasmussen" <mir at datanom.net> 
> Envoyé: Vendredi 24 Mai 2013 15:31:44 
> Objet: RE: [pve-devel] pve: cloning 
> 
> I am sorry, I cannot reproduce. 
> 
> See 'man perlsec' for an intro to 'taint mode' 
> 
> Maybe you can further debug yourself. 
> 
>> -----Original Message----- 
>> From: Alexandre DERUMIER [mailto:aderumier at odiso.com] 
>> Sent: Freitag, 24. Mai 2013 15:20 
>> To: Dietmar Maurer 
>> Cc: pve-devel at pve.proxmox.com; Michael Rasmussen 
>> Subject: Re: [pve-devel] pve: cloning 
>> 
>> bootdisk: ide0 
>> cores: 1 
>> ide0: nexentatestapi:vm-277-disk-1,size=32G 
>> ide2: none,media=cdrom 
>> memory: 512 
>> name: test 
>> net0: e1000=8A:23:4D:FB:B0:3A,bridge=vmbr0 
>> ostype: l26 
>> sockets: 1 
>> 
>> 
>> 
>> with gui only: 
>> 
>> create full clone of drive ide0 (nexentatestapi:vm-277-disk-1) TASK ERROR: 
>> clone failed: unable to create image: Insecure dependency in exec while 
>> running with -T switch at /usr/share/perl/5.14/IPC/Open3.pm line 187. 
>> 
>> 
>> qm clone command line works fine 
> _______________________________________________ 
> pve-devel mailing list 
> pve-devel at pve.proxmox.com 
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 



More information about the pve-devel mailing list