UPC/ravada

Creating a new machine and downloading iso

amparorvd opened this issue · 1 comments

Describe the bug
When creating a new node and downloading some iso it generates an error

To Reproduce
Steps to reproduce the behavior:

  1. Go to Admin tools -> Machines-> new machine
  2. Click on Select Template Alpine 3.7 -> download iso
    (if Click on Select Template Ubuntu Mate Bionic 64 bits) this error: download done Error: URL not found 'http://cdimage.ubuntu.com/ubuntu-mate/releases/18.04/release/MD5SUMS' at lib/Ravada/VM/KVM.pm line 1407.
  3. Click on Create
  4. See error

Expected behavior
download iso and create new machine

Screenshots
download done No sha256 for alpine-virt-3.7.3-x86_64.iso in http://dl-cdn.alpinelinux.org/alpine/v3.7/releases/x86_64/alpine-virt-3.7.0-x86_64.iso.sha256 http://dl-cdn.alpinelinux.org/alpine/v3.7/releases/x86_64/alpine-virt-3.7.0-x86_64.iso.sha256 5a4b2588afd32e7024dd61d9558b77b03a4f3189cb4c9fc05e9e944fb780acdd alpine-virt-3.7.0-x86_64.iso at lib/Ravada/VM/KVM.pm line 1640. Ravada::VM::KVM::_fetch_this(Ravada::VM::KVM=HASH(0x5646f9b21d28), HASH(0x5646f9b26158), "sha256") called at lib/Ravada/VM/KVM.pm line 1654 Ravada::VM::KVM::_fetch_sha256(Ravada::VM::KVM=HASH(0x5646f9b21d28), HASH(0x5646f9b26158)) called at lib/Ravada/VM/KVM.pm line 1386 Ravada::VM::KVM::_search_iso(Ravada::VM::KVM=HASH(0x5646f9b21d28), 20) called at lib/Ravada.pm line 4743 Ravada::_cmd_download(Ravada=HASH(0x5646f9b1dce8), Ravada::Request=HASH(0x5646f9b27968)) called at lib/Ravada.pm line 3951 eval {...} called at lib/Ravada.pm line 3950 Ravada::_do_execute_command(Ravada=HASH(0x5646f9b1dce8), CODE(0x5646f8554360), Ravada::Request=HASH(0x5646f9b27968)) called at lib/Ravada.pm line 3926 Ravada::_execute(Ravada=HASH(0x5646f9b1dce8), Ravada::Request=HASH(0x5646f9b27968), undef) called at lib/Ravada.pm line 3643 Ravada::process_requests(Ravada=HASH(0x5646f9b1dce8)) called at ./script/rvd_back line 250 main::do_start() called at ./script/rvd_back line 311 eval {...} called at ./script/rvd_back line 311 main::start() called at ./script/rvd_back line 1025

