Project

General

Profile

Bug #336

Testing environment broken

Added by Christian Liebscher over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
testing
Target version:
Start date:
04.05.2013
Due date:
Estimated time:
Affected version:
5.0.3
Resolution:
Fixed

Description

I just tried to setup the new debian based testing environment and failed miserably. I'm using an up to date debian wheezy (i386 pae kernel, native on a Core i5).

I installed the packages you mentioned in the wiki (debootstrap e2fsprogs kvm libvirt-bin parted qemu wget gcc make).

At the first attempt i only changed the build directory and the mirror (ftp.debian.de) but I ran into a mount failure during debootstrap:

W: Failure trying to run: chroot /home/user/strongswan-testing/build/loop mount -t proc proc /proc

After consulting the ubuntu and debian forums i figured it could be a problem with the different architectures. Therefore I changed it to i386 in the testing.conf and this particularly error was gone.

But now the build hangs at "Installing from recipe 009_tkm.mk" and the testing.log ends with:

gcc-4.6 test_runner.o -lgmp -lmpfr -o test_runner

Thats it, nothing more happens after that. CPU usage is down to zero and I can wait as long as I want, gcc will not finish linking.

Please let me know if you need more information or if you have a solution.

Associated revisions

Revision 9c2aba27 (diff)
Added by Tobias Brunner over 6 years ago

testing: Don't run tests when building tkm-rpc

There are issues with some versions of the XML/Ada library on i386,
blocking the build of the testing environment when these tests are run.
TKM tests won't work in such a case but at least make-testing does not
block with this patch.

Fixes #336.

Revision e74bca9e (diff)
Added by Tobias Brunner over 6 years ago

testing: Don't run tests when building tkm

The problem with XML/Ada described in 9c2aba27 actually occurs when
running the tests here.

Really fixes #336.

History

#1 Updated by Tobias Brunner over 6 years ago

  • Status changed from New to Resolved
  • Assignee set to Tobias Brunner
  • Resolution set to Fixed

At the first attempt i only changed the build directory and the mirror (ftp.debian.de) but I ran into a mount failure during debootstrap:

W: Failure trying to run: chroot /home/user/strongswan-testing/build/loop mount -t proc proc /proc

After consulting the ubuntu and debian forums i figured it could be a problem with the different architectures. Therefore I changed it to i386 in the testing.conf and this particularly error was gone.

Cross-building the testing environment is currently not supported. The bind daemon requires /proc to be mounted (it is bind-mounted in this case due to the chroot), which basically means that the host has to run the same architecture as the guests. I updated the documentation accordingly.

But now the build hangs at "Installing from recipe 009_tkm.mk" and the testing.log ends with:

gcc-4.6 test_runner.o -lgmp -lmpfr -o test_runner

Thats it, nothing more happens after that. CPU usage is down to zero and I can wait as long as I want, gcc will not finish linking.

Removing make tests in this recipe should fix the blocking issue. Apparently, there are problems on i386 with the XML/Ada library included in Debian wheezy. Which means that even if the build is successful the tkm test cases won't run successfully later on (which is only an issue, of course, if you actually intended to run any of the test cases).

#2 Updated by Christian Liebscher over 6 years ago

I only wanted to load some standard testcases and make some modifications to them for my own test scenarios. Unfortunally I'm restricted to i386 and have no amd64 install of debian at my disposal.

I removed "make test" from recipe "009_tkm.mk" and to be sure also from recipe "006...mk" as you suggested. So you might want to remove the "make test" from recipe 009 as well.

However something is still strange. During Kernel make oldconfig I had to answer many questions about kernel modules. I would guess this is an architecture issue again. I just answered everything with the default answer and the build went fine.

After that, I noticed the subnets in testing.conf are already in use by my system, so i changed them accordingly in testing.conf

HOSTNAMEIPV4="\
alice,10.100.0.10,192.168.100.50 \
venus,10.100.0.20 \
moon,192.168.100.1,10.100.0.1 \
carol,192.168.100.100,10.300.0.1 \
winnetou,192.168.100.150 \
dave,192.168.100.200,10.300.0.2 \
sun,192.168.100.2,10.200.0.1 \
bob,10.200.0.10" 

I also had a look at config/kvm/vnet1.xml ... vmnet3.xml and changed the values for the subnets.

Now I ran ./start-testing. The script doesn't put out any errors but the kvm hosts don't seem to boot correctly.
This is my output from ifconfig after ./start-testing

alice-eth0 Link encap:Ethernet  HWaddr fe:54:00:9a:e2:de  
          inet6 addr: fe80::fc54:ff:fe9a:e2de/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:292 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:636 (636.0 B)  TX bytes:21018 (20.5 KiB)

alice-eth1 Link encap:Ethernet  HWaddr fe:54:00:3b:0c:d7  
          inet6 addr: fe80::fc54:ff:fe3b:cd7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:257 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:0 (0.0 B)  TX bytes:22931 (22.3 KiB)

bob-eth0  Link encap:Ethernet  HWaddr fe:54:00:40:85:6b  
          inet6 addr: fe80::fc54:ff:fe40:856b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:277 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:636 (636.0 B)  TX bytes:19193 (18.7 KiB)

carol-eth0 Link encap:Ethernet  HWaddr fe:54:00:ae:f1:f8  
          inet6 addr: fe80::fc54:ff:feae:f1f8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:340 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:636 (636.0 B)  TX bytes:26846 (26.2 KiB)

