>
>
>
I've investigated more and I found the following error in the
production.log of foreman :
2015-05-20 09:58:03 [I] Processing by
Katello::Api::V2::RepositoriesController#upload_content as HTML
2015-05-20 09:58:03 [I] Parameters:
{"content"=>[#<ActionDispatch::Http::UploadedFile:0x0000000e8dfcf8
@original_filename="sample_module-0.0.1.tar.gz",
@content_type="application/gzip", @headers="Content-Disposition: form-data;
name="content[]";
filename="sample_module-0.0.1.tar.gz"\r\nContent-Type:
application/gzip\r\n",
@tempfile=#<File:/tmp/RackMultipart20150520-13070-15b7csh>>],
"authenticity_token"=>"XXXXXXX=", "api_version"=>"v2", "id"=>"33"}
[ERROR 2015-05-20 09:58:04 pulp_rest #20296] RestClient.put "
https://foremanhost/pulp/api/v2/content/uploads/4907f75e-57d2-4e8a-81d6-d231f11f6207/0//",
2479 byte(s) length, "Accept"=>"/; q=0.5, application/xml",
"Accept-Encoding"=>"gzip, deflate", "Authorization"=>"OAuth
oauth_body_hash="XXXXXXX", oauth_consumer_key="katello",
oauth_nonce="XXXXXXX", oauth_signature="XXXXXXX",
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1432108684",
oauth_version="1.0"", "Content-Length"=>"2479",
"accept"=>"application/json", "content_type"=>"application/json",
"pulp-user"=>"user-7881e1e5"
> \n# => 200 OK | application/json 24 bytes
>
[ERROR 2015-05-20 09:58:05 pulp_rest #20296] RestClient.delete "
https://foremanhost/pulp/api/v2/content/uploads/4907f75e-57d2-4e8a-81d6-d231f11f6207//",
"Accept"=>"/; q=0.5, application/xml", "Accept-Encoding"=>"gzip,
deflate", "Authorization"=>"OAuth oauth_consumer_key="katello",
oauth_nonce="XXXXXXX", oauth_signature="XXXXXXX",
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1432108685",
oauth_version="1.0"", "accept"=>"application/json",
"content_type"=>"application/json", "pulp-user"=>"user-7881e1e5"
> \n# => 200 OK | application/json 24 bytes
>
2015-05-20 09:58:05 [I] Completed 200 OK in 2498ms (Views: 0.4ms |
ActiveRecord: 29.3ms)
2015-05-20 09:58:11 [I] Processing by
Katello::Api::V2::RepositoriesController#show as JSON
2015-05-20 09:58:11 [I] Parameters: {"organization_id"=>"4",
"api_version"=>"v2", "id"=>"33"}
The HTTP return code for pulp is 200 OK so it should be right. In
/var/log/messages, pulp has no error :
May 20 09:58:04 dlpmasterpoca2001 pulp: celery.worker.strategy:INFO:
Received task:
pulp.server.async.tasks._queue_reserved_task[9ad47446-accc-4c7f-bd9c-bca0ee264691]
May 20 09:58:04 dlpmasterpoca2001 pulp: celery.worker.job:INFO: Task
pulp.server.async.tasks._queue_reserved_task[9ad47446-accc-4c7f-bd9c-bca0ee264691]
succeeded in 0.0470762171317s: None
May 20 09:58:04 dlpmasterpoca2001 pulp: celery.worker.strategy:INFO:
Received task:
pulp.server.managers.content.upload.import_uploaded_unit[b0a2bc09-b0a8-44b9-ae12-75eb4cbd0d10]
May 20 09:58:04 dlpmasterpoca2001 pulp: celery.worker.strategy:INFO:
Received task:
pulp.server.async.tasks._release_resource[901ed2fd-ab4a-4db4-bf9c-4e2b61d33a76]
May 20 09:58:04 dlpmasterpoca2001 pulp: celery.worker.job:INFO: Task
pulp.server.managers.content.upload.import_uploaded_unit[b0a2bc09-b0a8-44b9-ae12-75eb4cbd0d10]
succeeded in 0.0471452909987s: {'details': {}, 'success_flag': True,
'summary': ''}
May 20 09:58:04 dlpmasterpoca2001 pulp: celery.worker.job:INFO: Task
pulp.server.async.tasks._release_resource[901ed2fd-ab4a-4db4-bf9c-4e2b61d33a76]
succeeded in 0.0123673789203s: None
And when I use the command 'pulp-admin puppet repo modules', I can see the
module I uploaded.
In foreman there is a task 'Actions::Katello::Repository::UploadFiles'
which is stopped and has succeded.
I'm using foreman nightly rpms and may be there's a mismatch between the
pulp version and foreman. I'm using pulp 2.6.0-1, is it correct ?
Thanks,
Sylvain Avril