Unable to get reports from saltstack into Foreman

Hi Friends,

I am running Salt (salt 2014.1.10 (Hydrogen)) on Centos 7 and I have also
installed Foreman via apache/passenger. There is a minion which can connect
to the salt-master. On the foreman I can see that minion host but there are
no reports associated with that hosts.

foreman.yaml (/etc/salt/foreman.yaml)

:proto: https
:host: openstack-test.newcorp3.com
:port: 443
#:ssl_ca: "/var/lib/puppet/ssl/certs/ca.pem"
:ssl_ca: "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem"
:ssl_cert: "/var/lib/puppet/ssl/certs/openstack-test.newcorp3.com.pem"
:ssl_key: "/var/lib/puppet/ssl/private_keys/openstack-test.newcorp3.com.pem"
:timeout: 10
:salt: /usr/bin/salt
:upload_grains: true
:user: "admin"
:password: "Global"

Configuration for foreman in /etc/salt/master file

master_tops:
ext_nodes: /usr/bin/foreman-node

ext_pillar:

  • puppet: /usr/bin/foreman-node

autosign_file: /etc/salt/autosign.conf

gem list | grep -i salt

foreman_salt (0.0.4)
smart_proxy_salt (0.0.2)

What should I do need to make in foreman or in salt master/minion to enable
reports??

Do let me know if any other information is needed.

Thanks in advance

Ankush

Hi,

··· On Tue, Nov 04, 2014 at 04:42:41AM -0800, ankush grover wrote: > What should I do need to make in foreman or in salt master/minion to enable > reports??

Salt Returners are not implemented at the moment, but AFAIK stbenjam has
something in the works.

Regards

Michael Moll

Reports aren't supported yet, the full list of supported
features is here: https://github.com/theforeman/foreman_salt/wiki#3-features

There's an issue for it here: Bug #7312: Importing Salt reports - Salt - Foreman

Reports are a bit more difficult than what's there so far, Salt has
returners which would be useful except they're completely
unauthenticated so it's not really suitable for Foreman's architecture.
I've got a few ideas about how to handle things but just need to find
some time to do it.

··· On Tue, Nov 04, 2014 at 04:42:41AM -0800, ankush grover wrote: > Hi Friends, > > I am running Salt (salt 2014.1.10 (Hydrogen)) on Centos 7 and I have also > installed Foreman via apache/passenger. There is a minion which can connect > to the salt-master. On the foreman I can see that minion host but there are > no reports associated with that hosts. > > foreman.yaml (/etc/salt/foreman.yaml) > > :proto: https > :host: openstack-test.newcorp3.com > :port: 443 > #:ssl_ca: "/var/lib/puppet/ssl/certs/ca.pem" > :ssl_ca: "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem" > :ssl_cert: "/var/lib/puppet/ssl/certs/openstack-test.newcorp3.com.pem" > :ssl_key: "/var/lib/puppet/ssl/private_keys/openstack-test.newcorp3.com.pem" > :timeout: 10 > :salt: /usr/bin/salt > :upload_grains: true > :user: "admin" > :password: "Global" > > > Configuration for foreman in /etc/salt/master file > > master_tops: > ext_nodes: /usr/bin/foreman-node > > ext_pillar: > - puppet: /usr/bin/foreman-node > > autosign_file: /etc/salt/autosign.conf > > > gem list | grep -i salt > > foreman_salt (0.0.4) > smart_proxy_salt (0.0.2) > > > What should I do need to make in foreman or in salt master/minion to enable > reports?? > > Do let me know if any other information is needed.


Stephen Benjamin


Red Hat GmbH | http://de.redhat.com/ | Sitz: Grasbrunn
Handelsregister: Amtsgericht München, HRB 153243
Geschäftsführer: Charles Cachera, Michael Cunningham,
Michael O’Neill, Charles Peters

>
> > Hi Friends,
> >
> > I am running Salt (salt 2014.1.10 (Hydrogen)) on Centos 7 and I have
> also
> > installed Foreman via apache/passenger. There is a minion which can
> connect
> > to the salt-master. On the foreman I can see that minion host but there
> are
> > no reports associated with that hosts.
> >
> > foreman.yaml (/etc/salt/foreman.yaml)
> >
> > :proto: https
> > :host: openstack-test.newcorp3.com
> > :port: 443
> > #:ssl_ca: "/var/lib/puppet/ssl/certs/ca.pem"
> > :ssl_ca: "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem"
> > :ssl_cert: "/var/lib/puppet/ssl/certs/openstack-test.newcorp3.com.pem"
> > :ssl_key:
> "/var/lib/puppet/ssl/private_keys/openstack-test.newcorp3.com.pem"
> > :timeout: 10
> > :salt: /usr/bin/salt
> > :upload_grains: true
> > :user: "admin"
> > :password: "Global"
> >
> >
> > Configuration for foreman in /etc/salt/master file
> >
> > master_tops:
> > ext_nodes: /usr/bin/foreman-node
> >
> > ext_pillar:
> > - puppet: /usr/bin/foreman-node
> >
> > autosign_file: /etc/salt/autosign.conf
> >
> >
> > gem list | grep -i salt
> >
> > foreman_salt (0.0.4)
> > smart_proxy_salt (0.0.2)
> >
> >
> > What should I do need to make in foreman or in salt master/minion to
> enable
> > reports??
> >
> > Do let me know if any other information is needed.
>
> Reports aren't supported yet, the full list of supported
> features is here:
> https://github.com/theforeman/foreman_salt/wiki#3-features
>
> There's an issue for it here: Bug #7312: Importing Salt reports - Salt - Foreman
>
>
Thanks Stephen. Any tentative date which by when salt reports will be
included in the Foreman??

Reports are a bit more difficult than what's there so far, Salt has

··· On Tuesday, November 4, 2014 11:07:07 PM UTC+5:30, Stephen Benjamin wrote: > On Tue, Nov 04, 2014 at 04:42:41AM -0800, ankush grover wrote: > returners which would be useful except they're completely > unauthenticated so it's not really suitable for Foreman's architecture. > I've got a few ideas about how to handle things but just need to find > some time to do it. > > > > -- > Stephen Benjamin > > ______________________________________________________ > Red Hat GmbH | http://de.redhat.com/ | Sitz: Grasbrunn > Handelsregister: Amtsgericht München, HRB 153243 > Geschäftsführer: Charles Cachera, Michael Cunningham, > Michael O'Neill, Charles Peters > > >

Thanks Stephen for enabling the salt-reports feature into foreman. But
somehow I am not able to see the report of salt-minions on foreman. There
are facts vaules for this particular test host but no report.

gem list | grep -i salt
foreman_salt (1.1.0, 0.0.4)
smart_proxy_salt (1.0.0, 0.0.2)

I am using foreman 1.6.3-1 on Centos7. If I run this command "salt '*'
state.highstate &&
/usr/local/share/gems/gems/smart_proxy_salt-1.0.0/sbin/upload-salt-reports
>> /var/log/foreman-proxy/salt-cron.log" and in the file salt-cron.log
below lines are there.

Unable to upload job - aborting report upload
<!DOCTYPE html>
<html>
<head>
<title>The page you were looking for doesn't exist (404)</title>

What is the issue and how to fix this?? Do let me know if you need any
further information

··· On Wednesday, November 5, 2014 2:49:27 PM UTC+5:30, ankush grover wrote: > > > > On Tuesday, November 4, 2014 11:07:07 PM UTC+5:30, Stephen Benjamin wrote: >> >> On Tue, Nov 04, 2014 at 04:42:41AM -0800, ankush grover wrote: >> > Hi Friends, >> > >> > I am running Salt (salt 2014.1.10 (Hydrogen)) on Centos 7 and I have >> also >> > installed Foreman via apache/passenger. There is a minion which can >> connect >> > to the salt-master. On the foreman I can see that minion host but there >> are >> > no reports associated with that hosts. >> > >> > foreman.yaml (/etc/salt/foreman.yaml) >> > >> > :proto: https >> > :host: openstack-test.newcorp3.com >> > :port: 443 >> > #:ssl_ca: "/var/lib/puppet/ssl/certs/ca.pem" >> > :ssl_ca: "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem" >> > :ssl_cert: "/var/lib/puppet/ssl/certs/openstack-test.newcorp3.com.pem" >> > :ssl_key: >> "/var/lib/puppet/ssl/private_keys/openstack-test.newcorp3.com.pem" >> > :timeout: 10 >> > :salt: /usr/bin/salt >> > :upload_grains: true >> > :user: "admin" >> > :password: "Global" >> > >> > >> > Configuration for foreman in /etc/salt/master file >> > >> > master_tops: >> > ext_nodes: /usr/bin/foreman-node >> > >> > ext_pillar: >> > - puppet: /usr/bin/foreman-node >> > >> > autosign_file: /etc/salt/autosign.conf >> > >> > >> > gem list | grep -i salt >> > >> > foreman_salt (0.0.4) >> > smart_proxy_salt (0.0.2) >> > >> > >> > What should I do need to make in foreman or in salt master/minion to >> enable >> > reports?? >> > >> > Do let me know if any other information is needed. >> >> Reports aren't supported yet, the full list of supported >> features is here: >> https://github.com/theforeman/foreman_salt/wiki#3-features >> >> There's an issue for it here: http://projects.theforeman.org/issues/7312 >> >> > Thanks Stephen. Any tentative date which by when salt reports will be > included in the Foreman?? > > Reports are a bit more difficult than what's there so far, Salt has >> returners which would be useful except they're completely >> unauthenticated so it's not really suitable for Foreman's architecture. >> I've got a few ideas about how to handle things but just need to find >> some time to do it. >> >> >> >> -- >> Stephen Benjamin >> >> ______________________________________________________ >> Red Hat GmbH | http://de.redhat.com/ | Sitz: Grasbrunn >> Handelsregister: Amtsgericht München, HRB 153243 >> Geschäftsführer: Charles Cachera, Michael Cunningham, >> Michael O'Neill, Charles Peters >> >> >>

Logs of foreman/production.log

Started POST "/salt/api/v2/jobs/upload" for 172.31.40.59 at 2014-11-28

ActionController::RoutingError (No route matches [POST]
"/salt/api/v2/jobs/upload"):

/usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/rack/thread_handler_extension.rb:77:in
`process_request'

/usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:140:in
`accept_and_process_next_request'

/usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:108:in
`main_loop'

/usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler.rb:441:in
`block (3 levels) in start_threads'

··· On Friday, November 28, 2014 4:43:21 PM UTC+5:30, ankush grover wrote: > > Thanks Stephen for enabling the salt-reports feature into foreman. But > somehow I am not able to see the report of salt-minions on foreman. There > are facts vaules for this particular test host but no report. > > gem list | grep -i salt > foreman_salt (1.1.0, 0.0.4) > smart_proxy_salt (1.0.0, 0.0.2) > > I am using foreman 1.6.3-1 on Centos7. If I run this command "salt '*' > state.highstate && > /usr/local/share/gems/gems/smart_proxy_salt-1.0.0/sbin/upload-salt-reports > >> /var/log/foreman-proxy/salt-cron.log" and in the file salt-cron.log > below lines are there. > > Unable to upload job - aborting report upload > > > > The page you were looking for doesn't exist (404) > > What is the issue and how to fix this?? Do let me know if you need any > further information > > > On Wednesday, November 5, 2014 2:49:27 PM UTC+5:30, ankush grover wrote: >> >> >> >> On Tuesday, November 4, 2014 11:07:07 PM UTC+5:30, Stephen Benjamin wrote: >>> >>> On Tue, Nov 04, 2014 at 04:42:41AM -0800, ankush grover wrote: >>> > Hi Friends, >>> > >>> > I am running Salt (salt 2014.1.10 (Hydrogen)) on Centos 7 and I have >>> also >>> > installed Foreman via apache/passenger. There is a minion which can >>> connect >>> > to the salt-master. On the foreman I can see that minion host but >>> there are >>> > no reports associated with that hosts. >>> > >>> > foreman.yaml (/etc/salt/foreman.yaml) >>> > >>> > :proto: https >>> > :host: openstack-test.newcorp3.com >>> > :port: 443 >>> > #:ssl_ca: "/var/lib/puppet/ssl/certs/ca.pem" >>> > :ssl_ca: "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem" >>> > :ssl_cert: "/var/lib/puppet/ssl/certs/openstack-test.newcorp3.com.pem" >>> > :ssl_key: >>> "/var/lib/puppet/ssl/private_keys/openstack-test.newcorp3.com.pem" >>> > :timeout: 10 >>> > :salt: /usr/bin/salt >>> > :upload_grains: true >>> > :user: "admin" >>> > :password: "Global" >>> > >>> > >>> > Configuration for foreman in /etc/salt/master file >>> > >>> > master_tops: >>> > ext_nodes: /usr/bin/foreman-node >>> > >>> > ext_pillar: >>> > - puppet: /usr/bin/foreman-node >>> > >>> > autosign_file: /etc/salt/autosign.conf >>> > >>> > >>> > gem list | grep -i salt >>> > >>> > foreman_salt (0.0.4) >>> > smart_proxy_salt (0.0.2) >>> > >>> > >>> > What should I do need to make in foreman or in salt master/minion to >>> enable >>> > reports?? >>> > >>> > Do let me know if any other information is needed. >>> >>> Reports aren't supported yet, the full list of supported >>> features is here: >>> https://github.com/theforeman/foreman_salt/wiki#3-features >>> >>> There's an issue for it here: http://projects.theforeman.org/issues/7312 >>> >>> >> Thanks Stephen. Any tentative date which by when salt reports will be >> included in the Foreman?? >> >> Reports are a bit more difficult than what's there so far, Salt has >>> returners which would be useful except they're completely >>> unauthenticated so it's not really suitable for Foreman's architecture. >>> I've got a few ideas about how to handle things but just need to find >>> some time to do it. >>> >>> >>> >>> -- >>> Stephen Benjamin >>> >>> ______________________________________________________ >>> Red Hat GmbH | http://de.redhat.com/ | Sitz: Grasbrunn >>> Handelsregister: Amtsgericht München, HRB 153243 >>> Geschäftsführer: Charles Cachera, Michael Cunningham, >>> Michael O'Neill, Charles Peters >>> >>> >>>

> From: "ankush grover" <ankushcentos@gmail.com>
> To: foreman-users@googlegroups.com
> Sent: Friday, November 28, 2014 12:13:20 PM
> Subject: Re: [foreman-users] Unable to get reports from saltstack into Foreman
>
> Thanks Stephen for enabling the salt-reports feature into foreman. But
> somehow I am not able to see the report of salt-minions on foreman. There
> are facts vaules for this particular test host but no report.
>
> gem list | grep -i salt
> foreman_salt (1.1.0, 0.0.4)
> smart_proxy_salt (1.0.0, 0.0.2)
>
> I am using foreman 1.6.3-1 on Centos7. If I run this command "salt '*'
> state.highstate &&
> /usr/local/share/gems/gems/smart_proxy_salt-1.0.0/sbin/upload-salt-reports
> >> /var/log/foreman-proxy/salt-cron.log" and in the file salt-cron.log
> below lines are there.

Hi,

Reports need foreman_salt 1.1, and for that, you'll need Foreman 1.7:

Foreman :: Manual

