Re: [foreman-users] Re: Katello 3.0.2 API content upload not updating info

2016-08-10 Thread Dylan Baars
Hi Eric,

if I try and upload using hammer, I get this output

[root@wellkatello ~]# hammer repository upload-content --id 1453 --path 
/root/tomcat8-8.5.4-1.noarch.rpm
Failed to upload file 'tomcat8-8.5.4-1.noarch.rpm' to repository. Please 
check the file and try again.

it seems to spawn the upload task twice, the second one failing immediately 
because it conflicts with the first task. I've attached the output from 
production.log

Dylan



On Wednesday, August 10, 2016 at 10:54:09 PM UTC+12, Eric Helms wrote:
>
> Can you try an upload with hammer? Do you see the same behavior?
>
>>
>>

-- 
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.
2016-08-11 06:35:54 [app] [I] Started POST 
"/katello/api/repositories/1453/content_uploads" for 192.168.59.247 at 
2016-08-11 06:35:54 +1200
2016-08-11 06:35:54 [app] [I] Processing by 
Katello::Api::V2::ContentUploadsController#create as JSON
2016-08-11 06:35:54 [app] [I]   Parameters: {"api_version"=>"v2", 
"repository_id"=>"1453", "content_upload"=>{}}
2016-08-11 06:35:54 [app] [I] Authorized user admin(Admin User)
2016-08-11 06:35:54 [app] [I] Completed 200 OK in 90ms (Views: 0.6ms | 
ActiveRecord: 8.6ms)
2016-08-11 06:35:54 [app] [I] Started GET 
"/node/niwa-1007520.niwa.local?format=yml" for 192.168.59.247 at 2016-08-11 
06:35:54 +1200
2016-08-11 06:35:54 [app] [I] Processing by HostsController#externalNodes as YML
2016-08-11 06:35:54 [app] [I]   Parameters: {"name"=>"niwa-1007520.niwa.local"}
2016-08-11 06:35:54 [app] [I]   Rendered text template (0.1ms)
2016-08-11 06:35:54 [app] [I] Completed 200 OK in 322ms (Views: 2.2ms | 
ActiveRecord: 33.5ms)
2016-08-11 06:35:55 [app] [I] Started PUT 
"/katello/api/repositories/1453/content_uploads/ac9b457c-731a-40df-b5aa-f59b0b887eb0"
 for 192.168.59.247 at 2016-08-11 06:35:55 +1200
2016-08-11 06:35:55 [app] [I] Processing by 
Katello::Api::V2::ContentUploadsController#update as JSON
2016-08-11 06:35:55 [app] [I]   Parameters: {"offset"=>"0", 
"content"=>"[FILTERED]", "api_version"=>"v2", "repository_id"=>"1453", 
"id"=>"ac9b457c-731a-40df-b5aa-f59b0b887eb0"}
2016-08-11 06:35:55 [app] [I] Authorized user admin(Admin User)
2016-08-11 06:35:55 [app] [I]   Rendered text template (0.0ms)
2016-08-11 06:35:55 [app] [I] Completed 200 OK in 229ms (Views: 1.2ms | 
ActiveRecord: 36.4ms)
2016-08-11 06:35:56 [app] [I] Started PUT 
"/katello/api/repositories/1453/content_uploads/ac9b457c-731a-40df-b5aa-f59b0b887eb0"
 for 192.168.59.247 at 2016-08-11 06:35:56 +1200
