2640 Commits

Author SHA1 Message Date
Emmanuel Kasper
b836590854 Set VirtIO drivers as default when using the Qemu Wizard and the OS Type is Linux
virtio-blk and virtio-net have been in the kernel since 2.6.25 released in 2008, so
it safe to assume distributions using the l26 type will have these drivers.
2016-07-21 12:52:27 +02:00
Emmanuel Kasper
7c77d84811 USe PVE.qemu.OSDefaults statics to get defaults for NIC and Storage Controller 2016-07-21 12:50:27 +02:00
Emmanuel Kasper
d1287dc3f4 Add PVE.qemu.OSDefaults class to hold OS-dependant wizard defaults 2016-07-21 12:46:52 +02:00
Emmanuel Kasper
07e905dc07 Rename Wizard Component aliases using camelCase
this is ExtJS recommended practise, follows most of our
conventions and is necessary for querying
components with Ext.ComponentQuery.query() without escaping the
dots in the component widget name.
2016-07-21 12:44:13 +02:00
Dominik Csapak
9b7da74460 change default proxy test to noneText
instead of having "Do not use a proxy" simply
use PVE.Utils.noneText, which defaults to 'none'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-07-18 12:40:59 +02:00
Dominik Csapak
b06458502b prevent infinite loop in edit window
on touch devices, the isValid function of forms trigger
a layout event, which the edit window listens to and
executes an isValid on the form -> infinite loop

we now suspend the layout before this and continue afterwards

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-07-15 16:49:25 +02:00
Dominik Csapak
e00bba5a9d add HostList validator and check monhosts with it
this adds a vtype which splits the given string into a list by
; or , or space
and checks if it is a valid (hostname|ip) port notation

also make the rbd monhost input field use it

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-07-15 11:53:05 +02:00
Dominik Csapak
44f800ae91 refactor DnsName regex
we will need this again

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-07-15 11:53:05 +02:00
Dominik Csapak
6fb4c0a693 give comment in bridgeselector more space
change the default column widths, to give more space
to the comment column

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-07-12 14:43:54 +02:00
Wolfgang Bumiller
e140024880 bump version to 4.2-17 2016-07-11 13:11:11 +02:00
Fabian Grünbichler
91b8bd1b92 vzdump: add newline in mail text
for consistency with html version and better readability
2016-07-07 11:12:24 +02:00
Wolfgang Bumiller
1f4f97ec0c Fix #1048: vzdump: include job-* hook logs in email 2016-07-07 10:52:58 +02:00
Wolfgang Bumiller
0c53ef65e2 vzdump: safer cp call 2016-07-07 10:52:58 +02:00
Wolfgang Bumiller
21efc4f7ee fix undefined value warning in resources api call
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.
2016-07-07 08:15:15 +02:00
Dominik Csapak
a5691d8c51 fix surviving update store
when a load of an update store was ongoing and stopUpdate
was called, the task could not be canceled, and the store
would remain indefinitely

this patch sets 'isStopped' of the store on stopUpdate
and checks it on the next update and stopping it then

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-07-07 08:15:14 +02:00
Dominik Csapak
d3f72644d4 reload lxc resources also on activate
in a previous commit (829ded13) we changed the reload
from the activate event to afterrender, because
activate will not be fired as a lazyitem

but this only fires once, so we also reload on activate.
with the lazyitem/tabchange fix from a previous commit,
this has now the correct behaviour

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-07-07 08:09:53 +02:00
Dominik Csapak
637694a3d8 fire activate event for lazyitems in tabpanels
when changing tabs which are lazyitems,
there will be no activate event for the content of the tab

so we fire it manually on tabchange (if the new card has the
lazyitems plugin activated) as we do it for the hide event

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-07-07 08:09:53 +02:00
Dominik Csapak
f368787fbf correctly delete name of a qemu vm
we mistakenly sent
'name:'
instead of:
'delete:name'

