xcat2 / xcat-core

Code repo for xCAT core packages
Eclipse Public License 1.0
359 stars 170 forks source link

makedns command failing in Ubuntu OS with below error #7452

Open abhishek-sa1 opened 1 month ago

abhishek-sa1 commented 1 month ago
 ddns plugin bug, pid 481337, process description: 'xcatd SSL: makedns for root@localhost: ddns instance' with error 'Usage:  Net::DNS::RR::TSIG->create( $keyfile, @options ) at /usr/local/share/perl/5.38.2/Net/DNS/Packet.pm line 632.

TSIG: unable to sign packet at /opt/xcat/lib/perl/xCAT_plugin/ddns.pm line 1589.

I have already installedlibnet-dns-perl and still facing issue.

@Obihoernchen @samveen can you help me in this?

samveen commented 1 month ago

@abhishek-sa1 would you please check on the omapi key settings? The error is usually in the case when makedns tries to update bind's configuration, but fails due to a mismatch between the omapi key configured in bind (in the main bind configuration file), versus the omapi key value in xcat passwd table.

Obihoernchen commented 1 month ago

Which Ubuntu version do you use? Usually Ubuntu is not very well supported/maintained with xCAT.

abhishek-sa1 commented 1 month ago

I am using Ubuntu 24.04 OS with xCAT 2.16.5 version. I am able to install xCAT in Ubuntu 24 and provision successfully with some changes... only makedns command is failing.

Obihoernchen commented 1 month ago

Unfortunately Ubuntu 24.04 is not supported nor tested. The Net::DNS library of Ubuntu 24.04 is probably to new. The backwards compatible syntax used by xCAT for Net::DNS::RR::TSIG->create was removed in Net-DNS v1.23.

abhishek-sa1 commented 1 month ago

@Obihoernchen

Ubuntu 22.04 libnet-dns-perl version: 1.33 image

Ubuntu 24.04 libnet-dns-perl version: 1.44 image

I am able to install xCAT successfully in ubuntu 22.04 and facing no issues. I think its due changes after 1.33 version


**** 1.36 Dec 30, 2022

    Adopt JSON as presentation notation for EDNS options.
    Disallow zero packet->id in outbound packet.
    Remove deprecated 2-argument TSIG->create() method.
    Revise TSIG test scripts and documentation.

changelog: https://www.net-dns.org/docs/Changes.html

Can i make any local changes to fix this issue?

samveen commented 1 month ago

@abhishek-sa1 possiblities that I can think of:

@Obihoernchen Markus, Would you please create 2 tickets for tracking Ubuntu support for the LTS version of Ubuntu - 22.04 and 24.04 , even if it's not actively worked on (similar to the RHEL 9 tracker)? A central tracker would help with information coordination.

Obihoernchen commented 1 month ago

@abhishek-sa1 oh you are right probably a typo by me. It was removed in 1.33, not 1.23 :D RHEL9 still uses 1.29 that's why it's working for RHEL9.

But since it is deprecated syntax either way, I would also like to merge a PR supporting the new syntax, too. This would be even better I think.

samveen commented 1 month ago

Additional information: Upstream has an issue with exact use as done in xcat and expected resolution at Net::DNS at https://rt.cpan.org/Public/Bug/Display.html?id=144874