Commit Graph

5190 Commits

Author SHA1 Message Date
Alexandre Derumier
532247b80e pve-manager : NoVncIndex : add inflator.js && fullscreen button
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2015-08-28 12:02:17 +02:00
Wolfgang Link
6c20e90f47 Add possibillity to distinguish container and vm on RBD Storage.
this is necessary because we use image files for both.
2015-08-26 15:33:22 +02:00
Emmanuel Kasper
d01aeb3431 Pass the list of of combobox items as a property
The original fix using a config Object was a bit overkill, this works well too , requires less code in the child classes, and is more consistent with rest of the code we have.
2015-08-26 05:59:27 +02:00
Emmanuel Kasper
30279be041 Remove Java applet from list of available console viewers.
We already did this for ExtJS4, just copying from there
2015-08-26 05:59:09 +02:00
Wolfgang Link
67469842a0 complete optional packet list for pveversion 2015-08-25 09:39:14 +02:00
Dietmar Maurer
f96ba76cd6 fix bug #690: workaround - list all storages
It is currently unclear howto restrict storages for container usage.
The 'rootdir' property does not work anymore, because we can now create
containers on normal VM image files.
2015-08-25 07:57:32 +02:00
Dietmar Maurer
3900f2d10b bump version to 4.0-30 2015-08-24 06:37:13 +02:00
Dietmar Maurer
c7b3410b39 use predefined text for default values 2015-08-20 11:03:47 +02:00
Dietmar Maurer
c9f915fff4 lxc GUI: add tty and console options 2015-08-20 10:59:18 +02:00
Dietmar Maurer
8759fc2ee9 bump version to 4.0-29 2015-08-18 16:46:27 +02:00
Emmanuel Kasper
511d1ae864 ext5migrate: move setting the Panel title into the class properties
Ext.applyIf(me, {
	    title: gettext('Search')
});
in initComponent() is not safe anymore with ExtJS5.
Since the 'title' property is existing at that stage (even if with a null or undefined value), Ext.applyIf will not update it.
2015-08-18 16:43:17 +02:00
Emmanuel Kasper
8c1c7742fe ext5migrate: enable striped row, it now works with ExtJS5 2015-08-18 16:42:58 +02:00
Emmanuel Kasper
c8e0699d5d ext5migrate: do not set a custome idProperty for the KeyValue model
ExtJS refuses with version to have an id set to an empty string, hence we can't
use our "key" property as a custom idProperty (an empty string for key is ok for us, and is used to set back a PVE property to its default value)

We always access the KeyValues entities via their Key property, so this change should be safe.
2015-08-18 16:40:11 +02:00
Emmanuel Kasper
d5301f2341 ext5migrate: pass the items we want in the ComboBox as a config property
Since ExtJS5, when doing such a declaration,

	Ext.applyIf(me, {
	    items: {
		xtype: 'pveKVComboBox',
		comboItems: data,
	    }
	});

the comboItems property is passed in the parent class as a config object,
instead of being directly available via this.comboItems

Since using a config object is the recommended way of passing parameters
int the ExtJS class model, adapt the parent class to use the new paradigm.
2015-08-18 16:38:36 +02:00
Dietmar Maurer
b8d5dcf5ae correctly display lxc templates 2015-08-18 09:43:15 +02:00
Dietmar Maurer
62fb1d2d65 lxc GUI: implement console mode option 2015-08-17 12:49:45 +02:00
Wolfgang Link
043f17dc74 fix bug #684: Fix Typo 2015-08-17 10:59:40 +02:00
Wolfgang Link
4905626e31 fix bug #682: change at the Gui the used disk size.
in the pvesm and pvesh we are giving the correct size of the used space from a disk.
this change make the output of Gui and CLI consistent.
2015-08-17 09:47:36 +02:00
Wolfgang Bumiller
957a59b308 Ceph: fix old interfaces access in find_node_ip
Fixes #681
2015-08-12 09:43:03 +02:00
Wolfgang Bumiller
c182eb5891 bridgevlanport: replace sed pipe with substitution
The previous code stripped *all* combinations of zero or
more letters and digits followed by a dot of an interface
name to retrieve the VLANID. At the same time the supposedly
opposite code for IF_VLAN_RAW_DEVICE only actually extracts
the part up to the *first* dot. Thus an interface named
'a.b.0' would have a VLANID of 0 and a raw device name of
just 'a'.
I also don't see a reason to limit the removed portions to
alphanumeric characters. I.e. an interface named tap-test.0
would result in a VLANID of 'tap-0' and an
IF_VLAN_RAW_DEVICE of 'test'.

A simple shell substitution seems to do a much better job
and is more efficient than forking out two processes with a
pipe.
2015-08-11 10:26:35 +02:00
Dietmar Maurer
eafe236e8a pveversion: add criu package 2015-08-10 09:55:00 +02:00
Wolfgang Link
241c6f94c5 Add extra optional list to pveversion
if the packet on the opt list is not installed, it will not shown.
2015-08-10 09:53:18 +02:00
Dietmar Maurer
ce73ba1eef bump version to 4.0-28 2015-08-07 12:14:14 +02:00
Dietmar Maurer
5ceec1f57b allow all storages with content type 'images' for containers
New LXC containers can use raw images, so the distinction between 'images'
and 'rootdir' does not really makes sense now.
2015-08-07 10:34:56 +02:00
Emmanuel Kasper
abb96ea4a4 add some green to the icon to indicate more clearly when LXC and KVMs are running 2015-08-06 11:32:12 +02:00
Dietmar Maurer
3a337ea2ce bump version to 4.0-27 2015-08-06 11:30:50 +02:00
Dietmar Maurer
5af09e2471 update LXC GUI (support new rootfs and size parameter). 2015-08-06 10:34:54 +02:00
Dietmar Maurer
3d1bc0de00 bump version to 4.0-26 2015-07-31 11:17:05 +02:00
Wolfgang Bumiller
548db92416 add dhcp and slaac options to lxc network config 2015-07-31 10:51:01 +02:00
Alen Grizonic
a00a9ffd80 bug #659 (pool support) fix
lxc added to additional GUI pool functions (also for ExtJS5)

