Hi,
We changed the pulp repo in katello and we have some problems now with
katello-package-upload. Because there are no consumers in the new pulp, it
throws the following error:
Traceback (most recent call last):
File "/usr/sbin/katello-package-upload", line 26, in <module>
main()
File "/usr/sbin/katello-package-upload", line 23, in main
package_upload.upload_package_profile()
File "/usr/lib/yum-plugins/package_upload.py", line 43, in
upload_package_profile
get_manager().profilelib._do_update()
File "/usr/share/rhsm/subscription_manager/packageprofilelib.py", line
24, in _do_update
return action.perform()
File "/usr/share/rhsm/subscription_manager/packageprofilelib.py", line
40, in perform
ret = profile_mgr.update_check(self.uep, consumer_identity.uuid)
File "/usr/share/rhsm/subscription_manager/cache.py", line 389, in
update_check
return CacheManager.update_check(self, uep, consumer_uuid, force)
File "/usr/share/rhsm/subscription_manager/cache.py", line 148, in
update_check
raise re
rhsm.connection.RestlibException: Consumer with id None could not be found.
This is the error from foreman:
2015-09-04 13:46:05 [app] [E] Failed to upload package profile to pulp
consumer v-so-repo-01.synygy.net: 404 Resource Not Found:
{"http_request_method": "POST", "exception": null, "error_message":
"Missing resource(s): consumer=4c38d67c-c1e5-4606-8067-9ec7d40bf896",
"_href":
"/pulp/api/v2/consumers/4c38d67c-c1e5-4606-8067-9ec7d40bf896/profiles/",
"http_status": 404, "error": {"code": "PLP0009", "data": {"resources":
{"consumer": "4c38d67c-c1e5-4606-8067-9ec7d40bf896"}}, "description":
"Missing resource(s): consumer=4c38d67c-c1e5-4606-8067-9ec7d40bf896",
"sub_errors": []}, "traceback": null, "resources": {"consumer":
"4c38d67c-c1e5-4606-8067-9ec7d40bf896"}},
/opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in
`return!'
Can katello recreate the consumers in pulp, or we have to do it manually?
Best regards,
Cristian Falcas