Re: [foreman-users] Re: [Katello] Pulp repos sync on schedule but not showing in katello

2017-08-04 Thread Eric D Helms
Couple of follow up questions to help us:

 1) Are you using custom certificates?
 2) What version of python-requests is on the box? Both from yum and pip's
perspective?

On Fri, Aug 4, 2017 at 9:11 AM, Anthony Chevalet  wrote:

> ps: Initially it was working fine, I suspect it stopped working since I've
> created a proxy content.
>
> 2017-08-04 12:58 GMT+02:00 Anthony Chevalet :
>
>> Hi Eric,
>>
>> When syncing on schedule, there is no task in Foreman. I can see the
>> tasks only for manual sync.
>>
>> In both cases (on schedule or manual) the post sync occurs but seems to
>> fail:
>>
>> Aug  4 10:45:16 p-infra-katello pulp[1045]: celery.worker.strategy:INFO:
>> Received task: pulp.server.async.tasks._queue
>> _reserved_task[86c84b8d-f592-49e0-901e-855267ffb428]
>> Aug  4 10:45:16 p-infra-katello pulp[1198]: celery.worker.job:INFO: Task
>> pulp.server.managers.repo.sync.sync[244bbfe1-b12a-4a5a-b757-3693d1b1d953]
>> succeeded in 15.983295023s: > at 0xd71dd10>
>> Aug  4 10:45:16 p-infra-katello pulp[1198]: celery.worker.strategy:INFO:
>> Received task: pulp.server.managers.repo.publ
>> ish.publish[1a6279a3-925e-4c45-9fc8-5117e9aa0bf7]
>> Aug  4 10:45:16 p-infra-katello pulp[1198]: celery.worker.strategy:INFO:
>> Received task: pulp.server.async.tasks._release_resource[9df9a54e-b18c-
>> 4b31-9696-d9990481cc1f]
>> Aug  4 10:45:16 p-infra-katello celery[1198]: Exception in thread
>> Thread-184:
>> Aug  4 10:45:16 p-infra-katello celery[1198]: Traceback (most recent call
>> last):
>> Aug  4 10:45:16 p-infra-katello celery[1198]: File
>> "/usr/lib64/python2.7/threading.py", line 811, in __bootstrap_inner
>> Aug  4 10:45:16 p-infra-katello celery[1198]: self.run()
>> Aug  4 10:45:16 p-infra-katello celery[1198]: File
>> "/usr/lib64/python2.7/threading.py", line 764, in run
>> Aug  4 10:45:16 p-infra-katello celery[1198]: self.__target(*self.__args,
>> **self.__kwargs)
>> Aug  4 10:45:16 p-infra-katello celery[1198]: File
>> "/usr/lib/python2.7/site-packages/pulp/server/event/http.py", line 58,
>> in _send_post
>> Aug  4 10:45:16 p-infra-katello celery[1198]: response = post(url,
>> data=json_body, auth=auth, headers={'Content-Type': 'application/json'})
>> Aug  4 10:45:16 p-infra-katello celery[1198]: File
>> "/usr/lib/python2.7/site-packages/requests/api.py", line 112, in post
>> Aug  4 10:45:16 p-infra-katello celery[1198]: return request('post', url,
>> data=data, json=json, **kwargs)
>> Aug  4 10:45:16 p-infra-katello celery[1198]: File
>> "/usr/lib/python2.7/site-packages/requests/api.py", line 58, in request
>> Aug  4 10:45:16 p-infra-katello celery[1198]: return
>> session.request(method=method, url=url, **kwargs)
>> Aug  4 10:45:16 p-infra-katello celery[1198]: File
>> "/usr/lib/python2.7/site-packages/requests/sessions.py", line 502, in
>> request
>> Aug  4 10:45:16 p-infra-katello celery[1198]: resp = self.send(prep,
>> **send_kwargs)
>> Aug  4 10:45:16 p-infra-katello celery[1198]: File
>> "/usr/lib/python2.7/site-packages/requests/sessions.py", line 612, in
>> send
>> Aug  4 10:45:16 p-infra-katello celery[1198]: r = adapter.send(request,
>> **kwargs)
>> Aug  4 10:45:16 p-infra-katello celery[1198]: File
>> "/usr/lib/python2.7/site-packages/requests/adapters.py", line 504, in
>> send
>> Aug  4 10:45:16 p-infra-katello celery[1198]: raise ConnectionError(e,
>> request=request)
>> Aug  4 10:45:16 p-infra-katello celery[1198]: ConnectionError:
>> HTTPSConnectionPool(host='p-infra-katello.ks.net', port=443): Max
>> retries exceeded with url: /katello/api/v2/repositories/s
>> ync_complete?token=Byitjkvw92TpyWBHS2cdmHvbwMneMktQ (Caused by
>> SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify
>> failed (_ssl.c:579)'),))
>>
>> Even with this error, manual sync correctly updates the status.
>>
>> If I run it manually:
>> $ curl -X POST -u admin -H Content-Type:application/json
>> https://p-infra-katello.ks.net/katello/api/v2/repositories/
>> sync_complete?token=Byitjkvw92TpyWBHS2cdmHvbwMneMktQ
>> Enter host password for user 'admin':
>> {"displayMessage":"undefined method `[]' for
>> nil:NilClass","errors":["undefined method `[]' for nil:NilClass"]}
>>
>>
>>
>>
>>
>> 2017-08-03 20:01 GMT+02:00 Eric D Helms :
>>
>>> I'll shed a little light on what should be happening. When the sync plan
>>> kicks off, it kicks off async by Pulp. The system configures Pulp to have
>>> an http notifier so that when Pulp finished it notifies Katello which
>>> triggers a sync task to index and update new content t for the repositories.
>>>
>>> The most obvious thing to check is if you see tasks that result from
>>> this and if you see API hits to Katello for the sync notification URL. You
>>> can find this in /etc/foreman/plugins/katello.yaml.
>>>
>>> We need to figure out if Pulp is hitting Katello and the errors like
>>> there or if Pulp is not configured to http notify.
>>>
>>> On Aug 3, 2017 9:13 AM, "Anthony Chevalet" 

[foreman-users] Re: How to Syn Jenkins Repo

2017-08-04 Thread Anthony Chevalet
I had the same problem but finally I was able to sync it with those 
settings:

Content Type:   yum
Checksum Type:  sha256
Mirror on Sync: yes
URL:https://pkg.jenkins-ci.org/redhat-stable/
Publish Via HTTP:   yes
Download Policy:immediate




Le vendredi 28 juillet 2017 09:46:57 UTC+2, Lars a écrit :
>
> Sorry to respond to such an old thread but was there anyone able to 
> resolve this?
> I'm hitting the same error 
>
> On Friday, December 26, 2014 at 7:19:10 AM UTC+1, David Somers-Harris 
> wrote:
>>
>> Hello,
>>
>> I'm trying to sync the Jenkins Repo but I'm getting errors. I noticed 
>> that repodata returns 403 but you can see repodata/repomd.xml if you hit it 
>> directly.
>>
>> Repository URL: http://pkg.jenkins-ci.org/redhat/
>> repomd.xml: http://pkg.jenkins-ci.org/redhat/repodata/repomd.xml
>> Jenkins Ticket when they granted access to repomd.xml: 
>> https://issues.jenkins-ci.org/browse/INFRA-153
>>
>> However, Foreman refuses to sync this repository still (syncing fails and 
>> Repo Discovery returns nothing). Is there something which Foreman needs 
>> which the Jenkins repo above isn't providing? Basically I want to figure 
>> out whether Foreman needs to be fixed of the Jenkins repo needs to be fixed.
>>
>> Here is the info on my Foreman system
>>
>>- Version
>>   - 1.6.3
>>- Installed Packages
>>   - candlepin-0.9.29-1.el7.noarch
>>   - candlepin-common-1.0.7-1.el7.noarch
>>   - candlepin-selinux-0.9.29-1.el7.noarch
>>   - candlepin-tomcat-0.9.29-1.el7.noarch
>>   - elasticsearch-0.90.10-7.el7.noarch
>>   - foreman00.sandbox.local-qpid-broker-1.0-1.noarch
>>   - foreman00.sandbox.local-qpid-client-cert-1.0-1.noarch
>>   - katello-2.0.0-0.el7.noarch
>>   - katello-certs-tools-2.0.1-1.el7.noarch
>>   - katello-default-ca-1.0-1.noarch
>>   - katello-installer-2.0.2-1.el7.noarch
>>   - katello-repos-2.0.2-1.el7.noarch
>>   - katello-server-ca-1.0-1.noarch
>>   - pulp-admin-client-2.4.0-1.el7.noarch
>>   - pulp-katello-0.3-3.el7.noarch
>>   - pulp-nodes-common-2.4.0-1.el7.noarch
>>   - pulp-nodes-parent-2.4.0-1.el7.noarch
>>   - pulp-puppet-plugins-2.4.0-1.el7.noarch
>>   - pulp-puppet-tools-2.4.0-1.el7.noarch
>>   - pulp-rpm-plugins-2.4.0-1.el7.noarch
>>   - pulp-selinux-2.4.0-1.el7.noarch
>>   - pulp-server-2.4.0-1.el7.noarch
>>   - python-gofer-qpid-1.3.0-1.el7.noarch
>>   - python-isodate-0.5.0-4.pulp.el7.noarch
>>   - python-kombu-3.0.15-10.pulp.el7.noarch
>>   - python-pulp-bindings-2.4.0-1.el7.noarch
>>   - python-pulp-client-lib-2.4.0-1.el7.noarch
>>   - python-pulp-common-2.4.0-1.el7.noarch
>>   - python-pulp-puppet-common-2.4.0-1.el7.noarch
>>   - python-pulp-rpm-common-2.4.0-1.el7.noarch
>>   - python-qpid-0.28-4.el7.noarch
>>   - python-qpid-common-0.28-4.el7.noarch
>>   - python-qpid-qmf-0.24-21.el7.x86_64
>>   - qpid-cpp-client-0.28-5.el7.x86_64
>>   - qpid-cpp-server-0.28-5.el7.x86_64
>>   - qpid-cpp-server-store-0.28-5.el7.x86_64
>>   - qpid-proton-c-0.7-3.el7.x86_64
>>   - qpid-qmf-0.24-21.el7.x86_64
>>   - qpid-tools-0.28-5.el7.x86_64
>>   - ruby193-rubygem-katello-2.0.0-6.el7.noarch
>>   - rubygem-hammer_cli_katello-0.0.6-1.el7.noarch
>>   - rubygem-smart_proxy_pulp-1.0.1-1.el7.noarch
>>
>> Thanks,
>> David
>>
>

-- 
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+unsubscr...@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.


Re: [foreman-users] Re: [Katello] Pulp repos sync on schedule but not showing in katello

2017-08-04 Thread Anthony Chevalet
ps: Initially it was working fine, I suspect it stopped working since I've
created a proxy content.

2017-08-04 12:58 GMT+02:00 Anthony Chevalet :

> Hi Eric,
>
> When syncing on schedule, there is no task in Foreman. I can see the tasks
> only for manual sync.
>
> In both cases (on schedule or manual) the post sync occurs but seems to
> fail:
>
> Aug  4 10:45:16 p-infra-katello pulp[1045]: celery.worker.strategy:INFO:
> Received task: pulp.server.async.tasks._queue_reserved_task[86c84b8d-
> f592-49e0-901e-855267ffb428]
> Aug  4 10:45:16 p-infra-katello pulp[1198]: celery.worker.job:INFO: Task
> pulp.server.managers.repo.sync.sync[244bbfe1-b12a-4a5a-b757-3693d1b1d953]
> succeeded in 15.983295023s:  0xd71dd10>
> Aug  4 10:45:16 p-infra-katello pulp[1198]: celery.worker.strategy:INFO:
> Received task: pulp.server.managers.repo.publish.publish[1a6279a3-925e-
> 4c45-9fc8-5117e9aa0bf7]
> Aug  4 10:45:16 p-infra-katello pulp[1198]: celery.worker.strategy:INFO:
> Received task: pulp.server.async.tasks._release_resource[9df9a54e-
> b18c-4b31-9696-d9990481cc1f]
> Aug  4 10:45:16 p-infra-katello celery[1198]: Exception in thread
> Thread-184:
> Aug  4 10:45:16 p-infra-katello celery[1198]: Traceback (most recent call
> last):
> Aug  4 10:45:16 p-infra-katello celery[1198]: File 
> "/usr/lib64/python2.7/threading.py",
> line 811, in __bootstrap_inner
> Aug  4 10:45:16 p-infra-katello celery[1198]: self.run()
> Aug  4 10:45:16 p-infra-katello celery[1198]: File 
> "/usr/lib64/python2.7/threading.py",
> line 764, in run
> Aug  4 10:45:16 p-infra-katello celery[1198]: self.__target(*self.__args,
> **self.__kwargs)
> Aug  4 10:45:16 p-infra-katello celery[1198]: File
> "/usr/lib/python2.7/site-packages/pulp/server/event/http.py", line 58, in
> _send_post
> Aug  4 10:45:16 p-infra-katello celery[1198]: response = post(url,
> data=json_body, auth=auth, headers={'Content-Type': 'application/json'})
> Aug  4 10:45:16 p-infra-katello celery[1198]: File
> "/usr/lib/python2.7/site-packages/requests/api.py", line 112, in post
> Aug  4 10:45:16 p-infra-katello celery[1198]: return request('post', url,
> data=data, json=json, **kwargs)
> Aug  4 10:45:16 p-infra-katello celery[1198]: File
> "/usr/lib/python2.7/site-packages/requests/api.py", line 58, in request
> Aug  4 10:45:16 p-infra-katello celery[1198]: return
> session.request(method=method, url=url, **kwargs)
> Aug  4 10:45:16 p-infra-katello celery[1198]: File
> "/usr/lib/python2.7/site-packages/requests/sessions.py", line 502, in
> request
> Aug  4 10:45:16 p-infra-katello celery[1198]: resp = self.send(prep,
> **send_kwargs)
> Aug  4 10:45:16 p-infra-katello celery[1198]: File
> "/usr/lib/python2.7/site-packages/requests/sessions.py", line 612, in send
> Aug  4 10:45:16 p-infra-katello celery[1198]: r = adapter.send(request,
> **kwargs)
> Aug  4 10:45:16 p-infra-katello celery[1198]: File
> "/usr/lib/python2.7/site-packages/requests/adapters.py", line 504, in send
> Aug  4 10:45:16 p-infra-katello celery[1198]: raise ConnectionError(e,
> request=request)
> Aug  4 10:45:16 p-infra-katello celery[1198]: ConnectionError:
> HTTPSConnectionPool(host='p-infra-katello.ks.net', port=443): Max retries
> exceeded with url: /katello/api/v2/repositories/sync_complete?token=
> Byitjkvw92TpyWBHS2cdmHvbwMneMktQ (Caused by SSLError(SSLError(1, u'[SSL:
> CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)'),))
>
> Even with this error, manual sync correctly updates the status.
>
> If I run it manually:
> $ curl -X POST -u admin -H Content-Type:application/json
> https://p-infra-katello.ks.net/katello/api/v2/repositories/sync_complete?
> token=Byitjkvw92TpyWBHS2cdmHvbwMneMktQ
> Enter host password for user 'admin':
> {"displayMessage":"undefined method `[]' for 
> nil:NilClass","errors":["undefined
> method `[]' for nil:NilClass"]}
>
>
>
>
>
> 2017-08-03 20:01 GMT+02:00 Eric D Helms :
>
>> I'll shed a little light on what should be happening. When the sync plan
>> kicks off, it kicks off async by Pulp. The system configures Pulp to have
>> an http notifier so that when Pulp finished it notifies Katello which
>> triggers a sync task to index and update new content t for the repositories.
>>
>> The most obvious thing to check is if you see tasks that result from this
>> and if you see API hits to Katello for the sync notification URL. You can
>> find this in /etc/foreman/plugins/katello.yaml.
>>
>> We need to figure out if Pulp is hitting Katello and the errors like
>> there or if Pulp is not configured to http notify.
>>
>> On Aug 3, 2017 9:13 AM, "Anthony Chevalet" 
>> wrote:
>>
>>> Hello,
>>>
>>> Any news on this? Bug report?
>>> I have the same behavior for ages (katello 3.0?), and it's still there
>>> with foreman 1.15.2/Katello 3.4.3.
>>>
>>> Thanks,
>>> Anthony
>>>
>>> Le vendredi 31 mars 2017 22:41:46 UTC+2, Alan Evans a écrit :

 Hello,

 I am using Katello 3.3/Foreman 

Re: [foreman-users] Foreman API asking to Get hosts list with only names in result

2017-08-04 Thread Christopher Duryee
Patrice,

In 1.16 and newer you can add "thin=true" as a parameter to the end of the
host request, which will give you a JSON with just the name and ID of each
host.

On Thu, Aug 3, 2017 at 1:32 PM, Patrice Gagnon  wrote:

> Hi guys,
>
> I'm brand new user of Foreman API and I'm I trying to use the api "hosts"
> to get a list of all my hosts on foreman. The result show me all the
> information about host and I just want the name of the host in my result.
> Is it possible to return only the name field for each host?
>
> Thank you for your help,
> Patrice
>
> --
> 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+unsubscr...@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.
>

-- 
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+unsubscr...@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.


Re: [foreman-users] Re: [Katello] Pulp repos sync on schedule but not showing in katello

2017-08-04 Thread Anthony Chevalet
Hi Eric,

When syncing on schedule, there is no task in Foreman. I can see the tasks
only for manual sync.

In both cases (on schedule or manual) the post sync occurs but seems to
fail:

Aug  4 10:45:16 p-infra-katello pulp[1045]: celery.worker.strategy:INFO:
Received task:
pulp.server.async.tasks._queue_reserved_task[86c84b8d-f592-49e0-901e-855267ffb428]
Aug  4 10:45:16 p-infra-katello pulp[1198]: celery.worker.job:INFO: Task
pulp.server.managers.repo.sync.sync[244bbfe1-b12a-4a5a-b757-3693d1b1d953]
succeeded in 15.983295023s: 
Aug  4 10:45:16 p-infra-katello pulp[1198]: celery.worker.strategy:INFO:
Received task:
pulp.server.managers.repo.publish.publish[1a6279a3-925e-4c45-9fc8-5117e9aa0bf7]
Aug  4 10:45:16 p-infra-katello pulp[1198]: celery.worker.strategy:INFO:
Received task:
pulp.server.async.tasks._release_resource[9df9a54e-b18c-4b31-9696-d9990481cc1f]
Aug  4 10:45:16 p-infra-katello celery[1198]: Exception in thread
Thread-184:
Aug  4 10:45:16 p-infra-katello celery[1198]: Traceback (most recent call
last):
Aug  4 10:45:16 p-infra-katello celery[1198]: File
"/usr/lib64/python2.7/threading.py", line 811, in __bootstrap_inner
Aug  4 10:45:16 p-infra-katello celery[1198]: self.run()
Aug  4 10:45:16 p-infra-katello celery[1198]: File
"/usr/lib64/python2.7/threading.py", line 764, in run
Aug  4 10:45:16 p-infra-katello celery[1198]: self.__target(*self.__args,
**self.__kwargs)
Aug  4 10:45:16 p-infra-katello celery[1198]: File
"/usr/lib/python2.7/site-packages/pulp/server/event/http.py", line 58, in
_send_post
Aug  4 10:45:16 p-infra-katello celery[1198]: response = post(url,
data=json_body, auth=auth, headers={'Content-Type': 'application/json'})
Aug  4 10:45:16 p-infra-katello celery[1198]: File
"/usr/lib/python2.7/site-packages/requests/api.py", line 112, in post
Aug  4 10:45:16 p-infra-katello celery[1198]: return request('post', url,
data=data, json=json, **kwargs)
Aug  4 10:45:16 p-infra-katello celery[1198]: File
"/usr/lib/python2.7/site-packages/requests/api.py", line 58, in request
Aug  4 10:45:16 p-infra-katello celery[1198]: return
session.request(method=method, url=url, **kwargs)
Aug  4 10:45:16 p-infra-katello celery[1198]: File
"/usr/lib/python2.7/site-packages/requests/sessions.py", line 502, in
request
Aug  4 10:45:16 p-infra-katello celery[1198]: resp = self.send(prep,
**send_kwargs)
Aug  4 10:45:16 p-infra-katello celery[1198]: File
"/usr/lib/python2.7/site-packages/requests/sessions.py", line 612, in send
Aug  4 10:45:16 p-infra-katello celery[1198]: r = adapter.send(request,
**kwargs)
Aug  4 10:45:16 p-infra-katello celery[1198]: File
"/usr/lib/python2.7/site-packages/requests/adapters.py", line 504, in send
Aug  4 10:45:16 p-infra-katello celery[1198]: raise ConnectionError(e,
request=request)
Aug  4 10:45:16 p-infra-katello celery[1198]: ConnectionError:
HTTPSConnectionPool(host='p-infra-katello.ks.net', port=443): Max retries
exceeded with url:
/katello/api/v2/repositories/sync_complete?token=Byitjkvw92TpyWBHS2cdmHvbwMneMktQ
(Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed (_ssl.c:579)'),))

Even with this error, manual sync correctly updates the status.

If I run it manually:
$ curl -X POST -u admin -H Content-Type:application/json
https://p-infra-katello.ks.net/katello/api/v2/repositories/sync_complete?token=Byitjkvw92TpyWBHS2cdmHvbwMneMktQ
Enter host password for user 'admin':
{"displayMessage":"undefined method `[]' for
nil:NilClass","errors":["undefined method `[]' for nil:NilClass"]}





2017-08-03 20:01 GMT+02:00 Eric D Helms :

> I'll shed a little light on what should be happening. When the sync plan
> kicks off, it kicks off async by Pulp. The system configures Pulp to have
> an http notifier so that when Pulp finished it notifies Katello which
> triggers a sync task to index and update new content t for the repositories.
>
> The most obvious thing to check is if you see tasks that result from this
> and if you see API hits to Katello for the sync notification URL. You can
> find this in /etc/foreman/plugins/katello.yaml.
>
> We need to figure out if Pulp is hitting Katello and the errors like there
> or if Pulp is not configured to http notify.
>
> On Aug 3, 2017 9:13 AM, "Anthony Chevalet" 
> wrote:
>
>> Hello,
>>
>> Any news on this? Bug report?
>> I have the same behavior for ages (katello 3.0?), and it's still there
>> with foreman 1.15.2/Katello 3.4.3.
>>
>> Thanks,
>> Anthony
>>
>> Le vendredi 31 mars 2017 22:41:46 UTC+2, Alan Evans a écrit :
>>>
>>> Hello,
>>>
>>> I am using Katello 3.3/Foreman 1.14.2.  I have a fresh install and I
>>> created new Sync plan, product and repos with hammer.  At first I didn't
>>> think the jobs were running at all, but I read a thread here that got me
>>> looking at things and I found that pulp is in fact syncing on schedule but
>>> the results aren't appearing in the katello UI/Hammer CLI.  I suspect there
>>> is some kind of post sync 

[foreman-users] Foreman API asking to Get hosts list with only names in result

2017-08-04 Thread Patrice Gagnon
Hi guys,

I'm brand new user of Foreman API and I'm I trying to use the api "hosts" 
to get a list of all my hosts on foreman. The result show me all the 
information about host and I just want the name of the host in my result. 
Is it possible to return only the name field for each host?

Thank you for your help,
Patrice

-- 
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+unsubscr...@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.


Re: [foreman-users] foreman + ansible integration not working properly + no facts+ not able to execute role in dashboard

2017-08-04 Thread Marek Hulán
Hello,

for the facts upload I think I found the fix. You will need to modify the 
callback script, try applying this patch [1]. It seems that in some cases, 
there's no setup module, so we also check ansible_facts being present.

[1] https://github.com/theforeman/foreman_ansible/pull/96/files

Hope this helps

--
Marek

On čtvrtek 3. srpna 2017 11:19:40 CEST shyam sundar Keshari wrote:
> Hi friends:
> 
> I am trying to integrate Foreman with Ansible but not able to make it
> working :
> 
> Version details :
> 
> Ansible :  -->>  ansible 2.3.1.0
>   config file = /etc/ansible/ansible.cfg
>   configured module search path = Default w/o overrides
>   python version = 2.7.5 (default, Nov  6 2016, 00:28:07) [GCC 4.8.5
> 20150623 (Red Hat 4.8.5-11)]
> 
> foreman dashboard version : 1.15.2
> 
> I have followed the official URL to integrate Foreman with Ansible .
> 
> But i am not able to make it work .
> 
> Issue :
> 
> 1.>NO facts coming
> 2.>When i set password in Foreman for root user in Ansible tab ,and then
> able to execute playbook in role .
> 
> 
> Kindly update what are more changes I need to make at ansible and foreman
> end to make it work .
> 
> If anyone done this ,it will be grt you like to share it .
> 
> Thanks in Advance :


-- 
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+unsubscr...@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.