mount failed: mount failed: exit status 1

k8s pod挂载pvc,pvc通过pv连接了glusterfs。 pod一直处于creating状态,kubectl descibe pod 显示如下错误:

Mounting command: systemd-run
Mounting arguments: --description=Kubernetes transient mount for /var/lib/kubelet/pods/6e95525e-63ea-11e8-9cf1-5254000c4f61/volumes/kubernetes.io~glusterfs/tfworkflow-glusterfs-pv --scope -- mount -t glusterfs -o log-level=ERROR,log-file=/var/lib/kubelet/plugins/kubernetes.io/glusterfs/tfworkflow-glusterfs-pv/busybox-q46jq-glusterfs.log,backup-volfile-servers=172.16.1.1 172.16.1.1:gv-test /var/lib/kubelet/pods/6e95525e-63ea-11e8-9cf1-5254000c4f61/volumes/kubernetes.io~glusterfs/tfworkflow-glusterfs-pv
Output: Running scope as unit run-22169.scope.
Mount failed. Please check the log file for more details.

the following error information was pulled from the glusterfs log to help diagnose this issue:
[2018-05-30 09:19:09.574623] I [fuse-bridge.c:5834:fini] 0-fuse: Unmounting ‘/var/lib/kubelet/pods/6e95525e-63ea-11e8-9cf1-5254000c4f61/volumes/kubernetes.io~glusterfs/tfworkflow-glusterfs-pv‘.
[2018-05-30 09:19:09.574633] I [fuse-bridge.c:5839:fini] 0-fuse: Closing fuse connection to ‘/var/lib/kubelet/pods/6e95525e-63ea-11e8-9cf1-5254000c4f61/volumes/kubernetes.io~glusterfs/tfworkflow-glusterfs-pv‘.
Warning FailedMount 30m kubelet, st3-aknode-28.prod.yiran.com MountVolume.SetUp failed for volume "tfworkflow-glusterfs-pv" : mount failed: mount failed: exit status 1

  

注:pod在机器node-2(172.16.1.2)上。

查看日志文件/var/lib/kubelet/plugins/kubernetes.io/glusterfs/tfworkflow-glusterfs-pv/busybox-q46jq-glusterfs.log中有如下报错:

[2018-05-30 09:18:36.778752] I [MSGID: 101190] [event-epoll.c:602:event_dispatch_epoll_worker] 0-epoll: Started thread with index 2
[2018-05-30 09:18:36.778845] W [MSGID: 101174] [graph.c:360:_log_if_unknown_option] 0-gv0-readdir-ahead: option ‘parallel-readdir‘ is not recognized
[2018-05-30 09:18:36.778908] W [MSGID: 101174] [graph.c:360:_log_if_unknown_option] 0-gv0-client-0: option ‘transport.socket.keepalive-count‘ is not recognized
[2018-05-30 09:18:36.778928] I [MSGID: 114020] [client.c:2356:notify] 0-gv0-client-0: parent translators are ready, attempting connect on transport
[2018-05-30 09:18:36.780784] E [MSGID: 101075] [common-utils.c:314:gf_resolve_ip6] 0-resolver: getaddrinfo failed (Name or service not known)
[2018-05-30 09:18:36.780795] E [name.c:262:af_inet_client_get_remote_sockaddr] 0-gv0-client-0: DNS resolution failed on host node-1

注: glusterfs在机器node-1(172.16.1.1)上。

找到Name or service not known错误, 就容易排查了。

原因是: 在机器node-2(172.16.1.2)上ping 172.16.1.1可以, 但是ping node-1是不通的。

原文地址:https://www.cnblogs.com/lixiaolun/p/9112376.html

时间: 2024-12-09 12:52:37

mount failed: mount failed: exit status 1的相关文章

安装MySQL-python报错error: command 'gcc' failed with exit status 1

[[email protected] MySQL-python-1.2.3]# python setup.py install function) .... _mysql.c:133: error: 'ER_SYNTAX_ERROR' undeclared (first use in this function) _mysql.c:380: error: '_mysql_ConnectionObject' has no member named 'connection' _mysql.c:382

安装Python的psutil模块时报错:error: command 'gcc' failed with exit status 1

安装Python的psutil模块: tar zxvf psutil-2.0.0.tar.gz cd psutil-2.0.0 python setup.py install 报错: running install running bdist_egg ...... psutil/_psutil_linux.c:12:20: error: Python.h: No such file or directory In file included from psutil/_psutil_linux.c

安装cx_Oracle时报错:error: command 'gcc' failed with exit status 1

1.安装cx_Oracle 1)下载cx_Oracle,https://pypi.python.org/pypi 2)解压压缩包 3)执行python setup.py install 执行后报错:error: command 'gcc' failed with exit status 1 排查: 1)检查是否安装oracle客户端软件 2)查看当前环境变量中是否配置oracle的相关变量,如echo $ORACLE_HOME 3)如果没有配置需要将oracle环境变量配置到当前用户.bash_

MAC OSX 中解决编译“'cc' failed with exit status 1”错误 和clang: error: unknown argument 错误

错误例子: error: command 'cc' failed with exit status 1 clang: error: unknown argument: '-multiply_definedsuppress' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the fu

【centos】 error: command 'gcc' failed with exit status 1

原文连接http://blog.csdn.net/fenglifeng1987/article/details/38057193 用安装Python模块出现error: command 'gcc' failed with exit status 1 ,明明装了gcc的,怎么会不行呢,然后发觉是failed不是not found,这说明这个错误个gcc没多大关系,应该是缺少某些功能模块,然后谷歌了一下,先后安装了python-devel,libffi-devel后还是不行,最后发觉要安装opens

error: command 'cc' failed with exit status 1

报错: Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-kSfBfz/ujson/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, _

error: Setup script exited with error: command 'gcc' failed with exit status 1

安装python模块时出现:error: Setup script exited with error: command 'gcc' failed with exit status 1 解决方法: yum -y install python-devel error: Setup script exited with error: command 'gcc' failed with exit status 1

centos6.6下安装MySQLdb时出现“error: command 'gcc' failed with exit status 1”

1. 问题描述 在MySQL-python-1.2.3源码包根目录下执行安装命令: # python setup.py install 出现以下信息: error: command 'gcc' failed with exit status 1 2. 解决方法 在安装MySQLdb前安装以下依赖库: # yum install python-devel mysql-devel zlib-devel openssl-devel 安装完以上依赖库后, 再在MySQL-python-1.2.3源码包根

centos7 安装mysql--python模块出现EnvironmentError: mysql_config not found和error: command 'gcc' failed with exit status 1

要想使python可以操作mysql 就需要MySQL-python驱动,它是python 操作mysql必不可少的模块. 下载地址:https://pypi.python.org/pypi/MySQL-python/ 下载MySQL-python-1.2.5.zip 文件之后直接解压.进入MySQL-python-1.2.5目录: python setup.py install 报错: [[email protected] MySQL-python-1.2.4]# python setup.p