Bug 1626680

Summary: Hash operation not allowed during iteration [Fedora 28]
Product: [Fedora] Fedora Reporter: W. Trevor King <wking>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: agedosier, berrange, clalancette, crobinso, itamar, jforbes, jtomko, laine, libvirt-maint, veillard
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-08 09:56:11 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 W. Trevor King 2018-09-07 21:06:50 UTC
Description of problem:

Backporting #1576464 to Fedora 28.

Version-Release number of selected component (if applicable):

Fedora 28's libvirt 4.1.0-5.fc28 has not backported [1], which leads to races when creating multiple domains using the same network (possibly among other things).

How reproducible:

See the steps in [2].

Actual results:

From [3]:

Sep 07 16:01:00 steveej-laptop libvirtd[1306]: 2018-09-07 14:01:00.940+0000: 1336: error : virHashSearch:727 : Hash operation not allowed during iteration
Sep 07 16:01:00 steveej-laptop libvirtd[1306]: 2018-09-07 14:01:00.940+0000: 1336: error : virHashSearch:727 : Hash operation not allowed during iteration
Sep 07 16:01:00 steveej-laptop libvirtd[1306]: 2018-09-07 14:01:00.941+0000: 1336: error : virHashSearch:727 : Hash operation not allowed during iteration

in the libvirt logs.

Expected results:

Successful domain creation.

Additional info:

The patch was also backported to RHEL 7.5 with #1581364.

[1]: https://libvirt.org/git/?p=libvirt.git;a=commit;h=4d7384eb9ddef2008cb0cc165eb808f74bc83d6b
[2]: https://github.com/dmacvicar/terraform-provider-libvirt/issues/402#issue-357897086
[3]: https://gist.github.com/steveeJ/6140b8a68c449f0c860e891d3c347c69

Comment 1 W. Trevor King 2018-09-07 21:08:55 UTC
Ah, I'd missed the "Clone This Bug" link when looking over #1576464.  Next time...

Comment 2 Ján Tomko 2018-09-08 09:56:11 UTC

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

Comment 3 Cole Robinson 2018-09-11 20:17:49 UTC
Per Ján's dupe that patch should be included in libvirt-4.1.0-5.fc28, but you reference it explicitly in the initial comment. Are you still hitting issues with libvirt-4.1.0-5.fc28 ?