With the new calculation $pe->{maxcpu} was used before being
initialized to zero. Moving the initialization up.
Additionally setting $pe->{cpu} to $entry->{cpu} if maxcpu
is not set seems pointless as with its factor (maxcpu)
initialized to zero it is cancelled out anyway.
ca-certificates provides the necessary root ca certificates
to connect to the PVE enterprise repositories
The package was always installed since pve-manager 3.1-13 as an indirect
'Depends:' via liblwp-protocol-https, but could have been missing in previous
versions of pve.
Adding this dependency directly makes it sures that it's available
in each PVE installs no matter what Debian packagers do.
With this package installed we no longer need to ship
our own server CA cert.
Dominik Csapak [Mon, 20 Jun 2016 10:36:01 +0000 (12:36 +0200)]
fix #1030: calculate correct cpu usage of pools
we only added the % of the vms in a pool
which lead to wrong results
e.g. having a pool with 3 vms with 4 cores each and a
cpu usage of 50% each (2 cores at 100%)
lead to :
vm1 50%
vm2 50%
vm3 50%
pool 150%
instead we new calculate the percentage for the whole pool
Dominik Csapak [Tue, 21 Jun 2016 14:20:18 +0000 (16:20 +0200)]
set focus on tree after selecting a node
this is useful when using the new search field,
or when double clicking in the search tab,
since it focuses the item in the tree and lets
the treepanel scroll to the item
Dominik Csapak [Tue, 21 Jun 2016 07:22:54 +0000 (09:22 +0200)]
add globalsearchfield
this adds a field, the globalsearchfield
its use is to search across our resources (vm,nodes,storage,pools)
quickly and from everywhere
it filters by taking each word you write, and gives
points to resources based on how often the word matches or
if it is an exact match for a field (details in source), and
sorts after this relevance number
with enter or click on an entry, you go directly to the selected
resource
also supports key up/down selecting of the entries and
toggling the search globally with ctrl+space or ctrl+shift+f
Dominik Csapak [Thu, 16 Jun 2016 10:26:03 +0000 (12:26 +0200)]
make containerviewport stateful
with this patch, the split view saves its state
in the local storage, so that users don't lose this
after a refresh or even a new browser session
(only when they change browser/workstation)
if the window resizes (or refreshes),
the left/bottom panel gets resized to a sane width/height
in case this would be bigger than the viewport
to avoid an unusable interface
Dominik Csapak [Wed, 15 Jun 2016 13:33:51 +0000 (15:33 +0200)]
remove unnecessary information on template summary
since most of the information on the summary page is
irrelevant for templates (e.g. status,ha,using memory,graphs, etc),
we only show just the information which is available and helpful
since we then have the vertical space, we move the notes panel
below the statuspanel, to allow visually more space for the description
(which makes sense for a template)
Emmanuel Kasper [Tue, 14 Jun 2016 09:41:43 +0000 (11:41 +0200)]
Add a toplevel pointer to the PVE admin guide
Since the Admin Guide is now delivered with each standard
PVE installation, link it from the support tab
Initial idea was to include the chapters list in the panel itself
but a simple link renders better because:
* linking to toplevel allows to show that pdf and epub are also
available
* the chapter list is long and would need scrolling on laptop displays
* since a click opens the documentation in another tab, table of content
and content would be in two different tabs, which is not intuitive
Dominik Csapak [Wed, 1 Jun 2016 14:17:07 +0000 (16:17 +0200)]
check if tabs exist before selecting them
when switching from a vm to a template, if you
have a tab selected which does not exists in a template
(for example console or task history) you break
the site
this patch checks if the wanted tab actually exists,
and leave it on default (the first) when it does not
Emmanuel Kasper [Wed, 1 Jun 2016 10:15:44 +0000 (12:15 +0200)]
Add custom syle to pveHelpButton
Next / OK are already displayed in blue, which is the 'call-to-action'
color we use everywhere.
To prevent stealing attention from these buttons, switch help button
to grey
Emmanuel Kasper [Wed, 1 Jun 2016 10:15:42 +0000 (12:15 +0200)]
Add support for onlineHelp in Creation Wizard
Inside a wizard, switching to a new tab will fire
the 'activate' event to the new tab, causing
the inputPanel of this tab to display its help in
the wizard window.
Thomas Lamprecht [Fri, 20 May 2016 10:07:39 +0000 (12:07 +0200)]
Status: report errors on socket creation problems
If the socket couldn't be created (e.g. FQDN not resolvable) we
continued witouth any hint, when actualy writing the data we then
die'd. The user then does not really know why, so report errors
if the socket creation failed.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 20 May 2016 10:07:38 +0000 (12:07 +0200)]
Status: allow IPs and move properties to base class
We only allowed servers with the dns-name format, as such status
server may often be in internal networks and with no hostname
(testing, small network so no dns, ...) do not limit the
configuration possibilities with no reason.
Also move the base property part to the base Status class, all
current plugins use server and port so no need for double
declaration of format/descriptions.
If a future plugin doesn't need them it can omit them by not
returning the respective properties in the options method
inherited by SectionConfig.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Dominik Csapak [Wed, 18 May 2016 13:55:21 +0000 (15:55 +0200)]
fix reset button with bind mounts
if we do not disable the storageselector with bind mounts,
it automatically sets the first storage which can hold
containers (because of allowBlank: false) and triggers
the dirty flag but clicking on reset does not delete
the value there
please note that even if ceph(osd|mon).target are currently not available in ceph packages,
they are not used by proxmox api currently, because we always specify an id to a service.
targets are used to start/stop all services at the same time. Starting speficic serviceid is
done through ceph-(osd|mon)@.service files.
V2 changelog :
- remove setsid
- use [A-Za-z0-9]{1,32} pattern for services
Emmanuel Kasper [Tue, 10 May 2016 13:01:54 +0000 (15:01 +0200)]
Enlarge Object Grid first column default size
The framework value of 100 is not enough for many of our description
fields.
Setting this at the parent component level allow to remove
the end component setting.
Dominik Csapak [Fri, 6 May 2016 06:48:29 +0000 (08:48 +0200)]
fix #979: check always for migrated vm
we only checked for grouping attributes for moved vms,
but this is only true in server view
e.g. in pool view the grouping attributes is pool
and the item is not reselected, resulting in a "file not found"
error (it looks for the conf on the wrong node)