Commit Graph

1247 Commits

Author SHA1 Message Date
donoban
c943e2dd84
Don't wait! 2021-01-26 23:47:14 +01:00
donoban
696a668bbe
First initiate shutdown for all vm's, then wait 2021-01-25 22:40:10 +01:00
donoban
94ede98007
Display default netvm 2021-01-25 21:27:50 +01:00
donoban
a02aeb4c25
Fix possible 'None' default error 2021-01-10 23:39:33 +01:00
donoban
9a36089ee6
Fix wrong identation (thanks pylint) 2021-01-10 21:17:49 +01:00
donoban
4d68b64a3a
Avoid infite loop while waiting vm to shutdown 2021-01-10 20:54:03 +01:00
donoban
4bb156e061
Fix pylint warnings 2021-01-10 20:43:26 +01:00
donoban
ef8be34622
Cascade shutdown
https://github.com/QubesOS/qubes-issues/issues/6109
2021-01-10 19:10:36 +01:00
Marek Marczykowski-Górecki
96612fa355
tests: update for recent changes
- create_new_vm rework - especially new VM type selection
- minor changes in the main manager table
- rework of logs dialog (the test for the actual dialog is still
  missing, the current one only checks if it's called with proper
  arguments)
2021-01-09 06:01:59 +01:00
Marek Marczykowski-Górecki
2f48fb33a3
create_new_vm: enable/disable "install system" option on template change
When choosing StandaloneVM type, the option to install a system should
be enabled when empty source template is set. Fix this when choosing VM
type first and only then changing template to empty.
2021-01-09 05:53:53 +01:00
donoban
9f44f7413d
Added default option for network change 2021-01-09 00:42:47 +01:00
Marek Marczykowski-Górecki
81c0872f2b
Merge remote-tracking branch 'origin/pr/278'
* origin/pr/278:
  fixed trailing spaces
  Added TemplateVM and disposableVM to Create New Qube
2021-01-05 21:17:35 +01:00
Marek Marczykowski-Górecki
7f257b1c8e
Merge remote-tracking branch 'origin/pr/275'
* origin/pr/275:
  Replace '2' with Qt.Checked
  Rename 'Include in backups' to 'Backup'
  flags() rewrite
  Fix empty lines
  Include in backups changed to 'CheckStateRole'
2021-01-05 21:17:12 +01:00
donoban
b72cc34a83
Wrap warnings message in self.tr() 2020-12-16 11:30:39 +01:00
ctrlaltf24
1f26067a1d
fixed trailing spaces 2020-12-13 09:23:39 -08:00
donoban
c666357625
Replace '2' with Qt.Checked 2020-12-12 14:22:15 +01:00
donoban
1812989ecd
Rename 'Include in backups' to 'Backup' 2020-12-12 14:18:34 +01:00
donoban
9152218921
Merge branch 'master' of https://github.com/QubesOS/qubes-manager into template_menu
# Conflicts:
#	qubesmanager/qube_manager.py
#	ui/qubemanager.ui
2020-12-12 14:08:41 +01:00
donoban
f95bcbb1bc
Added wait argument to start_vm
Easier error handling for start vm's from other places
2020-12-12 00:34:41 +01:00
donoban
4343691b92
Better dialog creation 2020-12-12 00:19:30 +01:00
donoban
81d95f3de9
Added try/except for starting netvm 2020-12-12 00:08:49 +01:00
donoban
b29934b898
Added error message to dialogs 2020-12-11 23:48:16 +01:00
donoban
2164b82c34
Changed filter to list comprehension (avoids pylint warning) 2020-12-11 01:01:21 +01:00
donoban
df0e4699a0
File checking and error dialog moved to qube_manager 2020-12-11 00:53:57 +01:00
donoban
0cb89e611a
Added proper error handling and Check netvm_name is not None 2020-12-11 00:38:06 +01:00
donoban
f90ab86a73
Merge branch 'master' of https://github.com/QubesOS/qubes-manager into template_menu
# Conflicts:
#	qubesmanager/qube_manager.py
2020-12-11 00:07:51 +01:00
donoban
78d76eb70f
Fix Spanglish accident 2020-12-10 23:46:44 +01:00
donoban
a49463a30b
Merge branch 'log_dialog' of https://github.com/donob4n/qubes-manager into log_dialog 2020-12-10 23:43:49 +01:00
donoban
ebe777c5a1
Merge branch 'master' of https://github.com/QubesOS/qubes-manager into log_dialog
# Conflicts:
#	qubesmanager/qube_manager.py
#	ui/qubemanager.ui
2020-12-10 23:39:34 +01:00
donob4n
b5e092fa8b
Update qubesmanager/log_dialog.py
Co-authored-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
2020-12-10 09:49:41 +01:00
Marek Marczykowski-Górecki
3d1ff3e58d
Merge remote-tracking branch 'origin/pr/272'
* origin/pr/272:
  Save 'compactview' state
  Added 'Compact View' Action
