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 1581364 - Hash operation not allowed during iteration [rhel-7.5.z]
Summary: Hash operation not allowed during iteration [rhel-7.5.z]
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt
Version: 7.4
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Michal Privoznik
QA Contact: yafu
URL:
Whiteboard:
: 1571384 1577951 1592785 1596946 (view as bug list)
Depends On: 1576464
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-22 15:04 UTC by Oneata Mircea Teodor
Modified: 2022-07-09 09:57 UTC (History)
23 users (show)

Fixed In Version: libvirt-3.9.0-14.el7_5.6
Doc Type: Bug Fix
Doc Text:
Prior to this update, guest virtual machine actions that use a python library in some cases failed and "Hash operation not allowed during iteration" error messages were logged. Several redundant thread access checks have been removed, and the problem no longer occurs.
Clone Of: 1576464
Environment:
Last Closed: 2018-06-26 16:55:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:1997 0 None None None 2018-06-26 16:56:26 UTC

Description Oneata Mircea Teodor 2018-05-22 15:04:37 UTC
This bug has been copied from bug #1576464 and has been proposed to be backported to 7.5 z-stream (EUS).

Comment 2 Bob Fournier 2018-05-22 17:37:34 UTC
*** Bug 1571384 has been marked as a duplicate of this bug. ***

Comment 5 Kashyap Chamarthy 2018-05-25 12:11:33 UTC
*** Bug 1577951 has been marked as a duplicate of this bug. ***

Comment 7 yafu 2018-06-07 03:16:27 UTC
Reproduced with libvirt-3.9.0-14.el7_5.2.x86_64.
Test steps:
1.Start a guest:
#virsh start test1

2.Do 'virsh list' in a loop:
#for i in {1..1000}; do virsh list; done

3.Open another terminal, do 'virsh domstats' in a loop:
#for i in {1..1000}; do virsh domstats; done

4.Check the libvirtd.log:
# cat /var/log/libvirt/libvirtd.log | grep -i "Hash operation not allowed during"
2018-06-07 01:57:07.673+0000: 28086: error : virHashForEach:597 : Hash operation not allowed during iteration
2018-06-07 01:57:08.077+0000: 28079: error : virHashForEach:597 : Hash operation not allowed during iteration
2018-06-07 01:57:08.650+0000: 28077: error : virHashForEach:597 : Hash operation not allowed during iteration
2018-06-07 01:57:09.057+0000: 28079: error : virHashForEach:597 : Hash operation not allowed during iteration

Verified with libvirt-3.9.0-14.el7_5.6.x86_64.
Test steps:
1.Start a guest:
#virsh start test1

2.Do 'virsh list' in a loop:
#for i in {1..1000}; do virsh list; done

3.Open another terminal, do 'virsh domstats' in a loop:
#for i in {1..1000}; do virsh domstats; done

4.Check the libvirtd.log after step 2&3, no error "Hash operation not allowed during iteration":
#cat /var/log/libvirt/libvirtd.log | grep -i "Hash operation not allowed during iteration"
no output

Comment 8 yafu 2018-06-13 06:27:23 UTC
Also test do virsh list, virsh domstats, create/destroy guest, managedsave/restore guest parallel for about 48 hours, no error report and libvirtd worked well.

Comment 9 yafu 2018-06-13 06:28:20 UTC
According to comment 7 and comment 8, move the bug to verified.

Comment 11 Bob Fournier 2018-06-26 15:53:15 UTC
*** Bug 1592785 has been marked as a duplicate of this bug. ***

Comment 12 errata-xmlrpc 2018-06-26 16:55:29 UTC
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-2018:1997

Comment 13 Bob Fournier 2018-07-04 10:50:17 UTC
*** Bug 1596946 has been marked as a duplicate of this bug. ***

Comment 14 Artom Lifshitz 2019-01-24 16:38:07 UTC
*** Bug 1592785 has been marked as a duplicate of this bug. ***


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