[问题解决]Stderr: u’/usr/bin/cinder-rootwrap: Executable not found: tgtadm (filter match = tgtadm)\n’

近期又开始折腾Openstack,按照官网安装完成最小测试集群后。开始使用后,使用cinder创建卷成功以后,无法将卷挂载到实例上。查看错误日志,出现提示如下:Stderr: u'/usr/bin/cinder-rootwrap: Executable not found: tgtadm (filter match = tgtadm)\n'

安装环境

  • CentOS7.3 1611
  • Openstack ocata版本

解决过程

1.安装epel-release
rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
2.安装scsi-target-utils
yum install -y scsi-target-utils
3.修改配置文件/etc/tgt/tgtd.conf,增加以下内容
# 以下路径和cinder配置路径相同
include /var/lib/cinder/volumes/* 
4.启动
systemctl enable tgtd
systemctl start tgtd    
5.重启cinder
systemctl restart openstack-cinder-volume.service target.service

《[问题解决]Stderr: u’/usr/bin/cinder-rootwrap: Executable not found: tgtadm (filter match = tgtadm)\n’》有3个想法

    1. 其实是我手贱把默认的iSCSI管理工具改成tgt了,Targetcli,Tgtadm,Ietadm三个iSCSI管理工具都可以用,默认应该是Targetcli

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理。