Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

makedns command failing in Ubuntu OS with below error #7452

Open
Tracked by #7456
abhishek-sa1 opened this issue Jul 12, 2024 · 8 comments
Open
Tracked by #7456

makedns command failing in Ubuntu OS with below error #7452

abhishek-sa1 opened this issue Jul 12, 2024 · 8 comments

Comments

@abhishek-sa1
Copy link
Contributor

abhishek-sa1 commented Jul 12, 2024

 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 installed libnet-dns-perl and still facing issue.

@Obihoernchen @samveen can you help me in this?

@samveen
Copy link
Member

samveen commented Jul 12, 2024

@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
Copy link
Member

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

@abhishek-sa1
Copy link
Contributor Author

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
Copy link
Member

Obihoernchen commented Jul 14, 2024

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
Copy link
Contributor Author

abhishek-sa1 commented Jul 15, 2024

@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
Copy link
Member

samveen commented Jul 15, 2024

@abhishek-sa1 possiblities that I can think of:

  • You can downgrade the package back to the older version and then mark it to be kept at the old version with sudo apt-mark hold libnet-dns-perl
  • It may be possible to backport the support back into the newer version of the package, but that will require you to either create a local override in '/usr/local/lib', or rebuild the package locally on every upstream version update.

@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
Copy link
Member

Obihoernchen commented Jul 15, 2024

@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
Copy link
Member

samveen commented Jul 20, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants