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.
Bug 1467271 - <auth> element missing after shallow blockcopy and blockcommit
Summary: <auth> element missing after shallow blockcopy and blockcommit
Keywords:
Status: CLOSED DUPLICATE of bug 1171569
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt
Version: 7.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Libvirt Maintainers
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 1467287
TreeView+ depends on / blocked
 
Reported: 2017-07-03 09:50 UTC by Han Han
Modified: 2017-07-03 10:55 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1467287 (view as bug list)
Environment:
Last Closed: 2017-07-03 10:55:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Han Han 2017-07-03 09:50:52 UTC
Description of problem:
As subject

Version-Release number of selected component (if applicable):
libvirt-3.2.0-14.el7.x86_64
qemu-kvm-rhev-2.9.0-14.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Prepare a CHAP iscsi server. Define a libvirt secret object and set the password in the secret.
2. Start VM on iscsi backend with authorization like this:
 <disk type='network' device='disk' snapshot='no'>
      <driver name='qemu' type='raw'/>
      <auth username='redhat'>
        <secret type='iscsi' usage='libvirtiscsi'/>
      </auth>
      <source protocol='iscsi' name='iqn.2016-12.com.virttest:emulated-iscsi-auth.target6/0'>
        <host name='XX.XX.XX.XX'/>
      </source>
      <backingStore/>
      <target dev='vdi' bus='virtio'/>
      <alias name='virtio-disk8'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x11' function='0x0'/>
    </disk>

3. Create a external snapshot for the disk. Then do shallow blockcopy and blockcommit:
# virsh snapshot-create-as hh s1 --no-metadata --disk-only --diskspec vdi,file=/var/lib/libvirt/images/hh-vdi.s1
Domain snapshot s1 created

# virsh blockcopy hh vdi /var/lib/libvirt/images/hh-vdi.s1.copy --shallow --pivot --wait --verbose --transient-job
Block Copy: [100 %]

# virsh blockcommit hh vdi --shallow --keep-relative --wait --verbose --pivot
Block commit: [100 %]

# virsh dumpxml hh
<disk type="network" device="disk" snapshot="no">
      <driver name="qemu" type="raw"/>
      <source protocol="iscsi" name="iqn.2016-12.com.virttest:emulated-iscsi-auth.target6/0">
        <host name="10.66.5.92"/>
      </source>
      <backingStore/>
      <target dev="vdi" bus="virtio"/>
      <alias name="virtio-disk8"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x11" function="0x0"/>
    </disk>

<auth> is missing.

Actual results:
As above

Expected results:
<auth> remains after these operations

Additional info:
Without shallow blockcopy, this bug cannot be reproduced with blockcommit only.

Comment 2 Peter Krempa 2017-07-03 10:55:17 UTC
I've repurposed bug 1171569 to track all blockjobs and all protocols, since it does not make sense to file separate bugs for the same issue.

*** This bug has been marked as a duplicate of bug 1171569 ***


Note You need to log in before you can comment on or make changes to this bug.