question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Segfault when attaching interface to virtual router

See original GitHub issue

Bug Report

Version of OpenNebula

Mark the relevant versions affected with [X]

  • 5.2.2
  • 5.4.0
  • 5.4.1 (from ubuntu repo)
  • 5.4.2
  • 5.4.3
  • Development build

Component

  • Core
  • Authorization (LDAP, x509 certs…)
  • Command Line Interface (CLI)
  • Contextualization
  • Documentation
  • KVM
  • Networking
  • Orchestration (OpenNebula Flow)
  • Sunstone
  • Storage
  • Scheduler
  • vCenter

Description

OpenNebula die if you try to add new interface to virtual router

OpenNebula version:

# oned -v
Copyright 2002-2017, OpenNebula Project, OpenNebula Systems        

OpenNebula 5.4.1 is distributed and licensed for use under the terms of the
Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0).
****

OS version:

# cat /etc/os-release 
NAME="Ubuntu"
VERSION="16.04.3 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.3 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial

Kernel version (both have problem):

# uname -a
Linux opennebula 4.4.49-1-pve #1 SMP PVE 4.4.49-86 (Thu, 30 Mar 2017 08:39:20 +0200) x86_64 x86_64 x86_64 GNU/Linux
# uname -a
Linux opennebula 4.13.4-1-pve #1 SMP PVE 4.13.4-25 (Fri, 13 Oct 2017 08:59:53 +0200) x86_64 x86_64 x86_64 GNU/Linux

oned.log:

Wed Nov 22 14:20:00 2017 [Z0][AuM][D]: Message received: AUTHENTICATE SUCCESS 33 -

Wed Nov 22 14:20:00 2017 [Z0][ReM][D]: Req:7776 UID:305 one.vrouter.info invoked , 9
Wed Nov 22 14:20:00 2017 [Z0][ReM][D]: Req:7776 UID:305 one.vrouter.info result SUCCESS, "<VROUTER><ID>9</ID><..."
Wed Nov 22 14:20:00 2017 [Z0][AuM][D]: Message received: AUTHENTICATE SUCCESS 34 -

Wed Nov 22 14:20:00 2017 [Z0][ReM][D]: Req:9488 UID:305 one.vrouter.attachnic invoked , 9, "NIC=[..."
Wed Nov 22 14:20:00 2017 [Z0][ReM][D]: Req:9488 UID:305 one.vrouter.attachnic result SUCCESS, 9
Wed Nov 22 14:20:00 2017 [Z0][AuM][D]: Message received: AUTHENTICATE SUCCESS 35 -

Wed Nov 22 14:20:00 2017 [Z0][ReM][D]: Req:2496 UID:305 one.vnpool.info invoked , -2, -1, -1
Wed Nov 22 14:20:00 2017 [Z0][ReM][D]: Req:2496 UID:305 one.vnpool.info result SUCCESS, "<VNET_POOL><VNET><ID..."
Wed Nov 22 14:20:00 2017 [Z0][AuM][D]: Message received: AUTHENTICATE SUCCESS 36 -

Wed Nov 22 14:20:00 2017 [Z0][ReM][D]: Req:6480 UID:305 one.secgrouppool.info invoked , -2, -1, -1
Wed Nov 22 14:20:00 2017 [Z0][ReM][D]: Req:6480 UID:305 one.secgrouppool.info result SUCCESS, "<SECURITY_GROUP_POOL..."
Wed Nov 22 14:20:00 2017 [Z0][AuM][D]: Message received: AUTHENTICATE SUCCESS 37 -

Wed Nov 22 14:20:00 2017 [Z0][ReM][D]: Req:5808 UID:305 one.vrouter.info invoked , 9

sunstone.log:

Wed Nov 22 14:20:00 2017 [I]: 127.0.0.1 - - [22/Nov/2017:14:20:00 +0100] "POST /vrouter/9/action HTTP/1.0" 204 - 0.0996
Wed Nov 22 14:20:00 2017 [I]: 127.0.0.1 - - [22/Nov/2017:14:20:00 +0100] "GET /vnet?timeout=true&pool_filter=-2&csrftoken=5d1a125071fbe136fadf60dc5f496245 HTTP/1.0" 200 - 0.0458
Wed Nov 22 14:20:00 2017 [I]: 127.0.0.1 - - [22/Nov/2017:14:20:00 +0100] "GET /security_group?timeout=true&pool_filter=-2&csrftoken=5d1a125071fbe136fadf60dc5f496245 HTTP/1.0" 200 - 0.0439
Wed Nov 22 14:20:00 2017 [I]: 127.0.0.1 - - [22/Nov/2017:14:20:00 +0100] "GET /vrouter/9?id=9&csrftoken=5d1a125071fbe136fadf60dc5f496245 HTTP/1.0" 404 - 0.0441

journalctl:

Nov 22 14:13:38 opennebula systemd[1]: opennebula.service: Main process exited, code=exited, status=255/n/a
Nov 22 14:13:38 opennebula systemd[1]: Stopping OpenNebula Cloud Scheduler Daemon...
Nov 22 14:13:38 opennebula systemd[1]: Stopped OpenNebula Cloud Scheduler Daemon.
Nov 22 14:13:38 opennebula systemd[1]: Stopped OpenNebula Cloud Controller Daemon.
Nov 22 14:13:38 opennebula systemd[1]: opennebula.service: Unit entered failed state.
Nov 22 14:13:38 opennebula systemd[1]: opennebula.service: Failed with result 'exit-code'.

dmesg

[96876.276635] oned[12975]: segfault at 64 ip 0000000000000064 sp 00007fe65a28eea8 error 14 in oned[400000+338000]

Same thing if I try to run oned manually:

# su -s /bin/bash oneadmin -
$ oned -f
$ echo $?
139

How to reproduce

  • Download the last alpine-vrouter (KVM) image from marketplace
  • Create new virtual router from it with name aaa
  • Go to the Virtual Routers --> aaa --> Attach NIC
  • Select your network, then click “Attach”.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
juanmontcommented, Nov 23, 2017

This bug is fixed now, you can apply this patch or update your Opennebula.

fixed bug

0reactions
juanmontcommented, Nov 24, 2017

Hi, we resolved this bug, this is the associated Pull Request: #1516

Read more comments on GitHub >

github_iconTop Results From Across the Web

Virtual Router Assignment FAQ
I'm having trouble connecting to my topology; What is the best methodology for debugging my router? What are good references for dealing ...
Read more >
6.5 segfault in F10-beta - VMware Technology Network VMTN
Running Fedora 10 Beta (kernel 2.6.27-0.370.rc8 , glibc-2.8.90-12) : vmware-modconfig --console --install-all results in :
Read more >
OSPF virtual link segfault in 1.3.7 (wheezy)
Whenever I throw 'virtual link' in an area, bird segfaults on startup. ... fe80::/64 on interface eth1 added bird6: MyOSPF: Adding interface ......
Read more >
Segmentation Fault in virt-manager due to libvirt-python Master
I've uninstalled virt-manager & libguestfs, rebuilt virt-manager & reinstalled virt-manager alongside the last release of libguestfs (1.31.16).
Read more >
Bridged network for KVM
First of all I had to create a bridge which will be used to create virtual interface - each virtual interface will be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found