Create instance fails with error "Executable not found: tgtadm"

Posted on

Environment
Red Hat OpenStack Platform 7.2
IPSAN storage

Issue
1)Overcloud create successful
2)Create instance fails with block storages

vi volume.log

2016-12-15 15:18:24.622 14140 ERROR oslo_messaging._drivers.common [req-cf30cf72-33ec-4c54-ac8e-f23b0fea8e7c d2a36084a23e4ff2a60e13dbb627b59e 34e7f3887382401fad0883ea4e3dc6ed - - -] Returning exception Unexpected error while running command.
Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf tgtadm --lld iscsi --op show --mode target
Exit code: 96
Stdout: u''
Stderr: u'/usr/bin/cinder-rootwrap: Executable not found: tgtadm (filter match = tgtadm)\n' to caller
[root@overcloud-controller-0 yum.repos.d]# tgtadm --lld iscsi --op show --mode target
bash: tgtadm: command not found

I think tgtadm command has changed to "targetcli" since Red Hat 7.2, I Googled it but I not find how to continue using tgtadm in Red Hat 7.2.
It's better not modify the code.

Responses