Upload rpm showed success but actually failed in katello 2.2

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=&quot;content[]&quot;;
filename=&quot;glibc-headers-2.12-1.132.el6.x86_64.rpm&quot;\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=&quot;2jmj7l5rSw0yVb%2FvlWAYkK%2FYBwk%3D&quot;,
oauth_consumer_key=&quot;katello&quot;,
oauth_nonce=&quot;80l3JyjTji3JycJenMB4yNteSiI7JC6GHiMIQ3enHQ&quot;,
oauth_signature=&quot;jU6lbq0149MMTcORPQDfwKwP16Q%3D&quot;,
oauth_signature_method=&quot;HMAC-SHA1&quot;, oauth_timestamp=&quot;1433241337&quot;,
oauth_version=&quot;1.0&quot;", "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=&quot;katello&quot;,
oauth_nonce=&quot;QTyZ3phFQWORKukasVPl6qToOGhpRLS0VbdG2kRRzWE&quot;,
oauth_signature=&quot;ZOxD4pYyGk2p99cEhzbgJx%2BOrM4%3D&quot;,
oauth_signature_method=&quot;HMAC-SHA1&quot;, oauth_timestamp=&quot;1433241338&quot;,
oauth_version=&quot;1.0&quot;", "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?

find the same case here:
https://groups.google.com/forum/#!searchin/foreman-users/upload$20rpm$20packages$20failed/foreman-users/phuI9bscfew/ncYo-GIdLigJ

I also tested upload file through hammer:
> repository upload-content --id 7 --organization "odw" --path
/home/sxin/katello/katello_agent/real --product centos6
Successfully uploaded file 'gofer-1.3.0-1.el6sat.noarch.rpm'.
Successfully uploaded file 'katello-agent-1.5.3-5.el6sat.noarch.rpm'.
Successfully uploaded file 'libgcc-4.4.7-4.el6.i686.rpm'.
Successfully uploaded file 'libstdc+±4.4.7-4.el6.i686.rpm'.
Successfully uploaded file 'nss-softokn-freebl-3.14.3-12.el6_5.i686.rpm'.
Successfully uploaded file 'nss-softokn-freebl-3.14.3-12.el6_5.x86_64.rpm'.
Successfully uploaded file 'nss-softokn-freebl-3.14.3-9.el6.x86_64.rpm'.
Successfully uploaded file
'pulp-puppet-tools-2.4.1-0.7.beta.el6sat.noarch.rpm'.
Successfully uploaded file
'pulp-rpm-handlers-2.4.1-0.7.beta.el6sat.noarch.rpm'.
Successfully uploaded file 'python-gofer-1.3.0-1.el6sat.noarch.rpm'.
Successfully uploaded file 'python-gofer-qpid-1.3.0-1.el6sat.noarch.rpm'.
Successfully uploaded file 'python-isodate-0.5.0-1.pulp.el6sat.noarch.rpm'.
Successfully uploaded file
'python-pulp-agent-lib-2.4.1-0.7.beta.el6sat.noarch.rpm'.
Successfully uploaded file
'python-pulp-common-2.4.1-0.7.beta.el6sat.noarch.rpm'.
Successfully uploaded file
'python-pulp-rpm-common-2.4.1-0.7.beta.el6sat.noarch.rpm'.
Successfully uploaded file 'python-qpid-0.22-14.el6sat.noarch.rpm'.
Successfully uploaded file 'python-saslwrapper-0.22-5.el6sat.x86_64.rpm'.
Successfully uploaded file 'saslwrapper-0.14-1.el6.i686.rpm'.
Successfully uploaded file 'saslwrapper-0.22-5.el6sat.x86_64.rpm'.

