Skip to content

net allocation #446

@eevans1963

Description

@eevans1963

Affected version
4.5.6-1.el9

IMPORTANT!: oVirt prior to 4.5 reached end of life.
If you have an issue on an older version please
upgrade to latest stable release before opening an issue.

  • oVirt Engine: (example: ovirt-engine-4.5.0.8-1.el8.noarch)
  • Host OS Variant: (example: oVirt Node 4.5.4)
  • VDSM version: (example: vdsm-4.50.1.4-1.el8.x86_64)
  • Additional relevant package versions: (add whatever seems related to the issue, example: glusterfs-10.2-1.el8s.x86_64)
    Centos stream 9
    Describe the bug
    when starting a vm, imported or new, I have to go to system, and size and choose the appropriate size for the machine.
    I cannot add a nic until after the vm boots, then reboot it and reset the IP everytime.
    A clear and concise description of what the bug is
    ovirt engine log: tail -n 100 -f /var/log/ovirt-engine/engine.log |grep error



    2025-02-11 14:12:23,271-06 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedScheduledExecutorService-engineScheduledThreadPool-Thread-93) [4b869ea9] EVENT_ID: VM_DOWN_ERROR(119), VM Home_Assistr is down with error. Exit message: Bad volume specification {'device': 'disk', 'type': 'disk', 'diskType': 'file', 'specParams': {'pinToIoThread': '1'}, 'alias': 'ua-a3206537-ae2f-4bf3-939d-823a0423ff95', 'domainID': '69c1b4da-51ac-4c67-9d69-c24948d9d55f', 'imageID': 'a3206537-ae2f-4bf3-939d-823a0423ff95', 'poolID': '6f814d26-e56a-11ef-8798-70e2840574e3', 'volumeID': 'e1e561c3-0c97-4308-a376-86b82d6087b8', 'path': '/rhev/data-center/6f814d26-e56a-11ef-8798-70e2840574e3/69c1b4da-51ac-4c67-9d69-c24948d9d55f/images/a3206537-ae2f-4bf3-939d-823a0423ff95/e1e561c3-0c97-4308-a376-86b82d6087b8', 'discard': False, 'format': 'cow', 'propagateErrors': 'off', 'cache': 'none', 'iface': 'virtio', 'name': 'vda', 'bootOrder': '1', 'serial': 'a3206537-ae2f-4bf3-939d-823a0423ff95', 'index': 0, 'reqsize': '0', 'truesize': '197120', 'apparentsize': '197120'}.



    2025-02-11 14:12:38,646-06 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedScheduledExecutorService-engineScheduledThreadPool-Thread-72) [4f5f1f32] EVENT_ID: VM_DOWN_ERROR(119), VM Home_Assistr is down with error. Exit message: Bad volume specification {'device': 'disk', 'type': 'disk', 'diskType': 'file', 'specParams': {'pinToIoThread': '1'}, 'alias': 'ua-a3206537-ae2f-4bf3-939d-823a0423ff95', 'domainID': '69c1b4da-51ac-4c67-9d69-c24948d9d55f', 'imageID': 'a3206537-ae2f-4bf3-939d-823a0423ff95', 'poolID': '6f814d26-e56a-11ef-8798-70e2840574e3', 'volumeID': 'e1e561c3-0c97-4308-a376-86b82d6087b8', 'path': '/rhev/data-center/6f814d26-e56a-11ef-8798-70e2840574e3/69c1b4da-51ac-4c67-9d69-c24948d9d55f/images/a3206537-ae2f-4bf3-939d-823a0423ff95/e1e561c3-0c97-4308-a376-86b82d6087b8', 'discard': False, 'format': 'cow', 'propagateErrors': 'off', 'cache': 'none', 'iface': 'virtio', 'name': 'vda', 'bootOrder': '1', 'serial': 'a3206537-ae2f-4bf3-939d-823a0423ff95', 'index': 0, 'reqsize': '0', 'truesize': '197120', 'apparentsize': '197120'}.
    2025-02-11 14:12:38,646-06 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedScheduledExecutorService-engineScheduledThreadPool-Thread-72) [4f5f1f32] EVENT_ID: VM_DOWN_ERROR(119), VM Home_Assistr is down with error. Exit message: Bad volume specification {'device': 'disk', 'type': 'disk', 'diskType': 'file', 'specParams': {'pinToIoThread': '1'}, 'alias': 'ua-a3206537-ae2f-4bf3-939d-823a0423ff95', 'domainID': '69c1b4da-51ac-4c67-9d69-c24948d9d55f', 'imageID': 'a3206537-ae2f-4bf3-939d-823a0423ff95', 'poolID': '6f814d26-e56a-11ef-8798-70e2840574e3', 'volumeID': 'e1e561c3-0c97-4308-a376-86b82d6087b8', 'path': '/rhev/data-center/6f814d26-e56a-11ef-8798-70e2840574e3/69c1b4da-51ac-4c67-9d69-c24948d9d55f/images/a3206537-ae2f-4bf3-939d-823a0423ff95/e1e561c3-0c97-4308-a376-86b82d6087b8', 'discard': False, 'format': 'cow', 'propagateErrors': 'off', 'cache': 'none', 'iface': 'virtio', 'name': 'vda', 'bootOrder': '1', 'serial': 'a3206537-ae2f-4bf3-939d-823a0423ff95', 'index': 0, 'reqsize': '0', 'truesize': '197120', 'apparentsize': '197120'}.

    2025-02-11 14:16:32,032-06 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (ForkJoinPool-1-worker-15) [4f1d3475] EVENT_ID: VM_DOWN_ERROR(119), VM clonezilla is down with error. Exit message: Hook Error: (b'vm net allocation hook: [unexpected error]: Traceback (most recent call last):\n File "/usr/libexec/vdsm/hooks/before_device_create/10_allocate_net", line 91, in \n main()\n File "/usr/libexec/vdsm/hooks/before_device_create/10_allocate_net", line 79, in main\n allocate_random_network(device_xml)\n File "/usr/libexec/vdsm/hooks/before_device_create/10_allocate_net", line 48, in allocate_random_network\n net = _get_random_network()\n File "/usr/libexec/vdsm/hooks/before_device_create/10_allocate_net", line 36, in _get_random_network\n available_nets = _parse_nets()\n File "/usr/libexec/vdsm/hooks/before_device_create/10_allocate_net", line 32, in _parse_nets\n return [net for net in os.environ[AVAIL_NETS_KEY].split()]\n File "/usr/lib64/python3.9/os.py", line 679, in getitem\n raise KeyError(key) from None\nKeyError: 'equivnets'\n\n\n',).


    2025-02-11 14:18:49,290-06 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (ForkJoinPool-1-worker-15) [5091f90b] EVENT_ID: VM_DOWN_ERROR(119), VM clonezilla is down with error. Exit message: Hook Error: (b'vm net allocation hook: [unexpected error]: Traceback (most recent call last):\n File "/usr/libexec/vdsm/hooks/before_device_create/10_allocate_net", line 91, in \n main()\n File "/usr/libexec/vdsm/hooks/before_device_create/10_allocate_net", line 79, in main\n allocate_random_network(device_xml)\n File "/usr/libexec/vdsm/hooks/before_device_create/10_allocate_net", line 48, in allocate_random_network\n net = _get_random_network()\n File "/usr/libexec/vdsm/hooks/before_device_create/10_allocate_net", line 36, in _get_random_network\n available_nets = _parse_nets()\n File "/usr/libexec/vdsm/hooks/before_device_create/10_allocate_net", line 32, in _parse_nets\n return [net for net in os.environ[AVAIL_NETS_KEY].split()]\n File "/usr/lib64/python3.9/os.py", line 679, in getitem\n raise KeyError(key) from None\nKeyError: 'equivnets'\n\n\n',).

To reproduce
shutdown the vm and try to start it.
Steps to reproduce the behavior
shutdown the vm and try to start it.
Expected behavior
vm should boot with a custom size insteat of being forced to use a pre set selection. The net allocation error is on all machines.
A clear and concise description of what you expected to happen
I believe in one of the mentioned files, some code needs altered. I had to modify route.py for host networks to sync.
Screenshots

Image

If applicable, add screenshots to help explain your problem

Additional context
I think I exxxxplaned it well. If you have any questions ot need anything, please let me know.
Add any other context about the problem here

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue is a bug or fix for a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions