Project

General

Profile

Actions

Bug #16556

closed

ERF12-4701 [ProxyAPI::ProxyException]: Unable to fetch Salt states list ([ProxyAPI::ProxyException]: ERF12-7301 [ProxyAPI::ProxyException]: Unable to fetch Salt environments list ([RestCli...)

Added by Arthur Lutz over 8 years ago. Updated about 5 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Trying to import states from the salt smart proxy I get the following error

Error: ERF12-4701 [ProxyAPI::ProxyException]: Unable to fetch Salt states list ([ProxyAPI::ProxyException]: ERF12-7301 [ProxyAPI::ProxyException]: Unable to fetch Salt environments list ([RestCli...) for proxy https://saltminion1.local:8443/salt/

Initially I though it was an ssl problem because

# upload-salt-reports 
/usr/lib/python2.7/dist-packages/salt/grains/core.py:1493: DeprecationWarning: The "osmajorrelease" will be a type of an integer.
Traceback (most recent call last):
  File "/usr/sbin/upload-salt-reports", line 137, in <module>
    upload(jobs_to_upload())
  File "/usr/sbin/upload-salt-reports", line 100, in upload
    cert_file=config[':ssl_cert'])
  File "/usr/lib/python2.7/httplib.py", line 1198, in __init__
    context.load_cert_chain(cert_file, key_file)
SSLError: [SSL] PEM lib (_ssl.c:2506)

I ended up enabling http_port on 8000 and so that would appear to rule out the ssl problem.

2016-09-14T12:54:33 [app] [W] ProxyAPI operation FAILED
 | ProxyAPI::ProxyException: ERF12-4701 [ProxyAPI::ProxyException]: Unable to fetch Salt states list ([ProxyAPI::ProxyException]: ERF12-7301 [ProxyAPI::ProxyException]: Unable to fetch Salt environments list ([RestCli...) for proxy http://saltmaster.local:8000/salt/

Here is a full trace from the logs [[http://paste.debian.net/821289/]]

Actions #1

Updated by James Shewey over 6 years ago

Arthur, did you configure your salt master as is described in the [[plugin manual|https://www.theforeman.org/plugins/foreman_salt/4.0/index.html]]?

Actions #2

Updated by Bernhard Suttner about 5 years ago

  • Status changed from New to Feedback

Were you able to fix the issue by activating the salt api in the config?

Actions #3

Updated by Arthur Lutz about 5 years ago

Bernhard Suttner wrote:

Were you able to fix the issue by activating the salt api in the config?

Hi Bernhard, thanks for taking the time to reach back.

I don't have a setup anymore, I don't remember solving this one.

Actions

Also available in: Atom PDF