近期又开始折腾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’
Tagged on:     

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

  • 2017年10月3日 at 下午3:39
    Permalink

    支持一下,不虚此行!

    Reply
  • 2018年2月1日 at 下午4:47
    Permalink

    原来是tgt没有装导致的

    Reply
    • 2018年2月1日 at 下午5:03
      Permalink

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

      Reply

adamfei进行回复 取消回复

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

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据