2016-08-11 06:35:56 [app] [I] Processing by 
Katello::Api::V2::ContentUploadsController#update as JSON
2016-08-11 06:35:56 [app] [I]   Parameters: {"offset"=>"400", 
"content"=>"[FILTERED]", "api_version"=>"v2", "repository_id"=>"1453", 
"id"=>"ac9b457c-731a-40df-b5aa-f59b0b887eb0"}
2016-08-11 06:35:56 [app] [I] Authorized user admin(Admin User)
2016-08-11 06:35:56 [app] [I]   Rendered text template (0.1ms)
2016-08-11 06:35:56 [app] [I] Completed 200 OK in 137ms (Views: 2.3ms | 
ActiveRecord: 13.8ms)
2016-08-11 06:35:57 [app] [I] Started PUT 
"/katello/api/repositories/1453/import_uploads" for 192.168.59.247 at 
2016-08-11 06:35:57 +1200
2016-08-11 06:35:57 [app] [I] Processing by 
Katello::Api::V2::RepositoriesController#import_uploads as JSON
2016-08-11 06:35:57 [app] [I]   Parameters: 
{"upload_ids"=>["ac9b457c-731a-40df-b5aa-f59b0b887eb0"], "api_version"=>"v2", 
"id"=>"1453", "repository"=>{}}
2016-08-11 06:35:57 [app] [I] Authorized user admin(Admin User)
2016-08-11 06:35:57 [app] [I] Started POST "/api/hosts/facts" for 
192.168.59.247 at 2016-08-11 06:35:57 +1200
2016-08-11 06:35:57 [app] [I] Processing by Api::V2::HostsController#facts as 
JSON
2016-08-11 06:35:57 [app] [I]   Parameters: {"facts"=>"[FILTERED]", 
"name"=>"niwa-1007520.niwa.local", "certname"=>"niwa-1007520.niwa.local", 
"apiv"=>"v2", :host=>{"name"=>"niwa-1007520.niwa.local", 
"certname"=>"niwa-1007520.niwa.local"}}
2016-08-11 06:35:58 [app] [I] Import facts for 'niwa-1007520.niwa.local' 
completed. Added: 0, Updated: 5, Deleted 0 facts
2016-08-11 06:35:58 [app] [I] Completed 201 Created in 1222ms (Views: 10.1ms | 
ActiveRecord: 384.9ms)
2016-08-11 06:35:58 [app] [I] Started GET 
"/node/niwa-1007520.niwa.local?format=yml" for 192.168.59.247 at 2016-08-11 
06:35:58 +1200
2016-08-11 06:35:58 [app] [I] Processing by HostsController#externalNodes as YML
2016-08-11 06:35:58 [app] [I]   Parameters: {"name"=>"niwa-1007520.niwa.local"}
2016-08-11 06:35:59 [app] [I]   Rendered text template (0.1ms)
2016-08-11 06:35:59 [app] [I] Completed 200 OK in 576ms (Views: 2.3ms | 
ActiveRecord: 45.5ms)
2016-08-11 06:36:00 [app] [I] Started POST 

[foreman-users] Adding existing puppet agents to foreman 1.12

2016-08-10 Thread Haim L
I've just completed installing foreman in my existing puppet environment 
where I have a dedicated foreman server and a separate puppet master 
(running smart-proxy).
I need assistance finding a procedure to add existing puppet 1.52 agents 
(as hosts) to foreman 1.12 .  I found a few articles but none seem to work.

Thanks

-- 
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: Foreman-Ansible -- hosts never appear

2016-08-10 Thread Daniel Lobato Garcia
On 08/10, 'KaneK' via Foreman users wrote:
>
> >
> > Hi Daniel,
> >
>
> Do you have any plans to release an Ansible 2.x version of your plugin or
> an updated callback.py?

I have not tried anything yet, but I have opened
http://projects.theforeman.org/issues/16048 to track it

Have you tried to add a method 'v2_playbook_on_stats' to your callback,
that does the same thing as 'playbook_on_stats'?

>
> Regards
>
> Kane.
>
> --
> 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.


--
Daniel Lobato Garcia

@dLobatog
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get=0x7A92D6DD38D6DE30
Keybase: https://keybase.io/elobato

-- 
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.


signature.asc
Description: PGP signature


Re: [foreman-users] Unable to get environments from Puppet. Foreman 1.12.1 Puppet 3.8.7 After upgrade.

