YunoHost / package_check

Shell script which check package actions: install, remove, upgrade, backup, restore…
GNU General Public License v3.0
21 stars 26 forks source link

Tests all failing with package_check latest version #100

Closed JimboJoe closed 3 years ago

JimboJoe commented 3 years ago

Hey there, I've tried package_check latest version from scratch, and for now all tests are failing. Interesting logs at container container creation and each start:

Launching new LXC ynh-appci-buster-amd64-stable-test ...
Error: The container miserably failed to start or to connect to the internet
Name: ynh-appci-buster-amd64-stable-test
Location: none
Remote: unix://
Architecture: x86_64
Created: 2021/02/06 18:23 UTC
Status: Running
Type: container
Profiles: default
Pid: 589
Ips:
  eth0: inet6   fe80::216:3eff:fe5c:adb8        vethcbf0adc9
  lo:   inet    127.0.0.1
  lo:   inet6   ::1
Resources:
  Processes: 16
  CPU usage:
    CPU usage (in seconds): 0
  Memory usage:
    Memory (current): 24.10MB
    Memory (peak): 26.59MB
  Network usage:
    eth0:
      Bytes received: 380B
      Bytes sent: 830B
      Packets received: 2
      Packets sent: 6
    lo:
      Bytes received: 0B
      Bytes sent: 0B
      Packets received: 0
      Packets sent: 0

Log:

lxc ynh-appci-buster-amd64-stable-test 20210206182815.694 WARN     cgfsng - cgroups/cgfsng.c:mkdir_eexist_on_last:1126 - File exists - Failed to create directory "/sys/fs/cgroup/cpuset//lxc.monitor.ynh-appci-buster-amd64-stable-test"
lxc ynh-appci-buster-amd64-stable-test 20210206182815.695 WARN     cgfsng - cgroups/cgfsng.c:mkdir_eexist_on_last:1126 - File exists - Failed to create directory "/sys/fs/cgroup/cpuset//lxc.payload.ynh-appci-buster-amd64-stable-test"
lxc ynh-appci-buster-amd64-stable-test 20210206182815.696 ERROR    utils - utils.c:lxc_can_use_pidfd:1853 - Kernel does not support pidfds
lxc ynh-appci-buster-amd64-stable-test 20210206182815.708 ERROR    conf - conf.c:turn_into_dependent_mounts:3065 - No such file or directory - Failed to recursively turn old root mount tree into dependent mount. Continuing...
lxc ynh-appci-buster-amd64-stable-test 20210206182815.709 ERROR    utils - utils.c:__safe_mount_beneath_at:1106 - Function not implemented - Failed to open 29(dev)
lxc ynh-appci-buster-amd64-stable-test 20210206182815.769 ERROR    utils - utils.c:__safe_mount_beneath_at:1106 - Function not implemented - Failed to open 30(console)

yunohost:
  repo: stable
  version: 4.1.7.1
yunohost-admin:
  repo: stable
  version: 4.1.4
moulinette:
  repo: stable
  version: 4.1.4
ssowat:
  repo: stable
  version: 4.1.3
sparse error: Invalid numeric literal at line 1, column 2

...

What way could I investigate this network issue? Or could it be something else? How to get more logs?

The machine is a VirtualBox VM with a NATed network, working with previous version of package_check.

Thanks!

JimboJoe commented 3 years ago

Hi, I just tried with a local VirtualBox VM with a bridged network adapter, with no success. Any hints as to how to investigate that LXD networking issue...? Thanks!

alexAubin commented 3 years ago

Eeeeeh I guess the usual explanation is "LXD's DHCP server ain't working for some reason", which may involve port 53 being used by something else ... Did you install Yunohost before package_check in the VM ?

JimboJoe commented 3 years ago

Yes, this is a YunoHost testing VM. I'll have a check, thanks for the hint!

alexAubin commented 3 years ago

@JimboJoe then the issue is probably dnsmasq using port 53 ;) You should have a look at the trick we do in CI_package_check install here: https://github.com/YunoHost/CI_package_check/blob/master/install.sh#L133-L139

(Credit to Kayou about the dnsmasq conf snippet which prevent having to stop dnsmasq entirely)

JimboJoe commented 3 years ago

That did the trick, thanks! 👍 Now it's much slower than previous version, but that's another story... 😅