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

mgr-inter-sync --list-channels problem sync with slave #7565

Closed
santix1989 opened this issue Sep 20, 2023 · 3 comments
Closed

mgr-inter-sync --list-channels problem sync with slave #7565

santix1989 opened this issue Sep 20, 2023 · 3 comments
Labels
bug Something isn't working P5

Comments

@santix1989
Copy link

Problem description

Hi,
I have configured 2 nodes, one master and one slave, with this step :

https://www.uyuni-project.org/uyuni-docs/en/uyuni/administration/iss.html

when started the sync, have this issue :

mgr-inter-sync --list-channels
15:58:41 Uyuni - live synchronization
15:58:41    url: https://XXXXXXX
15:58:41    debug/output level: 1
15:58:41 --- Warning: SSL connection made but no CA certificate used
HOST:  443
15:58:41 
15:58:41 
ERROR: there was a problem synchronizing the information.
       Error message: [Errno -2] Name or service not known

15:58:41 *** TRACEBACK: 
15:58:41 Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/spacewalk/satellite_tools/satsync.py", line 215, in main
    self.syncer.initialize()
  File "/usr/lib/python3.6/site-packages/spacewalk/satellite_tools/satsync.py", line 558, in initialize
    auth.checkAuth()
  File "/usr/lib/python3.6/site-packages/spacewalk/satellite_tools/xmlWireSource.py", line 378, in checkAuth
    authYN = self._xmlrpc('authentication.check', (self.systemid,))
  File "/usr/lib/python3.6/site-packages/spacewalk/satellite_tools/xmlWireSource.py", line 357, in _xmlrpc
    retval = getattr(BaseWireSource.serverObj, function)(*params)
  File "/usr/lib/python3.6/site-packages/rhn/rpclib.py", line 659, in __call__
    return self._send(self._name, args)
  File "/usr/lib/python3.6/site-packages/rhn/rpclib.py", line 391, in _request
    self._handler, request, verbose=self._verbose)
  File "/usr/lib/python3.6/site-packages/rhn/transports.py", line 177, in request
    headers, fd = req.send_http(host, handler)
  File "/usr/lib/python3.6/site-packages/rhn/transports.py", line 728, in send_http
    self._connection.connect()
  File "/usr/lib/python3.6/site-packages/rhn/connections.py", line 191, in connect
    socket.AF_UNSPEC, socket.SOCK_STREAM)
  File "/usr/lib64/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

15:58:41 *** BASIC INFO:
 (<class 'socket.gaierror'>, gaierror(-2, 'Name or service not known'))

I have print the variables with :

print("HOST:",self.host,self.port)
output is:
HOST: 443

host is null, on:
```
results = socket.getaddrinfo(self.host, self.port,
socket.AF_UNSPEC, socket.SOCK_STREAM)

if try to set the host with:

`self.host="XXXXXXXXXXX"`

the command work.

Could you help me please ?


### Steps to reproduce

1.
2.
3.
...


### Uyuni version

```bash
Information for package Uyuni-Server-release:
---------------------------------------------
Repository     : uyuni-server-stable
Name           : Uyuni-Server-release
Version        : 2023.04-220400.204.2.uyuni2
Arch           : x86_64
Vendor         : obs://build.opensuse.org/systemsmanagement:Uyuni
Support Level  : Level 3
Installed Size : 1.4 KiB
Installed      : Yes (automatically)
Status         : up-to-date
Source package : Uyuni-Server-release-2023.04-220400.204.2.uyuni2.src
Summary        : Uyuni Server
Description    : 
    Uyuni lets you efficiently manage physical, virtual,
    and cloud-based Linux systems. It provides automated and cost-effective
    configuration and software management, asset management, and system
    provisioning.

Uyuni proxy version (if used)

No response

Useful logs

No response

Additional information

No response

@mikeletux
Copy link
Contributor

Hello there @santix1989

Were you able to test code in PR #7588 ?
Looks like the change proposed there would solve the issue.

Please let me know.
Best regards!

@santix1989
Copy link
Author

Hi,
@mikeletux this PR fix the issue.

Thanks
Best regards

@mikeletux
Copy link
Contributor

I'll close this issue. Please keep an eye on the PR 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P5
Projects
None yet
Development

No branches or pull requests

2 participants