Create instance fails with error "Executable not found: tgtadm"
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 cinder]# service target status
Redirecting to /bin/systemctl status target.service
● target.service - Restore LIO kernel target configuration
Loaded: loaded (/usr/lib/systemd/system/target.service; enabled; vendor preset: disabled)
Active: active (exited) since Tue 2016-12-13 17:18:27 CST; 2 days ago
Main PID: 21511 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/target.service
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
[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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
