On 09/05/17 at 11:35am, Ziyue Yang wrote:
When dumping to ssh via link local ipv6 address, the ssh
parameter in kdump.conf is supposed to have the form like:
where "%eth0" is an existing network interface supporting ipv6.
However, there are 4 problems in enabling link local ipv6:
1) The get_remote_host function in kdump-lib.sh currently
doesn't remove the network interface in the ipv6 address,
causing the ip command in kdump_install_net function to fail,
leading to a "Bad kdump location" message.
2) The logic in kdump_install_net and kdump_setup_iscsi_device
will find the network interface to use by "ip route" command,
which might be different from what user specified in kdump.conf
in link local ipv6 cases.
3) The kdump_setup_ifname function in dracut-module-setup.sh
would add 'kdump-' prefix to network interfaces with name like
'eth*', causing ssh target specified in kdump.conf invalid
while dumping process.
4) ssh target with 'kdump-' prefixed interface name is not
in known_hosts while dumping, leading to ssh connection failure.
This patch series handles the problems above.
Ziyue Yang (3):
dracut-module-setup.sh: change route finding logic in link local ipv6
dracut-module-setup.sh: add 'kdump-' prefix in kdump.conf for link
dracut-kdump.sh: cancel StrictHostKeyChecking for ssh in link local
dracut-kdump.sh | 10 ++++++++-
dracut-module-setup.sh | 60 ++++++++++++++++++++++++++++++++++++++++++--------
kdump-lib.sh | 13 +++++++++++
3 files changed, 73 insertions(+), 10 deletions(-)
kexec mailing list -- kexec(a)lists.fedoraproject.org
To unsubscribe send an email to kexec-leave(a)lists.fedoraproject.org
Thanks for your patches, since it needs modify the network interface
name, so we need re-evaluate the "kdump-" prefix approach, let's defer
this series after that investigation.