Bug 1317763 - 404 Resource Not Found on promoting the ostree contents to next environment
Summary: 404 Resource Not Found on promoting the ostree contents to next environment
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Views
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Justin Sherrill
QA Contact: Sachin Ghai
URL:
Whiteboard:
Depends On:
Blocks: 1321771
TreeView+ depends on / blocked
 
Reported: 2016-03-15 07:07 UTC by Sachin Ghai
Modified: 2016-10-03 15:09 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-03 15:09:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
webUI says cv containing ostree promoted successfully (55.78 KB, image/png)
2016-03-15 07:09 UTC, Sachin Ghai
no flags Details
complete traceback while promoting the CV containing 'RedHat atomic host tree' (56.07 KB, text/plain)
2016-03-15 10:56 UTC, Sachin Ghai
no flags Details

Description Sachin Ghai 2016-03-15 07:07:54 UTC
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:

Comment 1 Sachin Ghai 2016-03-15 07:09:30 UTC
Created attachment 1136413 [details]
webUI says cv containing ostree promoted successfully

Comment 3 Sachin Ghai 2016-03-15 10:56:43 UTC
Created attachment 1136538 [details]
complete traceback while promoting the CV containing 'RedHat atomic host tree'

Comment 8 Justin Sherrill 2016-07-21 20:53:49 UTC
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).

Comment 9 Sachin Ghai 2016-08-22 07:44:31 UTC
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)

Comment 10 Justin Sherrill 2016-10-03 15:09:13 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.