[pve-devel] Fwd: Re: Template Code

Stefan Priebe - Profihost AG s.priebe at profihost.ag
Fri Mar 22 08:03:04 CET 2013


Hello,

while testing the PVE template code using non root user i'm getting:
Permission check failed (user != root at pam) (403)

Even though the user is PVEAdmin.


Greets,
Stefan


-------- Original-Nachricht --------
Betreff: Re: Template Code
Datum: Fri, 22 Mar 2013 07:43:28 +0100 (CET)
Von: Alexandre DERUMIER <aderumier at odiso.com>
An: Stefan Priebe <s.priebe at profihost.ag>

I think you should ask to Dietmar, because I'm only using proxmox as root,

and I don't known too much how permissions works.


Does it work with "qm template vmid.."  as root ?


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

De: "Stefan Priebe" <s.priebe at profihost.ag>
À: "Alexandre DERUMIER" <aderumier at odiso.com>
Envoyé: Jeudi 21 Mars 2013 20:00:54
Objet: Re: Template Code

Hi,

first of all i'm getting:
Permission check failed (user != root at pam) (403

Even though my user is PVEAdmin but yes it is not root. But shouldn't it
still work?

Thanks,
Stefan

Am 21.03.2013 15:44, schrieb Alexandre DERUMIER:
> this is strange 
> 
> code is very simple: 
> 
> 
> my $newname = $name; 
> $newname =~ s/^vm-/base-/; 
> 
> my $cmd = &$rbd_cmd($scfg, $storeid, 'rename', $name, $newname); 
> run_command($cmd, errmsg => "rbd rename $name' error", errfunc => 
> sub {}); 
> 
> 
> can you log the full rbd command ? 
> 
> (/PVE/storage/RBDPlugin.pm sub create_base) 
> 
> 
> 
> 
> *Alexandre **D**e**rumier* 
> 
> *Ingénieur Systèmes et Réseaux* 
> 
> *Fixe : *03 20 68 88 85 
> 
> *Fax : *03 20 68 90 88 
> 
> 45 Bvd du Général Leclerc 59100 Roubaix 
> 12 rue Marivaux 75002 Paris 
> 
> 
> 
> ------------------------------------------------------------------------ 
> *De: *"Stefan Priebe - Profihost AG" <s.priebe at profihost.ag> 
> *À: *"Alexandre DERUMIER" <aderumier at odiso.com> 
> *Envoyé: *Jeudi 21 Mars 2013 15:34:03 
> *Objet: *Re: Template Code 
> 
> yes it seems the dest pool is hardcoded it should stay at the source pool 
> 
> Mit freundlichen Grüßen 
> Stefan Priebe 
> Bachelor of Science in Computer Science (BSCS) 
> Vorstand (CTO) 
> 
> ------------------------------- 
> Profihost AG 
> Am Mittelfelde 29 
> 30519 Hannover 
> Deutschland 
> 
> Tel.: +49 (511) 5151 8181 | Fax.: +49 (511) 5151 8282 
> URL: http://www.profihost.com | E-Mail: info at profihost.com 
> 
> Sitz der Gesellschaft: Hannover, USt-IdNr. DE813460827 
> Registergericht: Amtsgericht Hannover, Register-Nr.: HRB 202350 
> Vorstand: Cristoph Bluhm, Sebastian Bluhm, Stefan Priebe 
> Aufsichtsrat: Prof. Dr. iur. Winfried Huck (Vorsitzender) 
> 
> Am 21.03.2013 15:27, schrieb Alexandre DERUMIER: 
> > the process is : 
> > 
> > rename the vm-.... volume to base-.... 
> > 
> > then rbd protect the volume. 
> > 
> > 
> > is the volume at format v2 ? 
> > 
> > 
> > 
> > 
> > 
> > *Alexandre **D**e**rumier* 
> > 
> > *Ingénieur Systèmes et Réseaux* 
> > 
> > *Fixe : *03 20 68 88 85 
> > 
> > *Fax : *03 20 68 90 88 
> > 
> > 45 Bvd du Général Leclerc 59100 Roubaix 
> > 12 rue Marivaux 75002 Paris 
> > 
> > 
> > 
> > ------------------------------------------------------------------------ 
> > *De: *"Stefan Priebe - Profihost AG" <s.priebe at profihost.ag> 
> > *À: *"Alexandre DERUMIER" <aderumier at odiso.com> 
> > *Envoyé: *Jeudi 21 Mars 2013 14:45:37 
> > *Objet: *Template Code 
> > 
> > Hi, 
> > 
> > i tried to convert my first VM into a template. This results into: 
> > "TASK ERROR: rbd rename vm-103-disk-1' error: source pool: vmstorssd1 
> > dest pool: rbd" 
> > 
> > Stefan 
> > 
> 





More information about the pve-devel mailing list