Bug 2185185

Summary: "net_del_dns" command doesn't work
Product: Red Hat Enterprise Linux 9 Reporter: Renaud Métrich <rmetrich>
Component: grub2Assignee: Bootloader engineering team <bootloader-eng-team>
Status: CLOSED MIGRATED QA Contact: Release Test Team <release-test-team>
Severity: medium Docs Contact:
Priority: medium    
Version: 9.1CC: mlewando, pjanda, raravind, sbarcomb
Target Milestone: rcKeywords: MigratedToJIRA, Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-09-16 19:04:37 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:
Attachments:
Description Flags
Patch fixing the implementation of grub_cmd_del_dns() none

Description Renaud Métrich 2023-04-07 11:14:36 UTC
Created attachment 1956220 [details]
Patch fixing the implementation of grub_cmd_del_dns()

Description of problem:

Trying to delete the DNS server, I get the following error message:
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
grub> net_del_dns 192.168.122.1   
error: ../../grub-core/net/dns.c:646:no DNS reply received.
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------

This happens because the implementation is broken, it does a "add" internally.
The issue is present Upstream as well.
Patch attached fixes the issue.

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

All grub2 releases

How reproducible:

N/A

Comment 2 Renaud Métrich 2023-04-28 11:19:22 UTC
Patch submitted Upstream.

Subject: [PATCH v1] dns: fixed removal of DNS server

Comment 3 Marta Lewandowska 2023-04-28 13:27:30 UTC
Reproduced using grub2-2.06-61.el9.
Thank you for submitting the patch, Renaud. We will try to keep tabs on this one too. :)

Comment 5 Renaud Métrich 2023-05-17 12:04:41 UTC
Patchset approved by Daniel:

https://lists.gnu.org/archive/html/grub-devel/2023-04/msg00158.html

Comment 6 Marta Lewandowska 2023-05-18 12:01:52 UTC
Thanks Renaud.

Comment 8 Marta Lewandowska 2023-08-30 08:13:13 UTC
Since the patches were accepted upstream, this bug will get taken care of by rebase onto the upstream RC-- expected for 9.4 grub2.

Comment 9 RHEL Program Management 2023-09-16 19:04:22 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.

Comment 10 RHEL Program Management 2023-09-16 19:04:37 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.