When I try to run "upload-salt-reports" I get the following error message:
Unable to upload job - aborting report upload
{
"error": {"message":"Access denied", "details":"Missing one of the
required permissions: create_reports"}
}
I've followed the setup guide up to this point, but I'm still getting this
message. Does anyone have any insight into how I can get this working?
Looking at the script, it looks like it's trying to post data to
'/salt/api/v2/jobs/upload' on port 80.
Zach
I'm not sure if I can be much help, but some things to check
-
/etc/foreman-proxy/settings.d/salt.yml
api url/auth type (pam, ldap?)/username/password are all setup? AND
"use_api" is set to true?
-
in /etc/salt/master
setup the user?
e.g.
external_auth:
ldap:
zsaltuser:
- .*
- '@wheel'
- '@runner'
- '@jobs'
If using ldap (like the above example) is it configured and working? i.e.
can you run "salt -a ldap '*' test.ping" from the commandline?
and setup the cherrypy salt-api?
Salt-API configuration
rest_cherrypy:
port: 9000
ssl_crt: /var/lib/puppet/ssl/certs/wellkatellodev.niwa.local.pem
ssl_key: /var/lib/puppet/ssl/private_keys/wellkatellodev.niwa.local.pem
(note, your cert locations might be different)
···
On Friday, April 15, 2016 at 5:34:38 AM UTC+12, Zach McNeilly wrote:
>
> When I try to run "upload-salt-reports" I get the following error message:
>
> Unable to upload job - aborting report upload
> {
> "error": {"message":"Access denied", "details":"Missing one of the
> required permissions: create_reports"}
> }
>
> I've followed the setup guide up to this point, but I'm still getting this
> message. Does anyone have any insight into how I can get this working?
> Looking at the script, it looks like it's trying to post data to
> '/salt/api/v2/jobs/upload' on port 80.
>
> Zach
>
In Settings > Auth try to set 'Require SSL for smart proxies' to false and
check
···
четверг, 14 апреля 2016 г., 19:34:38 UTC+2 пользователь Zach McNeilly написал:
>
> When I try to run "upload-salt-reports" I get the following error message:
>
> Unable to upload job - aborting report upload
> {
> "error": {"message":"Access denied", "details":"Missing one of the
> required permissions: create_reports"}
> }
>
> I've followed the setup guide up to this point, but I'm still getting this
> message. Does anyone have any insight into how I can get this working?
> Looking at the script, it looks like it's trying to post data to
> '/salt/api/v2/jobs/upload' on port 80.
>
> Zach
>
Also try to set to false 'Restrict registered smart proxies'
···
четверг, 14 апреля 2016 г., 19:34:38 UTC+2 пользователь Zach McNeilly написал:
>
> When I try to run "upload-salt-reports" I get the following error message:
>
> Unable to upload job - aborting report upload
> {
> "error": {"message":"Access denied", "details":"Missing one of the
> required permissions: create_reports"}
> }
>
> I've followed the setup guide up to this point, but I'm still getting this
> message. Does anyone have any insight into how I can get this working?
> Looking at the script, it looks like it's trying to post data to
> '/salt/api/v2/jobs/upload' on port 80.
>
> Zach
>