Re: [pve-devel] [PATCH][pve-manager] Changes set_userpasswd method

2014-01-13 Thread Dietmar Maurer
Sorry, but you need to resend with correct e-mail. From: Игорь Шестаков [mailto:sh...@selectel.ru] Sent: Montag, 13. Jänner 2014 22:36 To: Dietmar Maurer Cc: pve-devel Subject: Re: [pve-devel] [PATCH][pve-manager] Changes set_userpasswd method Oh, i'm sorry. Can you just change it or i ne

Re: [pve-devel] [PATCH][pve-manager] Changes set_userpasswd method

2014-01-13 Thread Игорь Шестаков
se the email address you used to send the CLA (sh...@selectel.ru) > > > > *From:* Игорь Шестаков [mailto:sh...@selectel.ru] > *Sent:* Montag, 30. Dezember 2013 12:12 > > *To:* Dietmar Maurer > *Cc:* pve-devel > *Subject:* Re: [pve-devel] [PATCH][pve-manager] Changes set_us

Re: [pve-devel] [PATCH][pve-manager] Changes set_userpasswd method

2014-01-12 Thread Dietmar Maurer
rer Cc: pve-devel Subject: Re: [pve-devel] [PATCH][pve-manager] Changes set_userpasswd method Yes, i test it with patched vzctl It mount vm, set password and unmount vm(for ploop and for simfs too) On Mon, Dec 30, 2013 at 3:07 PM, Dietmar Maurer mailto:diet...@proxmox.com>> wrote: > what a

Re: [pve-devel] [PATCH][pve-manager] Changes set_userpasswd method

2013-12-30 Thread Игорь Шестаков
Yes, i test it with patched vzctl It mount vm, set password and unmount vm(for ploop and for simfs too) On Mon, Dec 30, 2013 at 3:07 PM, Dietmar Maurer wrote: > > what about this patch? > > There is no changelog - so what changed from previous version? Is it > tested this time? > > -- С уваж

Re: [pve-devel] [PATCH][pve-manager] Changes set_userpasswd method

2013-12-30 Thread Dietmar Maurer
> what about this patch? There is no changelog - so what changed from previous version? Is it tested this time? ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Re: [pve-devel] [PATCH][pve-manager] Changes set_userpasswd method

2013-12-30 Thread Игорь Шестаков
Hello and merry Christmas! what about this patch? On Mon, Dec 16, 2013 at 7:35 PM, Игорь Шестаков wrote: > From 8118b81626a73fcb83b6b21d498b6724c4b63817 Mon Sep 17 00:00:00 2001 > From: Igor Shestakov > Date: Mon, 16 Dec 2013 17:39:09 +0400 > Subject: [PATCH] changed set_rootpasswd method for

Re: [pve-devel] [PATCH][pve-manager] Changes set_userpasswd method

2013-12-16 Thread Игорь Шестаков
>From 8118b81626a73fcb83b6b21d498b6724c4b63817 Mon Sep 17 00:00:00 2001 From: Igor Shestakov Date: Mon, 16 Dec 2013 17:39:09 +0400 Subject: [PATCH] changed set_rootpasswd method for ploop support Signed-off-by: Igor Shestakov --- PVE/API2/OpenVZ.pm | 12 +++- PVE/OpenVZ.pm | 7 ++

Re: [pve-devel] [PATCH][pve-manager] Changes set_userpasswd method

2013-11-14 Thread Dietmar Maurer
> Can we apply this patch as preparation for future ploop use? > If yes, later(this week) i send you correct patch. Yes, but only if it works without problems. So please test your code before sending patches to the list. ___ pve-devel mailing list pve-

Re: [pve-devel] [PATCH][pve-manager] Changes set_userpasswd method

2013-11-14 Thread Игорь Шестаков
Can we apply this patch as preparation for future ploop use? If yes, later(this week) i send you correct patch. On Thu, Nov 14, 2013 at 1:52 PM, Dietmar Maurer wrote: > > And we need to discuss, how to solve this problem. We need to update > vzctl in > > new versions of proxmox and somehow pas

