Salt-api setup, after running and get a call error 500 (foreman-proxy, saltmaster, saltapi)

Hi,

I've tried to setup the salt-api like desribed in the docs as a smart-proxy
to foreman.

Sofar, the SmartProxy is running and registered in foreman.

Now I try to import the salt states but I get an error 500

I've no clue what should be wrong or missing after hours of spending time
to the different setup doc of salt, salt-api and foreman-proxy

==> /var/log/salt/salt-api.log

Failed to setup thread-interrupt handler. This is usually not critical

[DEBUG ] Error while processing request for: /run

Traceback (most recent call last):

File
"/usr/local/lib/python2.7/dist-packages/saltapi/netapi/rest_cherrypy/app.py",
line 292, in hypermedia_handler

ret = cherrypy.serving.request._hypermedia_inner_handler(*args, 

**kwargs)

File
"/usr/local/lib/python2.7/dist-packages/CherryPy-5.0.1-py2.7.egg/cherrypy/_cpdispatch.py",
line 60, in call

return self.callable(*self.args, **self.kwargs)

File
"/usr/local/lib/python2.7/dist-packages/saltapi/netapi/rest_cherrypy/app.py",
line 1106, in POST

'return': list(self.exec_lowstate()),

File
"/usr/local/lib/python2.7/dist-packages/saltapi/netapi/rest_cherrypy/app.py",
line 534, in exec_lowstate

ret = self.api.run(chunk)

File "/usr/local/lib/python2.7/dist-packages/saltapi/init.py", line
42, in run

ret = l_fun(*f_call.get('args', ()), **f_call.get('kwargs', {}))

File "/usr/local/lib/python2.7/dist-packages/saltapi/init.py", line
90, in runner

return runner.low(fun, kwargs)

File "/usr/lib/python2.7/dist-packages/salt/runner.py", line 135, in low

self._verify_fun(fun)

File "/usr/lib/python2.7/dist-packages/salt/runner.py", line 79, in
_verify_fun

raise salt.exceptions.CommandExecutionError(err)

CommandExecutionError: Function u'fileserver.envs' is unavailable

[INFO ] 192.168.77.90 - - [18/Feb/2016:16:25:59] "POST /run HTTP/1.1"
500 57 "" "Ruby"

==> /var/log/foreman-proxy/proxy.log <==

