This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

If you would like to get updates for this issue, or to participate in it, you may do so at Red Hat Issue Tracker .
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 2186737 - [Hyper-V][RHEL-9.2]The kdump cannot save vmcore via ssh if the network was configured via ifcfg format of network-scripts
Summary: [Hyper-V][RHEL-9.2]The kdump cannot save vmcore via ssh if the network was co...
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: kexec-tools
Version: 9.2
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Coiby
QA Contact: xxiong
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-04-14 10:14 UTC by xxiong
Modified: 2023-09-25 18:56 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-09-25 18:56:52 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker   RHEL-8742 0 None Migrated None 2023-09-25 18:56:44 UTC
Red Hat Issue Tracker RHELPLAN-154706 0 None None None 2023-04-14 10:15:57 UTC

Description xxiong 2023-04-14 10:14:47 UTC
Description of problem:
The kdump cannot save vmcore via ssh if the network was configured via ifcfg format of network-scripts

Version-Release number of selected component (if applicable):
RHEL-9.2.0-20230411.14_x86_64
5.14.0-284.10.1.el9_2.x86_64
kexec-tools-2.0.25-13.el9_2.x86_64
hyperv-daemons-0-0.41.20190303git.el9.x86_64
NetworkManager-1.42.2-1.el9.x86_64


How reproducible:
100%

Steps to Reproduce:
1. Create two VMs: VMa and VMb, and add an Internal NIC for each VM
2. Config the added Inernal NIC (eth1 here) as below:

VMa:
cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
NAME=eth1
BOOTPROTO=static
IPADDR=9.0.0.10
NETMASK=255.255.255.0
ONBOOT=yes

# ip link set dev eth1 up
# ip addr add 9.0.0.10/255.255.255.0 broadcast 9.0.0.255 dev eth1


VMb:
#  ip addr add 9.0.0.11/255.255.255.0 broadcast 9.0.0.255 dev eth1
# ping 9.0.0.11
PING 9.0.0.11 (9.0.0.11) 56(84) bytes of data.
64 bytes from 9.0.0.11: icmp_seq=1 ttl=64 time=0.264 ms

# ping 9.0.0.10
PING 9.0.0.10 (9.0.0.10) 56(84) bytes of data.
64 bytes from 9.0.0.10: icmp_seq=1 ttl=64 time=0.486 m

3. Configure the kdump as below:

VMa:  ($vm2ipv4 here is 9.0.0.11)

Edit /etc/kdump.conf:

ssh root@$vm2ipv4
sshkey /root/.ssh/id_rsa
path /var/crash
core_collector makedumpfile -F -l --message-level 1 -d 31

exit | ssh -o StrictHostKeyChecking=no root@$vm2ipv4             
kdumpctl propagate
kdumpctl restart kdump         
service kdump restart

4. Trigger kdump:
# echo c  > /proc/sysrq-trigger

Actual results:
VMa will hang and cannot save vmcore, console log as below:

  Starting Kdump Vmcore Save Service...
  Kdump is using the default log level(3)
  Bad kdump network destination: 9.0.0.11
  Bad kdump network destination: 9.0.0.11
  Bad kdump network destination: 9.0.0.11
   ......

Expected results:
Can save kdump vmcore successfully


Additional info:
1. This issue doesn't occur on RHEL9.1  with the same steps
5.14.0-162.6.1.el9_1.x86_64
NetworkManager-1.40.0-1.el9.x86_64
kexec-tools-2.0.24-5.el9.x86_64

2. This issue doesn't occur on RHEL8.8 with the same steps
4.18.0-452.el8.x86_64
kexec-tools-2.0.25-5.el8.x86_64
NetworkManager-1.40.10-1.el8.x86_64

3. Check kdump img included the eth1 configuration as below, and found autoconnect=false

[root@LISAv2-OneVM-xxq-9 ~]# lsinitrd /boot/initramfs-$(uname -r)kdump.img | grep eth1
-rw------- root/root               276 2023-04-14 11:56 squashfs-root/etc/NetworkManager/system-connections/eth1.nmconnection
[root@LISAv2-OneVM-xxq-9 ~]# cat /etc/NetworkManager/system-connections/eth1.nmconnection
cat: /etc/NetworkManager/system-connections/eth1.nmconnection: No such file or directory
[root@LISAv2-OneVM-xxq-9 ~]# mkdir tmp && cd tmp && lsinitrd --unpack /boot/initramfs-$(uname -r)kdump.img && unsquashfs squash-root.img
Parallel unsquashfs: Using 2 processors
649 inodes (1043 blocks) to write

[=======================================================================================================================================================================================|] 1043/1043 100%

created 485 files
created 135 directories
created 158 symlinks
created 5 devices
created 0 fifos
created 0 sockets
[root@LISAv2-OneVM-xxq-9 tmp]# cat squashfs-root/etc/NetworkManager/system-connections/eth1.nmconnection
[connection]
id=eth1
uuid=455e75b1-f366-4ef0-ab60-2b4f1684c977
type=ethernet
autoconnect=false
wait-device-timeout=60000

[ethernet]
mac-address=00:15:5D:C4:17:C5

[ipv4]
address1=9.0.0.10/24
may-fail=false
method=manual

[ipv6]
addr-gen-mode=default
method=disabled

[proxy]
[root@LISAv2-OneVM-xxq-9 tmp]# 

4. This issue not occurs if replace step 2 as below:
nmcli con add type ethernet con-name eth1 ifname eth1 ipv4.addresses 9.0.0.10/24  ipv4.method manual
nmcli connection reload
nmcli connection up eth1

Comment 1 Coiby 2023-04-17 03:36:12 UTC
Hi,

I think you changed /etc/sysconfig/network-scripts/ifcfg-eth1 to add ONBOOT=yes after the network has been established by NM. If you run the command "nmcli c show br0|grep autoconnect:", the result should be "connection.autoconnect: no". So I don't think this is a bug of kexec-tools because /etc/sysconfig/network-scripts/ifcfg-eth1 has ONBOOT=no in the first place. And you need to reload the connection if you manually edited the connection profile or you can simply use the "nmcli edit" command.

Comment 2 RHEL Program Management 2023-09-25 17:50:11 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 3 RHEL Program Management 2023-09-25 18:56:52 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.


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