mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-11 12:46:49 +00:00
fix(console,computes): an unreachable host is named as the cause, not an empty list
The console page of a VM whose host does not answer said "Fail to get console. Please check the console configuration of your VM." and logged nothing. It now shows the connection error (to users who do not see the hosts, that the host cannot be reached) and logs it with the VM and host. A host's Storage, Networks, Interfaces, Filters and Secrets pages showed the connection error and also "This host has no ...". The list is None when it was not read, and the page shows only the error.
This commit is contained in:
parent
39dda65132
commit
d1fb9bd2d4
14 changed files with 72 additions and 18 deletions
|
|
@ -41,4 +41,4 @@ class SecretInUsePageTests(TestCase):
|
|||
"ephemeral": False, "private": False}]
|
||||
conn.return_value.get_users.side_effect = libvirt.libvirtError("connection reset")
|
||||
response = self.client.get(self.url)
|
||||
self.assertEqual(response.context["secrets_all"], [])
|
||||
self.assertIsNone(response.context["secrets_all"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue