Metaswitch / clearwater-docker

Docker integration for Project Clearwater
Other
41 stars 64 forks source link

Build base image fails #97

Open AlessioDiama opened 5 years ago

AlessioDiama commented 5 years ago

Symptoms

I know that it maybe the same issue of #35 but actually i am not able to solve it. I am trying to build docker images for clearwater but build fails since the base image:

Step 19/29 : RUN apt-get install -y --force-yes clearwater-snmpd ---> Running in 95b579d4ebb7 Reading package lists... Building dependency tree... Reading state information... The following extra packages will be installed: libmysqlclient18 libpci3 libperl5.18 libsnmp-base libsnmp30 libwrap0 mysql-common snmpd tcpd Suggested packages: snmp-mibs-downloader The following NEW packages will be installed: clearwater-snmpd libmysqlclient18 libpci3 libperl5.18 libsnmp-base libsnmp30 libwrap0 mysql-common snmpd tcpd 0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded. Need to get 2,090 kB of archives. After this operation, 10.1 MB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libpci3 amd64 1:3.2.1-1ubuntu5.1 [26.3 kB] Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main mysql-common all 5.5.62-0ubuntu0.14.04.1 [12.6 kB] Get:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libmysqlclient18 amd64 5.5.62-0ubuntu0.14.04.1 [598 kB] Get:4 http://repo.cw-ngv.com/stable/ binary/ libsnmp-base 5.7.3~dfsg-clearwater1 [457 kB] Get:5 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libperl5.18 amd64 5.18.2-2ubuntu1.7 [1,330 B] Get:6 http://archive.ubuntu.com/ubuntu/ trusty/main libwrap0 amd64 7.6.q-25 [46.2 kB] Get:7 http://archive.ubuntu.com/ubuntu/ trusty/main tcpd amd64 7.6.q-25 [23.0 kB] Get:8 http://repo.cw-ngv.com/stable/ binary/ libsnmp30 5.7.3~dfsg-clearwater1 [834 kB] Get:9 http://repo.cw-ngv.com/stable/ binary/ snmpd 5.7.3~dfsg-clearwater1 [73.7 kB] Get:10 http://repo.cw-ngv.com/stable/ binary/ clearwater-snmpd 1.0-180328.114312 [18.3 kB] debconf: unable to initialize frontend: Dialog debconf: (TERM is not set, so the dialog frontend is not usable.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype dpkg-preconfigure: unable to re-open stdin: Fetched 2,090 kB in 1s (1,587 kB/s) Selecting previously unselected package libpci3:amd64. (Reading database ... 19759 files and directories currently installed.) Preparing to unpack .../libpci3_1%3a3.2.1-1ubuntu5.1_amd64.deb ... Unpacking libpci3:amd64 (1:3.2.1-1ubuntu5.1) ... Selecting previously unselected package mysql-common. Preparing to unpack .../mysql-common_5.5.62-0ubuntu0.14.04.1_all.deb ... Unpacking mysql-common (5.5.62-0ubuntu0.14.04.1) ... Selecting previously unselected package libmysqlclient18:amd64. Preparing to unpack .../libmysqlclient18_5.5.62-0ubuntu0.14.04.1_amd64.deb ... Unpacking libmysqlclient18:amd64 (5.5.62-0ubuntu0.14.04.1) ... Selecting previously unselected package libperl5.18. Preparing to unpack .../libperl5.18_5.18.2-2ubuntu1.7_amd64.deb ... Unpacking libperl5.18 (5.18.2-2ubuntu1.7) ... Selecting previously unselected package libwrap0:amd64. Preparing to unpack .../libwrap0_7.6.q-25_amd64.deb ... Unpacking libwrap0:amd64 (7.6.q-25) ... Selecting previously unselected package libsnmp-base. Preparing to unpack .../libsnmp-base_5.7.3~dfsg-clearwater1_all.deb ... Unpacking libsnmp-base (5.7.3~dfsg-clearwater1) ... Selecting previously unselected package libsnmp30:amd64. Preparing to unpack .../libsnmp30_5.7.3~dfsg-clearwater1_amd64.deb ... Unpacking libsnmp30:amd64 (5.7.3~dfsg-clearwater1) ... Selecting previously unselected package snmpd. Preparing to unpack .../snmpd_5.7.3~dfsg-clearwater1_amd64.deb ... Unpacking snmpd (5.7.3~dfsg-clearwater1) ... Selecting previously unselected package clearwater-snmpd. Preparing to unpack .../clearwater-snmpd_1.0-180328.114312_all.deb ... Unpacking clearwater-snmpd (1.0-180328.114312) ... Selecting previously unselected package tcpd. Preparing to unpack .../tcpd_7.6.q-25_amd64.deb ... Unpacking tcpd (7.6.q-25) ... Processing triggers for ureadahead (0.100.0-16) ... Setting up libpci3:amd64 (1:3.2.1-1ubuntu5.1) ... Setting up mysql-common (5.5.62-0ubuntu0.14.04.1) ... Setting up libmysqlclient18:amd64 (5.5.62-0ubuntu0.14.04.1) ... Setting up libperl5.18 (5.18.2-2ubuntu1.7) ... Setting up libwrap0:amd64 (7.6.q-25) ... Setting up libsnmp-base (5.7.3~dfsg-clearwater1) ... Setting up libsnmp30:amd64 (5.7.3~dfsg-clearwater1) ... Setting up snmpd (5.7.3~dfsg-clearwater1) ... debconf: unable to initialize frontend: Dialog debconf: (TERM is not set, so the dialog frontend is not usable.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype update-rc.d: warning: stop runlevel arguments (1) do not match snmpd Default-Stop values (0 1 6) invoke-rc.d: policy-rc.d denied execution of start. Setting up tcpd (7.6.q-25) ... Processing triggers for ureadahead (0.100.0-16) ... Setting up clearwater-snmpd (1.0-180328.114312) ...

dnsmasq: setting capabilities failed: Operation not permitted ...fail! hostname: you must be root to change the host name mv: cannot move ‘/tmp/hosts.28’ to ‘/etc/hosts’: Device or resource busy ERROR: unable to move /tmp/hosts.28 to /etc/hosts ...done.

The problem is related to dnsmasq and the move action on /tmp/hosts.10. I think that the problem is something related to permissions as i read from #35, but i do not know how to solve.

Impact

All other images fails at building