Hi, there are no entries in "Salt - Keys". I thought that adding new salt minion is responsibility of "Bootstrap minion" action? It's fresh clean fully updated OpenSUSE 42.3 installation with Uyuni 4.0.1 installed using instructions at https://www.uyuni-project.org/stable-version.html and essential function (adding new system) isn't working. I reinstalled whole VM and Uyuni but behaviour is the same. I must be missing something. Are there any additional steps that need to be done that are not mentioned at https://www.uyuni-project.org/stable-version.html? What is strange is that TypeError at the end: File "/usr/lib/python2.7/site-packages/salt/utils/network.py", line 236, in is_reachable_host assert type(socket.getaddrinfo(entity_name, 0, 0, 0, 0)) == list TypeError: getaddrinfo() argument 1 must be string or None Variable "entity_name" has value: [u"10.110.192.3"] that originates from POST /run call to Salt API: { ... "tgt":["10.110.192.3"] ...} It's my uderstanding that tgt should be string, not list? -----Original Message----- From: Robert Paschedag <robert.paschedag@web.de> Sent: Tuesday, April 9, 2019 12:47 PM To: uyuni-users@opensuse.org; Pavel Arnošt <pavel.arnost@valvera.cz> Subject: Re: [uyuni-users] Error during applying the bootstrap state, message: Response code: 500 Am 9. April 2019 09:39:40 MESZ schrieb "Pavel Arnošt" <pavel.arnost@valvera.cz>:
Hi,
I have fresh installation of Uyuni 4.0.1 on fully updated Leap 42.3 and I have problems bootstrapping minions on /rhn/manager/systems/bootstrap page. After click on "Bootstrap" button, it shows " Error during applying the bootstrap state, message: Response code: 500". I didn't do any configuration - I just created admin user. I traced error to salt-api that logs following while bootstrapping minion (fqdn of minion is replaced with "minion.domain"):
[DEBUG ] Rendered data from file: /etc/salt/roster: # Sample salt-ssh config file #web1: # host: 192.168.42.1 # The IP addr or DNS hostname # user: fred # Remote executions will be executed as user fred # passwd: foobarbaz # The password to use for login, if omitted, keys are used # sudo: True # Whether to sudo to root, not enabled by default #web2: # host: 192.168.42.2
# Automatically added by "salt" at 2019-04-08T19:44:36.714140 None: host: None user: root passwd: # Automatically added by "salt" at 2019-04-08T19:54:16.464249 None: host: None user: root passwd:
[ERROR ] Unable to render roster file: while constructing a mapping in "<unicode string>", line 11, column 1: None: ^ found conflicting ID 'None' in "<unicode string>", line 16, column 1: None: ^ [DEBUG ] Matched minions: {} [INFO ] [u'minion.domain'] [DEBUG ] Error while processing request for: /run Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/salt/netapi/rest_cherrypy/app.py", line 858, in hypermedia_handler ret = cherrypy.serving.request._hypermedia_inner_handler(*args, **kwargs) File "/usr/lib/python2.7/site-packages/cherrypy/_cpdispatch.py", line 61, in __call__ return self.callable(*self.args, **self.kwargs) File "/usr/lib/python2.7/site-packages/salt/netapi/rest_cherrypy/app.py", line 2135, in POST 'return': list(self.exec_lowstate()), File "/usr/lib/python2.7/site-packages/salt/netapi/rest_cherrypy/app.py", line 1185, in exec_lowstate ret = self.api.run(chunk) File "/usr/lib/python2.7/site-packages/salt/netapi/__init__.py", line 75, in run return l_fun(*f_call.get('args', ()), **f_call.get('kwargs', {})) File "/usr/lib/python2.7/site-packages/salt/netapi/__init__.py", line 140, in ssh return ssh_client.cmd_sync(kwargs) File "/usr/lib/python2.7/site-packages/salt/client/ssh/client.py", line 179, in cmd_sync **kwargs) File "/usr/lib/python2.7/site-packages/salt/client/ssh/client.py", line 141, in cmd **kwargs) File "/usr/lib/python2.7/site-packages/salt/client/ssh/client.py", line 73, in _prep_ssh return salt.client.ssh.SSH(opts) File "/usr/lib/python2.7/site-packages/salt/client/ssh/__init__.py", line 233, in __init__ self._update_targets() File "/usr/lib/python2.7/site-packages/salt/client/ssh/__init__.py", line 401, in _update_targets if salt.utils.network.is_reachable_host(hostname): File "/usr/lib/python2.7/site-packages/salt/utils/network.py", line 236, in is_reachable_host assert type(socket.getaddrinfo(entity_name, 0, 0, 0, 0)) == list TypeError: getaddrinfo() argument 1 must be string or None
What am I doing wrong?
Hmm.. Is it possible, that you did not accept the minion in "Salt" -> "Keys"? It looks like no minion "matched"
[DEBUG ] Matched minions: {}
and therefore "is_reachable_host" fails the assertion. Robert
Thanks, Regards, Pavel
-- sent from my mobile device -- To unsubscribe, e-mail: uyuni-users+unsubscribe@opensuse.org To contact the owner, e-mail: uyuni-users+owner@opensuse.org