Re: [pve-devel] [PATCH][pve-manager] Changes set_userpasswd method

2013-11-14 Thread Dietmar Maurer
> And we need to discuss, how to solve this problem. We need to update vzctl in > new versions of proxmox and somehow pass vztemplate param. Or we need to > recompile vzctl(remove template download functions and change container > create function to support full path to templates) We apply various

Re: [pve-devel] [PATCH][pve-manager] Changes set_userpasswd method

2013-11-14 Thread Игорь Шестаков
On Mon, Nov 11, 2013 at 9:25 AM, Dietmar Maurer wrote: > Please can you use 'git send-email' to send patches? Also add correct > 'signed-of-by' entries. > > > diff --git a/PVE/OpenVZ.pm b/PVE/OpenVZ.pm > > index a16d4fc..7788f66 100644 > > --- a/PVE/OpenVZ.pm > > +++ b/PVE/OpenVZ.pm > > @@ -1244,

Re: [pve-devel] [PATCH][pve-manager] Changes set_userpasswd method

2013-11-10 Thread Dietmar Maurer
Please can you use 'git send-email' to send patches? Also add correct 'signed-of-by' entries. > diff --git a/PVE/OpenVZ.pm b/PVE/OpenVZ.pm > index a16d4fc..7788f66 100644 > --- a/PVE/OpenVZ.pm > +++ b/PVE/OpenVZ.pm > @@ -1244,13 +1244,13 @@ sub replacepw { >  } > >  sub set_rootpasswd { > -    m

Re: [pve-devel] [PATCH][pve-manager] Changes set_userpasswd method

2013-11-06 Thread Игорь Шестаков
What about this patch? On Mon, Oct 28, 2013 at 1:31 PM, Игорь Шестаков wrote: > Done. > > diff --git a/PVE/OpenVZ.pm b/PVE/OpenVZ.pm > index a16d4fc..7788f66 100644 > --- a/PVE/OpenVZ.pm > +++ b/PVE/OpenVZ.pm > @@ -1244,13 +1244,13 @@ sub replacepw { > } > > sub set_rootpasswd { > -my ($p

Re: [pve-devel] [PATCH][pve-manager] Changes set_userpasswd method

2013-10-28 Thread Игорь Шестаков
Done. diff --git a/PVE/OpenVZ.pm b/PVE/OpenVZ.pm index a16d4fc..7788f66 100644 --- a/PVE/OpenVZ.pm +++ b/PVE/OpenVZ.pm @@ -1244,13 +1244,13 @@ sub replacepw { } sub set_rootpasswd { -my ($privatedir, $opt_rootpasswd) = @_; +my ($opt_rootpasswd, $rootdir) = @_; -my $pwfile = "$priva

Re: [pve-devel] [PATCH][pve-manager] Changes set_userpasswd method

2013-10-28 Thread Dietmar Maurer
> Of course, we can use "vzctl mount", but then function set_rootpasswd must be > rewrited to use "vzctl mount" for simfs too. I guess that is the correct way to implement it. ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/

Re: [pve-devel] [PATCH][pve-manager] Changes set_userpasswd method

2013-10-26 Thread Игорь Шестаков
> > And if we use "vzctl mount", we must pass "VE_ROOT" to function. > > Why? > vzctl mounting any image/simfs to VE_ROOT. If we use ploop, in VE_PRIVATE we only heave XML file with description and image file. ___ pve-devel mailing list pve-devel@pve.pro

Re: [pve-devel] [PATCH][pve-manager] Changes set_userpasswd method

2013-10-25 Thread Dietmar Maurer
> And if we use "vzctl mount", we must pass "VE_ROOT" to function. Why? > Of course, we can use "vzctl mount", but then function set_rootpasswd must be > rewrited to use "vzctl mount" for simfs too. I do not really understand why that is required? But I will take a closer look at that next wee

Re: [pve-devel] [PATCH][pve-manager] Changes set_userpasswd method

2013-10-25 Thread Игорь Шестаков
@selectel.ru] > > Sent: Freitag, 25. Oktober 2013 15:37 > > To: Dietmar Maurer > > Cc: pve-devel > > Subject: Re: [pve-devel] [PATCH][pve-manager] Changes set_userpasswd > > method > > > > Done > > > > diff --git a/PVE/API2/OpenVZ.pm b/PVE/AP

Re: [pve-devel] [PATCH][pve-manager] Changes set_userpasswd method

2013-10-25 Thread Dietmar Maurer
Sorry if this is a stupid question, but does 'vzctl mount' does not work with ploop? > -Original Message- > From: Игорь Шестаков [mailto:sh...@selectel.ru] > Sent: Freitag, 25. Oktober 2013 15:37 > To: Dietmar Maurer > Cc: pve-devel > Subject: Re: [pve-devel]

Re: [pve-devel] [PATCH][pve-manager] Changes set_userpasswd method

2013-10-25 Thread Игорь Шестаков
Yes, you are right. I need to send changed version? On Fri, Oct 25, 2013 at 5:53 PM, Michael Rasmussen wrote: > On Fri, 25 Oct 2013 17:37:19 +0400 > Игорь Шестаков wrote: > > > + my $fstype = "ext4"; > Just a comment: What will happen in case the file system is not ext4? > > Why not simply ski

Re: [pve-devel] [PATCH][pve-manager] Changes set_userpasswd method

2013-10-25 Thread Michael Rasmussen
On Fri, 25 Oct 2013 17:37:19 +0400 Игорь Шестаков wrote: > + my $fstype = "ext4"; Just a comment: What will happen in case the file system is not ext4? Why not simply skip this and let the mount command deside which kind of file system to mount? Mount will only fail if the image uses an unsuppor

Re: [pve-devel] [PATCH][pve-manager] Changes set_userpasswd method

2013-10-25 Thread Игорь Шестаков
Done diff --git a/PVE/API2/OpenVZ.pm b/PVE/API2/OpenVZ.pm index 06fe60b..eeba1a2 100644 --- a/PVE/API2/OpenVZ.pm +++ b/PVE/API2/OpenVZ.pm @@ -413,7 +413,7 @@ __PACKAGE__->register_method({ # hack: vzctl '--userpasswd' starts the CT, but we want # to avoid that for create - PVE::OpenVZ::set_ro

Re: [pve-devel] [PATCH][pve-manager] Changes set_userpasswd method

2013-10-25 Thread Dietmar Maurer
> Previous solution work only with simfs. > If we use ploop, we need to mount VM image and then change password. > > Why we can't solve this with simple, built-in solution? Because that made many troubles. Starting a container at create stage is really unexpected and not what we want to do (for e

Re: [pve-devel] [PATCH][pve-manager] Changes set_userpasswd method

2013-10-24 Thread Игорь Шестаков
Previous solution work only with simfs. If we use ploop, we need to mount VM image and then change password. Why we can't solve this with simple, built-in solution? VM will start, but only for password change. On Thu, Oct 24, 2013 at 7:18 PM, Dietmar Maurer wrote: > > - # hack:

Re: [pve-devel] [PATCH][pve-manager] Changes set_userpasswd method

2013-10-24 Thread Dietmar Maurer
> - # hack: vzctl '--userpasswd' starts the CT, but we want > - # to avoid that for create > - PVE::OpenVZ::set_rootpasswd($private, $password) > + PVE::OpenVZ::set_rootpassword($vmid, $password) As mentioned in the comment, we don't want to

[pve-devel] [PATCH][pve-manager] Changes set_userpasswd method

2013-10-24 Thread Игорь
Current solution with changing passwd and shadow files in VM private directories doesn't work with PLOOP. We MUST use vzctl set --userpasswd diff --git a/PVE/API2/OpenVZ.pm b/PVE/API2/OpenVZ.pm index 06fe60b..13fdb5a 100644 --- a/PVE/API2/OpenVZ.pm +++ b/PVE/API2/OpenVZ.pm @@ -411,9 +411,7 @@ __PA