2022-10-25 16:57:34 set_time d done libvirt error code: 86, message: Guest agent is not responding: QEMU guest agent is not connected ,
2022-10-25 16:57:42 download done No sha256 for alpine-virt-3.7.3-x86_64.iso in http://dl-cdn.alpinelinux.org/alpine/v3.7/releases/x86_64/alpine-virt-3.7.0-x86_64.iso.sha256 http://dl-cdn.alpinelinux.org/alpine/v3.7/releases/x86_64/alpine-virt-3.7.0-x86_64.iso.sha256 5a4b2588afd32e7024dd61d9558b77b03a4f3189cb4c9fc05e9e944fb780acdd alpine-virt-3.7.0-x86_64.iso at lib/Ravada/VM/KVM.pm line 1640. Ravada::VM::KVM::_fetch_this(Ravada::VM::KVM=HASH(0x5646f9b262a8), HASH(0x5646f9b1d6e8), "sha256") called at lib/Ravada/VM/KVM.pm line 1654 Ravada::VM::KVM::_fetch_sha256(Ravada::VM::KVM=HASH(0x5646f9b262a8), HASH(0x5646f9b1d6e8)) called at lib/Ravada/VM/KVM.pm line 1386 Ravada::VM::KVM::_search_iso(Ravada::VM::KVM=HASH(0x5646f9b262a8), 20) called at lib/Ravada.pm line 4743 Ravada::_cmd_download(Ravada=HASH(0x5646f9b1dce8), Ravada::Request=HASH(0x5646f9be3648)) called at lib/Ravada.pm line 3951 eval {...} called at lib/Ravada.pm line 3950 Ravada::_do_execute_command(Ravada=HASH(0x5646f9b1dce8), CODE(0x5646f8554360), Ravada::Request=HASH(0x5646f9be3648)) called at lib/Ravada.pm line 3926 Ravada::_execute(Ravada=HASH(0x5646f9b1dce8), Ravada::Request=HASH(0x5646f9be3648), undef) called at lib/Ravada.pm line 3643 Ravada::process_requests(Ravada=HASH(0x5646f9b1dce8)) called at ./script/rvd_back line 250 main::do_start() called at ./script/rvd_back line 311 eval {...} called at ./script/rvd_back line 311 main::start() called at ./script/rvd_back line 1025
2022-10-25 16:57:43 create 3 done No sha256 for alpine-virt-3.7.3-x86_64.iso in http://dl-cdn.alpinelinux.org/alpine/v3.7/releases/x86_64/alpine-virt-3.7.0-x86_64.iso.sha256 http://dl-cdn.alpinelinux.org/alpine/v3.7/releases/x86_64/alpine-virt-3.7.0-x86_64.iso.sha256 5a4b2588afd32e7024dd61d9558b77b03a4f3189cb4c9fc05e9e944fb780acdd alpine-virt-3.7.0-x86_64.iso at lib/Ravada/VM/KVM.pm line 1640. Ravada::VM::KVM::_fetch_this(Ravada::VM::KVM=HASH(0x5646f9b21d28), HASH(0x5646f9b1d5b0), "sha256") called at lib/Ravada/VM/KVM.pm line 1654 Ravada::VM::KVM::_fetch_sha256(Ravada::VM::KVM=HASH(0x5646f9b21d28), HASH(0x5646f9b1d5b0)) called at lib/Ravada/VM/KVM.pm line 1386 Ravada::VM::KVM::_search_iso(Ravada::VM::KVM=HASH(0x5646f9b21d28), 20, undef) called at lib/Ravada/VM/KVM.pm line 899 Ravada::VM::KVM::_domain_create_from_iso(Ravada::VM::KVM=HASH(0x5646f9b21d28), "id_iso", 20, "spice_password", undef, "name", 3, "listen_ip", ...) called at lib/Ravada/VM/KVM.pm line 645 Ravada::VM::KVM::create_domain(Ravada::VM::KVM=HASH(0x5646f9b21d28), "id_iso", 20, "spice_password", undef, "name", 3, "listen_ip", ...) called at lib/Ravada/VM.pm line 475 Class::MOP::Class:::around(CODE(0x5646f96a2250), Ravada::VM::KVM=HASH(0x5646f9b21d28), "remote_ip", "127.0.0.1", "id_owner", 2, "memory", 1048576, ...) called at /usr/lib/x86_64-linux-gnu/perl5/5.26/Class/MOP/Method/Wrapped.pm line 164 Ravada::VM::KVM::_wrapped_create_domain(Ravada::VM::KVM=HASH(0x5646f9b21d28), "remote_ip", "127.0.0.1", "id_owner", 2, "memory", 1048576, "request", ...) called at /usr/lib/x86_64-linux-gnu/perl5/5.26/Class/MOP/Method/Wrapped.pm line 95 Ravada::VM::KVM::create_domain(Ravada::VM::KVM=HASH(0x5646f9b21d28), "remote_ip", "127.0.0.1", "id_owner", 2, "memory", 1048576, "request", ...) called at lib/Ravada.pm line 3045 eval {...} called at lib/Ravada.pm line 3045 Ravada::create_domain(Ravada=HASH(0x5646f9b1dce8), "request", Ravada::Request=HASH(0x5646f9b260f8)) called at lib/Ravada.pm line 4182 Ravada::_cmd_create(Ravada=HASH(0x5646f9b1dce8), Ravada::Request=HASH(0x5646f9b260f8)) called at lib/Ravada.pm line 3951 eval {...} called at lib/Ravada.pm line 3950 Ravada::_do_execute_command(Ravada=HASH(0x5646f9b1dce8), CODE(0x5646f8494a18), Ravada::Request=HASH(0x5646f9b260f8)) called at lib/Ravada.pm line 3926 Ravada::_execute(Ravada=HASH(0x5646f9b1dce8), Ravada::Request=HASH(0x5646f9b260f8), undef) called at lib/Ravada.pm line 3643 Ravada::process_requests(Ravada=HASH(0x5646f9b1dce8)) called at ./script/rvd_back line 250 main::do_start() called at ./script/rvd_back line 311 eval {...} called at ./script/rvd_back line 311 main::start() called at ./script/rvd_back line 1025

The related file lib/ravada.pm