Re: [pve-devel] ceph packages for jessie

2015-06-16 Thread Dietmar Maurer
> If you want, I can build last hammer packages for jessie, it's quite easy. > > http://ceph.com/docs/next/install/build-ceph/ > > # git clone ceph > # cd ceph > #./install-deps.sh > # dpkg-buildpackage Many thanks for the update. I think it is best to wait for an official release.

Re: [pve-devel] [PATCH] qemuserver : vm_status : add extended stats (disks, nics, memory).

2015-06-16 Thread Dietmar Maurer
> > + $d->{memory} = $info; > > >>Why? We already copied all data? > currently we send > > max_mem > actual > free_mem > mem = total_mem - free_mem > > ballon info return more counters > > actual > max_mem > total_mem (great to have it without doing reverse mem+free_mem) > free_mem > mem_swap

Re: [pve-devel] ceph packages for jessie

2015-06-16 Thread Emmanuel Kasper
> Also,currently, debian jessie packages are firefly 0.80.7-2. > > But ceph repo (wheezy packages) are already at 0.80.9. BTW, I see that jessie-backports have 0.80.9-2~bpo8+1 rmadison ceph | grep jessie-backports ceph | 0.80.9-2~bpo8+1 | jessie-backports | source, amd64, arm64, armel, armhf

Re: [pve-devel] [PATCH] qemuserver : vm_status : add extended stats (disks, nics, memory).

2015-06-16 Thread Alexandre DERUMIER
> I don't have checked how you get counters for lxc. > We also have counters in cgroups. >>Yes, but different ones. Maybe, can we send different stats for qemu, lxc {root}->{qemu}->{vmid}->{ballooninfo} ->{blockstat}->{storageid}->{volumename} {root}->{lxc}->{vmid} (N

[pve-devel] [PATCH] qemuserver : vm_status : add extended stats (disks, nics, memory) V2

2015-06-16 Thread Alexandre Derumier
Add extended stats results for each nics,disks and memory on full stats mode only. Signed-off-by: Alexandre Derumier --- PVE/QemuServer.pm | 22 ++ 1 file changed, 22 insertions(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index e89308c..892b051 100644 --- a/PVE/Qe

Re: [pve-devel] Add support for external graphite metric server

2015-06-16 Thread Alexandre DERUMIER
>>I need to look at PVE::SectionConfig, I really don't known how it's work Could you create an empty sample Plugin ? I'm reading the code, but I'm a little bit lost. - Mail original - De: "aderumier" À: "dietmar" Cc: "pve-devel" Envoyé: Mardi 16 Juin 2015 08:27:38 Objet: Re: [pve-deve

Re: [pve-devel] Add support for external graphite metric server

2015-06-16 Thread Dietmar Maurer
> Could you create an empty sample Plugin ? > I'm reading the code, but I'm a little bit lost. yes, but I need a few days for that. ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Re: [pve-devel] [PATCH] qemuserver : vm_status : add extended stats (disks, nics, memory) V2

2015-06-16 Thread Dietmar Maurer
comments inline > On June 16, 2015 at 11:18 AM Alexandre Derumier wrote: > > > Add extended stats results for each nics,disks and memory on full stats mode > only. > > Signed-off-by: Alexandre Derumier > --- > PVE/QemuServer.pm | 22 ++ > 1 file changed, 22 insertions(+)

Re: [pve-devel] [PATCH] qemuserver : vm_status : add extended stats (disks, nics, memory) V2

2015-06-16 Thread Alexandre DERUMIER
>>Can't we use $d, like: >> >>$d->{nics}->{$dev}->{netout} = $netdev->{$dev}->{receive}; >>$d->{nics}->{$dev}->{netin} = $netdev->{$dev}->{transmit}; yes sure, I'll change that >>Can we do above outside the callback (only once)? Or can we avoid that? for storagecfg it can be usefull, for qe

[pve-devel] [PATCH] qemuserver : vm_status : add extended stats (disks, nics, memory) V3

2015-06-16 Thread Alexandre Derumier
Add extended stats results for each nics,disks and memory on full stats mode only. Signed-off-by: Alexandre Derumier --- PVE/QemuServer.pm | 11 +++ 1 file changed, 11 insertions(+) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index e89308c..ab9ac74 100644 --- a/PVE/QemuServer.pm

Re: [pve-devel] [PATCH] qemuserver : vm_status : add extended stats (disks, nics, memory) V3

2015-06-16 Thread Dietmar Maurer
applied, thanks! ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

[pve-devel] [PATCH] implement cloudinit v2

2015-06-16 Thread Alexandre Derumier
Signed-off-by: Alexandre Derumier --- PVE/QemuServer.pm | 181 +- control.in| 2 +- 2 files changed, 179 insertions(+), 4 deletions(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index e89308c..ac1be4a 100644 --- a/PVE/QemuServ

[pve-devel] qemu-server : implement cloudinit v2

2015-06-16 Thread Alexandre Derumier
changelog: - merge of all previous patches - add cidr && gateway options to netX - add support for sshkey - keep cloudinit cdrom attached and don't remove them - don't halt qemu after cloud-init setup - regenerate configdrive uuid (no more based on smbios)

[pve-devel] [PATCH] PVE:Daemon start/restart with systemd

2015-06-16 Thread Alen Grizonic
Added some lines which make it possible to start/restart daemons with pve scripts, avoiding the problem of systemd not recognizing the new status of the (re)started services. diff --git a/src/PVE/Daemon.pm b/src/PVE/Daemon.pm index e051500..16e08c9 100644 --- a/src/PVE/Daemon.pm @@ -578,6 +578

Re: [pve-devel] [PATCH] PVE:Daemon start/restart with systemd

2015-06-16 Thread Dietmar Maurer
Please can we also call 'systemctl' for 'stop'? We need to call systemd so that the control group is correctly destroyed. ___ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Re: [pve-devel] [PATCH] PVE:Daemon start/restart with systemd

2015-06-16 Thread Dietmar Maurer
some comments inline > diff --git a/src/PVE/Daemon.pm b/src/PVE/Daemon.pm > index e051500..16e08c9 100644 > --- a/src/PVE/Daemon.pm > @@ -578,6 +578,16 @@ my $read_pid = sub { > return $pid; > }; > > +my $init_ppid = sub { > +my $ppid = getppid(); > + > +if ($ppid == 1) { > +