mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-11 12:46:49 +00:00
fix(instances): the VM page says when its host stops answering
The VM page polls the VM's state every 5 s and reloads when it changes. When the host stopped answering, the poll failed and nothing changed on the page: it kept showing the last state, figures and actions as if they were current. A notice now says that the page could not be refreshed and may be out of date while the poll fails (a host that does not answer, a session that ended); it goes away with the next answer. Checked on compute1 in headless Chromium with its libvirt port dropped and restored. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea
This commit is contained in:
parent
6cdda6d4f3
commit
139e43e4c4
7 changed files with 358 additions and 335 deletions
|
|
@ -43,6 +43,8 @@
|
|||
<a class="btn btn-sm btn-secondary" href="{% url 'instances:instance' instance.id %}">{% bs_icon 'arrow-clockwise' %} {% trans "Refresh" %}</a>
|
||||
</div>
|
||||
</div>
|
||||
{# shown by instance_status.js while the VM's state cannot be read #}
|
||||
<div class="alert alert-warning small py-2 mt-2 mb-0" id="vm-host-lost" role="status" hidden>{% trans "This page could not be refreshed: its state and figures may be out of date." %}</div>
|
||||
{% if not instance.is_template %}
|
||||
<div class="d-flex flex-wrap column-gap-3 row-gap-1 small mt-2">
|
||||
{% if not instance.guest_agent %}
|
||||
|
|
|
|||
|
|
@ -276,6 +276,12 @@ class PendingEditsTestCase(TestCase):
|
|||
User.objects.filter(username="pe-new").delete() # no one left to add: no search box to load
|
||||
self.assertNotIn("/static/js/searchable_select.js", self.page().xpath("//script/@src"))
|
||||
|
||||
def test_the_page_has_a_hidden_notice_for_a_host_that_stops_answering(self):
|
||||
# instance_status.js shows it while the state poll fails
|
||||
(notice,) = self.page().xpath("//div[@id='vm-host-lost']")
|
||||
self.assertIn("hidden", notice.attrib)
|
||||
self.assertIn("could not be refreshed", notice.text_content())
|
||||
|
||||
def test_a_paused_vm_offers_to_turn_vcpus_on_only(self):
|
||||
# unplugging a vCPU needs the guest, which a paused VM does not run
|
||||
vcpus = {"0": {"enabled": "yes", "hotpluggable": "no", "order": "1"},
|
||||
|
|
|
|||
Binary file not shown.
File diff suppressed because it is too large
Load diff
Binary file not shown.
|
|
@ -7,7 +7,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2026-11-10 05:00+0000\n"
|
||||
"POT-Creation-Date: 2026-11-10 08:10+0000\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
|
|
@ -45,23 +45,23 @@ msgstr "修改控制台设置"
|
|||
msgid "Only together with Change settings"
|
||||
msgstr "仅可与“修改设置”一起使用"
|
||||
|
||||
#: accounts/forms.py:48
|
||||
#: accounts/forms.py:50
|
||||
msgid "Another user has this email address"
|
||||
msgstr "其他用户已使用此邮箱地址"
|
||||
|
||||
#: accounts/forms.py:67
|
||||
#: accounts/forms.py:69
|
||||
msgid "Key name already exist"
|
||||
msgstr "密钥名称已存在"
|
||||
|
||||
#: accounts/forms.py:74
|
||||
#: accounts/forms.py:76
|
||||
msgid "Public key already exist"
|
||||
msgstr "公钥已存在"
|
||||
|
||||
#: accounts/forms.py:77
|
||||
#: accounts/forms.py:79
|
||||
msgid "Invalid key"
|
||||
msgstr "无效的密钥"
|
||||
|
||||
#: accounts/forms.py:93 computes/templates/computes/instances.html:45
|
||||
#: accounts/forms.py:95 computes/templates/computes/instances.html:45
|
||||
#: instances/templates/add_instance_volume.html:39
|
||||
#: instances/templates/allinstances_index_grouped.html:11
|
||||
#: instances/templates/allinstances_index_nongrouped.html:6
|
||||
|
|
@ -73,27 +73,27 @@ msgstr "无效的密钥"
|
|||
msgid "Name"
|
||||
msgstr "名称"
|
||||
|
||||
#: accounts/forms.py:93
|
||||
#: accounts/forms.py:95
|
||||
msgid "What uses it, such as a script or a host"
|
||||
msgstr "用途,例如某个脚本或主机"
|
||||
|
||||
#: accounts/forms.py:95 accounts/templates/api_token_list.html:19
|
||||
#: accounts/forms.py:97 accounts/templates/api_token_list.html:19
|
||||
msgid "Expires"
|
||||
msgstr "有效期"
|
||||
|
||||
#: accounts/forms.py:96
|
||||
#: accounts/forms.py:98
|
||||
msgid "in 30 days"
|
||||
msgstr "30 天后"
|
||||
|
||||
#: accounts/forms.py:96
|
||||
#: accounts/forms.py:98
|
||||
msgid "in 90 days"
|
||||
msgstr "90 天后"
|
||||
|
||||
#: accounts/forms.py:96
|
||||
#: accounts/forms.py:98
|
||||
msgid "in a year"
|
||||
msgstr "一年后"
|
||||
|
||||
#: accounts/forms.py:96 accounts/templates/account.html:29
|
||||
#: accounts/forms.py:98 accounts/templates/account.html:29
|
||||
#: accounts/templates/api_token_list.html:19
|
||||
#: accounts/templates/api_token_list.html:20 accounts/templates/profile.html:25
|
||||
#: admin/templates/admin/user_form.html:21
|
||||
|
|
@ -103,7 +103,7 @@ msgstr "一年后"
|
|||
msgid "never"
|
||||
msgstr "永不"
|
||||
|
||||
#: accounts/forms.py:101
|
||||
#: accounts/forms.py:103
|
||||
msgid "Email"
|
||||
msgstr "邮箱"
|
||||
|
||||
|
|
@ -309,7 +309,7 @@ msgstr "您在此处保持登录;您的其他会话将结束。"
|
|||
#: storages/templates/create_stg_vol_block.html:35
|
||||
#: storages/templates/create_stg_vol_block.html:68
|
||||
#: storages/templates/storage.html:201 templates/base.html:65
|
||||
#: templates/common/confirm_delete.html:25 templates/common/form.html:22
|
||||
#: templates/common/confirm_delete.html:25 templates/common/form.html:27
|
||||
#: virtsecrets/templates/create_secret_block.html:48
|
||||
#: virtsecrets/templates/secrets.html:106
|
||||
msgid "Cancel"
|
||||
|
|
@ -403,7 +403,7 @@ msgid "2FA Protection Active"
|
|||
msgstr "双因素保护已启用"
|
||||
|
||||
#: accounts/templates/accounts/otp_qr.html:4
|
||||
#: accounts/templates/accounts/otp_qr.html:6 accounts/utils.py:77
|
||||
#: accounts/templates/accounts/otp_qr.html:6 accounts/utils.py:78
|
||||
msgid "OTP QR Code"
|
||||
msgstr "OTP 二维码"
|
||||
|
||||
|
|
@ -559,7 +559,7 @@ msgstr "SSH 密钥 %(name)s 的操作"
|
|||
msgid "No SSH keys."
|
||||
msgstr "没有 SSH 密钥。"
|
||||
|
||||
#: accounts/utils.py:78
|
||||
#: accounts/utils.py:79
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Open this link within an hour to see the OTP QR code of account '%(user)s':\n"
|
||||
|
|
@ -625,38 +625,38 @@ msgstr "密码已修改"
|
|||
msgid "Create User Instance"
|
||||
msgstr "创建用户虚拟机"
|
||||
|
||||
#: accounts/views.py:290
|
||||
#: accounts/views.py:291
|
||||
msgid "Update User Instance"
|
||||
msgstr "更新用户虚拟机"
|
||||
|
||||
#: accounts/views.py:308
|
||||
#: accounts/views.py:309
|
||||
msgid "The user loses access to this VM; the VM itself is not changed."
|
||||
msgstr "该用户将失去对此虚拟机的访问权限;虚拟机本身不受影响。"
|
||||
|
||||
#: accounts/views.py:343
|
||||
#: accounts/views.py:344
|
||||
#, python-format
|
||||
msgid "OTP Sent to %(email)s"
|
||||
msgstr "OTP 已发送至 %(email)s"
|
||||
|
||||
#: accounts/views.py:352
|
||||
#: accounts/views.py:353
|
||||
msgid "Email OTP"
|
||||
msgstr "邮件发送 OTP"
|
||||
|
||||
#: accounts/views.py:386
|
||||
#: accounts/views.py:387
|
||||
#, python-format
|
||||
msgid "The OTP QR code could not be mailed to %(user)s: %(error)s"
|
||||
msgstr "无法将 OTP 二维码通过邮件发送给 %(user)s:%(error)s"
|
||||
|
||||
#: accounts/views.py:390
|
||||
#: accounts/views.py:391
|
||||
#, python-format
|
||||
msgid "OTP QR code was emailed to user %(user)s"
|
||||
msgstr "OTP 二维码已通过邮件发送给用户 %(user)s"
|
||||
|
||||
#: accounts/views.py:394
|
||||
#: accounts/views.py:395
|
||||
msgid "User email not set, failed to send QR code"
|
||||
msgstr "未设置用户邮箱,无法发送二维码"
|
||||
|
||||
#: accounts/views.py:406
|
||||
#: accounts/views.py:407
|
||||
#, python-format
|
||||
msgid "OTP of %(user)s was reset: a new QR code can be mailed."
|
||||
msgstr "%(user)s 的 OTP 已重置:可以邮寄新的二维码。"
|
||||
|
|
@ -727,7 +727,7 @@ msgstr "vCPU"
|
|||
#: instances/templates/allinstances_index_grouped.html:17
|
||||
#: instances/templates/allinstances_index_nongrouped.html:15
|
||||
#: instances/templates/create_inst_block.html:33
|
||||
#: instances/templates/instance.html:60
|
||||
#: instances/templates/instance.html:66
|
||||
#: instances/templates/instances/resize_tab.html:17
|
||||
#: instances/templates/instances/stats_tab.html:35
|
||||
msgid "Memory"
|
||||
|
|
@ -913,16 +913,16 @@ msgstr "结果"
|
|||
msgid "IP"
|
||||
msgstr "IP"
|
||||
|
||||
#: admin/templates/admin/logs.html:56 admin/views.py:288 instances/states.py:19
|
||||
#: instances/views.py:418 instances/views.py:420 logs/views.py:17
|
||||
#: admin/templates/admin/logs.html:56 admin/views.py:292 instances/states.py:19
|
||||
#: instances/views.py:419 instances/views.py:421 logs/views.py:17
|
||||
msgid "Unknown"
|
||||
msgstr "未知"
|
||||
|
||||
#: admin/templates/admin/logs.html:56 admin/views.py:288 logs/views.py:17
|
||||
#: admin/templates/admin/logs.html:56 admin/views.py:292 logs/views.py:17
|
||||
msgid "Done"
|
||||
msgstr "完成"
|
||||
|
||||
#: admin/templates/admin/logs.html:56 admin/views.py:288 logs/views.py:17
|
||||
#: admin/templates/admin/logs.html:56 admin/views.py:292 logs/views.py:17
|
||||
#: operations/templates/operations/job.html:107
|
||||
msgid "Failed"
|
||||
msgstr "失败"
|
||||
|
|
@ -948,7 +948,7 @@ msgid "Search removed VMs"
|
|||
msgstr "搜索已移除的虚拟机"
|
||||
|
||||
#: admin/templates/admin/tombstone_list.html:28
|
||||
#: instances/templates/instance.html:27
|
||||
#: instances/templates/instance.html:31
|
||||
msgid "Template"
|
||||
msgstr "模板"
|
||||
|
||||
|
|
@ -1131,29 +1131,29 @@ msgstr "不能禁用、删除或降级你自己的账户"
|
|||
msgid "Create User"
|
||||
msgstr "创建用户"
|
||||
|
||||
#: admin/views.py:191
|
||||
#: admin/views.py:193
|
||||
msgid "Update User"
|
||||
msgstr "更新用户"
|
||||
|
||||
#: admin/views.py:215
|
||||
#: admin/views.py:217
|
||||
#, python-format
|
||||
msgid "Password changed for %(user)s"
|
||||
msgstr "已为 %(user)s 修改密码"
|
||||
|
||||
#: admin/views.py:239
|
||||
#: admin/views.py:241
|
||||
msgid "Their access to VMs, SSH keys and settings go; the VMs themselves stay."
|
||||
msgstr "其对虚拟机、SSH 密钥和设置的访问将被移除;虚拟机本身保留。"
|
||||
|
||||
#: admin/views.py:337
|
||||
#: admin/views.py:341
|
||||
msgid "deleted user"
|
||||
msgstr "已删除的用户"
|
||||
|
||||
#: admin/views.py:349
|
||||
#: admin/views.py:353
|
||||
#, python-format
|
||||
msgid "Removed VM %(name)s deleted"
|
||||
msgstr "已删除已移除的虚拟机 %(name)s"
|
||||
|
||||
#: admin/views.py:356
|
||||
#: admin/views.py:360
|
||||
msgid "Its owners no longer get the VM back if its UUID shows up again."
|
||||
msgstr "若其 UUID 再次出现,其所有者将不再恢复对该虚拟机的所有权。"
|
||||
|
||||
|
|
@ -1682,7 +1682,7 @@ msgstr "保存%(group_title)s"
|
|||
msgid "New VM defaults"
|
||||
msgstr "新建虚拟机默认值"
|
||||
|
||||
#: appsettings/views.py:40 instances/templates/instance.html:64
|
||||
#: appsettings/views.py:40 instances/templates/instance.html:70
|
||||
#: instances/templates/instances/destroy_instance_form.html:33
|
||||
#: instances/templates/instances/resize_tab.html:20
|
||||
#: instances/templates/instances/settings_tab.html:197
|
||||
|
|
@ -1993,7 +1993,7 @@ msgstr "无"
|
|||
#: networks/templates/add_network_qos.html:36
|
||||
#: networks/templates/network.html:336 networks/templates/network.html:376
|
||||
#: networks/templates/network.html:403 networks/templates/network.html:442
|
||||
#: nwfilters/templates/nwfilter.html:153 templates/common/form.html:23
|
||||
#: nwfilters/templates/nwfilter.html:153 templates/common/form.html:28
|
||||
msgid "Save"
|
||||
msgstr "保存"
|
||||
|
||||
|
|
@ -2422,7 +2422,7 @@ msgstr "缩放"
|
|||
#: instances/templates/create_instance_w2.html:285
|
||||
#: instances/templates/create_instance_w2.html:314
|
||||
#: instances/templates/create_instance_w2.html:324
|
||||
#: instances/templates/instance.html:65
|
||||
#: instances/templates/instance.html:71
|
||||
#: instances/templates/instances/settings_tab.html:180
|
||||
#: instances/templates/instances/settings_tab.html:398
|
||||
#: instances/templates/instances/stats_tab.html:64
|
||||
|
|
@ -2587,7 +2587,7 @@ msgid ""
|
|||
msgstr "不支持控制台类型 '%(type)s'。请将虚拟机图形切换为 VNC。"
|
||||
|
||||
#: instances/api/viewsets.py:148 instances/api/viewsets.py:166
|
||||
#: instances/views.py:791 instances/views.py:806
|
||||
#: instances/views.py:792 instances/views.py:807
|
||||
msgid "Templates cannot be started."
|
||||
msgstr "模板无法启动。"
|
||||
|
||||
|
|
@ -2890,7 +2890,7 @@ msgstr "磁盘已复制,但无法定义克隆:%(error)s;请检查这些卷
|
|||
msgid "Create VM"
|
||||
msgstr "创建虚拟机"
|
||||
|
||||
#: instances/jobs.py:847 instances/jobs.py:892 instances/views.py:2458
|
||||
#: instances/jobs.py:847 instances/jobs.py:892 instances/views.py:2459
|
||||
msgid "A virtual machine with this name already exists"
|
||||
msgstr "同名虚拟机已存在"
|
||||
|
||||
|
|
@ -3241,7 +3241,7 @@ msgid "Disk source"
|
|||
msgstr "磁盘来源"
|
||||
|
||||
#: instances/templates/add_instance_volume.html:21
|
||||
#: instances/templates/create_instance_w2.html:134 instances/views.py:2477
|
||||
#: instances/templates/create_instance_w2.html:134 instances/views.py:2478
|
||||
msgid "New disk"
|
||||
msgstr "新磁盘"
|
||||
|
||||
|
|
@ -3488,7 +3488,7 @@ msgid "Choose the host the VM runs on."
|
|||
msgstr "选择运行虚拟机的主机。"
|
||||
|
||||
#: instances/templates/create_inst_block.html:23
|
||||
#: instances/templates/instance.html:56
|
||||
#: instances/templates/instance.html:62
|
||||
#: instances/templates/instances/resize_tab.html:14
|
||||
#: instances/templates/instances/stats_tab.html:28
|
||||
msgid "CPU"
|
||||
|
|
@ -3615,7 +3615,7 @@ msgstr "自定义 CPU 型号"
|
|||
msgid "Size (GiB)"
|
||||
msgstr "大小(GiB)"
|
||||
|
||||
#: instances/templates/create_instance_w2.html:161 instances/views.py:2478
|
||||
#: instances/templates/create_instance_w2.html:161 instances/views.py:2479
|
||||
msgid "Existing volumes"
|
||||
msgstr "已有卷"
|
||||
|
||||
|
|
@ -3651,7 +3651,7 @@ msgstr "设备"
|
|||
msgid "Remove"
|
||||
msgstr "移除"
|
||||
|
||||
#: instances/templates/create_instance_w2.html:194 instances/views.py:2479
|
||||
#: instances/templates/create_instance_w2.html:194 instances/views.py:2480
|
||||
msgid "Clone from template"
|
||||
msgstr "从模板克隆"
|
||||
|
||||
|
|
@ -3749,7 +3749,7 @@ msgstr "创建虚拟机"
|
|||
msgid "Details"
|
||||
msgstr "详情"
|
||||
|
||||
#: instances/templates/instance.html:34
|
||||
#: instances/templates/instance.html:38
|
||||
#: instances/templates/instance_actions.html:13
|
||||
#: instances/templates/instances/settings_tab.html:53
|
||||
#: instances/templates/instances/settings_tab.html:881
|
||||
|
|
@ -3759,80 +3759,85 @@ msgstr "详情"
|
|||
msgid "Clone"
|
||||
msgstr "克隆"
|
||||
|
||||
#: instances/templates/instance.html:37
|
||||
#: instances/templates/instance.html:41
|
||||
msgid "OS details"
|
||||
msgstr "操作系统详情"
|
||||
|
||||
#: instances/templates/instance.html:39
|
||||
#: instances/templates/instance.html:43
|
||||
#: operations/templatetags/operations.py:85
|
||||
msgid "Refresh"
|
||||
msgstr "刷新"
|
||||
|
||||
#: instances/templates/instance.html:45
|
||||
#: instances/templates/instance.html:47
|
||||
msgid ""
|
||||
"This page could not be refreshed: its state and figures may be out of date."
|
||||
msgstr "此页面无法刷新:其中的状态和数值可能已过时。"
|
||||
|
||||
#: instances/templates/instance.html:51
|
||||
msgid "Guest agent off"
|
||||
msgstr "客户机代理已关闭"
|
||||
|
||||
#: instances/templates/instance.html:47
|
||||
#: instances/templates/instance.html:53
|
||||
msgid "Guest agent connected"
|
||||
msgstr "客户机代理已连接"
|
||||
|
||||
#: instances/templates/instance.html:49
|
||||
#: instances/templates/instance.html:55
|
||||
msgid "Guest agent not connected"
|
||||
msgstr "客户机代理未连接"
|
||||
|
||||
#: instances/templates/instance.html:51
|
||||
#: instances/templates/instance.html:57
|
||||
#, python-format
|
||||
msgid "%(counter)s snapshot"
|
||||
msgid_plural "%(counter)s snapshots"
|
||||
msgstr[0] "%(counter)s 个快照"
|
||||
|
||||
#: instances/templates/instance.html:57
|
||||
#: instances/templates/instance.html:63
|
||||
msgid "of"
|
||||
msgstr "/"
|
||||
|
||||
#: instances/templates/instance.html:57
|
||||
#: instances/templates/instance.html:63
|
||||
msgid "vCPU"
|
||||
msgstr "vCPU"
|
||||
|
||||
#: instances/templates/instance.html:69
|
||||
#: instances/templates/instance.html:75
|
||||
msgid "IPv4"
|
||||
msgstr "IPv4"
|
||||
|
||||
#: instances/templates/instance.html:70
|
||||
#: instances/templates/instance.html:76
|
||||
#: instances/templates/instances/settings_tab.html:321
|
||||
#: instances/templates/instances/settings_tab.html:340
|
||||
msgid "Reading…"
|
||||
msgstr "正在读取…"
|
||||
|
||||
#: instances/templates/instance.html:76
|
||||
#: instances/templates/instance.html:82
|
||||
msgid "Instance actions"
|
||||
msgstr "虚拟机操作"
|
||||
|
||||
#: instances/templates/instance.html:80
|
||||
#: instances/templates/instance.html:86
|
||||
msgid "Power"
|
||||
msgstr "电源"
|
||||
|
||||
#: instances/templates/instance.html:83
|
||||
#: instances/templates/instance.html:89
|
||||
msgid "Access"
|
||||
msgstr "访问"
|
||||
|
||||
#: instances/templates/instance.html:87
|
||||
#: instances/templates/instance.html:93
|
||||
msgid "Resize"
|
||||
msgstr "调整大小"
|
||||
|
||||
#: instances/templates/instance.html:91
|
||||
#: instances/templates/instance.html:97
|
||||
msgid "Snapshot"
|
||||
msgstr "快照"
|
||||
|
||||
#: instances/templates/instance.html:96 templates/navbar.html:37
|
||||
#: instances/templates/instance.html:102 templates/navbar.html:37
|
||||
msgid "Settings"
|
||||
msgstr "设置"
|
||||
|
||||
#: instances/templates/instance.html:101
|
||||
#: instances/templates/instance.html:107
|
||||
msgid "Stats"
|
||||
msgstr "统计"
|
||||
|
||||
#: instances/templates/instance.html:105
|
||||
#: instances/templates/instance.html:111
|
||||
#: instances/templates/instances/destroy_tab.html:7
|
||||
msgid "Destroy"
|
||||
msgstr "销毁"
|
||||
|
|
@ -5681,58 +5686,58 @@ msgstr "无效的 MAC 地址"
|
|||
msgid "More MAC addresses than networks"
|
||||
msgstr "MAC 地址数量多于网络数量"
|
||||
|
||||
#: instances/views.py:172
|
||||
#: instances/views.py:173
|
||||
msgid "Enter an IP address, a network such as 192.0.2.0/24, or a MAC address."
|
||||
msgstr "请输入 IP 地址、网络(如 192.0.2.0/24)或 MAC 地址。"
|
||||
|
||||
#: instances/views.py:178 instances/views.py:212
|
||||
#: instances/views.py:179 instances/views.py:213
|
||||
msgid "Too many searches are still running; try again shortly."
|
||||
msgstr "仍在运行的搜索过多;请稍后再试。"
|
||||
|
||||
#: instances/views.py:260
|
||||
#: instances/views.py:261
|
||||
#, python-format
|
||||
msgid "The host %(host)s of '%(name)s' cannot be reached: %(error)s"
|
||||
msgstr "无法连接“%(name)s”所在的主机 %(host)s:%(error)s"
|
||||
|
||||
#: instances/views.py:266
|
||||
#: instances/views.py:267
|
||||
#, python-format
|
||||
msgid "The host of '%(name)s' cannot be reached right now."
|
||||
msgstr "目前无法连接“%(name)s”所在的主机。"
|
||||
|
||||
#: instances/views.py:267
|
||||
#: instances/views.py:268
|
||||
msgid " Jobs on it can be followed under Jobs in the menu."
|
||||
msgstr " 其上的任务可在菜单的“任务”中跟踪。"
|
||||
|
||||
#: instances/views.py:275
|
||||
#: instances/views.py:276
|
||||
#, python-format
|
||||
msgid "'%(name)s' is no longer on its host."
|
||||
msgstr "“%(name)s”已不在其主机上。"
|
||||
|
||||
#: instances/views.py:361
|
||||
#: instances/views.py:362
|
||||
msgid "There is no other host to migrate to."
|
||||
msgstr "没有其他可迁移到的主机。"
|
||||
|
||||
#: instances/views.py:363
|
||||
#: instances/views.py:364
|
||||
msgid "A VM migrates when it is running, paused or shut off."
|
||||
msgstr "虚拟机在运行、暂停或关机状态下均可迁移。"
|
||||
|
||||
#: instances/views.py:365
|
||||
#: instances/views.py:366
|
||||
msgid ""
|
||||
"A VM with snapshots cannot be migrated: its snapshots stay on this host. "
|
||||
"Delete them first."
|
||||
msgstr "有快照的虚拟机无法迁移:其快照保留在本主机上。请先删除快照。"
|
||||
|
||||
#: instances/views.py:367
|
||||
#: instances/views.py:368
|
||||
msgid ""
|
||||
"A VM with host devices cannot be migrated: the destination may not have them."
|
||||
" Remove them first."
|
||||
msgstr "有主机设备的虚拟机无法迁移:目标主机可能没有这些设备。请先移除它们。"
|
||||
|
||||
#: instances/views.py:642 instances/views.py:643
|
||||
#: instances/views.py:643 instances/views.py:644
|
||||
msgid "The VM was moved meanwhile; try again."
|
||||
msgstr "该虚拟机在此期间已被移动;请重试。"
|
||||
|
||||
#: instances/views.py:759
|
||||
#: instances/views.py:760
|
||||
msgid ""
|
||||
"The running VM has no free PCI slot for another disk on this bus: choose the "
|
||||
"scsi bus if the VM has a SCSI controller, or shut the VM down and add the "
|
||||
|
|
@ -5742,7 +5747,7 @@ msgstr ""
|
|||
"运行中的虚拟机在此总线上没有可用 PCI 插槽来添加磁盘:如果虚拟机有 SCSI 控制器,请选择 scsi "
|
||||
"总线;或关闭虚拟机后再添加磁盘。“磁盘”选项卡上的“添加 PCIe 插槽”可使其从下次启动起获得可用插槽。新卷会保留在其存储池中,可作为现有卷挂载。"
|
||||
|
||||
#: instances/views.py:763
|
||||
#: instances/views.py:764
|
||||
msgid ""
|
||||
"The running VM has no free PCI slot for the SCSI controller the disk needs: "
|
||||
"shut the VM down and add the disk then; Add PCIe slots on the Disks tab gives"
|
||||
|
|
@ -5752,258 +5757,258 @@ msgstr ""
|
|||
"运行中的虚拟机没有可用 PCI 插槽来添加磁盘所需的 SCSI 控制器:请关闭虚拟机后再添加磁盘。“磁盘”选项卡上的“添加 PCIe "
|
||||
"插槽”可使其从下次启动起获得可用插槽。新卷会保留在其存储池中,可作为现有卷挂载。"
|
||||
|
||||
#: instances/views.py:781
|
||||
#: instances/views.py:782
|
||||
#, python-format
|
||||
msgid "Invalid disk options: %(options)s"
|
||||
msgstr "无效的磁盘选项:%(options)s"
|
||||
|
||||
#: instances/views.py:994
|
||||
#: instances/views.py:995
|
||||
#, python-format
|
||||
msgid "Set the gstfsd key of %(compute)s first (Computes, edit the host)"
|
||||
msgstr "请先设置 %(compute)s 的 gstfsd 密钥(计算节点,编辑该主机)"
|
||||
|
||||
#: instances/views.py:1001 instances/views.py:1019 instances/views.py:1028
|
||||
#: instances/views.py:1002 instances/views.py:1020 instances/views.py:1029
|
||||
#, python-format
|
||||
msgid "gstfsd error: %(err)s"
|
||||
msgstr "gstfsd 错误:%(err)s"
|
||||
|
||||
#: instances/views.py:1029
|
||||
#: instances/views.py:1030
|
||||
msgid "the reply is not signed with the key"
|
||||
msgstr "回复未使用该密钥签名"
|
||||
|
||||
#: instances/views.py:1037
|
||||
#: instances/views.py:1038
|
||||
msgid "Shut the VM down, or start its QEMU guest agent, and try again"
|
||||
msgstr "请关闭虚拟机,或启动其 QEMU 客户机代理,然后重试"
|
||||
|
||||
#: instances/views.py:1050
|
||||
#: instances/views.py:1051
|
||||
msgid "The change may still be made when the agent answers again."
|
||||
msgstr "当代理再次响应时,此更改仍可能生效。"
|
||||
|
||||
#: instances/views.py:1078
|
||||
#: instances/views.py:1079
|
||||
msgid "Reset root password"
|
||||
msgstr "重置 root 密码"
|
||||
|
||||
#: instances/views.py:1082
|
||||
#: instances/views.py:1083
|
||||
msgid "Enter a password"
|
||||
msgstr "请输入密码"
|
||||
|
||||
#: instances/views.py:1096
|
||||
#: instances/views.py:1097
|
||||
msgid "Select an SSH public key"
|
||||
msgstr "请选择 SSH 公钥"
|
||||
|
||||
#: instances/views.py:1118
|
||||
#: instances/views.py:1119
|
||||
#, python-format
|
||||
msgid "Installed new SSH public key %(keyname)s"
|
||||
msgstr "已安装新的 SSH 公钥 %(keyname)s"
|
||||
|
||||
#: instances/views.py:1138
|
||||
#: instances/views.py:1139
|
||||
msgid "Enter a whole number of vCPUs"
|
||||
msgstr "请输入整数个 vCPU"
|
||||
|
||||
#: instances/views.py:1142
|
||||
#: instances/views.py:1143
|
||||
msgid "Shut off the VM to change its vCPUs"
|
||||
msgstr "请关闭虚拟机以更改其 vCPU"
|
||||
|
||||
#: instances/views.py:1145
|
||||
#: instances/views.py:1146
|
||||
msgid "The current vCPUs cannot be more than the maximum"
|
||||
msgstr "当前 vCPU 数不能超过最大值"
|
||||
|
||||
#: instances/views.py:1152
|
||||
#: instances/views.py:1153
|
||||
#, python-format
|
||||
msgid "%(quota)s: cannot resize the CPU of '%(instance_name)s'."
|
||||
msgstr "%(quota)s:无法调整“%(instance_name)s”的 CPU。"
|
||||
|
||||
#: instances/views.py:1160
|
||||
#: instances/views.py:1161
|
||||
#, python-format
|
||||
msgid "vCPUs set to %(cur)s (maximum %(max)s)"
|
||||
msgstr "vCPU 已设为 %(cur)s(最大 %(max)s)"
|
||||
|
||||
#: instances/views.py:1179
|
||||
#: instances/views.py:1180
|
||||
msgid "Enter a whole number for memory"
|
||||
msgstr "请输入整数内存值"
|
||||
|
||||
#: instances/views.py:1182
|
||||
#: instances/views.py:1183
|
||||
msgid "The current memory cannot be more than the maximum"
|
||||
msgstr "当前内存不能超过最大值"
|
||||
|
||||
#: instances/views.py:1186
|
||||
#: instances/views.py:1187
|
||||
#, python-format
|
||||
msgid "%(quota)s: cannot resize the memory of '%(instance_name)s'."
|
||||
msgstr "%(quota)s:无法调整“%(instance_name)s”的内存。"
|
||||
|
||||
#: instances/views.py:1192
|
||||
#: instances/views.py:1193
|
||||
#, python-format
|
||||
msgid "Memory set to %(cur)s MiB (maximum %(max)s MiB)"
|
||||
msgstr "内存已设为 %(cur)s MiB(最大 %(max)s MiB)"
|
||||
|
||||
#: instances/views.py:1212
|
||||
#: instances/views.py:1213
|
||||
msgid "Enter disk sizes as whole GiB"
|
||||
msgstr "请以整数 GiB 输入磁盘大小"
|
||||
|
||||
#: instances/views.py:1216
|
||||
#: instances/views.py:1217
|
||||
#, python-format
|
||||
msgid "%(dev)s is %(size)s: a disk cannot shrink"
|
||||
msgstr "%(dev)s 为 %(size)s:磁盘不能缩小"
|
||||
|
||||
#: instances/views.py:1224
|
||||
#: instances/views.py:1225
|
||||
msgid "No disks were selected or valid for resizing."
|
||||
msgstr "未选择磁盘或没有可调整大小的有效磁盘。"
|
||||
|
||||
#: instances/views.py:1233
|
||||
#: instances/views.py:1234
|
||||
#, python-format
|
||||
msgid "%(quota)s: cannot resize the disks of '%(instance_name)s'."
|
||||
msgstr "%(quota)s:无法调整“%(instance_name)s”的磁盘。"
|
||||
|
||||
#: instances/views.py:1245
|
||||
#: instances/views.py:1246
|
||||
#, python-format
|
||||
msgid "The storage pool of %(dev)s cannot resize its volumes"
|
||||
msgstr "%(dev)s 所在的存储池无法调整其卷的大小"
|
||||
|
||||
#: instances/views.py:1247
|
||||
#: instances/views.py:1248
|
||||
#, python-format
|
||||
msgid "Disk is resized: %(dev)s"
|
||||
msgstr "磁盘已调整大小:%(dev)s"
|
||||
|
||||
#: instances/views.py:1341
|
||||
#: instances/views.py:1342
|
||||
msgid "The VM's machine has no PCIe slots to add"
|
||||
msgstr "该虚拟机的机器类型没有可添加的 PCIe 插槽"
|
||||
|
||||
#: instances/views.py:1346
|
||||
#: instances/views.py:1347
|
||||
#, python-format
|
||||
msgid "%(count)s PCIe slots added"
|
||||
msgstr "已添加 %(count)s 个 PCIe 插槽"
|
||||
|
||||
#: instances/views.py:1348
|
||||
#: instances/views.py:1349
|
||||
#, python-format
|
||||
msgid "%(count)s PCIe slots added: the VM gets them at its next start"
|
||||
msgstr "已添加 %(count)s 个 PCIe 插槽:虚拟机在下次启动时获得它们"
|
||||
|
||||
#: instances/views.py:1394
|
||||
#: instances/views.py:1395
|
||||
#, python-format
|
||||
msgid "%(volume)s is already a disk of this VM"
|
||||
msgstr "%(volume)s 已是此虚拟机的磁盘"
|
||||
|
||||
#: instances/views.py:1484
|
||||
#: instances/views.py:1485
|
||||
msgid "Volume changes are applied. But it will be activated after shutdown"
|
||||
msgstr "卷更改已应用,但将在关机后生效"
|
||||
|
||||
#: instances/views.py:1489
|
||||
#: instances/views.py:1490
|
||||
msgid "Volume is changed successfully."
|
||||
msgstr "卷已成功更改。"
|
||||
|
||||
#: instances/views.py:1507
|
||||
#: instances/views.py:1508
|
||||
#, python-format
|
||||
msgid "Disk %(dev)s is not a storage volume of this instance"
|
||||
msgstr "磁盘 %(dev)s 不是此虚拟机的存储卷"
|
||||
|
||||
#: instances/views.py:1514
|
||||
#: instances/views.py:1515
|
||||
#, python-format
|
||||
msgid "Disk %(dev)s has a pending change; delete it once the VM is shut down"
|
||||
msgstr "磁盘 %(dev)s 有待生效的更改;请在虚拟机关机后删除它"
|
||||
|
||||
#: instances/views.py:1529
|
||||
#: instances/views.py:1530
|
||||
#, python-format
|
||||
msgid "Volume %(vol)s is used by another VM; detach it instead"
|
||||
msgstr "卷 %(vol)s 正被另一台虚拟机使用;请改为分离它"
|
||||
|
||||
#: instances/views.py:1541
|
||||
#: instances/views.py:1542
|
||||
#, python-format
|
||||
msgid ""
|
||||
"The guest has not released disk %(dev)s yet; volume %(vol)s was kept. Delete "
|
||||
"it from the storage pool once the VM is shut down."
|
||||
msgstr "客户机尚未释放磁盘 %(dev)s;卷 %(vol)s 已保留。请在虚拟机关机后从存储池中删除它。"
|
||||
|
||||
#: instances/views.py:1552
|
||||
#: instances/views.py:1553
|
||||
#, python-format
|
||||
msgid "Disk %(dev)s was detached, but its volume was kept: %(err)s"
|
||||
msgstr "磁盘 %(dev)s 已分离,但其卷已保留:%(err)s"
|
||||
|
||||
#: instances/views.py:1578
|
||||
#: instances/views.py:1579
|
||||
#, python-format
|
||||
msgid "This VM cannot take a CD-ROM on the %(bus)s bus now"
|
||||
msgstr "该虚拟机现在无法在 %(bus)s 总线上添加 CD-ROM"
|
||||
|
||||
#: instances/views.py:1581
|
||||
#: instances/views.py:1582
|
||||
msgid "A USB CD-ROM needs an ISO image: libvirt has no empty USB drive"
|
||||
msgstr "USB CD-ROM 需要 ISO 镜像:libvirt 不支持空的 USB 驱动器"
|
||||
|
||||
#: instances/views.py:1586
|
||||
#: instances/views.py:1587
|
||||
#, python-format
|
||||
msgid "%(image)s is already in a CD-ROM of this VM"
|
||||
msgstr "%(image)s 已在此虚拟机的某个光驱中"
|
||||
|
||||
#: instances/views.py:1667
|
||||
#: instances/views.py:1668
|
||||
#, python-format
|
||||
msgid "Pool %(pool)s was not read again: %(err)s"
|
||||
msgstr "未重新读取存储池 %(pool)s:%(err)s"
|
||||
|
||||
#: instances/views.py:1688
|
||||
#: instances/views.py:1689
|
||||
#, python-format
|
||||
msgid "Snapshot was not deleted: %(err)s"
|
||||
msgstr "快照未删除:%(err)s"
|
||||
|
||||
#: instances/views.py:1803
|
||||
#: instances/views.py:1804
|
||||
msgid "Add at least one device to the boot order."
|
||||
msgstr "请至少向启动顺序中添加一个设备。"
|
||||
|
||||
#: instances/views.py:1817
|
||||
#: instances/views.py:1818
|
||||
msgid "Boot order changed. It applies at the next start."
|
||||
msgstr "启动顺序已更改,将在下次启动时生效。"
|
||||
|
||||
#: instances/views.py:1819
|
||||
#: instances/views.py:1820
|
||||
msgid "Boot order changed successfully."
|
||||
msgstr "启动顺序已成功更改。"
|
||||
|
||||
#: instances/views.py:1839
|
||||
#: instances/views.py:1840
|
||||
msgid "The XML is empty"
|
||||
msgstr "XML 为空"
|
||||
|
||||
#: instances/views.py:1843 instances/views.py:2468
|
||||
#: instances/views.py:1844 instances/views.py:2469
|
||||
#, python-format
|
||||
msgid "The XML is not well-formed: %(error)s"
|
||||
msgstr "XML 格式不正确:%(error)s"
|
||||
|
||||
#: instances/views.py:1845
|
||||
#: instances/views.py:1846
|
||||
#, python-format
|
||||
msgid "The XML must keep the VM's UUID %(uuid)s."
|
||||
msgstr "XML 必须保留虚拟机的 UUID %(uuid)s。"
|
||||
|
||||
#: instances/views.py:1849
|
||||
#: instances/views.py:1850
|
||||
msgid ""
|
||||
"The definition has changed since the editor was opened. Reload the page to "
|
||||
"edit the current one."
|
||||
msgstr "自打开编辑器以来定义已被更改。请重新加载页面以编辑当前定义。"
|
||||
|
||||
#: instances/views.py:1861
|
||||
#: instances/views.py:1862
|
||||
msgid "The XML definition was saved."
|
||||
msgstr "XML 定义已保存。"
|
||||
|
||||
#: instances/views.py:1863
|
||||
#: instances/views.py:1864
|
||||
msgid "The XML definition was saved; the VM uses it from its next start."
|
||||
msgstr "XML 定义已保存;虚拟机从下次启动起使用它。"
|
||||
|
||||
#: instances/views.py:1944
|
||||
#: instances/views.py:1945
|
||||
msgid "Select one network interface to change"
|
||||
msgstr "请选择一个要更改的网络接口"
|
||||
|
||||
#: instances/views.py:1982
|
||||
#: instances/views.py:1983
|
||||
msgid "Network Device Config is changed. Please shutdown instance to activate."
|
||||
msgstr "网络设备配置已更改。请关闭虚拟机以使其生效。"
|
||||
|
||||
#: instances/views.py:1984
|
||||
#: instances/views.py:1985
|
||||
msgid "Network device changed"
|
||||
msgstr "网络设备已更改"
|
||||
|
||||
#: instances/views.py:1996
|
||||
#: instances/views.py:1997
|
||||
msgid "No network selected"
|
||||
msgstr "未选择网络"
|
||||
|
||||
#: instances/views.py:2001
|
||||
#: instances/views.py:2002
|
||||
#, python-format
|
||||
msgid "The VM already has a network device with MAC %(mac)s"
|
||||
msgstr "虚拟机已有 MAC 地址为 %(mac)s 的网络设备"
|
||||
|
||||
#: instances/views.py:2020
|
||||
#: instances/views.py:2021
|
||||
msgid ""
|
||||
"The running VM has no free PCI slot for another network device: shut it down "
|
||||
"and add the device then; Add PCIe slots on the Disks tab gives it free ones "
|
||||
|
|
@ -6011,131 +6016,131 @@ msgid ""
|
|||
msgstr ""
|
||||
"运行中的虚拟机没有可用 PCI 插槽来添加网络设备:请关机后再添加设备。“磁盘”选项卡上的“添加 PCIe 插槽”可使其从下次启动起获得可用插槽。"
|
||||
|
||||
#: instances/views.py:2061 instances/views.py:2067
|
||||
#: instances/views.py:2062 instances/views.py:2068
|
||||
msgid "The VM has it"
|
||||
msgstr "虚拟机已有此设备"
|
||||
|
||||
#: instances/views.py:2098
|
||||
#: instances/views.py:2099
|
||||
#, python-format
|
||||
msgid "The host has no USB device %(device)s"
|
||||
msgstr "主机上没有 USB 设备 %(device)s"
|
||||
|
||||
#: instances/views.py:2119
|
||||
#: instances/views.py:2120
|
||||
#, python-format
|
||||
msgid "The host has no PCI device %(device)s"
|
||||
msgstr "主机上没有 PCI 设备 %(device)s"
|
||||
|
||||
#: instances/views.py:2137
|
||||
#: instances/views.py:2138
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Removal of PCI device %(address)s requested: the guest has not let it go yet;"
|
||||
" it stays in the running VM until it does or the VM stops."
|
||||
msgstr "已请求移除 PCI 设备 %(address)s:客户机尚未释放它;在客户机释放或虚拟机停止之前,它仍保留在运行中的虚拟机中。"
|
||||
|
||||
#: instances/views.py:2182 instances/views.py:2212
|
||||
#: instances/views.py:2183 instances/views.py:2213
|
||||
msgid "Select a network interface and a QoS direction"
|
||||
msgstr "请选择网络接口和 QoS 方向"
|
||||
|
||||
#: instances/views.py:2185 vrtManager/network.py:454
|
||||
#: instances/views.py:2186 vrtManager/network.py:454
|
||||
msgid "QoS rates must be whole numbers"
|
||||
msgstr "QoS 速率必须为整数"
|
||||
|
||||
#: instances/views.py:2192 networks/views.py:229
|
||||
#: instances/views.py:2193 networks/views.py:229
|
||||
#, python-format
|
||||
msgid "%(qos_dir)s QoS is set"
|
||||
msgstr "%(qos_dir)s QoS 已设置"
|
||||
|
||||
#: instances/views.py:2197
|
||||
#: instances/views.py:2198
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(qos_dir)s QoS is set. A running VM gets it after it is powered off and on."
|
||||
msgstr "%(qos_dir)s QoS 已设置。运行中的虚拟机需关机再开机后才能生效。"
|
||||
|
||||
#: instances/views.py:2219 networks/views.py:255
|
||||
#: instances/views.py:2220 networks/views.py:255
|
||||
#, python-format
|
||||
msgid "%(qos_dir)s QoS is deleted"
|
||||
msgstr "%(qos_dir)s QoS 已删除"
|
||||
|
||||
#: instances/views.py:2224
|
||||
#: instances/views.py:2225
|
||||
#, python-format
|
||||
msgid ""
|
||||
"%(qos_dir)s QoS is deleted. A running VM keeps the old limit until it is "
|
||||
"powered off and on."
|
||||
msgstr "%(qos_dir)s QoS 已删除。运行中的虚拟机在关机再开机之前保留旧的限制。"
|
||||
|
||||
#: instances/views.py:2252
|
||||
#: instances/views.py:2253
|
||||
msgid "Only one owner is allowed and the one already added"
|
||||
msgstr "只允许一个所有者,且已添加"
|
||||
|
||||
#: instances/views.py:2254
|
||||
#: instances/views.py:2255
|
||||
#, python-format
|
||||
msgid "%(user)s is already an owner"
|
||||
msgstr "%(user)s 已是所有者"
|
||||
|
||||
#: instances/views.py:2299
|
||||
#: instances/views.py:2300
|
||||
#, python-format
|
||||
msgid "Console settings were not saved: %(errors)s"
|
||||
msgstr "控制台设置未保存:%(errors)s"
|
||||
|
||||
#: instances/views.py:2321
|
||||
#: instances/views.py:2322
|
||||
msgid ""
|
||||
"Error setting console password. You should check that your instance have an "
|
||||
"graphic device."
|
||||
msgstr "设置控制台密码出错。请检查虚拟机是否有图形设备。"
|
||||
|
||||
#: instances/views.py:2368
|
||||
#: instances/views.py:2369
|
||||
msgid "Shut the VM down to change whether it is a template."
|
||||
msgstr "请关闭虚拟机以更改其是否为模板。"
|
||||
|
||||
#: instances/views.py:2374
|
||||
#: instances/views.py:2375
|
||||
#, python-format
|
||||
msgid "%(quota)s: '%(instance_name)s' stays a template."
|
||||
msgstr "%(quota)s:“%(instance_name)s”仍为模板。"
|
||||
|
||||
#: instances/views.py:2456
|
||||
#: instances/views.py:2457
|
||||
msgid "The XML has no name"
|
||||
msgstr "XML 中没有名称"
|
||||
|
||||
#: instances/views.py:2470 webvirtcloud/middleware.py:156
|
||||
#: instances/views.py:2471 webvirtcloud/middleware.py:156
|
||||
#, python-format
|
||||
msgid "libvirt Error - %(exception)s"
|
||||
msgstr "libvirt 错误 - %(exception)s"
|
||||
|
||||
#: instances/views.py:2477
|
||||
#: instances/views.py:2478
|
||||
msgid "An empty disk of the size you set"
|
||||
msgstr "按设定大小创建的空磁盘"
|
||||
|
||||
#: instances/views.py:2478
|
||||
#: instances/views.py:2479
|
||||
msgid "Volumes already in a pool"
|
||||
msgstr "存储池中已有的卷"
|
||||
|
||||
#: instances/views.py:2479
|
||||
#: instances/views.py:2480
|
||||
msgid "A copy of a template volume"
|
||||
msgstr "模板卷的副本"
|
||||
|
||||
#: instances/views.py:2557
|
||||
#: instances/views.py:2558
|
||||
msgid ""
|
||||
"This host has no running storage pool for the VM's disks: add or start one on"
|
||||
" its Storage page."
|
||||
msgstr "此主机没有可用于虚拟机磁盘的运行中存储池:请在其“存储”页面添加或启动一个。"
|
||||
|
||||
#: instances/views.py:2559
|
||||
#: instances/views.py:2560
|
||||
msgid "This host has no network for the VM: add one on its Networks page."
|
||||
msgstr "此主机没有可供虚拟机使用的网络:请在其“网络”页面添加一个。"
|
||||
|
||||
#: instances/views.py:2621
|
||||
#: instances/views.py:2622
|
||||
msgid "Flavor Created"
|
||||
msgstr "规格已创建"
|
||||
|
||||
#: instances/views.py:2629
|
||||
#: instances/views.py:2630
|
||||
msgid "Create Flavor"
|
||||
msgstr "创建规格"
|
||||
|
||||
#: instances/views.py:2641
|
||||
#: instances/views.py:2642
|
||||
msgid "Flavor Deleted"
|
||||
msgstr "规格已删除"
|
||||
|
||||
#: instances/views.py:2647
|
||||
#: instances/views.py:2648
|
||||
msgid "Only the size template goes; VMs made from it keep their size."
|
||||
msgstr "仅删除此规格;由它创建的虚拟机保持其大小。"
|
||||
|
||||
|
|
@ -8469,38 +8474,38 @@ msgstr "连接已关闭(保活超时)"
|
|||
msgid "Connection closed (client closed)"
|
||||
msgstr "连接已关闭(客户端已关闭)"
|
||||
|
||||
#: vrtManager/connection.py:141
|
||||
#: vrtManager/connection.py:155
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Connection Failed: %(host)s does not answer: %(requests)s requests still wait"
|
||||
" for it"
|
||||
msgstr "连接失败:%(host)s 无响应:仍有 %(requests)s 个请求在等待它"
|
||||
|
||||
#: vrtManager/connection.py:213
|
||||
#: vrtManager/connection.py:227
|
||||
#, python-format
|
||||
msgid "Connection Failed: %(host)s did not answer within %(seconds)s s"
|
||||
msgstr "连接失败:%(host)s 在 %(seconds)s 秒内未响应"
|
||||
|
||||
#: vrtManager/connection.py:224
|
||||
#: vrtManager/connection.py:238
|
||||
msgid "the connection closed right after opening"
|
||||
msgstr "连接在打开后立即关闭"
|
||||
|
||||
#: vrtManager/connection.py:237
|
||||
#: vrtManager/connection.py:251
|
||||
#, python-format
|
||||
msgid "Connection Failed: %(error)s"
|
||||
msgstr "连接失败:%(error)s"
|
||||
|
||||
#: vrtManager/connection.py:306
|
||||
#: vrtManager/connection.py:320
|
||||
#, python-format
|
||||
msgid "Connection closed (%(reason)s)"
|
||||
msgstr "连接已关闭(%(reason)s)"
|
||||
|
||||
#: vrtManager/connection.py:434
|
||||
#: vrtManager/connection.py:465
|
||||
#, python-format
|
||||
msgid "Connection Failed: %(host)s is not connected"
|
||||
msgstr "连接失败:%(host)s 未连接"
|
||||
|
||||
#: vrtManager/connection.py:486
|
||||
#: vrtManager/connection.py:517
|
||||
#, python-format
|
||||
msgid "This host has no architecture %(arch)s"
|
||||
msgstr "此主机没有 %(arch)s 架构"
|
||||
|
|
|
|||
|
|
@ -3,9 +3,13 @@ backgroundJobRunning = false;
|
|||
// not "status": that is window.status, which the browser may not keep
|
||||
var vm_summary = document.getElementById("vm-summary");
|
||||
var vm_status = Number(vm_summary.dataset.status);
|
||||
var host_lost = document.getElementById("vm-host-lost");
|
||||
var status_poll = pollWhileVisible(5000, function () {
|
||||
return $.getJSON(vm_summary.dataset.statusUrl);
|
||||
// a failed read (a host that does not answer, a session that ended) leaves the
|
||||
// page as it was: it says so until a read is answered
|
||||
return $.getJSON(vm_summary.dataset.statusUrl).fail(function () { host_lost.hidden = false; });
|
||||
}, function get_status(data) {
|
||||
host_lost.hidden = true;
|
||||
// the page in use (a dialog open, a field in use, an XML edit not saved): the reload waits (poll.js)
|
||||
if (data['status'] != vm_status && !backgroundJobRunning && !pageInUse()) {
|
||||
window.location.reload();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue