[pve-devel] Fwd: Re: Template Code

Dietmar Maurer dietmar at proxmox.com
Fri Mar 22 08:07:07 CET 2013


yes, currently only root is allowed to do that.

> -----Original Message-----
> From: pve-devel-bounces at pve.proxmox.com [mailto:pve-devel-
> bounces at pve.proxmox.com] On Behalf Of Stefan Priebe - Profihost AG
> Sent: Freitag, 22. März 2013 08:03
> To: pve-devel at pve.proxmox.com
> Subject: [pve-devel] Fwd: Re: Template Code
> 
> 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
> > >
> >
> 
> 
> _______________________________________________
> 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