the file was actually uploaded:
foreman ODW [/var/lib/pulp/content] 336# find ./ -type f -mmin -60 -exec ls
-l {} ;
-rw-r–r-- 1 apache apache 151076 Jun 2 18:50
./rpm/nss-softokn-freebl/3.14.3/12.el6_5/i686/bd894ff40e4d6ce49c3b586297273095d500dbac1e12c6bf8de5ac3cc8c137c8/nss-softokn-freebl-3.14.3-12.el6_5.i686.rpm
-rw-r–r-- 1 apache apache 161444 Jun 2 18:50
./rpm/nss-softokn-freebl/3.14.3/12.el6_5/x86_64/c9f34cfa6bc44834a1ac06f0330fadeaee3002bb6b011f672ac4885ec3dbfbf0/nss-softokn-freebl-3.14.3-12.el6_5.x86_64.rpm
-rw-r–r-- 1 apache apache 160872 Jun 2 18:51
./rpm/nss-softokn-freebl/3.14.3/9.el6/x86_64/c3ca381c3d23000ea9bba48891ed9821d023273e7aafef392b0448b774d3fcb5/nss-softokn-freebl-3.14.3-9.el6.x86_64.rpm
-rw-r–r-- 1 apache apache 50672 Jun 2 18:51
./rpm/python-gofer-qpid/1.3.0/1.el6sat/noarch/c817922e3375d88ece422f9d38f789152c08968fb6547feb2928577d9029f042/python-gofer-qpid-1.3.0-1.el6sat.noarch.rpm
-rw-r–r-- 1 apache apache 114884 Jun 2 18:50
./rpm/libgcc/4.4.7/4.el6/i686/e93100913beb8e5d065727bbe6cbb179846231cc8d52bcace8626348041952bb/libgcc-4.4.7-4.el6.i686.rpm
-rw-r–r-- 1 apache apache 26308 Jun 2 18:52
./rpm/python-saslwrapper/0.22/5.el6sat/x86_64/6541b7eb64df03917839aa5680d70daa3cd7a5c7bb1bf38f4f4520533b35b299/python-saslwrapper-0.22-5.el6sat.x86_64.rpm
-rw-r–r-- 1 apache apache 74416 Jun 2 18:50
./rpm/gofer/1.3.0/1.el6sat/noarch/de73aa9ca3a7406778bf6df7edd9551506161eac056e665c597b60af66d74821/gofer-1.3.0-1.el6sat.noarch.rpm
-rw-r–r-- 1 apache apache 50428 Jun 2 18:51
./rpm/python-isodate/0.5.0/1.pulp.el6sat/noarch/293311606469ec2a3d5a455e20561e9ed665f792ac18c9d17168ea9ba42c03ad/python-isodate-0.5.0-1.pulp.el6sat.noarch.rpm
-rw-r–r-- 1 apache apache 19968 Jun 2 18:53
./rpm/saslwrapper/0.22/5.el6sat/x86_64/5e22481461add21b940b99ece98916d1ca6e4aed58e4b5b37d25516c721df889/saslwrapper-0.22-5.el6sat.x86_64.rpm
-rw-r–r-- 1 apache apache 19344 Jun 2 18:52
./rpm/saslwrapper/0.14/1.el6/i686/9e0748d71b2c0df1b432002d16cea76d1ad4b22f3583e8d3503924c51e5be4f1/saslwrapper-0.14-1.el6.i686.rpm
-rw-r–r-- 1 apache apache 622792 Jun 2 18:35
./rpm/glibc-headers/2.12/1.132.el6/x86_64/01247ae747bff7b07a8c2fcb0d017a2b1c579c75bbcc353fdbbd2a4a8aa79c5e/glibc-headers-2.12-1.132.el6.x86_64.rpm
-rw-r–r-- 1 apache apache 345508 Jun 2 18:52
./rpm/python-qpid/0.22/14.el6sat/noarch/8d6acc5b19e9cd9749e53bc692e66fe97513b842c02bec2d6a5ab56091ed554c/python-qpid-0.22-14.el6sat.noarch.rpm
-rw-r–r-- 1 apache apache 66680 Jun 2 18:52
./rpm/python-pulp-rpm-common/2.4.1/0.7.beta.el6sat/noarch/cd4175bd60ebf8381f4fca05b154cbd9e4a5b10322ed822abd0e4980f060c200/python-pulp-rpm-common-2.4.1-0.7.beta.el6sat.noarch.rpm
-rw-r–r-- 1 apache apache 116104 Jun 2 18:52
./rpm/python-pulp-common/2.4.1/0.7.beta.el6sat/noarch/589c367052fbf9664a11c0bb888f83a5d7478109bec7a38525a60f1df320f24f/python-pulp-common-2.4.1-0.7.beta.el6sat.noarch.rpm
-rw-r–r-- 1 apache apache 78932 Jun 2 18:52
./rpm/python-pulp-agent-lib/2.4.1/0.7.beta.el6sat/noarch/b0645e167f39493b5897001bef144733b8bc2032aea0cd604934bb640c386e00/python-pulp-agent-lib-2.4.1-0.7.beta.el6sat.noarch.rpm
-rw-r–r-- 1 apache apache 73428 Jun 2 18:51
./rpm/pulp-rpm-handlers/2.4.1/0.7.beta.el6sat/noarch/f12ba3c4b168bbfa16badf0a6e49c9d3d27596b4db84aa581082612608537bfe/pulp-rpm-handlers-2.4.1-0.7.beta.el6sat.noarch.rpm
-rw-r–r-- 1 apache apache 307364 Jun 2 18:50
./rpm/libstdc++/4.4.7/4.el6/i686/05ed3725d71a4c52a8acef8cc345df9f2644c107f2a56988d938dbedc7033e73/libstdc+±4.4.7-4.el6.i686.rpm
-rw-r–r-- 1 apache apache 21932 Jun 2 18:50
./rpm/katello-agent/1.5.3/5.el6sat/noarch/578c049e32c37fe27238a50014b4a2da34f71066ef569349f51e0c6464e30452/katello-agent-1.5.3-5.el6sat.noarch.rpm
-rw-r–r-- 1 apache apache 121124 Jun 2 18:51
./rpm/python-gofer/1.3.0/1.el6sat/noarch/908fc3ba31e8f70afa735967e338bdcd147d26fe07c046316dff09b4ccd86d94/python-gofer-1.3.0-1.el6sat.noarch.rpm
-rw-r–r-- 1 apache apache 33180 Jun 2 18:51
./rpm/pulp-puppet-tools/2.4.1/0.7.beta.el6sat/noarch/1bd2694b2a21512c5a5d8f875e5a622c732b918f91eec2e4513a7b794ff98043/pulp-puppet-tools-2.4.1-0.7.beta.el6sat.noarch.rpm

