The check used was completely wrong and so the startall and stopall
API calls touched HA managed service, which they shouldn't.
Using the vm_is_ha_managed call from the HA stack fixes that.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
When adding the new LXC config format we forgot to adapt the
get_start_stop_list and do s/pve.startup/onboot/
This fixes that qemu VMs were started always before LXC CTs,
irregardless of the defined order.
This also let's us simplify the surrounding code and reduce code
reuse.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
As we, for now, default to exclude ext5 from our build it's better
to make an check if its directory exists, and only then allow to
load from it. Else we can get errors on proxy startup, and when
someone passes the ext5 parameter.
Also make a indent/whitespace cleanup.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
verify_blockdev_path didn't check the result of abs_path
causing commands like `pveceph createosd bad/path` to error
with a meaningless "Use of uninitialized value" message.
[TaskList]:
* format task date on the same node as the title. If space isn't
there, the date goes on it's own line.
* Truncate output of task status to a maximum of 160 characters to
fix formating, also the list should only give an overview.
* set list flex to 1, this fixes height and scrolling issues
* Put affected node and status on a own line.
[TaskViewer]
* Only show task status, the exit status is in the log below,
also some long statuses break this page completely.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
also the keys to display from the lxc config where updated as some
from OpenVZ times where used.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
As the lxc and qemu summary pages share almost all the code we
implement a base class which provides the shared functionality.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVEBar inherits from Ext.TitleBar and provides an titlebar for the
PVE mobile components to reduce code reuse.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Add function to go a step back in browsing history.
Also don't use the anim var in setActiveItem when no old appWindow
is defined, as it is undefined in this scope.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Adapt the mobile UI code to the slightly different returned data
from the '/cluster/status/' API call.
Also sort the node list to get an consistent staying UI, this
mirrors the behaviour of the 'desktop' UI.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>