Nic-detach crashes opennebula systemd service


(petr108m) #1

debian 10
first I tried
https://downloads.opennebula.org/repo/5.4/Debian/9/opennebula-5.4.13-1/source/
this version is specific for our software

but problems with network are also continued in this version
https://downloads.opennebula.org/repo/5.6.1/Debian/9/opennebula-5.6.1-1/source/

onevm nic-detach 2 1
or poweroff VM in web gui and make network to detach
small info popup window shows
=end of file reached=
and one more
=VM detachnic 11>>1=

and systemctl status opennebula
goes in stopped mode
nothing in logs

the only for now is to recreate VM from template and connect another network interface.
OS is already inside the disk

how to solve it?
may be some debug?


Qcow2 image creating failed
(knawnd) #2

@petr108m, is there any particular reason to use OpenNebula 5.6.1 release but not 5.6.2 one?

Even it seems there are no fixed issues in 5.6.2 what could cause a problem you described in that thread but I guess it’s recommended to use latest stable release.

We haven’t noticed similar problem on OpenNebula 5.4.13 on CentOS 7 with systemd-219-57.el7.x86_64.


(petr108m) #3

yes, correct, centos was also fine for us with 5.4.13
but we need it for debian and we face problem


(petr108m) #4

situation with upstream 5.4.0 and 5.8.0

segfault during onevm nic-detach 0 0
gdb.txt (43.8 KB)
sometines during disk detach VM stays in HOTPLUG
disk detach.txt (2.0 KB)


(Ruben S. Montero) #5

First thanks for the gdb outputs Are they for 5.4.0 or 5.8.0?


(Ruben S. Montero) #6

Could you please change the following if VirtualMachineAttributeSet::remove_attribute around src/vm/VirtualMachineAttribute.cc:74

    if ( vma->is_flag(flag) == true )
    {
        tmp = vma;
        a_set.erase(it);
    }

to read:

    if ( vma->is_flag(flag) == true )
    {
        a_set.erase(it);
        return vma;
    }

We were not able to reproduce it so far… maybe the issue is exposed on specific g++/libc versions