Signed-off-by: Alen Grizonic <a.grizonic@proxmox.com>
2015-07-30 11:39:11 +02:00
Dietmar Maurer
ea92d8b613 bridgevlan: avoid bash regex 2015-07-30 11:28:50 +02:00
Thomas Lamprecht
cc61ea3661 Use JSONSchema to parse vzdump config
Instead of a lot of hardcoded if's use JSONSchema::parse_config to
parse and validate vzdump.conf. To do that $confdesc was extended
to match a valid schema.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2015-07-30 11:27:49 +02:00
Emmanuel Kasper
398459d1e9 ext5migrate: set buttons property directly instead of calling applyIf
It seems that in ExtJS5 the prototype of the Window component already sets
some default values to me.buttons and me.layout, hence calling applyIf
on these properties will silently fail.

me.layout is already set to 'auto' by the framework, we don't need to set
that anymore.
2015-07-30 09:04:56 +02:00
Emmanuel Kasper
6d4e7e14d2 Move subscription tab to the outmost right of the node tab panel
This brings consistency with the datacenter tab panel.
2015-07-30 09:04:38 +02:00
Emmanuel Kasper
74dacdae26 remove debugging traces 2015-07-30 09:03:55 +02:00
Wolfgang Bumiller
5301228562 fix a remote_node_ip calling context
Using remote_node_ip to build a hash needs to explicitly
request a scalar context.
2015-07-30 08:58:04 +02:00
Dietmar Maurer
6bc821039a control.in: add replaces/provides for vlan
So that we can upgrade without problems (automatically remove old vlan package).
2015-07-29 06:57:46 +02:00
Alexandre Derumier
1010159a86 add vlan aware ifupdown script v3
This add support to enable vlan aware bridge,
and management interfaces

example: 1 bridge and 1 administration port on vlan 100

auto vmbr0
iface vmbr0 inet manual
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0
        bridge_vlan_aware yes
        bridge_vids 10-15

auto vmbr0.100
iface vmbr0.100 inet static
        address X.X.X.X
        netmask 255.255.255.0
        gateway X.X.X.X

bridge_vids is optional, and allow on the specified vlans.(current take 1 value or range, need to be improve with list)
If not specified, the allowed vlan are 2-4094.
vlan 1 is the default pvid. (all untagged traffic is going to this vlan).

scripts:
- /etc/network/if-up.d/bridgevlan

manage bridge vlan aware configuration

- /etc/network/if-up.d/bridgevlanport

manage bridge vlan admin port

-/etc/network/if-pre-up.d/vlan
-/etc/network/if-post-down.d/vlan

replace current vlan package, without vconfig usage and cleanups
It's only needed to create vlan interface from bridge_ports.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2015-07-29 06:46:16 +02:00
Thomas Lamprecht
c2dbc5e32d fix bug #662: wrong subroutine for parsing startup order
Changed from old, now missing, subroutine parse_startup() to new
pve_parse_startup_order()

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2015-07-28 09:31:09 +02:00
Wolfgang Bumiller
0a5b8747b0 Add missing ')' to en-us keyboard layout option.
Closes #303
2015-07-28 09:19:17 +02:00
Wolfgang Link
42bdda9576 Fix Extent ZFSPool Content with rootdir 2015-07-28 08:34:42 +02:00
Dietmar Maurer
0097a5f857 bump version to 4.0-25 2015-07-27 13:28:38 +02:00
Dietmar Maurer
78def3da3c PVE.dc.BackupView: improve rendering of boolean values 2015-07-27 09:27:44 +02:00
Thomas Lamprecht
e0d8276f31 Added UI elements for the backup job disabling function
Added a column in the datacenter backup job overview to see if a job
is enabled or not. Added checkbox to the input panel, which enables
or disables a job.
This closes bug/feature request 492.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2015-07-27 09:15:39 +02:00
Thomas Lamprecht
4341db1d2f Added functionality do disable temporary a backup job
Added an option to disable a backup job while preserving its
settings. When a job is disabled a '#' is added in front of the vzdump
command in the vzdump.cron file. So the cron job still fires,
but only a comment gets executed. If we would comment out the cron job
a bit more changes to the parser would be needed.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2015-07-27 09:15:09 +02:00
Wolfgang Link
3f2577db0b Change Ct restore rest call
this change will provide that it will be possibel to restore LXC and OVZ dumpfiles over the gui.
2015-07-24 13:48:20 +02:00
Wolfgang Link
459cb9ac36 Extent ZFSPool Content with rootdir 2015-07-24 13:16:04 +02:00
Wolfgang Link
2a30f27405 Add Snapshot to LXC
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
2015-07-24 11:03:40 +02:00
Thomas Lamprecht
778d5b6d4e Added parallel compress support for vzdump with pigz.
Added a vzdump.conf option to controll gzip compression.
When 'pigz' (defaults to 0) is >0, pigz support is enabled.
When the pigz option equals 1 pigz uses #cores/2 threads,
else it spawns N threads. To use it select gzip in the web
interface and set the aproppriate option in /etc/vzdump.conf

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2015-07-23 06:08:09 +02:00
Alen Grizonic
d6ca60267f lxc added to read_pool
Signed-off-by: Alen Grizonic <a.grizonic@proxmox.com>
2015-07-22 13:30:23 +02:00