Virt-who generates no new username

Hello

I am using Foreman with the virt_who add-on and have encountered the following problem since the last update.

When I create a new Virt-who config, it always gets created with an old rhsm_username that already exists. The same username is always generated no matter how often I create a new configuration.

It always uses rhsm_username=virt_who_reporter_5.

As a result, the communication from the virtualization host to Foreman does not work, showing the following error in the service virt-who.services:

MainProcess(3818680):Thread-3 @virt.py:_send_data:609 - Error during heartbeat: Communication with subscription manager failed with code 500: HTTP virtwho.manager.manager.ManagerError: Communication with subscription manager failed with code 500: HTTP error (500 - Internal Server Error):
MainProcess(3818680):Thread-2 @libvirtd.py:_connect:280 - Using libvirt url: qemu+ssh://x.x.x/system?no_tty=1
MainProcess(3818680):Thread-2 @libvirtd.py:_connect:288 - Error in libvirt backend
libvirt.libvirtError: Cannot recv data: Host key verification failed.: Connection reset by peer
MainProcess(3818680):Thread-2 @virt.py:run:416 - Thread ‘virt-who-config-17’ fails with error: Cannot recv data: Host key verification failed.: Connection reset by peer
MainProcess(3818680):Thread-2 @virt.py:_send_data:986 - Report for config “virt-who-config-17” gathered, placing in datastore
MainProcess(3818680):Thread-2 @virt.py:run:440 - Waiting 7200 seconds before performing action again ‘virt-who-config-17’
2MainProcess(3818680):Thread-3 @subscriptionmanager.py:_connect:159 - X-Correlation-ID: 99f362792739484dbc5969d11d826c33
MainProcess(3818680):Thread-3 @virt.py:_send_data:609 - Error during heartbeat: Communication with subscription manager failed with code 500: HTTP virtwho.manager.manager.ManagerError: Communication with subscription manager failed with code 500: HTTP error (500 - Internal Server Error):

Does anyone have an idea how to solve this?

Thank you very much

Foreman 3.9.3
Katello 4.11.1
foreman_virt_who_configure 0.5.19

It does not look like the username is a problem. The log says

@libvirtd.py:_connect:288 - Error in libvirt backend
libvirt.libvirtError: Cannot recv data: Host key verification failed.: Connection reset by peer

your virt-who is unable to connect to the libvirt. Check your SSH key setup.

Hello,

thanks that info solved my problem.