dave-eth0 Link encap:Ethernet  HWaddr fe:54:00:b9:15:a9  
          inet6 addr: fe80::fc54:ff:feb9:15a9/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:338 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:636 (636.0 B)  TX bytes:26477 (25.8 KiB)

eth0      Link encap:Ethernet  HWaddr 00:19:99:bd:c8:23  
          inet addr:192.168.0.23  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::219:99ff:febd:c823/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10395946 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9644597 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4641375895 (4.3 GiB)  TX bytes:2637253511 (2.4 GiB)
          Interrupt:20 Memory:fe600000-fe620000 

eth1      Link encap:Ethernet  HWaddr 68:05:ca:01:f3:a8  
          inet addr:10.10.0.1  Bcast:10.10.255.255  Mask:255.255.0.0
          inet6 addr: fe80::6a05:caff:fe01:f3a8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3810063 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2734004 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2987830515 (2.7 GiB)  TX bytes:695963478 (663.7 MiB)
          Interrupt:16 Memory:fe4c0000-fe4e0000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:6872 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6872 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:422312 (412.4 KiB)  TX bytes:422312 (412.4 KiB)

moon-eth0 Link encap:Ethernet  HWaddr fe:54:00:c7:b8:b0  
          inet6 addr: fe80::fc54:ff:fec7:b8b0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:336 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:636 (636.0 B)  TX bytes:26151 (25.5 KiB)

moon-eth1 Link encap:Ethernet  HWaddr fe:54:00:43:e3:35  
          inet6 addr: fe80::fc54:ff:fe43:e335/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:277 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:636 (636.0 B)  TX bytes:18504 (18.0 KiB)

sun-eth0  Link encap:Ethernet  HWaddr fe:54:00:77:43:ea  
          inet6 addr: fe80::fc54:ff:fe77:43ea/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:331 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:636 (636.0 B)  TX bytes:25703 (25.1 KiB)

sun-eth1  Link encap:Ethernet  HWaddr fe:54:00:0f:97:db  
          inet6 addr: fe80::fc54:ff:fe0f:97db/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:266 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:636 (636.0 B)  TX bytes:17632 (17.2 KiB)

test-br0  Link encap:Ethernet  HWaddr 52:54:00:97:f9:fd  
          inet addr:192.168.100.254  Bcast:192.168.100.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:30 errors:0 dropped:0 overruns:0 frame:0
          TX packets:59 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:2760 (2.6 KiB)  TX bytes:8207 (8.0 KiB)

test-br1  Link encap:Ethernet  HWaddr 52:54:00:05:f3:34  
          inet addr:10.100.0.254  Bcast:10.100.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:18 errors:0 dropped:0 overruns:0 frame:0
          TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1656 (1.6 KiB)  TX bytes:3065 (2.9 KiB)

test-br2  Link encap:Ethernet  HWaddr 52:54:00:62:4c:69  
          inet addr:10.200.0.254  Bcast:10.200.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12 errors:0 dropped:0 overruns:0 frame:0
          TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1104 (1.0 KiB)  TX bytes:2130 (2.0 KiB)

venus-eth0 Link encap:Ethernet  HWaddr fe:54:00:69:d3:80  
          inet6 addr: fe80::fc54:ff:fe69:d380/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:271 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:636 (636.0 B)  TX bytes:17989 (17.5 KiB)

winnetou-eth0 Link encap:Ethernet  HWaddr fe:54:00:4b:23:fa  
          inet6 addr: fe80::fc54:ff:fe4b:23fa/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:318 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:636 (636.0 B)  TX bytes:24308 (23.7 KiB)

Now I'm stuck again. I don't have any experience with kvm but I tried to connect to the hosts via "sudo virsh console alice", but got no output what so ever except for:

~/strongswan-testing/testing$ sudo virsh console alice
Connected to domain alice
Escape character is ^]

Can you give me a hint, how to debug this issue further? At this point I would guess that I miss some kvm modules in the kernel.

#3 Updated by Tobias Brunner over 6 years ago

I removed "make test" from recipe "009_tkm.mk" and to be sure also from recipe "006...mk" as you suggested. So you might want to remove the "make test" from recipe 009 as well.

Yes, I fixed it this morning.

After that, I noticed the subnets in testing.conf are already in use by my system, so i changed them accordingly in testing.conf
[...]

Changing these is also something not really supported at the moment (all test cases use hard-coded IPs - with the old setup it was different, at least partially, I think it was never fully supported).

Now I'm stuck again. I don't have any experience with kvm but I tried to connect to the hosts via "sudo virsh console alice", but got no output what so ever except for:
[...]

This command doesn't work for me either. You can use the testing/ssh script to connect to the guests via SSH. It also works with virt-manager (but the keyboard layout is not correct there).

#4 Updated by Christian Liebscher over 6 years ago

It works for me now, altough i had to renumber my local subnets ;-)

At least ikev2/net2net-psk works (i didn't try other testcases yet) and I can login to the virtual guests. Thanks for your help.

PS: You may want to deliver a kernel config that is not asking any question during the make oldconfig (I guess this works for amd64). I could send you mine if you like (answered all with standard).

#5 Updated by Tobias Brunner over 6 years ago

  • Status changed from Resolved to Closed
  • Target version set to 5.1.0

Also available in: Atom PDF