#1032 batcave: Install python3-configobj package
Closed 2 years ago by mgrabovs. Opened 2 years ago by mgrabovs.
fedora-infra/ mgrabovs/ansible batcave-python-configobj  into  main

@@ -41,6 +41,7 @@ 

    - mtr                       # useful for network debugging

    - lftp                      # needed to easily pull in builds from koji for internal repos

    - git-email                 # needed to send patches for review to the mailing list

+   - python3-configobj         # needed for the auth-keys-from-fas and users-from-fas scripts

    - python3-dns                # needed to have ansible remove ip-based known_host entries

    - libvirt-client            # needed to allow migrations to be run from here.

    - easy-rsa                  # For easy copying into ansible-private for certs.

When running the playbook for retrace-stg on a fresh instance, I get the following error (which is skipped for some reason):

TASK [add root keys for sysadmin-main and other allowed users] ********************************************************************************************************************************************************************************
Wednesday 13 April 2022  08:42:39 +0000 (0:00:00.672)       0:00:17.150 ******* 
Wednesday 13 April 2022  08:42:39 +0000 (0:00:00.672)       0:00:17.150 ******* 
Traceback (most recent call last):                                                                                                                                                                                                             
  File "/srv/web/infra/ansible/scripts/auth-keys-from-fas", line 16, in <module>
    from configobj import ConfigObj, flatten_errors                                                                    
ModuleNotFoundError: No module named 'configobj'
fatal: [retrace-stg.aws.fedoraproject.org]: FAILED! => {"msg": "lookup_plugin.lines(/srv/web/infra/ansible/scripts/auth-keys-from-fas @sysadmin-main msuchy mfabik mgrabovs mzidek) returned 1"}
...ignoring

The proposed change only makes sure that the configobj module is available for the auth-keys-from-fas and users-from-fas scripts.

@kevin Could you please check that this is the right thing to do and run the playbook on batcave if it's OK?

Ah, OK, thanks for the heads up. So I suppose this PR is not the way to go. I'll see if I can be of help with that issue.

Pull-Request has been closed by mgrabovs

2 years ago
Metadata