How do you have foreman installed? If it's RPM's, you should install the
plugin RPM packages (not gem install):

Foreman :: Manual

··· ----- Original Message -----

Unable to upload job - aborting report upload

The page you were looking for doesn't exist (404)

What is the issue and how to fix this?? Do let me know if you need any
further information

On Wednesday, November 5, 2014 2:49:27 PM UTC+5:30, ankush grover wrote:

On Tuesday, November 4, 2014 11:07:07 PM UTC+5:30, Stephen Benjamin wrote:

On Tue, Nov 04, 2014 at 04:42:41AM -0800, ankush grover wrote:

Hi Friends,

I am running Salt (salt 2014.1.10 (Hydrogen)) on Centos 7 and I have
also
installed Foreman via apache/passenger. There is a minion which can
connect
to the salt-master. On the foreman I can see that minion host but there
are
no reports associated with that hosts.

foreman.yaml (/etc/salt/foreman.yaml)

:proto: https
:host: openstack-test.newcorp3.com
:port: 443
#:ssl_ca: “/var/lib/puppet/ssl/certs/ca.pem”
:ssl_ca: “/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem”
:ssl_cert: “/var/lib/puppet/ssl/certs/openstack-test.newcorp3.com.pem”
:ssl_key:
"/var/lib/puppet/ssl/private_keys/openstack-test.newcorp3.com.pem"
:timeout: 10
:salt: /usr/bin/salt
:upload_grains: true
:user: “admin”
:password: “Global”

Configuration for foreman in /etc/salt/master file

master_tops:
ext_nodes: /usr/bin/foreman-node

ext_pillar:

  • puppet: /usr/bin/foreman-node

autosign_file: /etc/salt/autosign.conf

gem list | grep -i salt

foreman_salt (0.0.4)
smart_proxy_salt (0.0.2)

What should I do need to make in foreman or in salt master/minion to
enable
reports??

Do let me know if any other information is needed.

Reports aren’t supported yet, the full list of supported
features is here:
https://github.com/theforeman/foreman_salt/wiki#3-features

There’s an issue for it here: Bug #7312: Importing Salt reports - Salt - Foreman

Thanks Stephen. Any tentative date which by when salt reports will be
included in the Foreman??

Reports are a bit more difficult than what’s there so far, Salt has

returners which would be useful except they’re completely
unauthenticated so it’s not really suitable for Foreman’s architecture.
I’ve got a few ideas about how to handle things but just need to find
some time to do it.


Stephen Benjamin


Red Hat GmbH | http://de.redhat.com/ | Sitz: Grasbrunn
Handelsregister: Amtsgericht München, HRB 153243
Geschäftsführer: Charles Cachera, Michael Cunningham,
Michael O’Neill, Charles Peters


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 http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Thanks it works fine on foreman 1.7 .