2020-12-10 05:17:52 +01:00
Marek Marczykowski-Górecki
c44880f9f5
Merge remote-tracking branch 'origin/pr/270'
* origin/pr/270:
  Restored removed lines by accident (although I think that are useless at this moment)
  Fix pylint warnings
  Added saving and restore settings for showing checkboxes
  Removed unused import
  Enable 'Show' checkboxes by default
  Added filterAcceptsRow() to QubesProxyModel
  Added 'Show' Checkboxes to .ui
  Fix SelectionMode on ui file
2020-12-10 05:07:27 +01:00
ctrlaltf24
c7b28ca6c8
Added TemplateVM and disposableVM to Create New Qube 2020-12-09 13:55:22 -08:00
donoban
4fa13d3295
Pylint fixes 2020-12-05 12:41:20 +01:00
donoban
dc0ee97b27
Multiple file log dialog 2020-12-05 12:28:36 +01:00
Marek Marczykowski-Górecki
b4d6080f7b
Fix asyncio.all_tasks() call 2020-12-03 00:59:13 +01:00
donoban
9dd9ba17ce
Changed checkboxes to icons 2020-11-26 00:04:10 +01:00
donoban
54d523de6c
Added change network confirmation 2020-11-18 12:27:59 +01:00
donoban
3e5893e6cf
Added Template Change Confirmation 2020-11-18 12:22:48 +01:00
donoban
d74b52c00b
flags() rewrite 2020-11-15 19:08:22 +01:00
donoban
409bcd27fc
Fix empty lines 2020-11-14 16:12:11 +01:00
donoban
1b5442aece
Include in backups changed to 'CheckStateRole' 2020-11-14 14:10:24 +01:00
donoban
306bb85b06
Moved change_* funcs after __init__() 2020-11-14 12:40:23 +01:00
donoban
56528aaece
Added QMessageBox if netvm is halted and user wants to start it 2020-11-14 12:39:21 +01:00
donoban
32e400661c
Added network_menu updates 2020-11-13 23:52:49 +01:00
donoban
95c74714d7
Added try/except for change_network 2020-11-13 23:35:14 +01:00
donoban
ed98a1ea6e
Added 'None' netvm option 2020-11-10 00:55:55 +01:00
donoban
5f4526a35c
added network_menu 2020-11-10 00:50:43 +01:00
donoban
62489e5c78
Added properly handling when templates are added and removed 2020-11-10 00:12:13 +01:00
donoban
d186521962
Added template_menu 2020-11-07 16:04:11 +01:00
donoban
1c7494e29e
Save 'compactview' state 2020-11-04 23:51:31 +01:00
donoban
f2501c91a5
Added 'Compact View' Action 2020-11-04 23:37:21 +01:00
donoban
bdaa421a9c
Fix pylint warnings 2020-11-01 14:02:57 +01:00
donoban
526dbd5aad
Added saving and restore settings for showing checkboxes 2020-11-01 13:51:53 +01:00
donoban
8b8ab7c474
Removed unused import 2020-10-27 23:32:58 +01:00
donoban
0794a60e4c
Added filterAcceptsRow() to QubesProxyModel
Created _init_context_menu() due pylint warning (too much statements)
2020-10-27 00:46:24 +01:00
Marta Marczykowska-Górecka
1cfd5b8704
Added more reasonable behavior to "should I force shutdown or wait" message
Now there's an option of "don't ask again" and there should not be
a useless close button.

fixes QubesOS/qubes-issues#6123
2020-10-26 16:25:47 +01:00
donoban
629f16f24c
Fix SelectionMode on ui file 2020-10-22 19:24:13 +02:00
Marek Marczykowski-Górecki
0ba5ea648f
Merge remote-tracking branch 'origin/pr/267'
* origin/pr/267:
  Fixed incorrect virtmode check (ignored PVH when it was the default)
