Erro ao instalar o GlusterFS

1

Estou tentando instalar o GlusterFS em um contêiner docker com o Ansible. Eu tenho um erro, então eu tentei instalá-lo diretamente no recipiente, mas eu tenho o mesmo erro (então Ansible não é o problema):

# apt-get install glusterfs-server   
Reading package lists... Done
Building dependency tree       
Reading state information... Done
glusterfs-server is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up nfs-common (1:1.2.8-6ubuntu1.2) ...
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: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
invoke-rc.d: unknown initscript, /etc/init.d/statd not found.
dpkg: error processing package nfs-common (--configure):
subprocess installed post-installation script returned error exit status 100
Errors were encountered while processing:
 nfs-common
E: Sub-process /usr/bin/dpkg returned an error code (1)

Parece ser um problema com nfs-common , mas não entendo como consertar isso.

    
por Tartempion34 02.12.2016 / 18:57

1 resposta

1

Eu tentei reproduzir seu problema com uma imagem do Ubuntu, sem sucesso:

$ cat << EOF > Dockerfile
  FROM ubuntu:latest
  RUN apt-get update && apt-get install -y glusterfs-server
  EOF

$ docker build -t glusterfs-server .
Sending build context to Docker daemon 36.86 kB
Step 1 : FROM ubuntu:latest
 ---> 4ca3a192ff2a
Step 2 : RUN apt-get update && apt-get install -y glusterfs-server
 ---> Running in eab6258e0b4f
[packages are installed]
 ---> b2a878ae292f
Removing intermediate container eab6258e0b4f
Successfully built b2a878ae292f

$ docker run --rm -it glusterfs-server
root@d756093cbcff:/# glusterfs --version
glusterfs 3.7.6 built on Dec 25 2015 20:50:44
Repository revision: git://git.gluster.com/glusterfs.git
Copyright (c) 2006-2013 Red Hat, Inc. <http://www.redhat.com/>
GlusterFS comes with ABSOLUTELY NO WARRANTY.
It is licensed to you under your choice of the GNU Lesser
General Public License, version 3 or any later version (LGPLv3
or later), or the GNU General Public License, version 2 (GPLv2),
in all cases as published by the Free Software Foundation.

Como este é apenas um contêiner, sugiro que ele seja descartado e iniciado novamente, com um Dockerfile ou uma planilha simples.

    
por 02.12.2016 / 23:01