but the package number was not changed and the log has some error as
follows:
[ERROR 2015-06-02 18:52:58 pulp_rest #16541] RestClient.delete
"https://foreman.anim.odw.com.cn/pulp/api/v2/content/uploads/a47347ab-9f61-41d6-a42c-36287c0db72e//",
"Accept"=>"/; q=0.5, application/xml", "Accept-Encoding"=>"gzip,
deflate", "Authorization"=>"OAuth oauth_consumer_key=&quot;katello&quot;,
oauth_nonce=&quot;mGLpLILy5mONUUwNlBwrKl0dfqgPEvIY6prarp8&quot;,
oauth_signature=&quot;ryelMguj4ZlnXt5GXc6ffaC431w%3D&quot;,
oauth_signature_method=&quot;HMAC-SHA1&quot;, oauth_timestamp=&quot;1433242378&quot;,
oauth_version=&quot;1.0&quot;", "accept"=>"application/json",
"content_type"=>"application/json", "pulp-user"=>"sxin-2b0811b6"

··· > \n# => 200 OK | application/json 24 bytes

On Tuesday, June 2, 2015 at 6:42:51 PM UTC+8, sinux shen wrote:

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?

That error message is a misnomer I believe that can currently happen with
some delete calls to Pulp and the way we process them. As for the package
number not updating, this sounds like a reindexing issue with elastic
search. If you find the upload task on Monitor > Tasks do you see any
errors or warnings?

Eric

··· On Tue, Jun 2, 2015 at 6:58 AM, sinux shen wrote:

find the same case here:

https://groups.google.com/forum/#!searchin/foreman-users/upload$20rpm$20packages$20failed/foreman-users/phuI9bscfew/ncYo-GIdLigJ

I also tested upload file through hammer:

repository upload-content --id 7 --organization “odw” --path
/home/sxin/katello/katello_agent/real --product centos6
Successfully uploaded file ‘gofer-1.3.0-1.el6sat.noarch.rpm’.
Successfully uploaded file ‘katello-agent-1.5.3-5.el6sat.noarch.rpm’.
Successfully uploaded file ‘libgcc-4.4.7-4.el6.i686.rpm’.
Successfully uploaded file ‘libstdc+±4.4.7-4.el6.i686.rpm’.
Successfully uploaded file ‘nss-softokn-freebl-3.14.3-12.el6_5.i686.rpm’.
Successfully uploaded file ‘nss-softokn-freebl-3.14.3-12.el6_5.x86_64.rpm’.
Successfully uploaded file ‘nss-softokn-freebl-3.14.3-9.el6.x86_64.rpm’.
Successfully uploaded file
’pulp-puppet-tools-2.4.1-0.7.beta.el6sat.noarch.rpm’.
Successfully uploaded file
’pulp-rpm-handlers-2.4.1-0.7.beta.el6sat.noarch.rpm’.
Successfully uploaded file ‘python-gofer-1.3.0-1.el6sat.noarch.rpm’.
Successfully uploaded file ‘python-gofer-qpid-1.3.0-1.el6sat.noarch.rpm’.
Successfully uploaded file ‘python-isodate-0.5.0-1.pulp.el6sat.noarch.rpm’.
Successfully uploaded file
’python-pulp-agent-lib-2.4.1-0.7.beta.el6sat.noarch.rpm’.
Successfully uploaded file
’python-pulp-common-2.4.1-0.7.beta.el6sat.noarch.rpm’.
Successfully uploaded file
’python-pulp-rpm-common-2.4.1-0.7.beta.el6sat.noarch.rpm’.
Successfully uploaded file ‘python-qpid-0.22-14.el6sat.noarch.rpm’.
Successfully uploaded file ‘python-saslwrapper-0.22-5.el6sat.x86_64.rpm’.
Successfully uploaded file ‘saslwrapper-0.14-1.el6.i686.rpm’.
Successfully uploaded file ‘saslwrapper-0.22-5.el6sat.x86_64.rpm’.

the file was actually uploaded:
foreman ODW [/var/lib/pulp/content] 336# find ./ -type f -mmin -60 -exec
ls -l {} ;
-rw-r–r-- 1 apache apache 151076 Jun 2 18:50
./rpm/nss-softokn-freebl/3.14.3/12.el6_5/i686/bd894ff40e4d6ce49c3b586297273095d500dbac1e12c6bf8de5ac3cc8c137c8/nss-softokn-freebl-3.14.3-12.el6_5.i686.rpm
-rw-r–r-- 1 apache apache 161444 Jun 2 18:50
./rpm/nss-softokn-freebl/3.14.3/12.el6_5/x86_64/c9f34cfa6bc44834a1ac06f0330fadeaee3002bb6b011f672ac4885ec3dbfbf0/nss-softokn-freebl-3.14.3-12.el6_5.x86_64.rpm
-rw-r–r-- 1 apache apache 160872 Jun 2 18:51
./rpm/nss-softokn-freebl/3.14.3/9.el6/x86_64/c3ca381c3d23000ea9bba48891ed9821d023273e7aafef392b0448b774d3fcb5/nss-softokn-freebl-3.14.3-9.el6.x86_64.rpm
-rw-r–r-- 1 apache apache 50672 Jun 2 18:51
./rpm/python-gofer-qpid/1.3.0/1.el6sat/noarch/c817922e3375d88ece422f9d38f789152c08968fb6547feb2928577d9029f042/python-gofer-qpid-1.3.0-1.el6sat.noarch.rpm
-rw-r–r-- 1 apache apache 114884 Jun 2 18:50
./rpm/libgcc/4.4.7/4.el6/i686/e93100913beb8e5d065727bbe6cbb179846231cc8d52bcace8626348041952bb/libgcc-4.4.7-4.el6.i686.rpm
-rw-r–r-- 1 apache apache 26308 Jun 2 18:52
./rpm/python-saslwrapper/0.22/5.el6sat/x86_64/6541b7eb64df03917839aa5680d70daa3cd7a5c7bb1bf38f4f4520533b35b299/python-saslwrapper-0.22-5.el6sat.x86_64.rpm
-rw-r–r-- 1 apache apache 74416 Jun 2 18:50
./rpm/gofer/1.3.0/1.el6sat/noarch/de73aa9ca3a7406778bf6df7edd9551506161eac056e665c597b60af66d74821/gofer-1.3.0-1.el6sat.noarch.rpm
-rw-r–r-- 1 apache apache 50428 Jun 2 18:51
./rpm/python-isodate/0.5.0/1.pulp.el6sat/noarch/293311606469ec2a3d5a455e20561e9ed665f792ac18c9d17168ea9ba42c03ad/python-isodate-0.5.0-1.pulp.el6sat.noarch.rpm
-rw-r–r-- 1 apache apache 19968 Jun 2 18:53
./rpm/saslwrapper/0.22/5.el6sat/x86_64/5e22481461add21b940b99ece98916d1ca6e4aed58e4b5b37d25516c721df889/saslwrapper-0.22-5.el6sat.x86_64.rpm
-rw-r–r-- 1 apache apache 19344 Jun 2 18:52
./rpm/saslwrapper/0.14/1.el6/i686/9e0748d71b2c0df1b432002d16cea76d1ad4b22f3583e8d3503924c51e5be4f1/saslwrapper-0.14-1.el6.i686.rpm
-rw-r–r-- 1 apache apache 622792 Jun 2 18:35
./rpm/glibc-headers/2.12/1.132.el6/x86_64/01247ae747bff7b07a8c2fcb0d017a2b1c579c75bbcc353fdbbd2a4a8aa79c5e/glibc-headers-2.12-1.132.el6.x86_64.rpm
-rw-r–r-- 1 apache apache 345508 Jun 2 18:52
./rpm/python-qpid/0.22/14.el6sat/noarch/8d6acc5b19e9cd9749e53bc692e66fe97513b842c02bec2d6a5ab56091ed554c/python-qpid-0.22-14.el6sat.noarch.rpm
-rw-r–r-- 1 apache apache 66680 Jun 2 18:52
./rpm/python-pulp-rpm-common/2.4.1/0.7.beta.el6sat/noarch/cd4175bd60ebf8381f4fca05b154cbd9e4a5b10322ed822abd0e4980f060c200/python-pulp-rpm-common-2.4.1-0.7.beta.el6sat.noarch.rpm
-rw-r–r-- 1 apache apache 116104 Jun 2 18:52
./rpm/python-pulp-common/2.4.1/0.7.beta.el6sat/noarch/589c367052fbf9664a11c0bb888f83a5d7478109bec7a38525a60f1df320f24f/python-pulp-common-2.4.1-0.7.beta.el6sat.noarch.rpm
-rw-r–r-- 1 apache apache 78932 Jun 2 18:52
./rpm/python-pulp-agent-lib/2.4.1/0.7.beta.el6sat/noarch/b0645e167f39493b5897001bef144733b8bc2032aea0cd604934bb640c386e00/python-pulp-agent-lib-2.4.1-0.7.beta.el6sat.noarch.rpm
-rw-r–r-- 1 apache apache 73428 Jun 2 18:51
./rpm/pulp-rpm-handlers/2.4.1/0.7.beta.el6sat/noarch/f12ba3c4b168bbfa16badf0a6e49c9d3d27596b4db84aa581082612608537bfe/pulp-rpm-handlers-2.4.1-0.7.beta.el6sat.noarch.rpm
-rw-r–r-- 1 apache apache 307364 Jun 2 18:50
./rpm/libstdc++/4.4.7/4.el6/i686/05ed3725d71a4c52a8acef8cc345df9f2644c107f2a56988d938dbedc7033e73/libstdc+±4.4.7-4.el6.i686.rpm
-rw-r–r-- 1 apache apache 21932 Jun 2 18:50
./rpm/katello-agent/1.5.3/5.el6sat/noarch/578c049e32c37fe27238a50014b4a2da34f71066ef569349f51e0c6464e30452/katello-agent-1.5.3-5.el6sat.noarch.rpm
-rw-r–r-- 1 apache apache 121124 Jun 2 18:51
./rpm/python-gofer/1.3.0/1.el6sat/noarch/908fc3ba31e8f70afa735967e338bdcd147d26fe07c046316dff09b4ccd86d94/python-gofer-1.3.0-1.el6sat.noarch.rpm
-rw-r–r-- 1 apache apache 33180 Jun 2 18:51
./rpm/pulp-puppet-tools/2.4.1/0.7.beta.el6sat/noarch/1bd2694b2a21512c5a5d8f875e5a622c732b918f91eec2e4513a7b794ff98043/pulp-puppet-tools-2.4.1-0.7.beta.el6sat.noarch.rpm

but the package number was not changed and the log has some error as
follows:
[ERROR 2015-06-02 18:52:58 pulp_rest #16541] RestClient.delete “
https://foreman.anim.odw.com.cn/pulp/api/v2/content/uploads/a47347ab-9f61-41d6-a42c-36287c0db72e//”,
“Accept”=>"/; q=0.5, application/xml", “Accept-Encoding”=>“gzip,
deflate”, “Authorization”=>"OAuth oauth_consumer_key=“katello”,
oauth_nonce=“mGLpLILy5mONUUwNlBwrKl0dfqgPEvIY6prarp8”,
oauth_signature=“ryelMguj4ZlnXt5GXc6ffaC431w%3D”,
oauth_signature_method=“HMAC-SHA1”, oauth_timestamp=“1433242378”,
oauth_version=“1.0"”, “accept”=>“application/json”,
“content_type”=>“application/json”, “pulp-user”=>“sxin-2b0811b6”

\n# => 200 OK | application/json 24 bytes

On Tuesday, June 2, 2015 at 6:42:51 PM UTC+8, sinux shen wrote:

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?


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.

the number does changed the next day when I checked it, like you said, it
might be the issue with elastic search.

··· On Wednesday, June 3, 2015 at 10:57:02 PM UTC+8, Eric Helms wrote: > > That error message is a misnomer I believe that can currently happen with > some delete calls to Pulp and the way we process them. As for the package > number not updating, this sounds like a reindexing issue with elastic > search. If you find the upload task on Monitor > Tasks do you see any > errors or warnings? > > > Eric > > On Tue, Jun 2, 2015 at 6:58 AM, sinux shen > wrote: > >> find the same case here: >> >> https://groups.google.com/forum/#!searchin/foreman-users/upload$20rpm$20packages$20failed/foreman-users/phuI9bscfew/ncYo-GIdLigJ >> >> I also tested upload file through hammer: >> > repository upload-content --id 7 --organization "odw" --path >> /home/sxin/katello/katello_agent/real --product centos6 >> Successfully uploaded file 'gofer-1.3.0-1.el6sat.noarch.rpm'. >> Successfully uploaded file 'katello-agent-1.5.3-5.el6sat.noarch.rpm'. >> Successfully uploaded file 'libgcc-4.4.7-4.el6.i686.rpm'. >> Successfully uploaded file 'libstdc++-4.4.7-4.el6.i686.rpm'. >> Successfully uploaded file 'nss-softokn-freebl-3.14.3-12.el6_5.i686.rpm'. >> Successfully uploaded file >> 'nss-softokn-freebl-3.14.3-12.el6_5.x86_64.rpm'. >> Successfully uploaded file 'nss-softokn-freebl-3.14.3-9.el6.x86_64.rpm'. >> Successfully uploaded file >> 'pulp-puppet-tools-2.4.1-0.7.beta.el6sat.noarch.rpm'. >> Successfully uploaded file >> 'pulp-rpm-handlers-2.4.1-0.7.beta.el6sat.noarch.rpm'. >> Successfully uploaded file 'python-gofer-1.3.0-1.el6sat.noarch.rpm'. >> Successfully uploaded file 'python-gofer-qpid-1.3.0-1.el6sat.noarch.rpm'. >> Successfully uploaded file >> 'python-isodate-0.5.0-1.pulp.el6sat.noarch.rpm'. >> Successfully uploaded file >> 'python-pulp-agent-lib-2.4.1-0.7.beta.el6sat.noarch.rpm'. >> Successfully uploaded file >> 'python-pulp-common-2.4.1-0.7.beta.el6sat.noarch.rpm'. >> Successfully uploaded file >> 'python-pulp-rpm-common-2.4.1-0.7.beta.el6sat.noarch.rpm'. >> Successfully uploaded file 'python-qpid-0.22-14.el6sat.noarch.rpm'. >> Successfully uploaded file 'python-saslwrapper-0.22-5.el6sat.x86_64.rpm'. >> Successfully uploaded file 'saslwrapper-0.14-1.el6.i686.rpm'. >> Successfully uploaded file 'saslwrapper-0.22-5.el6sat.x86_64.rpm'. >> >> the file was actually uploaded: >> foreman ODW [/var/lib/pulp/content] 336# find ./ -type f -mmin -60 -exec >> ls -l {} \; >> -rw-r--r-- 1 apache apache 151076 Jun 2 18:50 >> ./rpm/nss-softokn-freebl/3.14.3/12.el6_5/i686/bd894ff40e4d6ce49c3b586297273095d500dbac1e12c6bf8de5ac3cc8c137c8/nss-softokn-freebl-3.14.3-12.el6_5.i686.rpm >> -rw-r--r-- 1 apache apache 161444 Jun 2 18:50 >> ./rpm/nss-softokn-freebl/3.14.3/12.el6_5/x86_64/c9f34cfa6bc44834a1ac06f0330fadeaee3002bb6b011f672ac4885ec3dbfbf0/nss-softokn-freebl-3.14.3-12.el6_5.x86_64.rpm >> -rw-r--r-- 1 apache apache 160872 Jun 2 18:51 >> ./rpm/nss-softokn-freebl/3.14.3/9.el6/x86_64/c3ca381c3d23000ea9bba48891ed9821d023273e7aafef392b0448b774d3fcb5/nss-softokn-freebl-3.14.3-9.el6.x86_64.rpm >> -rw-r--r-- 1 apache apache 50672 Jun 2 18:51 >> ./rpm/python-gofer-qpid/1.3.0/1.el6sat/noarch/c817922e3375d88ece422f9d38f789152c08968fb6547feb2928577d9029f042/python-gofer-qpid-1.3.0-1.el6sat.noarch.rpm >> -rw-r--r-- 1 apache apache 114884 Jun 2 18:50 >> ./rpm/libgcc/4.4.7/4.el6/i686/e93100913beb8e5d065727bbe6cbb179846231cc8d52bcace8626348041952bb/libgcc-4.4.7-4.el6.i686.rpm >> -rw-r--r-- 1 apache apache 26308 Jun 2 18:52 >> ./rpm/python-saslwrapper/0.22/5.el6sat/x86_64/6541b7eb64df03917839aa5680d70daa3cd7a5c7bb1bf38f4f4520533b35b299/python-saslwrapper-0.22-5.el6sat.x86_64.rpm >> -rw-r--r-- 1 apache apache 74416 Jun 2 18:50 >> ./rpm/gofer/1.3.0/1.el6sat/noarch/de73aa9ca3a7406778bf6df7edd9551506161eac056e665c597b60af66d74821/gofer-1.3.0-1.el6sat.noarch.rpm >> -rw-r--r-- 1 apache apache 50428 Jun 2 18:51 >> ./rpm/python-isodate/0.5.0/1.pulp.el6sat/noarch/293311606469ec2a3d5a455e20561e9ed665f792ac18c9d17168ea9ba42c03ad/python-isodate-0.5.0-1.pulp.el6sat.noarch.rpm >> -rw-r--r-- 1 apache apache 19968 Jun 2 18:53 >> ./rpm/saslwrapper/0.22/5.el6sat/x86_64/5e22481461add21b940b99ece98916d1ca6e4aed58e4b5b37d25516c721df889/saslwrapper-0.22-5.el6sat.x86_64.rpm >> -rw-r--r-- 1 apache apache 19344 Jun 2 18:52 >> ./rpm/saslwrapper/0.14/1.el6/i686/9e0748d71b2c0df1b432002d16cea76d1ad4b22f3583e8d3503924c51e5be4f1/saslwrapper-0.14-1.el6.i686.rpm >> -rw-r--r-- 1 apache apache 622792 Jun 2 18:35 >> ./rpm/glibc-headers/2.12/1.132.el6/x86_64/01247ae747bff7b07a8c2fcb0d017a2b1c579c75bbcc353fdbbd2a4a8aa79c5e/glibc-headers-2.12-1.132.el6.x86_64.rpm >> -rw-r--r-- 1 apache apache 345508 Jun 2 18:52 >> ./rpm/python-qpid/0.22/14.el6sat/noarch/8d6acc5b19e9cd9749e53bc692e66fe97513b842c02bec2d6a5ab56091ed554c/python-qpid-0.22-14.el6sat.noarch.rpm >> -rw-r--r-- 1 apache apache 66680 Jun 2 18:52 >> ./rpm/python-pulp-rpm-common/2.4.1/0.7.beta.el6sat/noarch/cd4175bd60ebf8381f4fca05b154cbd9e4a5b10322ed822abd0e4980f060c200/python-pulp-rpm-common-2.4.1-0.7.beta.el6sat.noarch.rpm >> -rw-r--r-- 1 apache apache 116104 Jun 2 18:52 >> ./rpm/python-pulp-common/2.4.1/0.7.beta.el6sat/noarch/589c367052fbf9664a11c0bb888f83a5d7478109bec7a38525a60f1df320f24f/python-pulp-common-2.4.1-0.7.beta.el6sat.noarch.rpm >> -rw-r--r-- 1 apache apache 78932 Jun 2 18:52 >> ./rpm/python-pulp-agent-lib/2.4.1/0.7.beta.el6sat/noarch/b0645e167f39493b5897001bef144733b8bc2032aea0cd604934bb640c386e00/python-pulp-agent-lib-2.4.1-0.7.beta.el6sat.noarch.rpm >> -rw-r--r-- 1 apache apache 73428 Jun 2 18:51 >> ./rpm/pulp-rpm-handlers/2.4.1/0.7.beta.el6sat/noarch/f12ba3c4b168bbfa16badf0a6e49c9d3d27596b4db84aa581082612608537bfe/pulp-rpm-handlers-2.4.1-0.7.beta.el6sat.noarch.rpm >> -rw-r--r-- 1 apache apache 307364 Jun 2 18:50 >> ./rpm/libstdc++/4.4.7/4.el6/i686/05ed3725d71a4c52a8acef8cc345df9f2644c107f2a56988d938dbedc7033e73/libstdc++-4.4.7-4.el6.i686.rpm >> -rw-r--r-- 1 apache apache 21932 Jun 2 18:50 >> ./rpm/katello-agent/1.5.3/5.el6sat/noarch/578c049e32c37fe27238a50014b4a2da34f71066ef569349f51e0c6464e30452/katello-agent-1.5.3-5.el6sat.noarch.rpm >> -rw-r--r-- 1 apache apache 121124 Jun 2 18:51 >> ./rpm/python-gofer/1.3.0/1.el6sat/noarch/908fc3ba31e8f70afa735967e338bdcd147d26fe07c046316dff09b4ccd86d94/python-gofer-1.3.0-1.el6sat.noarch.rpm >> -rw-r--r-- 1 apache apache 33180 Jun 2 18:51 >> ./rpm/pulp-puppet-tools/2.4.1/0.7.beta.el6sat/noarch/1bd2694b2a21512c5a5d8f875e5a622c732b918f91eec2e4513a7b794ff98043/pulp-puppet-tools-2.4.1-0.7.beta.el6sat.noarch.rpm >> >> but the package number was not changed and the log has some error as >> follows: >> [ERROR 2015-06-02 18:52:58 pulp_rest #16541] RestClient.delete " >> https://foreman.anim.odw.com.cn/pulp/api/v2/content/uploads/a47347ab-9f61-41d6-a42c-36287c0db72e//", >> "Accept"=>"*/*; q=0.5, application/xml", "Accept-Encoding"=>"gzip, >> deflate", "Authorization"=>"OAuth oauth_consumer_key=\"katello\", >> oauth_nonce=\"mGLpLILy5mONUUwNlBwrKl0dfqgPEvIY6prarp8\", >> oauth_signature=\"ryelMguj4ZlnXt5GXc6ffaC431w%3D\", >> oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"1433242378\", >> oauth_version=\"1.0\"", "accept"=>"application/json", >> "content_type"=>"application/json", "pulp-user"=>"sxin-2b0811b6" >> > \n# => 200 OK | application/json 24 bytes >> >> >> On Tuesday, June 2, 2015 at 6:42:51 PM UTC+8, sinux shen wrote: >>> >>> 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"=>[#>> @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=#>], >>> "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? >>> >> -- >> 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. >> > >