2020-10-10 03:10:54 +02:00
Marta Marczykowska-Górecka
691c0ecf79
Fixes strict reset list bug in VM Device Settings
fixes QubesOS/qubes-issues#6115
2020-10-09 22:38:37 +02:00
Marta Marczykowska-Górecka
b813998990
Fixed tests for keyboard layout 2020-10-09 22:38:37 +02:00
Marta Marczykowska-Górecka
b5daca5d57
Modified test to be less prone to timeouts 2020-10-09 22:38:37 +02:00
Marta Marczykowska-Górecka
822707f9f9
Extend testing timeout 2020-10-09 22:38:17 +02:00
Marta Marczykowska-Górecka
90a33f716e
Fixed incorrect virtmode check (ignored PVH when it was the default)
fixes QubesOS/qubes-issues#6108
2020-10-07 19:13:27 +02:00
Marek Marczykowski-Górecki
70b8f0c144
Merge remote-tracking branch 'origin/pr/265'
* origin/pr/265:
  Added show password button to Backup/Restore
2020-10-01 02:35:59 +02:00
Marek Marczykowski-Górecki
29da891728
Merge remote-tracking branch 'origin/pr/263'
* origin/pr/263:
  Warn if trying to change layout on unsupported vms in Qube Manager
2020-10-01 02:34:20 +02:00
Marek Marczykowski-Górecki
fdf4f87fdb
Merge remote-tracking branch 'origin/pr/260'
* origin/pr/260:
  Less intrusive max mem / init mem warning  in VM Setting
2020-10-01 02:33:29 +02:00
Marta Marczykowska-Górecka
bac36675dc
Warn if trying to change layout on unsupported vms in Qube Manager
requires https://github.com/QubesOS/qubes-core-admin-client/pull/161
references QubesOS/qubes-issues#6030
2020-09-28 15:45:14 +02:00
Marta Marczykowska-Górecka
12764595cf
Added show password button to Backup/Restore
The button shows the password while pressed
(emulating common password practices).

fixes QubesOS/qubes-issues#6076
2020-09-24 22:26:07 +02:00
Marta Marczykowska-Górecka
4211d6e403
shutdown-when-idle gets its own checkbox in VM settings
It is disabled if the service is unavailable and displays information
about how to enable it if it is unavailable.

references QubesOS/qubes-issues#5298
2020-09-22 14:09:51 +02:00
Marek Marczykowski-Górecki
13e682fc98
Merge remote-tracking branch 'origin/pr/264'
* origin/pr/264:
  Fixed missing verbose error logging in Restore Backup
2020-09-13 20:03:10 +02:00
Marta Marczykowska-Górecka
53d17d6cb2
Fixed missing verbose error logging in Restore Backup
fixes QubesOS/qubes-issues#6035
2020-09-10 17:35:39 +02:00
Marta Marczykowska-Górecka
e9231d3448
Fix Boot from Device error when no block devices were found
fixes QubesOS/qubes-issues#6018
2020-08-31 14:19:50 +02:00
WillyPillow
5c5758783b
qvm-template: Change size unit from kB to MB. 2020-08-30 01:34:03 +08:00
Marta Marczykowska-Górecka
7979d033c9
Less intrusive max mem / init mem warning in VM Setting
When maxmem is set to over 10x initmem, Settings will now
show a warning label and not interfere with user-provided values.
The only case in which they will interfere is maxmem<initmem.

fixes QubesOS/qubes-issues#6016
2020-08-24 19:23:24 +02:00
WillyPillow
7e8ee7e8cc
qvm-template: Port initial code to PyQt. 2020-08-25 00:17:24 +08:00
Marek Marczykowski-Górecki
6180f0a899
Merge remote-tracking branch 'origin/pr/259'
* origin/pr/259:
  Fixed display of default template in Create New VM
2020-08-23 03:40:14 +02:00
Marek Marczykowski-Górecki
1da41df890
Merge remote-tracking branch 'origin/pr/257'
* origin/pr/257:
  Fix for icon size for Qube Manager tests
2020-08-23 03:40:11 +02:00
Marek Marczykowski-Górecki
6f465fc674
Make pylint happy
- fix super-with-arguments
- fix various other issues
- review broad-except and ignore where appropriate
2020-08-23 03:16:19 +02:00
Marta Marczykowska-Górecka
22823f6106
Fix for icon size for Qube Manager tests
Also contains a tiny fix to Qube Manager itself (bug found with tests!)
And further fixes to qube manager tests for particularly slow days.
2020-08-23 01:42:38 +02:00
Marta Marczykowska-Górecka
476f1d0754
Fixed display of default template in Create New VM
From default (name) to name (default).

