Bug 1379034
Summary: | RFE: add 'iSCSI protocol' support of option 'password-secret' to support for securely passing passwords to QEMU block drivers | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Chao Yang <chayang> |
Component: | qemu-kvm-rhev | Assignee: | Jeff Cody <jcody> |
Status: | CLOSED ERRATA | QA Contact: | Suqin Huang <shuang> |
Severity: | unspecified | Docs Contact: | |
Priority: | medium | ||
Version: | 7.3 | CC: | berrange, coli, juzhang, knoel, michen, mrezanin, mtessun, ngu, shuang, virt-maint, xfu |
Target Milestone: | rc | Keywords: | FutureFeature |
Target Release: | 7.4 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | qemu-kvm-rhev-2.9.0-1.el7 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-08-01 23:37:14 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Chao Yang
2016-09-24 06:13:40 UTC
Just posted some patches to support this upstream https://lists.gnu.org/archive/html/qemu-devel/2016-12/msg01124.html Counter-proposal from Kevin Wolf https://lists.gnu.org/archive/html/qemu-devel/2016-12/msg01130.html Reworked patches based on Kevin's approach have been sent to qemu-devel. The patches can also be seen here: https://github.com/codyprime/qemu-kvm-jtc/commits/iscsi-blockdev-add Sent a pull request upstream that contains patches that implement this feature: https://lists.gnu.org/archive/html/qemu-devel/2017-02/msg04873.html Applied to qemu upstream master package: qemu-kvm-rhev-2.9.0-1.el7.x86_64 Authentication failure(513) error when test with cmd: -object secret,id=sec0,file=/home/iscsi-password \ -drive driver=iscsi,file=iscsi://10.73.199.233/iqn.2017-04.com.example:t2/0,user=redhat,password-secret=sec0 \ -device virtio-blk-pci,id=image1,drive=drive_image1,bootindex=0,bus=pci.0,addr=03 \ Note: Double check the iscsi-password file, no blank in the file Pass with old cmd: -drive id=drive_image1,if=none,cache=none,snapshot=on,aio=native,format=raw,file=iscsi://10.73.199.233/iqn.2017-04.com.example:t2/0 \ -iscsi user=redhat,password=redhat,id=iqn \ -device virtio-blk-pci,id=image1,drive=drive_image1,bootindex=0,bus=pci.0,addr=03 \ Please run 'od -x -a /home/iscsi-password' and post the output to this bug. I'm pretty sure you will find there is a newline character there that needs removing # od -x -a /home/iscsi-password 0000000 6572 6864 7461 000a r e d h a t nl 0000007 it works after remove the file # echo -n redhat > /home/iscsi-password # od -x -a /home/iscsi-password 0000000 6572 6864 7461 r e d h a t 0000006 cmd: /usr/libexec/qemu-kvm \ -object secret,id=sec0,file=/home/iscsi-password \ -drive id=drive_image1,if=none,cache=none,snapshot=on,aio=native,format=raw,file=iscsi://10.73.199.233/iqn.2017-04.com.example:t2/0,file.user=redhat,file.password-secret=sec0 \ -device virtio-blk-pci,id=image1,drive=drive_image1,bootindex=0,bus=pci.0,addr=06 according comment11, update the bug to verified Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2017:2392 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2017:2392 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2017:2392 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2017:2392 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2017:2392 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2017:2392 |