in case of an empty name of qemu guest
which lead to an error message that it is
not a valid dns name

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-07-07 08:09:53 +02:00
Wolfgang Link
e4b0b12945 Add some extra debug information to the report.
There were no useful information about block device.
2016-07-05 12:30:00 +02:00
Emmanuel Kasper
8204daafaf add ca-certificates as required depency
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.
2016-07-05 09:31:47 +02:00
Wolfgang Bumiller
332022c6f7 lxc/status: show disk usage on running containers 2016-07-04 14:13:50 +02:00
Dominik Csapak
c9c7af3cb0 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

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-07-01 11:10:37 +02:00
Dominik Csapak
e7a0c23d13 fix #757: show the bridge comment in the selector
this shows the comment of the bridge in the selector

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-30 14:06:59 +02:00
Dominik Csapak
42f96f3bfd add comment to network edit and view
this adds a new textinput field for the comment to the
network edit window and a new column for it in the
network view

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-30 14:06:45 +02:00
Dominik Csapak
caf50c8eee add comments to network model
we already have a comments field for network entries
now we have it in the model

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-30 14:04:06 +02:00
Dominik Csapak
e33712e608 fix #1043: prevent ceph destroypool when in use
also introduces a force parameter to this call
if force is true, the call destroys the ceph pool
even when it is use

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-30 13:47:36 +02:00
Wolfgang Bumiller
837f149a72 bump version to 2.4-16 2016-06-29 14:41:05 +02:00
Wolfgang Bumiller
c42f212de0 use new repoman toolkit 2016-06-29 14:41:04 +02:00
Dominik Csapak
b59feca284 remove unnecessary debug output
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-29 14:32:36 +02:00
Dominik Csapak
1223e967b7 fix background color of template badges
the template badges had the wrong background color
when selected or hovered, so the line would be
blue but the background of the icon would be white

now the background is the correct color

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-29 14:32:36 +02:00
Dominik Csapak
250a9ca7d9 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

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-29 14:32:36 +02:00
Dominik Csapak
c8ac1f9446 make content of configuration window a component
otherwise, the styling does not apply

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-29 14:32:36 +02:00
Wolfgang Bumiller
e29f36e3d1 build-depends: add liblocale-po-perl 2016-06-29 14:32:08 +02:00
Dominik Csapak
f7dc48c7d6 fix #558: add cluster wide search to the top
this makes use of the new globalsearch field and
puts it on top of the page, so that one can easily use it

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-21 10:24:03 +02:00
Dominik Csapak
701cd8ca81 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

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-21 10:23:38 +02:00
Dominik Csapak
6669ad2ca4 add configuration button to backups
this adds a button to show the configuration of backups

this helps if someone wants to know the details of the
vm in the backup (e.g. name, storages, etc.)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-16 16:35:13 +02:00
Dominik Csapak
59935c3b6f make bottom panel collapsible
to save space if not needed, but keep it available with one click
(even temporarily when you click the title instead of the
expand tool)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-16 16:34:24 +02:00
Dominik Csapak
db7d6c2cd9 make viewselector stateful
to save the view across browser refresh/sessions

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-16 16:33:59 +02:00
Dominik Csapak
41d1af9d44 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

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-16 16:33:38 +02:00
Dietmar Maurer
bb37b5e3af bump version to 2.4-15 2016-06-16 10:59:03 +02:00
Dominik Csapak
4cd199e8f3 remove unnecessary information from lxc templates
as with vm templates, restyle the summary panel
for lxc templates

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-16 10:53:54 +02:00
Dominik Csapak
5445badec7 change bodystyle to bodypadding
use the shortcut for padding,
same as everywhere else

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-16 10:53:09 +02:00
Dominik Csapak
c133adb477 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)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-15 16:39:11 +02:00
Dominik Csapak
00270ba88d move notepanel padding out of the class
it makes more sense to define the padding in context,
rather than directly in the component

especially if we want to use this panel elsewhere in the future

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-15 16:37:45 +02:00
Dominik Csapak
79b3cbc00a add 'edit' tool to notes panel
this adds a tool to the note panel to edit it,
this is clearer than just double clicking the notes field
(also makes it easier on tablets)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-15 16:35:04 +02:00
Dominik Csapak
307d710aff add a 'bootdisk size' entry to the status view
to show the size of the current bootdisk of the vm/container

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-15 16:25:38 +02:00
Dominik Csapak
60b1b9bf8b remove RAM column from lxc snapshottree (temporarily)
since we cannot save the ram state for lxc containers currently,
it makes no sense to display a column, where every entry is 'no'

i left it there but commented it out, so that when we implement it,
we just have to reenable the column

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2016-06-15 16:24:49 +02:00
Dietmar Maurer
655f944ac8 bump version to 4.2-14 2016-06-14 12:21:36 +02:00
Emmanuel Kasper
7bfae7d692 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
2016-06-14 12:20:46 +02:00
Emmanuel Kasper
aee1fb6c02 Add Help buttons for three more Qemu Panels 2016-06-14 12:20:38 +02:00