fixes QubesOS/qubes-issues#6001
2020-08-20 12:32:17 +02:00
WillyPillow
79b6d8f72c
qvm-template: Initial GUI implementation. 2020-08-19 02:02:14 +08:00
Marta Marczykowska-Górecka
9a68be162a
Adjusted icon size in Qube Manager for better aesthetics 2020-08-12 23:49:06 +02:00
Marta Marczykowska-Górecka
3f6f8c5396
Fixed lack of new vm.icon property handling in Qube Manager 2020-08-12 23:15:21 +02:00
Marek Marczykowski-Górecki
83363299ce
Merge remote-tracking branch 'origin/pr/254'
* origin/pr/254:
  Modified warning shown when destination qube for backup is unavailable
2020-08-12 01:37:57 +02:00
Marta Marczykowska-Górecka
ee5625b65c
Use the new QubesDaemonAccessError
Replaces the old, unified approach.
2020-08-11 01:08:48 +02:00
Marta Marczykowska-Górecka
8eb61b11ae
Fixed VM settings to be more tolerant of missing permissions
Settings unavailable due to permissions will be unavailable in the tool,
but the tool will start and attempt to show as much as possible.
2020-08-08 15:37:09 +02:00
Marta Marczykowska-Górecka
e904f5e410
Modified warning shown when destination qube for backup is unavailable
Instead of scary red warning, now a gentler information that only running qubes are
available is shown. It is also shown just under the destination VM dropdown,
making it easier to notice and interpret correctly.

fixes QubesOS/qubes-issues#5427
2020-08-08 15:05:58 +02:00
Marta Marczykowska-Górecka
39129bd804
Misc qubesmanager tools modified to be more resilient to insufficient permissions
Create New Qubes, Backup and Restore, Boot from Device and Template Manager
are now more resilient to insufficient permissions.
2020-08-07 22:11:14 +02:00
Marta Marczykowska-Górecka
7cbc7d9db1
Global Settings now can function with partial permissions
Unreadable properties/features will be disabled, the tool will start
even if it can access nothing or almost nothing, and errors on settings
features/properties will now be communicated to the user.
2020-08-07 22:11:14 +02:00
Marta Marczykowska-Górecka
1f933b775a
Make Qube Manager resistant to missing permissions
It should no longer crash if policy denies it access to some information.
The only required information is vm name, qid and class.

references QubesOS/qubes-issues#5811
2020-08-07 22:11:14 +02:00
Marta Marczykowska-Górecka
354578dc37
Added and fixed tests for CloneVM tool
fixes QubesOS/qubes-issues#5978
2020-08-05 14:37:11 +02:00
Marta Marczykowska-Górecka
8461a307f2
Updated Clone VM tool to use new better helper functions 2020-08-03 15:53:51 +02:00
Marta Marczykowska-Górecka
bdc11582f1
Changed Clone action in Qube Manager and VM settings to use the new Clone Qube dialog
fixes QubesOS/qubes-issues#5127
2020-07-30 22:30:58 +02:00
Marta Marczykowska-Górecka
1faf4f46b0
Added a Clone VM tool
A simple GUI tool to enable cloning a VM to a different pool and changing the label.

references QubesOS/qubes-issues#5127
2020-07-30 22:27:02 +02:00
Marek Marczykowski-Górecki
111de94701
Merge remote-tracking branch 'origin/pr/251'
* origin/pr/251:
  fixed misspelling in dialog box of success
2020-07-30 03:29:52 +02:00
Marek Marczykowski-Górecki
6efb073c8b
Merge remote-tracking branch 'origin/pr/245'
* origin/pr/245:
  Fix incorrect Settings invocation in Qube Manager
2020-07-30 03:28:26 +02:00
Marek Marczykowski-Górecki
824d9c7388
Merge remote-tracking branch 'origin/pr/240'
* origin/pr/240:
  travis: use included configs, drop R4.0 dom0 test
  Replace quamash with qasync
2020-07-30 03:26:25 +02:00
Marek Marczykowski-Górecki
9a2daa4039
Replace quamash with qasync
Fixes QubesOS/qubes-issues#5873
2020-07-30 03:05:39 +02:00
Marek Marczykowski-Górecki
5fdcf87b59
tests: Update QMessageBox mockup
When the class is imported with 'from ... import QMessageBox', it needs
to be patched in the importing module, not the original place.
2020-07-30 03:04:06 +02:00