fix(reinstall): use OSTemplate.vmid (not template_vmid) and convert memory bytes->MB
- AttributeError: OSTemplate has no 'template_vmid' field; the actual column is 'vmid'. - Use OSTemplate.get_vmid_for_node() to support cross-node replicated templates, falling back to source_node/vmid otherwise. - VMInstance.memory is stored in bytes, but Proxmox config expects MB.
This commit is contained in:
@@ -193,7 +193,7 @@
|
||||
"console": "Console",
|
||||
"reinstall": "Reinstall",
|
||||
"fill_all_fields": "Fill all required fields",
|
||||
"select_node": "— Select node —",
|
||||
"select_node": "Select Node",
|
||||
"no_nodes": "No nodes available",
|
||||
"login": "Login",
|
||||
"username": "Username",
|
||||
@@ -1190,7 +1190,6 @@
|
||||
"nav_networks": "Networks",
|
||||
"networks_management_desc": "Manage SDN zones, VNets, subnets and node network interfaces",
|
||||
"node_networks": "Node Interfaces",
|
||||
"network_interfaces": "Network Interfaces",
|
||||
"iface_type": "Type",
|
||||
"iface_bridge": "Bridge",
|
||||
"iface_bond": "Bond",
|
||||
@@ -1202,7 +1201,6 @@
|
||||
"bond_slaves_hint": "Space-separated list of slave interfaces, e.g. ens3 ens4",
|
||||
"bond_mode": "Bond Mode",
|
||||
"autostart": "Autostart",
|
||||
"active": "Active",
|
||||
"apply_network_config": "Apply Network Config",
|
||||
"apply_network_config_confirm": "Apply pending network changes to this node? This will activate the new configuration.",
|
||||
"revert_network_config": "Revert Network Config",
|
||||
@@ -1222,7 +1220,6 @@
|
||||
"ipam_network_will_not_be_deleted": "The linked IPAM network (if any) will not be deleted.",
|
||||
"synced_with_ipam": "IPAM",
|
||||
"vlan_aware": "VLAN Aware",
|
||||
"vlan_id": "VLAN ID",
|
||||
"vlan_raw_device": "Raw Device",
|
||||
"vxlan_peer": "Peer Addresses",
|
||||
"vxlan_peer_hint": "Space-separated list of remote peer IP addresses",
|
||||
@@ -1230,8 +1227,37 @@
|
||||
"alias": "Alias",
|
||||
"subnet": "Subnet",
|
||||
"netmask": "Netmask",
|
||||
"select_node": "Select Node",
|
||||
"iface_bridge_name_hint": "e.g. vmbr0, vmbr1",
|
||||
"iface_bond_name_hint": "e.g. bond0, bond1",
|
||||
"iface_vlan_name_hint": "e.g. ens3.100"
|
||||
"iface_vlan_name_hint": "e.g. ens3.100",
|
||||
"vmid": "VMID",
|
||||
"boot_order": "Boot Order",
|
||||
"qemu_agent": "QEMU Agent",
|
||||
"primary_ip": "Primary IP",
|
||||
"os_type": "OS Type",
|
||||
"vcpu": "vCPU",
|
||||
"instance_info": "Instance Info",
|
||||
"interfaces": "Interfaces",
|
||||
"dns": "DNS",
|
||||
"my_proxmox_server": "My Proxmox Server",
|
||||
"qemu_virtual_machine": "QEMU Virtual Machine",
|
||||
"root": "root",
|
||||
"ubuntu": "ubuntu",
|
||||
"my_vm": "my-vm-01",
|
||||
"notes_saved": "Notes saved",
|
||||
"before_update": "before-update",
|
||||
"placeholder_root": "root",
|
||||
"placeholder_ubuntu": "ubuntu",
|
||||
"placeholder_vm_name": "my-vm-01",
|
||||
"placeholder_ssh_key": "ssh-rsa AAAA...",
|
||||
"placeholder_command": "ls -la /tmp",
|
||||
"placeholder_disk_size": "e.g. 100",
|
||||
"placeholder_snapshot_name": "e.g. before-update",
|
||||
"placeholder_root_pam": "root@pam",
|
||||
"placeholder_disk": "scsi0",
|
||||
"placeholder_notes": "Описание / заметки об инстансе...",
|
||||
"log_level_debug": "Debug",
|
||||
"log_level_info": "Info",
|
||||
"log_level_warning": "Warning",
|
||||
"log_level_error": "Error"
|
||||
}
|
||||
Reference in New Issue
Block a user