Hi, all,
I just have brand new katello 2.2 installed, one of the problem was I have
some RPMs that need to be uploaded into one of my products' repo, it showed
that it was uploaded successfully, I can find the the package under
/var/lib/pulp/content/rpm, but the number of packages in that repo doesn't
change, for example my current centos update repo has 1553 packages and
after uploaded, it still showed 1553 and I also tested to published a new
version of content view, the total package number was still the same. here
is what the log shows:
2015-06-02 18:35:37 [I] Processing by
Katello::Api::V2::RepositoriesController#upload_content as HTML
2015-06-02 18:35:37 [I] Parameters:
{"content"=>[#<ActionDispatch::Http::UploadedFile:0x007f08f449fa80
@original_filename="glibc-headers-2.12-1.132.el6.x86_64.rpm",
@content_type="application/x-rpm", @headers="Content-Disposition:
form-data; name="content[]";
filename="glibc-headers-2.12-1.132.el6.x86_64.rpm"\r\nContent-Type:
application/x-rpm\r\n",
@tempfile=#<File:/tmp/RackMultipart20150602-16541-bhdw97>>],
"authenticity_token"=>"TfLvoYW8NzNynUmq4B2/AeI9XR7RY5k/Bz0f0IEEWqI=",
"api_version"=>"v2", "id"=>"2"}
[ERROR 2015-06-02 18:35:37 pulp_rest #5180] RestClient.put
"https://foreman.anim.odw.com.cn/pulp/api/v2/content/uploads/dc307fc9-9d54-4b12-ae11-7d30867a8e04/0//",
622792 byte(s) length, "Accept"=>"/; q=0.5, application/xml",
"Accept-Encoding"=>"gzip, deflate", "Authorization"=>"OAuth
oauth_body_hash="2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D",
oauth_consumer_key="katello",
oauth_nonce="80l3JyjTji3JycJenMB4yNteSiI7JC6GHiMIQ3enHQ",
oauth_signature="jU6lbq0149MMTcORPQDfwKwP16Q%3D",
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1433241337",
oauth_version="1.0"", "Content-Length"=>"622792",
"accept"=>"application/json", "content_type"=>"application/json",
"pulp-user"=>"sxin-2b0811b6"
> \n# => 200 OK | application/json 24 bytes
>
[ERROR 2015-06-02 18:35:38 pulp_rest #5180] RestClient.delete
"https://foreman.anim.odw.com.cn/pulp/api/v2/content/uploads/dc307fc9-9d54-4b12-ae11-7d30867a8e04//",
"Accept"=>"/; q=0.5, application/xml", "Accept-Encoding"=>"gzip,
deflate", "Authorization"=>"OAuth oauth_consumer_key="katello",
oauth_nonce="QTyZ3phFQWORKukasVPl6qToOGhpRLS0VbdG2kRRzWE",
oauth_signature="ZOxD4pYyGk2p99cEhzbgJx%2BOrM4%3D",
oauth_signature_method="HMAC-SHA1", oauth_timestamp="1433241338",
oauth_version="1.0"", "accept"=>"application/json",
"content_type"=>"application/json", "pulp-user"=>"sxin-2b0811b6"
> \n# => 200 OK | application/json 24 bytes
Can anyone please confirm if this is a bug or something wrong with the
configurations?