ubuntu 16.04 docker image should include netbase

Bug #1673930 reported by Pierce Lopez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-images
Invalid
Undecided
Unassigned

Bug Description

I attempted to run munin-update from package "munin", inside a docker container based on the ubuntu:16.04 image. It failed to connect to any nodes with a strange error: "No such file or directory".

I narrowed it down to a tiny testcase just using IO::Socket::INET6->new(), which seemed to work fine outside a container, but fail strangely inside the container. Using strace I figured out that it needs /etc/protocols, which is from netbase, which is not present by default in the image. Installing netbase fixed the problem. It seems like a small and basic piece of infrastructure.

So there it is. libio-socket-inet6-perl needs /etc/protocols from netbase, but the package does not express that, probably because it's assumed to be present on all debian systems as a minimum sane base. It's 68 KiB.

I've attached the minimal testcase (depends on libio-socket-inet6-perl).

Revision history for this message
Pierce Lopez (pierce-lopez) wrote :
Revision history for this message
Pierce Lopez (pierce-lopez) wrote :

Note that IO::Socket::INET6 is not just for ipv6, it's used for just ipv4 as well, and munin-update could not access plain ipv4 addresses either.

Revision history for this message
Pierce Lopez (pierce-lopez) wrote :

Ok, I see what I did wrong - I typically install stuff in containers with --no-install-recommends to avoid a lot of junk. The "perl" package recommends netbase. So a normal install would have gotten it.

I guess this can be closed. If anything, maybe netbase should be a harder dependency of some perl stuff, which would be an ubuntu core project issue. It just took so much effort to figure this out :P

Revision history for this message
Dan Watkins (oddbloke) wrote :

Glad you worked out the issue!

Changed in cloud-images:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.