Skip to content

Debian flavour requires python3-dnspython not python3-dns for archery-manage

Maiken requested to merge archery_manage_dnsmodule into master

Archery manage and CommunityRTE.py relies on dns package

Seems that for python3 in debian flavour the correct package to use is python3-dnspython not the more lightweight python3-dns. On el8 however, python3-dns works as expected.

root@archery-test-server:~# apt-get install nordugrid-arc-archery-manage
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  python3-dns python3-ldap
The following NEW packages will be installed:
  nordugrid-arc-archery-manage python3-dns python3-ldap
0 upgraded, 3 newly installed, 0 to remove and 26 not upgraded.
Need to get 138 kB of archives.
After this operation, 632 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://download.nordugrid.org/repos/6/ubuntu focal-updates/main amd64 nordugrid-arc-archery-manage all 6.15.1-1~focal1 [22.1 kB]
Get:2 http://osl-default-1.clouds.archive.ubuntu.com/ubuntu focal/main amd64 python3-ldap amd64 3.2.0-4ubuntu2 [90.2 kB]           
Get:3 http://osl-default-1.clouds.archive.ubuntu.com/ubuntu focal/universe amd64 python3-dns all 3.2.1-1 [25.6 kB]
Fetched 138 kB in 1s (209 kB/s)   
Selecting previously unselected package python3-ldap:amd64.
(Reading database ... 63836 files and directories currently installed.)
Preparing to unpack .../python3-ldap_3.2.0-4ubuntu2_amd64.deb ...
Unpacking python3-ldap:amd64 (3.2.0-4ubuntu2) ...
Selecting previously unselected package python3-dns.
Preparing to unpack .../python3-dns_3.2.1-1_all.deb ...
Unpacking python3-dns (3.2.1-1) ...
Selecting previously unselected package nordugrid-arc-archery-manage.
Preparing to unpack .../nordugrid-arc-archery-manage_6.15.1-1~focal1_all.deb ...
Unpacking nordugrid-arc-archery-manage (6.15.1-1~focal1) ...
Setting up python3-ldap:amd64 (3.2.0-4ubuntu2) ...
Setting up python3-dns (3.2.1-1) ...
Setting up nordugrid-arc-archery-manage (6.15.1-1~focal1) ...
 


root@archery-test-server:~# /usr/sbin/archery-manage 
Traceback (most recent call last):
  File "/usr/sbin/archery-manage", line 25, in <module>
    import dns.rdatatype
ModuleNotFoundError: No module named 'dns'
root@archery-test-server:~# python3
Python 3.8.10 (default, Mar 15 2022, 12:22:08) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 
root@archery-test-server:~# /usr/sbin/archery-manage 
Traceback (most recent call last):
  File "/usr/sbin/archery-manage", line 25, in <module>
    import dns.rdatatype
ModuleNotFoundError: No module named 'dns'
 

root@archery-test-server:~# apt-get install python3-dnspython
root@archery-test-server:~# /usr/sbin/archery-manage
usage: archery-manage [-h] [-d {CRITICAL,ERROR,WARNING,INFO,DEBUG}] -s SOURCE [-f FILTER] [-o {arc-CEs,services,endpoints,zonefile,json,_debug}] [--json] [--output-all] [-u]
                      [--domain DOMAIN] [--ddns-master-ip DDNS_MASTER_IP] [--ddns-tsig-keyfile DDNS_TSIG_KEYFILE]
                      [--ddns-tsig-algorithm {HMAC-MD5,HMAC-SHA1,HMAC-SHA224,HMAC-SHA256,HMAC-SHA384,HMAC-SHA512}] [--ttl TTL] [--threads THREADS] [--timeout TIMEOUT]
archery-manage: error: the following arguments are required: -s/--source

With python3-dnspython archery-manage has access to the dns module.

Edited by Maiken

Merge request reports

Loading