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:
virsh net-update reports an invalid pointer error with non-existent network
Version-Release number of selected component (if applicable):
libvirt-1.1.1-2.el7
How reproducible:
I'm certain that it happens all the time.
Steps to Reproduce:
1. Run virsh net-update with a non-existent network:
virsh # net-update net404 delete dns-srv '<srv service='name'/>"
Actual results:
error: failed to get network 'net404'
error: Network not found: no network with matching name 'net404'
error: invalid network pointer in virNetworkFree
Expected results:
No invalid pointer error.
Now fixed upstream:
commit 784cca89c51fd13383064f248a6b375fb34e516f
Author: Ján Tomko <jtomko>
AuthorDate: 2013-08-26 12:51:08 +0200
Commit: Ján Tomko <jtomko>
CommitDate: 2013-08-26 15:51:15 +0200
Don't free NULL network in cmdNetworkUpdate
If the network has not been found, virNetworkFree(NULL)
was called, resulting in an extra error:
error: invalid network pointer in virNetworkFree
https://bugzilla.redhat.com/show_bug.cgi?id=1001094
git describe: v1.1.1-212-g784cca8
Verify it using libvirt-1.1.1-3.el7.x86_64. The result is expected. Move its status to VERIFIED.
virsh # net-list
Name State Autostart Persistent
----------------------------------------------------------
default active yes yes
virsh # net-update net404 delete dns-srv '<srv service='name'/>"
error: failed to get network 'net404'
error: Network not found: no network with matching name 'net404'
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.