Description of problem: I created a ostree type repos, it was synced properly and later created a CV and included the ostree to publish and promote to next environmnent from webUI. Publish and promote was successful from webUI but production.log thrown two exceptions: 2016-03-15 08:01:25 [app] [I] Completed 200 OK in 50ms (Views: 0.9ms | ActiveRecord: 1.3ms) 2016-03-15 08:01:27 [katello/pulp_rest] [E] RestClient.post "https://ibm-x3550m3-06.lab.eng.brq.redhat.com/pulp/api/v2/repositories/", 10554 byte(s) length, "Accept"=>"*/*; q=0.5, application/xml", "Accept-Encoding"=>"gzip, deflate", "Content-Length"=>"10554", "accept"=>"application/json", "content_type"=>"application/json" | \n# => 400 BadRequest | application/json 385 bytes | 2016-03-15 08:01:27 [foreman-tasks/action] [E] 400 Bad Request (RestClient::BadRequest) | /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in `return!' | /opt/theforeman/tfm/root/usr/share/gems/gems/runcible-1.6.0/lib/runcible/base.rb:79:in `block in get_response' 2016-03-15 08:01:27 [katello/pulp_rest] [I] RestClient.post "https://ibm-x3550m3-06.lab.eng.brq.redhat.com/pulp/api/v2/repositories/Default_Organization-Dev-cv_exclusive_ostree-ostree-ostree_fed22/actions/sync/", "{}", "Accept"=>"*/*; q=0.5, application/xml", "Accept-Encoding"=>"gzip, deflate", "Content-Length"=>"2", "accept"=>"application/json", "content_type"=>"application/json" | \n# => 404 NotFound | application/json 690 bytes | 2016-03-15 08:01:27 [foreman-tasks/action] [E] 404 Resource Not Found (RestClient::ResourceNotFound) | /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in `return!' | /opt/theforeman/tfm/root/usr/share/gems/gems/runcible-1.6.0/lib/runcible/base.rb:79:in `block in get_response' | /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:228:in `call' Version-Release number of selected component (if applicable): sat6.2 beta snap3 How reproducible: always Steps to Reproduce: 1. promote ostree repo 2. 3. Actual results: 2016-03-15 08:01:27 [foreman-tasks/action] [E] 400 Bad Request (RestClient::BadRequest) 2016-03-15 08:01:27 [foreman-tasks/action] [E] 404 Resource Not Found (RestClient::ResourceNotFound) Expected results: no exception should be raised. Additional info:
Created attachment 1136413 [details] webUI says cv containing ostree promoted successfully
Created attachment 1136538 [details] complete traceback while promoting the CV containing 'RedHat atomic host tree'
The error looks like this occured during capsule syncing, which is why the promote worked fine. Was the capsule up and running at the time (with ostree enabled on it).
Yeah. I tried that when no capsule is associated and I don't see any error. Ostree contents were promoted to next environment successfully. 2016-08-22 03:42:03 [app] [I] Started POST "/katello/api/v2/content_view_versions/2/promote" for 10.65.223.218 at 2016-08-22 03:42:03 -0400 2016-08-22 03:42:03 [app] [I] Processing by Katello::Api::V2::ContentViewVersionsController#promote as JSON 2016-08-22 03:42:03 [app] [I] Parameters: {"id"=>"2", "environment_id"=>2, "force"=>true, "api_version"=>"v2", "content_view_version"=>{"id"=>"2"}} 2016-08-22 03:42:04 [app] [I] Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.73/app/views/katello/api/v2/common/async.json.rabl within katello/api/v2/layouts/resource (36.6ms) 2016-08-22 03:42:04 [app] [I] Completed 202 Accepted in 614ms (Views: 37.1ms | ActiveRecord: 34.2ms)
Since this was likely an environmental issue, i'm going ahead and closing this as NOTABUG. Feel free to reopen if you still see it.