Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
Print a string rather than literally the uuid value in the virsh command line error message
Version-Release number of selected component (if applicable):
libvirt-1.1.1-8.el7.x86_64
How reproducible:
100%
Steps to Reproduce:
1. set iSCSI target for CHAP authentication:
default-driver iscsi
<target iqn.2013-10.com.example:iscsi>
backing-store /dev/sdb
incominguser rhat rhatrhat
</target>
# service tgtd restart
2. define the secret
# cat iscsi-secret.xml
<secret ephemeral='no' private='yes'>
<description>iSCSI secret</description>
<auth type='chap' username='rhat'/>
<usage type='iscsi'>
<target>libvirtiscsi</target>
</usage>
</secret>
# virsh secret-list
UUID Usage
-----------------------------------------------------------
3203010b-ccb1-48a2-b01e-d2187319d7eb iscsi libvirtiscsi
# MYSECRET=`printf %s "mysecret" | base64`
# virsh secret-set-value 3203010b-ccb1-48a2-b01e-d2187319d7eb $MYSECRET
Secret value set
3. start a domain with xml below:
<disk type='network' device='disk'>
<driver name='qemu' type='raw'/>
<source protocol='iscsi' name='iqn.2013-10.com.example:iscsi/0'>
<host name='hostname' port='3260'/>
</source>
<auth username='rhat'>
<secret type='iscsi' uuid='e97e561f-2c9f-4274-b4d7-14626319b000'/>
</auth>
<target dev='vda' bus='virtio'/>
</disk>
# virsh create rh7-qcow2.xml
error: Failed to create domain from rh7-qcow2.xml
error: Secret not found: iscsi no secret matches uuid '�~V^_,�Bt��bc�'
Actual results:
Step3 Print literally the uuid value
Expected results:
Step3 Print a string of the uuid
This request was resolved in Red Hat Enterprise Linux 7.0.
Contact your manager or support representative in case you have further questions about the request.
Description of problem: Print a string rather than literally the uuid value in the virsh command line error message Version-Release number of selected component (if applicable): libvirt-1.1.1-8.el7.x86_64 How reproducible: 100% Steps to Reproduce: 1. set iSCSI target for CHAP authentication: default-driver iscsi <target iqn.2013-10.com.example:iscsi> backing-store /dev/sdb incominguser rhat rhatrhat </target> # service tgtd restart 2. define the secret # cat iscsi-secret.xml <secret ephemeral='no' private='yes'> <description>iSCSI secret</description> <auth type='chap' username='rhat'/> <usage type='iscsi'> <target>libvirtiscsi</target> </usage> </secret> # virsh secret-list UUID Usage ----------------------------------------------------------- 3203010b-ccb1-48a2-b01e-d2187319d7eb iscsi libvirtiscsi # MYSECRET=`printf %s "mysecret" | base64` # virsh secret-set-value 3203010b-ccb1-48a2-b01e-d2187319d7eb $MYSECRET Secret value set 3. start a domain with xml below: <disk type='network' device='disk'> <driver name='qemu' type='raw'/> <source protocol='iscsi' name='iqn.2013-10.com.example:iscsi/0'> <host name='hostname' port='3260'/> </source> <auth username='rhat'> <secret type='iscsi' uuid='e97e561f-2c9f-4274-b4d7-14626319b000'/> </auth> <target dev='vda' bus='virtio'/> </disk> # virsh create rh7-qcow2.xml error: Failed to create domain from rh7-qcow2.xml error: Secret not found: iscsi no secret matches uuid '�~V^_,�Bt��bc�' Actual results: Step3 Print literally the uuid value Expected results: Step3 Print a string of the uuid