2016-08-10 Thread Dominic Cleal
On 10/08/16 15:11, Michael Hurn wrote:
> After upgrading from Foreman 1.11.1 & Puppet 3.8.3.
> 
> When I try to import classes I get an error popup:
> 
> 
> Error: ERF12-2749 [ProxyAPI::ProxyException]: Unable to get environments
> from Puppet ([RestClient::NotAcceptable]: 406 Not Acceptable) for proxy
> https://vm-puppet.test.local:8443/puppet
> 
> when hitting the Import from PuppetProxy button on the
> page: https://vm-puppet.test.local/puppetclasses
> 
> __ 
> 
> In the /var/log/foreman-proxy/proxy.log I get:
> 
> D, [2016-08-10T13:26:10.898951 #15759] DEBUG -- : accept: 7.28.47.204:35287
> 
> D, [2016-08-10T13:26:10.910504 #15759] DEBUG -- : Rack::Handler::WEBrick
> is invoked.
> 
> E, [2016-08-10T13:26:11.054200 #15759] ERROR -- : Failed to list puppet
> environments: Failed to query Puppet find environments v3 API: 404 Not
> Found: Could not find environment 'puppet'

Using Puppet 3.8, the smart proxy shouldn't be using the v3 API, it
should on v2. Check the value of :puppet_version in
/etc/foreman-proxy/settings.d/puppet.yml matches your Puppet master version.

Logs from the smart proxy startup should also show what value the
puppet_version is configured to.

-- 
Dominic Cleal
domi...@cleal.org

-- 
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.


[foreman-users] Unable to get environments from Puppet. Foreman 1.12.1 Puppet 3.8.7 After upgrade.

2016-08-10 Thread Michael Hurn


After upgrading from Foreman 1.11.1 & Puppet 3.8.3.

When I try to import classes I get an error popup:


Error: ERF12-2749 [ProxyAPI::ProxyException]: Unable to get environments from 
Puppet ([RestClient::NotAcceptable]: 406 Not Acceptable) for proxy 
https://vm-puppet.test.local:8443/puppet

when hitting the Import from PuppetProxy button on the page: 
https://vm-puppet.test.local/puppetclasses

 

In the /var/log/foreman-proxy/proxy.log I get:

D, [2016-08-10T13:26:10.898951 #15759] DEBUG -- : accept: 7.28.47.204:35287

D, [2016-08-10T13:26:10.910504 #15759] DEBUG -- : Rack::Handler::WEBrick is 
invoked.

E, [2016-08-10T13:26:11.054200 #15759] ERROR -- : Failed to list puppet 
environments: Failed to query Puppet find environments v3 API: 404 Not 
Found: Could not find environment 'puppet'

D, [2016-08-10T13:26:11.054344 #15759] DEBUG -- : Failed to list puppet 
environments: Failed to query Puppet find environments v3 API: 404 Not 
Found: Could not find environment 'puppet'

I, [2016-08-10T13:26:11.054800 #15759]  INFO -- : 7.28.47.204 - - 
[10/Aug/2016 13:26:11] "GET /environments HTTP/1.1" 406 135 0.1426


D, [2016-08-10T13:26:11.097846 #15759] DEBUG -- : close: 7.28.47.204:35287

-- 
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.


[foreman-users] Re: Foreman-Ansible -- hosts never appear

2016-08-10 Thread 'KaneK' via Foreman users

>
> Hi Daniel,
>

Do you have any plans to release an Ansible 2.x version of your plugin or 
an updated callback.py? 

Regards

Kane.

-- 
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 3.0.2 API content upload not updating info

2016-08-10 Thread Eric D Helms
Can you try an upload with hammer? Do you see the same behavior?

On Aug 10, 2016 5:15 AM, "Edgars M."  wrote:

> Hi
>
> I have the same issue. To workaround this I had to create local repo on
> Katello server with createrepo and then sync it in Katello with
> file:///path/to/repo URL. Then it worked.
>
> Edgars
>
> trešdiena, 2016. gada 10. augusts 07:39:05 UTC+2, Dylan Baars rakstīja:
>>
>> I am attempting to use the Katello API to upload content into a
>> repository - we are using Jenkins to package an RPM and upload it into
>> Katello for deployment. This worked fine with the 3.0 RCs, however in 3.0.2
>> although everything seems to complete successfully, I am not seeing the
>> package in the GUI -
>>
>> I followed the "Uploading content to the satellite server" example from
>> https://access.redhat.com/documentation/en-US/Red_Hat_
>> Satellite/6.1/html/API_Guide/curl-examples.html
>>
>> The steps and output I do are below (the output is from Jenkins)
>>
>> + byte=500
>> + offset=0
>> + /usr/bin/rm uploadlist.000 uploadlist.001
>> + split --bytes 500 --numeric-suffixes --suffix-length=3
>> tomcat8-8.5.4-1.noarch.rpm uploadlist.
>> + shopt -s nullglob
>> + array=(uploadlist.*)
>> ++ curl -s -H Accept:application/json,version=2 -H
>> Content-Type:application/json -X POST -u jenkins:removed -k -d '{}'
>> https://wellkatello.niwa.local/katello/api/repositories/
>> 1406/content_uploads
>> + RESPONSE='{"upload_id":"4376d1f2-a9f0-451d-b888-3b53e496581c
>> ","_href":"/pulp/api/v2/content/uploads/4376d1f2-a9f0-
>> 451d-b888-3b53e496581c/"}'
>> ++ echo '{"upload_id":"4376d1f2-a9f0-451d-b888-3b53e496581c","_href"
>> :"/pulp/api/v2/content/uploads/4376d1f2-a9f0-451d-b888-3b53e496581c/"}'
>> ++ sed 's/"//g'
>> ++ grep -e '.*"upload_id":\s*"\([a-zA-Z0-9-]\)*"' -o
>> ++ sed 's/{"upload_id"://'
>> + REQUEST_ID=4376d1f2-a9f0-451d-b888-3b53e496581c
>> + echo 'Request ID [4376d1f2-a9f0-451d-b888-3b53e496581c] created'
>> Request ID [4376d1f2-a9f0-451d-b888-3b53e496581c] created
>> + for file in '"${array[@]}"'
>> + echo 'Offset is 0'
>> Offset is 0
>> + echo 'Uploading chunk uploadlist.000'
>> Uploading chunk uploadlist.000
>> + curl -H Accept:application/json,version=2 -H
>> Content-Type:multipart/form-data -X PUT -u jenkins:removed -k
>> --data-urlencode content@uploadlist.000 --data-urlencode offset=0
>> https://wellkatello.niwa.local/katello/api/repositories/
>> 1406/content_uploads/4376d1f2-a9f0-451d-b888-3b53e496581c
>>   % Total% Received % Xferd  Average Speed   TimeTime Time
>>  Current
>>  Dload  Upload   Total   SpentLeft
>>  Speed
>>
>>   0 00 00 0  0  0 --:--:-- --:--:-- --:--:--
>> 0
>> 100 11.8M0 0  100 11.8M  0  10.1M  0:00:01  0:00:01 --:--:--
>> 10.1M
>> 100 11.8M0 0  100 11.8M  0  5597k  0:00:02  0:00:02 --:--:--
>> 5598k
>> 100 11.8M0 0  100 11.8M  0  3827k  0:00:03  0:00:03 --:--:--
>> 3828k
>> 100 11.8M0 0  100 11.8M  0  2907k  0:00:04  0:00:04 --:--:--
>> 2908k
>> 100 11.8M0 1  100 11.8M  0  2745k  0:00:04  0:00:04 --:--:--
>> 2745k
>>  + offset=500
>> + for file in '"${array[@]}"'
>> + echo 'Offset is 500'
>> Offset is 500
>> + echo 'Uploading chunk uploadlist.001'
>> Uploading chunk uploadlist.001
>> + curl -H Accept:application/json,version=2 -H
>> Content-Type:multipart/form-data -X PUT -u jenkins:removed -k
>> --data-urlencode content@uploadlist.001 --data-urlencode offset=500
>> https://wellkatello.niwa.local/katello/api/repositories/
>> 1406/content_uploads/4376d1f2-a9f0-451d-b888-3b53e496581c
>>   % Total% Received % Xferd  Average Speed   TimeTime Time
>>  Current
>>  Dload  Upload   Total   SpentLeft
>>  Speed
>>
>>   0 00 00 0  0  0 --:--:-- --:--:-- --:--:--
>> 0
>> 100 6590k0 0  100 6590k  0  5647k  0:00:01  0:00:01 --:--:--
>> 5652k
>> 100 6590k0 0  100 6590k  0  3039k  0:00:02  0:00:02 --:--:--
>> 3041k
>> 100 6590k0 1  100 6590k  0  2643k  0:00:02  0:00:02 --:--:--
>> 2643k
>>  + offset=1000
>> + echo 'Importing upload into repository'
>> Importing upload into repository
>> + curl -H Accept:application/json,version=2 -H
>> Content-Type:application/json -X PUT -u jenkins:removed -k -d
>> '{"upload_ids":["4376d1f2-a9f0-451d-b888-3b53e496581c"]}'
>> https://wellkatello.niwa.local/katello/api/repositories/
>> 1406/import_uploads
>>   % Total% Received % Xferd  Average Speed   TimeTime Time
>>  Current
>>  Dload  Upload   Total   SpentLeft
>>  Speed
>>
>>   0 00 00 0  0  0 --:--:-- --:--:-- --:--:--
>> 0
>> 100550 0  10055  0 44  0:00:01  0:00:01 --:--:--
>>44
>> 100550 0  10055  0 24  0:00:02  0:00:02 --:--:--
>>24
>>  98560 0  10055 

Re: [foreman-users] Ansible Plugin OS Error

2016-08-10 Thread Punyasloka Parida
Thank you Ivan. This seems to be the solution for it and I have done the 
same but still getting the same error. This is how the file permission in 
my box looks like

drwxrwxrwt. 2 root root 40 Aug 10 05:15 /dev/shm


On Wednesday, August 10, 2016 at 12:24:46 PM UTC+5:30, Ivan Necas wrote:
>
> Hi, 
>
> Seems like issue with permissions, described for example here 
> http://stackoverflow.com/a/2009505/457560 
>
> -- Ivan 
>
> On Wed, Aug 10, 2016 at 7:39 AM, Punyasloka Parida 
>  wrote: 
> > Hello All, 
> > 
> > I have integrated Ansible Plugin with foreman and it's working fine. 
> > Whenever i run a playbook, I could see reports getting generated in 
> foreman. 
> > However, when I create roles under /etc/ansible/roles and enable the 
> same 
> > for the particular host - i get the message that the roles are being run 
> in 
> > the background but when i check /var/log/foreman/production.log, i 
> recieve 
> > the following error : 
> > 
> > Traceback (most recent call last): 
> >   File "/usr/bin/ansible-playbook", line 42, in  
> > debug_lock = Lock() 
> >   File "/usr/lib64/python2.7/multiprocessing/__init__.py", line 176, in 
> Lock 
> > return Lock() 
> >   File "/usr/lib64/python2.7/multiprocessing/synchronize.py", line 147, 
> in 
> > __init__ 
> > SemLock.__init__(self, SEMAPHORE, 1, 1) 
> >   File "/usr/lib64/python2.7/multiprocessing/synchronize.py", line 75, 
> in 
> > __init__ 
> > sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue) 
> > OSError: [Errno 38] Function not implemented 
> > 
> > Thanks, 
> > Punyasloka Parida 
> > 
> > -- 
> > 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. 
>

-- 
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.


[foreman-users] Re: Katello 3.0.2 API content upload not updating info

2016-08-10 Thread Edgars M.
Hi

I have the same issue. To workaround this I had to create local repo on 
Katello server with createrepo and then sync it in Katello with 
file:///path/to/repo URL. Then it worked.

Edgars

trešdiena, 2016. gada 10. augusts 07:39:05 UTC+2, Dylan Baars rakstīja:
>
> I am attempting to use the Katello API to upload content into a repository 
> - we are using Jenkins to package an RPM and upload it into Katello for 
> deployment. This worked fine with the 3.0 RCs, however in 3.0.2 although 
> everything seems to complete successfully, I am not seeing the package in 
> the GUI - 
>
> I followed the "Uploading content to the satellite server" example from 
> https://access.redhat.com/documentation/en-US/Red_Hat_Satellite/6.1/html/API_Guide/curl-examples.html
>
> The steps and output I do are below (the output is from Jenkins)
>
> + byte=500
> + offset=0
> + /usr/bin/rm uploadlist.000 uploadlist.001
> + split --bytes 500 --numeric-suffixes --suffix-length=3 
> tomcat8-8.5.4-1.noarch.rpm uploadlist.
> + shopt -s nullglob
> + array=(uploadlist.*)
> ++ curl -s -H Accept:application/json,version=2 -H 
> Content-Type:application/json -X POST -u jenkins:removed -k -d '{}' 
> https://wellkatello.niwa.local/katello/api/repositories/1406/content_uploads
> + 
> RESPONSE='{"upload_id":"4376d1f2-a9f0-451d-b888-3b53e496581c","_href":"/pulp/api/v2/content/uploads/4376d1f2-a9f0-451d-b888-3b53e496581c/"}'
> ++ echo 
> '{"upload_id":"4376d1f2-a9f0-451d-b888-3b53e496581c","_href":"/pulp/api/v2/content/uploads/4376d1f2-a9f0-451d-b888-3b53e496581c/"}'
> ++ sed 's/"//g'
> ++ grep -e '.*"upload_id":\s*"\([a-zA-Z0-9-]\)*"' -o
> ++ sed 's/{"upload_id"://'
> + REQUEST_ID=4376d1f2-a9f0-451d-b888-3b53e496581c
> + echo 'Request ID [4376d1f2-a9f0-451d-b888-3b53e496581c] created'
> Request ID [4376d1f2-a9f0-451d-b888-3b53e496581c] created
> + for file in '"${array[@]}"'
> + echo 'Offset is 0'
> Offset is 0
> + echo 'Uploading chunk uploadlist.000'
> Uploading chunk uploadlist.000
> + curl -H Accept:application/json,version=2 -H 
> Content-Type:multipart/form-data -X PUT -u jenkins:removed -k 
> --data-urlencode content@uploadlist.000 --data-urlencode offset=0 
> https://wellkatello.niwa.local/katello/api/repositories/1406/content_uploads/4376d1f2-a9f0-451d-b888-3b53e496581c
>   % Total% Received % Xferd  Average Speed   TimeTime Time 
>  Current
>  Dload  Upload   Total   SpentLeft 
>  Speed
>
>   0 00 00 0  0  0 --:--:-- --:--:-- --:--:--   
>   0
> 100 11.8M0 0  100 11.8M  0  10.1M  0:00:01  0:00:01 --:--:-- 
> 10.1M
> 100 11.8M0 0  100 11.8M  0  5597k  0:00:02  0:00:02 --:--:-- 
> 5598k
> 100 11.8M0 0  100 11.8M  0  3827k  0:00:03  0:00:03 --:--:-- 
> 3828k
> 100 11.8M0 0  100 11.8M  0  2907k  0:00:04  0:00:04 --:--:-- 
> 2908k
> 100 11.8M0 1  100 11.8M  0  2745k  0:00:04  0:00:04 --:--:-- 
> 2745k
>  + offset=500
> + for file in '"${array[@]}"'
> + echo 'Offset is 500'
> Offset is 500
> + echo 'Uploading chunk uploadlist.001'
> Uploading chunk uploadlist.001
> + curl -H Accept:application/json,version=2 -H 
> Content-Type:multipart/form-data -X PUT -u jenkins:removed -k 
> --data-urlencode content@uploadlist.001 --data-urlencode offset=500 
> https://wellkatello.niwa.local/katello/api/repositories/1406/content_uploads/4376d1f2-a9f0-451d-b888-3b53e496581c
>   % Total% Received % Xferd  Average Speed   TimeTime Time 
>  Current
>  Dload  Upload   Total   SpentLeft 
>  Speed
>
>   0 00 00 0  0  0 --:--:-- --:--:-- --:--:--   
>   0
> 100 6590k0 0  100 6590k  0  5647k  0:00:01  0:00:01 --:--:-- 
> 5652k
> 100 6590k0 0  100 6590k  0  3039k  0:00:02  0:00:02 --:--:-- 
> 3041k
> 100 6590k0 1  100 6590k  0  2643k  0:00:02  0:00:02 --:--:-- 
> 2643k
>  + offset=1000
> + echo 'Importing upload into repository'
> Importing upload into repository
> + curl -H Accept:application/json,version=2 -H 
> Content-Type:application/json -X PUT -u jenkins:removed -k -d 
> '{"upload_ids":["4376d1f2-a9f0-451d-b888-3b53e496581c"]}' 
> https://wellkatello.niwa.local/katello/api/repositories/1406/import_uploads
>   % Total% Received % Xferd  Average Speed   TimeTime Time 
>  Current
>  Dload  Upload   Total   SpentLeft 
>  Speed
>
>   0 00 00 0  0  0 --:--:-- --:--:-- --:--:--   
>   0
> 100550 0  10055  0 44  0:00:01  0:00:01 --:--:--   
>  44
> 100550 0  10055  0 24  0:00:02  0:00:02 --:--:--   
>  24
>  98560 0  10055  0 22  0:00:02  0:00:02 --:--:--   
>  22
> 100560 1  10055  0 22  0:00:02  0:00:02 --:--:--   
>  22
>  + echo 'Delete the upload request'
> Delete the upload request
> + curl -H 

[foreman-users] Ansible Plugin OS Error

2016-08-10 Thread Punyasloka Parida
Hello All,

I have integrated Ansible Plugin with foreman and it's working fine. 
Whenever i run a playbook, I could see reports getting generated in 
foreman. However, when I create roles under /etc/ansible/roles and enable 
the same for the particular host - i get the message that the roles are 
being run in the background but when i check 
/var/log/foreman/production.log, i recieve the following error :










*Traceback (most recent call last):  File "/usr/bin/ansible-playbook", line 
42, in debug_lock = Lock()  File 
"/usr/lib64/python2.7/multiprocessing/__init__.py", line 176, in Lock
return Lock()  File "/usr/lib64/python2.7/multiprocessing/synchronize.py", 
line 147, in __init__SemLock.__init__(self, SEMAPHORE, 1, 1)  File 
"/usr/lib64/python2.7/multiprocessing/synchronize.py", line 75, in 
__init__sl = self._semlock = _multiprocessing.SemLock(kind, value, 
maxvalue)OSError: [Errno 38] Function not implemented*

Thanks,
Punyasloka Parida

-- 
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.