E, [2016-02-18T16:25:59.496302 #25977] ERROR – : Failed to list
environments: Failed to query Salt API (500): {"status": 500, "return": "An
unexpected error occurred"}

==> /etc/salt/master

external_auth:

pam:

saltuser:

  - &#39;@runner&#39;

rest_cherrypy:

port: 9191

host: 0.0.0.0

ssl_key: /var/lib/puppet/ssl/private_keys/vmg-utf-foreman-000.pem

ssl_crt: /var/lib/puppet/ssl/certs/vmg-utf-foreman-000.pem

SSL_ Files exists

User saltuser exists (do it need a special linux group?)

==> /etc/foreman-proxy/settings.d/salt.yml

:enabled: https

:autosign_file: /etc/salt/autosign.conf

:salt_command_user: root

Some features require using the Salt API - such as listing environments

and retrieving state info

:use_api: true

:api_url: https://vmg-utf-salt-master.to3.zone.loc:9191

:api_auth: pam

:api_username: saltuser

:api_password: saltpasswd

Would be nice if anyone can give me a hint or a kick to the right path :slight_smile:

– Tom

>
>
> Hi,
>
>
> I've tried to setup the salt-api like desribed in the docs as a smart-proxy
> to foreman.
>
> Sofar, the SmartProxy is running and registered in foreman.
>
>
> Now I try to import the salt states but I get an error 500
>
>
> I've no clue what should be wrong or missing after hours of spending time
> to the different setup doc of salt, salt-api and foreman-proxy
>
>
> ==> /var/log/salt/salt-api.log
>
>
> Failed to setup thread-interrupt handler. This is usually not critical
>
> [DEBUG ] Error while processing request for: /run
>
> Traceback (most recent call last):
>
> File
> "/usr/local/lib/python2.7/dist-packages/saltapi/netapi/rest_cherrypy/app.py",
> line 292, in hypermedia_handler
>
> ret = cherrypy.serving.request._hypermedia_inner_handler(*args,
> **kwargs)
>
> File
> "/usr/local/lib/python2.7/dist-packages/CherryPy-5.0.1-py2.7.egg/cherrypy/_cpdispatch.py",
> line 60, in call
>
> return self.callable(*self.args, **self.kwargs)
>
> File
> "/usr/local/lib/python2.7/dist-packages/saltapi/netapi/rest_cherrypy/app.py",
> line 1106, in POST
>
> 'return': list(self.exec_lowstate()),
>
> File
> "/usr/local/lib/python2.7/dist-packages/saltapi/netapi/rest_cherrypy/app.py",
> line 534, in exec_lowstate
>
> ret = self.api.run(chunk)
>
> File "/usr/local/lib/python2.7/dist-packages/saltapi/init.py", line
> 42, in run
>
> ret = l_fun(*f_call.get('args', ()), **f_call.get('kwargs', {}))
>
> File "/usr/local/lib/python2.7/dist-packages/saltapi/init.py", line
> 90, in runner
>
> return runner.low(fun, kwargs)
>
> File "/usr/lib/python2.7/dist-packages/salt/runner.py", line 135, in low
>
> self._verify_fun(fun)
>
> File "/usr/lib/python2.7/dist-packages/salt/runner.py", line 79, in
> _verify_fun
>
> raise salt.exceptions.CommandExecutionError(err)
>
> CommandExecutionError: Function u'fileserver.envs' is unavailable

This seems like the key, what version of salt is on the master?
Fileserver.envs was added last year in Lithium (2015.5) I believe.

··· On Thu, Feb 18, 2016 at 07:34:39AM -0800, Tom K. wrote:

[INFO ] 192.168.77.90 - - [18/Feb/2016:16:25:59] "POST /run HTTP/1.1"
500 57 “” “Ruby”

==> /var/log/foreman-proxy/proxy.log <==

E, [2016-02-18T16:25:59.496302 #25977] ERROR – : Failed to list
environments: Failed to query Salt API (500): {“status”: 500, “return”: “An
unexpected error occurred”}

==> /etc/salt/master

external_auth:

pam:

saltuser:

  - '@runner'

rest_cherrypy:

port: 9191

host: 0.0.0.0

ssl_key: /var/lib/puppet/ssl/private_keys/vmg-utf-foreman-000.pem

ssl_crt: /var/lib/puppet/ssl/certs/vmg-utf-foreman-000.pem

SSL_ Files exists

User saltuser exists (do it need a special linux group?)

==> /etc/foreman-proxy/settings.d/salt.yml

:enabled: https

:autosign_file: /etc/salt/autosign.conf

:salt_command_user: root

Some features require using the Salt API - such as listing environments

and retrieving state info

:use_api: true

:api_url: https://vmg-utf-salt-master.to3.zone.loc:9191

:api_auth: pam

:api_username: saltuser

:api_password: saltpasswd

Would be nice if anyone can give me a hint or a kick to the right path :slight_smile:

– Tom


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Best Regards,

Stephen Benjamin

salt-master 2014.1.13 (Hydrogen)

salt-api 0.8.4.1

foreman 1.10.1

It's a plain fresh setup

··· Am Donnerstag, 18. Februar 2016 16:52:42 UTC+1 schrieb stephen: > > On Thu, Feb 18, 2016 at 07:34:39AM -0800, Tom K. wrote: > > > > > > Hi, > > > > > > I've tried to setup the salt-api like desribed in the docs as a > smart-proxy > > to foreman. > > > > Sofar, the SmartProxy is running and registered in foreman. > > > > > > Now I try to import the salt states but I get an error 500 > > > > > > I've no clue what should be wrong or missing after hours of spending > time > > to the different setup doc of salt, salt-api and foreman-proxy > > > > > > ==> /var/log/salt/salt-api.log > > > > > > Failed to setup thread-interrupt handler. This is usually not critical > > > > [DEBUG ] Error while processing request for: /run > > > > Traceback (most recent call last): > > > > File > > > "/usr/local/lib/python2.7/dist-packages/saltapi/netapi/rest_cherrypy/app.py", > > > line 292, in hypermedia_handler > > > > ret = cherrypy.serving.request._hypermedia_inner_handler(*args, > > **kwargs) > > > > File > > > "/usr/local/lib/python2.7/dist-packages/CherryPy-5.0.1-py2.7.egg/cherrypy/_cpdispatch.py", > > > line 60, in __call__ > > > > return self.callable(*self.args, **self.kwargs) > > > > File > > > "/usr/local/lib/python2.7/dist-packages/saltapi/netapi/rest_cherrypy/app.py", > > > line 1106, in POST > > > > 'return': list(self.exec_lowstate()), > > > > File > > > "/usr/local/lib/python2.7/dist-packages/saltapi/netapi/rest_cherrypy/app.py", > > > line 534, in exec_lowstate > > > > ret = self.api.run(chunk) > > > > File "/usr/local/lib/python2.7/dist-packages/saltapi/__init__.py", > line > > 42, in run > > > > ret = l_fun(*f_call.get('args', ()), **f_call.get('kwargs', {})) > > > > File "/usr/local/lib/python2.7/dist-packages/saltapi/__init__.py", > line > > 90, in runner > > > > return runner.low(fun, kwargs) > > > > File "/usr/lib/python2.7/dist-packages/salt/runner.py", line 135, in > low > > > > self._verify_fun(fun) > > > > File "/usr/lib/python2.7/dist-packages/salt/runner.py", line 79, in > > _verify_fun > > > > raise salt.exceptions.CommandExecutionError(err) > > > > CommandExecutionError: Function u'fileserver.envs' is unavailable > > > This seems like the key, what version of salt is on the master? > Fileserver.envs was added last year in Lithium (2015.5) I believe. > > > > > > [INFO ] 192.168.77.90 - - [18/Feb/2016:16:25:59] "POST /run HTTP/1.1" > > 500 57 "" "Ruby" > > > > > > > > ==> /var/log/foreman-proxy/proxy.log <== > > > > E, [2016-02-18T16:25:59.496302 #25977] ERROR -- : Failed to list > > environments: Failed to query Salt API (500): {"status": 500, "return": > "An > > unexpected error occurred"} > > > > > > > > > > ==> /etc/salt/master > > > > > > external_auth: > > > > pam: > > > > saltuser: > > > > - '@runner' > > > > > > rest_cherrypy: > > > > port: 9191 > > > > host: 0.0.0.0 > > > > ssl_key: /var/lib/puppet/ssl/private_keys/vmg-utf-foreman-000.pem > > > > ssl_crt: /var/lib/puppet/ssl/certs/vmg-utf-foreman-000.pem > > > > > > > > > > *SSL_ Files exists* > > > > *User saltuser exists (do it need a special linux group?)* > > > > > > > > > > ==> /etc/foreman-proxy/settings.d/salt.yml > > > > > > :enabled: https > > > > :autosign_file: /etc/salt/autosign.conf > > > > :salt_command_user: root > > > > # Some features require using the Salt API - such as listing > environments > > and retrieving state info > > > > :use_api: true > > > > :api_url: https://vmg-utf-salt-master.to3.zone.loc:9191 > > > > :api_auth: pam > > > > :api_username: saltuser > > > > :api_password: saltpasswd > > > > > > > > Would be nice if anyone can give me a hint or a kick to the right path > :-) > > > > > > > > -- Tom > > > > -- > > You received this message because you are subscribed to the Google > Groups "Foreman users" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to foreman-user...@googlegroups.com . > > To post to this group, send email to forema...@googlegroups.com > . > > Visit this group at https://groups.google.com/group/foreman-users. > > For more options, visit https://groups.google.com/d/optout. > > > -- > Best Regards, > > Stephen Benjamin >

>
>
>
> salt-master 2014.1.13 (Hydrogen)
>
> salt-api 0.8.4.1
>
> foreman 1.10.1
>
>
> It's a plain fresh setup

Not that fresh, 2014.1.13 is almost 18 months old. You need at least
2015.5 to have support for fileserver.envs.

··· On Thu, Feb 18, 2016 at 08:07:33AM -0800, Tom K. wrote:

Am Donnerstag, 18. Februar 2016 16:52:42 UTC+1 schrieb stephen:

On Thu, Feb 18, 2016 at 07:34:39AM -0800, Tom K. wrote:

Hi,

I’ve tried to setup the salt-api like desribed in the docs as a
smart-proxy
to foreman.

Sofar, the SmartProxy is running and registered in foreman.

Now I try to import the salt states but I get an error 500

I’ve no clue what should be wrong or missing after hours of spending
time
to the different setup doc of salt, salt-api and foreman-proxy

==> /var/log/salt/salt-api.log

Failed to setup thread-interrupt handler. This is usually not critical

[DEBUG ] Error while processing request for: /run

Traceback (most recent call last):

File

“/usr/local/lib/python2.7/dist-packages/saltapi/netapi/rest_cherrypy/app.py”,

line 292, in hypermedia_handler

ret = cherrypy.serving.request._hypermedia_inner_handler(*args,

**kwargs)

File

“/usr/local/lib/python2.7/dist-packages/CherryPy-5.0.1-py2.7.egg/cherrypy/_cpdispatch.py”,

line 60, in call

return self.callable(*self.args, **self.kwargs)

File

“/usr/local/lib/python2.7/dist-packages/saltapi/netapi/rest_cherrypy/app.py”,

line 1106, in POST

'return': list(self.exec_lowstate()),

File

“/usr/local/lib/python2.7/dist-packages/saltapi/netapi/rest_cherrypy/app.py”,

line 534, in exec_lowstate

ret = self.api.run(chunk)

File “/usr/local/lib/python2.7/dist-packages/saltapi/init.py”,
line
42, in run

ret = l_fun(*f_call.get('args', ()), **f_call.get('kwargs', {}))

File “/usr/local/lib/python2.7/dist-packages/saltapi/init.py”,
line
90, in runner

return runner.low(fun, kwargs)

File “/usr/lib/python2.7/dist-packages/salt/runner.py”, line 135, in
low

self._verify_fun(fun)

File “/usr/lib/python2.7/dist-packages/salt/runner.py”, line 79, in
_verify_fun

raise salt.exceptions.CommandExecutionError(err)

CommandExecutionError: Function u’fileserver.envs’ is unavailable

This seems like the key, what version of salt is on the master?
Fileserver.envs was added last year in Lithium (2015.5) I believe.

[INFO ] 192.168.77.90 - - [18/Feb/2016:16:25:59] "POST /run HTTP/1.1"
500 57 “” “Ruby”

==> /var/log/foreman-proxy/proxy.log <==

E, [2016-02-18T16:25:59.496302 #25977] ERROR – : Failed to list
environments: Failed to query Salt API (500): {“status”: 500, “return”:
“An
unexpected error occurred”}

==> /etc/salt/master

external_auth:

pam:

saltuser:

  - '@runner'

rest_cherrypy:

port: 9191

host: 0.0.0.0

ssl_key: /var/lib/puppet/ssl/private_keys/vmg-utf-foreman-000.pem

ssl_crt: /var/lib/puppet/ssl/certs/vmg-utf-foreman-000.pem

SSL_ Files exists

User saltuser exists (do it need a special linux group?)

==> /etc/foreman-proxy/settings.d/salt.yml

:enabled: https

:autosign_file: /etc/salt/autosign.conf

:salt_command_user: root

Some features require using the Salt API - such as listing

environments

and retrieving state info

:use_api: true

:api_url: https://vmg-utf-salt-master.to3.zone.loc:9191

:api_auth: pam

:api_username: saltuser

:api_password: saltpasswd

Would be nice if anyone can give me a hint or a kick to the right path
:slight_smile:

– Tom


You received this message because you are subscribed to the Google
Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to foreman-user...@googlegroups.com <javascript:>.
To post to this group, send email to forema...@googlegroups.com
<javascript:>.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Best Regards,

Stephen Benjamin


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Best Regards,

Stephen Benjamin

Ok, I see. Not really fresh. Was default debian/jessie release.
Will do that manually!

Thanks for that kick! :slight_smile:

··· Am Donnerstag, 18. Februar 2016 20:37:06 UTC+1 schrieb stephen: > > On Thu, Feb 18, 2016 at 08:07:33AM -0800, Tom K. wrote: > > > > > > > > salt-master 2014.1.13 (Hydrogen) > > > > salt-api 0.8.4.1 > > > > foreman 1.10.1 > > > > > > It's a plain fresh setup > > Not that fresh, 2014.1.13 is almost 18 months old. You need at least > 2015.5 to have support for fileserver.envs. > > > > > Am Donnerstag, 18. Februar 2016 16:52:42 UTC+1 schrieb stephen: > > > > > > On Thu, Feb 18, 2016 at 07:34:39AM -0800, Tom K. wrote: > > > > > > > > > > > > Hi, > > > > > > > > > > > > I've tried to setup the salt-api like desribed in the docs as a > > > smart-proxy > > > > to foreman. > > > > > > > > Sofar, the SmartProxy is running and registered in foreman. > > > > > > > > > > > > Now I try to import the salt states but I get an error 500 > > > > > > > > > > > > I've no clue what should be wrong or missing after hours of spending > > > time > > > > to the different setup doc of salt, salt-api and foreman-proxy > > > > > > > > > > > > ==> /var/log/salt/salt-api.log > > > > > > > > > > > > Failed to setup thread-interrupt handler. This is usually not > critical > > > > > > > > [DEBUG ] Error while processing request for: /run > > > > > > > > Traceback (most recent call last): > > > > > > > > File > > > > > > > > "/usr/local/lib/python2.7/dist-packages/saltapi/netapi/rest_cherrypy/app.py", > > > > > > > > line 292, in hypermedia_handler > > > > > > > > ret = cherrypy.serving.request._hypermedia_inner_handler(*args, > > > > **kwargs) > > > > > > > > File > > > > > > > > "/usr/local/lib/python2.7/dist-packages/CherryPy-5.0.1-py2.7.egg/cherrypy/_cpdispatch.py", > > > > > > > > line 60, in __call__ > > > > > > > > return self.callable(*self.args, **self.kwargs) > > > > > > > > File > > > > > > > > "/usr/local/lib/python2.7/dist-packages/saltapi/netapi/rest_cherrypy/app.py", > > > > > > > > line 1106, in POST > > > > > > > > 'return': list(self.exec_lowstate()), > > > > > > > > File > > > > > > > > "/usr/local/lib/python2.7/dist-packages/saltapi/netapi/rest_cherrypy/app.py", > > > > > > > > line 534, in exec_lowstate > > > > > > > > ret = self.api.run(chunk) > > > > > > > > File "/usr/local/lib/python2.7/dist-packages/saltapi/__init__.py", > > > line > > > > 42, in run > > > > > > > > ret = l_fun(*f_call.get('args', ()), **f_call.get('kwargs', {})) > > > > > > > > File "/usr/local/lib/python2.7/dist-packages/saltapi/__init__.py", > > > line > > > > 90, in runner > > > > > > > > return runner.low(fun, kwargs) > > > > > > > > File "/usr/lib/python2.7/dist-packages/salt/runner.py", line 135, > in > > > low > > > > > > > > self._verify_fun(fun) > > > > > > > > File "/usr/lib/python2.7/dist-packages/salt/runner.py", line 79, > in > > > > _verify_fun > > > > > > > > raise salt.exceptions.CommandExecutionError(err) > > > > > > > > CommandExecutionError: Function u'fileserver.envs' is unavailable > > > > > > > > > This seems like the key, what version of salt is on the master? > > > Fileserver.envs was added last year in Lithium (2015.5) I believe. > > > > > > > > > > > > > > [INFO ] 192.168.77.90 - - [18/Feb/2016:16:25:59] "POST /run > HTTP/1.1" > > > > 500 57 "" "Ruby" > > > > > > > > > > > > > > > > ==> /var/log/foreman-proxy/proxy.log <== > > > > > > > > E, [2016-02-18T16:25:59.496302 #25977] ERROR -- : Failed to list > > > > environments: Failed to query Salt API (500): {"status": 500, > "return": > > > "An > > > > unexpected error occurred"} > > > > > > > > > > > > > > > > > > > > ==> /etc/salt/master > > > > > > > > > > > > external_auth: > > > > > > > > pam: > > > > > > > > saltuser: > > > > > > > > - '@runner' > > > > > > > > > > > > rest_cherrypy: > > > > > > > > port: 9191 > > > > > > > > host: 0.0.0.0 > > > > > > > > ssl_key: /var/lib/puppet/ssl/private_keys/vmg-utf-foreman-000.pem > > > > > > > > ssl_crt: /var/lib/puppet/ssl/certs/vmg-utf-foreman-000.pem > > > > > > > > > > > > > > > > > > > > *SSL_ Files exists* > > > > > > > > *User saltuser exists (do it need a special linux group?)* > > > > > > > > > > > > > > > > > > > > ==> /etc/foreman-proxy/settings.d/salt.yml > > > > > > > > > > > > :enabled: https > > > > > > > > :autosign_file: /etc/salt/autosign.conf > > > > > > > > :salt_command_user: root > > > > > > > > # Some features require using the Salt API - such as listing > > > environments > > > > and retrieving state info > > > > > > > > :use_api: true > > > > > > > > :api_url: https://vmg-utf-salt-master.to3.zone.loc:9191 > > > > > > > > :api_auth: pam > > > > > > > > :api_username: saltuser > > > > > > > > :api_password: saltpasswd > > > > > > > > > > > > > > > > Would be nice if anyone can give me a hint or a kick to the right > path > > > :-) > > > > > > > > > > > > > > > > -- Tom > > > > > > > > -- > > > > You received this message because you are subscribed to the Google > > > Groups "Foreman users" group. > > > > To unsubscribe from this group and stop receiving emails from it, > send > > > an email to foreman-user...@googlegroups.com . > > > > To post to this group, send email to forema...@googlegroups.com > > > . > > > > Visit this group at https://groups.google.com/group/foreman-users. > > > > For more options, visit https://groups.google.com/d/optout. > > > > > > > > > -- > > > Best Regards, > > > > > > Stephen Benjamin > > > > > > > -- > > You received this message because you are subscribed to the Google > Groups "Foreman users" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to foreman-user...@googlegroups.com . > > To post to this group, send email to forema...@googlegroups.com > . > > Visit this group at https://groups.google.com/group/foreman-users. > > For more options, visit https://groups.google.com/d/optout. > > > -- > Best Regards, > > Stephen Benjamin >

> Ok, I see. Not really fresh. Was default debian/jessie release.
> Will do that manually!
>
> Thanks for that kick! :slight_smile:

Sure, np.

Other distros default salt packages are starting to age too. I'd guess
they'll not be updating the distros any more in favor of using their own
repos:

https://repo.saltstack.com/

··· On Thu, Feb 18, 2016 at 12:34:22PM -0800, Tom K. wrote:

Am Donnerstag, 18. Februar 2016 20:37:06 UTC+1 schrieb stephen:

On Thu, Feb 18, 2016 at 08:07:33AM -0800, Tom K. wrote:

salt-master 2014.1.13 (Hydrogen)

salt-api 0.8.4.1

foreman 1.10.1

It’s a plain fresh setup

Not that fresh, 2014.1.13 is almost 18 months old. You need at least
2015.5 to have support for fileserver.envs.

Am Donnerstag, 18. Februar 2016 16:52:42 UTC+1 schrieb stephen:

On Thu, Feb 18, 2016 at 07:34:39AM -0800, Tom K. wrote:

Hi,

I’ve tried to setup the salt-api like desribed in the docs as a
smart-proxy
to foreman.

Sofar, the SmartProxy is running and registered in foreman.

Now I try to import the salt states but I get an error 500

I’ve no clue what should be wrong or missing after hours of spending
time
to the different setup doc of salt, salt-api and foreman-proxy

==> /var/log/salt/salt-api.log

Failed to setup thread-interrupt handler. This is usually not
critical

[DEBUG ] Error while processing request for: /run

Traceback (most recent call last):

File

“/usr/local/lib/python2.7/dist-packages/saltapi/netapi/rest_cherrypy/app.py”,

line 292, in hypermedia_handler

ret = cherrypy.serving.request._hypermedia_inner_handler(*args,

**kwargs)

File

“/usr/local/lib/python2.7/dist-packages/CherryPy-5.0.1-py2.7.egg/cherrypy/_cpdispatch.py”,

line 60, in call

return self.callable(*self.args, **self.kwargs)

File

“/usr/local/lib/python2.7/dist-packages/saltapi/netapi/rest_cherrypy/app.py”,

line 1106, in POST

'return': list(self.exec_lowstate()),

File

“/usr/local/lib/python2.7/dist-packages/saltapi/netapi/rest_cherrypy/app.py”,

line 534, in exec_lowstate

ret = self.api.run(chunk)

File “/usr/local/lib/python2.7/dist-packages/saltapi/init.py”,
line
42, in run

ret = l_fun(*f_call.get('args', ()), **f_call.get('kwargs', {}))

File “/usr/local/lib/python2.7/dist-packages/saltapi/init.py”,
line
90, in runner

return runner.low(fun, kwargs)

File “/usr/lib/python2.7/dist-packages/salt/runner.py”, line 135,
in

low

self._verify_fun(fun)

File “/usr/lib/python2.7/dist-packages/salt/runner.py”, line 79,
in

_verify_fun

raise salt.exceptions.CommandExecutionError(err)

CommandExecutionError: Function u’fileserver.envs’ is unavailable

This seems like the key, what version of salt is on the master?
Fileserver.envs was added last year in Lithium (2015.5) I believe.

[INFO ] 192.168.77.90 - - [18/Feb/2016:16:25:59] “POST /run
HTTP/1.1”

500 57 “” “Ruby”

==> /var/log/foreman-proxy/proxy.log <==

E, [2016-02-18T16:25:59.496302 #25977] ERROR – : Failed to list
environments: Failed to query Salt API (500): {“status”: 500,
“return”:

"An

unexpected error occurred"}

==> /etc/salt/master

external_auth:

pam:

saltuser:

  - '@runner'

rest_cherrypy:

port: 9191

host: 0.0.0.0

ssl_key: /var/lib/puppet/ssl/private_keys/vmg-utf-foreman-000.pem

ssl_crt: /var/lib/puppet/ssl/certs/vmg-utf-foreman-000.pem

SSL_ Files exists

User saltuser exists (do it need a special linux group?)

==> /etc/foreman-proxy/settings.d/salt.yml

:enabled: https

:autosign_file: /etc/salt/autosign.conf

:salt_command_user: root

Some features require using the Salt API - such as listing

environments

and retrieving state info

:use_api: true

:api_url: https://vmg-utf-salt-master.to3.zone.loc:9191

:api_auth: pam

:api_username: saltuser

:api_password: saltpasswd

Would be nice if anyone can give me a hint or a kick to the right
path

:slight_smile:

– Tom


You received this message because you are subscribed to the Google
Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it,
send

an email to foreman-user...@googlegroups.com <javascript:>.

To post to this group, send email to forema...@googlegroups.com
<javascript:>.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Best Regards,

Stephen Benjamin


You received this message because you are subscribed to the Google
Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to foreman-user...@googlegroups.com <javascript:>.
To post to this group, send email to forema...@googlegroups.com
<javascript:>.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Best Regards,

Stephen Benjamin


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Best Regards,

Stephen Benjamin