··· On Saturday, November 29, 2014 8:54:19 AM UTC+5:30, Stephen Benjamin wrote: > > > > ----- Original Message ----- > > From: "ankush grover" <ankush...@gmail.com > > > To: forema...@googlegroups.com > > Sent: Friday, November 28, 2014 12:13:20 PM > > Subject: Re: [foreman-users] Unable to get reports from saltstack into > Foreman > > > > Thanks Stephen for enabling the salt-reports feature into foreman. But > > somehow I am not able to see the report of salt-minions on foreman. > There > > are facts vaules for this particular test host but no report. > > > > gem list | grep -i salt > > foreman_salt (1.1.0, 0.0.4) > > smart_proxy_salt (1.0.0, 0.0.2) > > > > I am using foreman 1.6.3-1 on Centos7. If I run this command "salt '*' > > state.highstate && > > > /usr/local/share/gems/gems/smart_proxy_salt-1.0.0/sbin/upload-salt-reports > > >> /var/log/foreman-proxy/salt-cron.log" and in the file salt-cron.log > > below lines are there. > > Hi, > > Reports need foreman_salt 1.1, and for that, you'll need Foreman 1.7: > > http://theforeman.org/manuals/1.7/index.html#3.6Upgrade > > How do you have foreman installed? If it's RPM's, you should install the > plugin RPM packages (not gem install): > > http://theforeman.org/manuals/1.7/index.html#6.1InstallaPlugin > > > > > Unable to upload job - aborting report upload > > > > > > > > The page you were looking for doesn't exist (404) > > > > What is the issue and how to fix this?? Do let me know if you need any > > further information > > > > > > On Wednesday, November 5, 2014 2:49:27 PM UTC+5:30, ankush grover wrote: > > > > > > > > > > > > On Tuesday, November 4, 2014 11:07:07 PM UTC+5:30, Stephen Benjamin > wrote: > > >> > > >> On Tue, Nov 04, 2014 at 04:42:41AM -0800, ankush grover wrote: > > >> > Hi Friends, > > >> > > > >> > I am running Salt (salt 2014.1.10 (Hydrogen)) on Centos 7 and I > have > > >> also > > >> > installed Foreman via apache/passenger. There is a minion which can > > >> connect > > >> > to the salt-master. On the foreman I can see that minion host but > there > > >> are > > >> > no reports associated with that hosts. > > >> > > > >> > foreman.yaml (/etc/salt/foreman.yaml) > > >> > > > >> > :proto: https > > >> > :host: openstack-test.newcorp3.com > > >> > :port: 443 > > >> > #:ssl_ca: "/var/lib/puppet/ssl/certs/ca.pem" > > >> > :ssl_ca: "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem" > > >> > :ssl_cert: > "/var/lib/puppet/ssl/certs/openstack-test.newcorp3.com.pem" > > >> > :ssl_key: > > >> "/var/lib/puppet/ssl/private_keys/openstack-test.newcorp3.com.pem" > > >> > :timeout: 10 > > >> > :salt: /usr/bin/salt > > >> > :upload_grains: true > > >> > :user: "admin" > > >> > :password: "Global" > > >> > > > >> > > > >> > Configuration for foreman in /etc/salt/master file > > >> > > > >> > master_tops: > > >> > ext_nodes: /usr/bin/foreman-node > > >> > > > >> > ext_pillar: > > >> > - puppet: /usr/bin/foreman-node > > >> > > > >> > autosign_file: /etc/salt/autosign.conf > > >> > > > >> > > > >> > gem list | grep -i salt > > >> > > > >> > foreman_salt (0.0.4) > > >> > smart_proxy_salt (0.0.2) > > >> > > > >> > > > >> > What should I do need to make in foreman or in salt master/minion > to > > >> enable > > >> > reports?? > > >> > > > >> > Do let me know if any other information is needed. > > >> > > >> Reports aren't supported yet, the full list of supported > > >> features is here: > > >> https://github.com/theforeman/foreman_salt/wiki#3-features > > >> > > >> There's an issue for it here: > http://projects.theforeman.org/issues/7312 > > >> > > >> > > > Thanks Stephen. Any tentative date which by when salt reports will be > > > included in the Foreman?? > > > > > > Reports are a bit more difficult than what's there so far, Salt has > > >> returners which would be useful except they're completely > > >> unauthenticated so it's not really suitable for Foreman's > architecture. > > >> I've got a few ideas about how to handle things but just need to find > > >> some time to do it. > > >> > > >> > > >> > > >> -- > > >> Stephen Benjamin > > >> > > >> ______________________________________________________ > > >> Red Hat GmbH | http://de.redhat.com/ | Sitz: Grasbrunn > > >> Handelsregister: Amtsgericht München, HRB 153243 > > >> Geschäftsführer: Charles Cachera, Michael Cunningham, > > >> Michael O'Neill, Charles Peters > > >> > > >> > > >> > > > > -- > > 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 http://groups.google.com/group/foreman-users. > > For more options, visit https://groups.google.com/d/optout. > > >