[Check_mk (english)] Firmware problem

Hi,

We run Xen Server and have problems upgrading or installing firmware 1.4.x. Seems to be because there are network changes in Debian. I tried to download and import ova for 1.4.2 firmware but it fails also. /usr/bin/cma-setup seem to fail
parse «simple name» of network interface, at least it looks like that from what I see. Same symptom when upgrading 1.3.x (latest) and directly new virtual machine. We had Xen 7.2 but have upgraded to 7.5.

I cannot get to the bash console. Anything I can try?

First time I configured the console after importing ova file and set password and IP adress. Still cannot ping or anything. The front page of console shows an error box: «Error in draw_status. Check syslog». TTY2 shows text: cma-setup:
Failed to draw area….draw_simple_interface_status… and IndexError: list index out of range

Seem to be file cma_net.py line 101 as an example.

I still think this is a bug but I reported this the wrong way before and got into a mess with support and invoicing.

Med vennlig hilsen

Lars Eik

IKT Konsulent

image001.jpg

**Sentralbord:**950 08 800

Mobil: 94881557 |
E-post:

lars.eik@jarlsberg-ikt.no

Brukerstøtte:
ikthjelp@jarlsberg-ikt.no

Besøks- og postadresse: Fjordgaten 9, 3125 Tønsberg

Org.nr.: NO 919 431 016 MVA

The GRUB password would be helpful, is it known or a big secret?

Lars

image001.jpg

···

Fra: checkmk-en [mailto:checkmk-en-bounces@lists.mathias-kettner.de]
På vegne av Lars Eik
Sendt: onsdag 8. august 2018 12:35
Til: checkmk-en@lists.mathias-kettner.de
Emne: [Check_mk (english)] Firmware problem

Hi,

We run Xen Server and have problems upgrading or installing firmware 1.4.x. Seems to be because there are network changes in Debian. I tried to download and import ova for 1.4.2 firmware but it fails also. /usr/bin/cma-setup seem to fail
parse «simple name» of network interface, at least it looks like that from what I see. Same symptom when upgrading 1.3.x (latest) and directly new virtual machine. We had Xen 7.2 but have upgraded to 7.5.

I cannot get to the bash console. Anything I can try?

First time I configured the console after importing ova file and set password and IP adress. Still cannot ping or anything. The front page of console shows an error box: «Error in draw_status. Check syslog». TTY2 shows text: cma-setup:
Failed to draw area….draw_simple_interface_status… and IndexError: list index out of range

Seem to be file cma_net.py line 101 as an example.

I still think this is a bug but I reported this the wrong way before and got into a mess with support and invoicing.

Med vennlig hilsen

Lars Eik

IKT Konsulent

**Sentralbord:**950 08 800

Mobil: 94881557 |
E-post:

lars.eik@jarlsberg-ikt.no

Brukerstøtte:
ikthjelp@jarlsberg-ikt.no

Besøks- og postadresse: Fjordgaten 9, 3125 Tønsberg

Org.nr.: NO 919 431 016 MVA

So I found maybe a solution. With system rescue cd (sysresccd.org) I mounted disk and found /usr/lib/python2.7/cma_net.py and around line 330 there is function. The # comment is my edit. So the problem is that
the function only adds interfaces startswith ‘en’ and they dont… As I can see the Check_MK appliance boots and the interfaces are calles eth0 etc and therefore this function fails. My guess is that the appliance is an Debian upgraded from before 9 (stretch)
because that will explain that interfaces are still called eth0 etc.

def available_physical_interfaces():

l = []

for f in os.listdir(’/sys/class/net’):

if f.startswith(‘en’) and “.” not in f:

if “.” not in f:

l.append(f)

return sorted(l)

Lars

image001.jpg

···

Fra: Lars Eik
Sendt: onsdag 8. august 2018 13:03
Til: Lars Eik lars.eik@jarlsberg-ikt.no
Emne: SV: Firmware problem

The GRUB password might have helped. Is it a big secret?

Lars

Fra: checkmk-en [mailto:checkmk-en-bounces@lists.mathias-kettner.de]
På vegne av Lars Eik
Sendt: onsdag 8. august 2018 12:35
Til: checkmk-en@lists.mathias-kettner.de
Emne: [Check_mk (english)] Firmware problem

Hi,

We run Xen Server and have problems upgrading or installing firmware 1.4.x. Seems to be because there are network changes in Debian. I tried to download and import ova for 1.4.2 firmware but it fails also. /usr/bin/cma-setup seem to fail
parse «simple name» of network interface, at least it looks like that from what I see. Same symptom when upgrading 1.3.x (latest) and directly new virtual machine. We had Xen 7.2 but have upgraded to 7.5.

I cannot get to the bash console. Anything I can try?

First time I configured the console after importing ova file and set password and IP adress. Still cannot ping or anything. The front page of console shows an error box: «Error in draw_status. Check syslog». TTY2 shows text: cma-setup:
Failed to draw area….draw_simple_interface_status… and IndexError: list index out of range

Seem to be file cma_net.py line 101 as an example.

I still think this is a bug but I reported this the wrong way before and got into a mess with support and invoicing.

Med vennlig hilsen

Lars Eik

IKT Konsulent

**Sentralbord:**950 08 800

Mobil: 94881557 |
E-post:

lars.eik@jarlsberg-ikt.no

Brukerstøtte:
ikthjelp@jarlsberg-ikt.no

Besøks- og postadresse: Fjordgaten 9, 3125 Tønsberg

Org.nr.: NO 919 431 016 MVA