Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Created attachment 1137340[details]
Not able to remove ostree content from CV via webUI
Description of problem:
I was trying to remove an ostree repo that was added to selected content-view from webUI.
Version-Release number of selected component (if applicable):
Sat 6.2 snap4
How reproducible:
always
Steps to Reproduce:
1. create/sync a ostree repo
2. create a CV and add os tree content
3. now remove the ostree content from CV
Actual results:
web UI throws notification 'Content-view updated' but it doesn't remove the ostree from selected CV
Expected results:
As soon as user remove the ostree content listed under 'List/Remove' tab , it should go to 'Add' tab.
In any case user should be able to remove ostree content from CV via webUI
Additional info:
No error in logs:
2016-03-17 06:28:59 [app] [I] Started PUT "/katello/api/v2/content_views/3?organization_id=1" for 10.65.193.200 at 2016-03-17 06:28:59 -0400
2016-03-17 06:28:59 [app] [I] Processing by Katello::Api::V2::ContentViewsController#update as JSON
2016-03-17 06:28:59 [app] [I] Parameters: {"content_host_count"=>0, "composite"=>false, "repository_ids"=>nil, "component_ids"=>nil, "default"=>false, "next_version"=>1, "id"=>"3", "name"=>"cv_ostree", "label"=>"cv_ostree", "description"=>nil, "organization"=>{"name"=>"Default Organization", "label"=>"Default_Organization", "id"=>1}, "created_at"=>"2016-03-17 15:44:09 +0530", "updated_at"=>"2016-03-17 15:44:09 +0530", "environments"=>nil, "repositories"=>[{"id"=>18, "name"=>"Red Hat Enterprise Linux Atomic Host Trees", "label"=>"Red_Hat_Enterprise_Linux_Atomic_Host_Trees", "content_type"=>"ostree"}], "puppet_modules"=>[{"id"=>1, "name"=>"motd", "author"=>"jeffmccune", "uuid"=>nil, "created_at"=>"2016-03-17 15:45:00 +0530", "updated_at"=>"2016-03-17 15:45:00 +0530"}], "versions"=>nil, "components"=>nil, "activation_keys"=>nil, "last_published"=>nil, "permissions"=>{"view_content_views"=>true, "edit_content_views"=>true, "destroy_content_views"=>true, "publish_content_views"=>true, "promote_or_remove_content_views"=>true}, "organization_id"=>"1", "api_version"=>"v2", "content_view"=>{"id"=>"3", "name"=>"cv_ostree", "label"=>"cv_ostree", "description"=>nil, "default"=>false, "created_at"=>"2016-03-17 15:44:09 +0530", "updated_at"=>"2016-03-17 15:44:09 +0530", "composite"=>false, "next_version"=>1, "repository_ids"=>nil, "component_ids"=>nil}}
2016-03-17 06:28:59 [app] [I] Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.7/app/views/katello/api/v2/common/update.json.rabl within katello/api/v2/layouts/resource (14.8ms)
2016-03-17 06:28:59 [app] [I] Completed 200 OK in 279ms (Views: 13.3ms | ActiveRecord: 53.3ms)
Couple of things with this issue
1) It happens when you are trying to remove the last remaining repo from the content view. So if you said Add 3 repos and remove 2 . Its able to do that but its unable to remove the last one
2) This behaviour happens for yum/ostree.
Verified in satellite-6.2.3-1.0, ostree and yum repos can now be successfully removed from a cv even if they are the last remaining.
Comment 10Satellite Program
2018-02-21 16:51:07 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.
>
> For information on the advisory, and where to find the updated files, follow the link below.
>
> If the solution does not work for you, open a new bug report.
>
> https://access.redhat.com/errata/RHSA-2018:0336
Created attachment 1137340 [details] Not able to remove ostree content from CV via webUI Description of problem: I was trying to remove an ostree repo that was added to selected content-view from webUI. Version-Release number of selected component (if applicable): Sat 6.2 snap4 How reproducible: always Steps to Reproduce: 1. create/sync a ostree repo 2. create a CV and add os tree content 3. now remove the ostree content from CV Actual results: web UI throws notification 'Content-view updated' but it doesn't remove the ostree from selected CV Expected results: As soon as user remove the ostree content listed under 'List/Remove' tab , it should go to 'Add' tab. In any case user should be able to remove ostree content from CV via webUI Additional info: No error in logs: 2016-03-17 06:28:59 [app] [I] Started PUT "/katello/api/v2/content_views/3?organization_id=1" for 10.65.193.200 at 2016-03-17 06:28:59 -0400 2016-03-17 06:28:59 [app] [I] Processing by Katello::Api::V2::ContentViewsController#update as JSON 2016-03-17 06:28:59 [app] [I] Parameters: {"content_host_count"=>0, "composite"=>false, "repository_ids"=>nil, "component_ids"=>nil, "default"=>false, "next_version"=>1, "id"=>"3", "name"=>"cv_ostree", "label"=>"cv_ostree", "description"=>nil, "organization"=>{"name"=>"Default Organization", "label"=>"Default_Organization", "id"=>1}, "created_at"=>"2016-03-17 15:44:09 +0530", "updated_at"=>"2016-03-17 15:44:09 +0530", "environments"=>nil, "repositories"=>[{"id"=>18, "name"=>"Red Hat Enterprise Linux Atomic Host Trees", "label"=>"Red_Hat_Enterprise_Linux_Atomic_Host_Trees", "content_type"=>"ostree"}], "puppet_modules"=>[{"id"=>1, "name"=>"motd", "author"=>"jeffmccune", "uuid"=>nil, "created_at"=>"2016-03-17 15:45:00 +0530", "updated_at"=>"2016-03-17 15:45:00 +0530"}], "versions"=>nil, "components"=>nil, "activation_keys"=>nil, "last_published"=>nil, "permissions"=>{"view_content_views"=>true, "edit_content_views"=>true, "destroy_content_views"=>true, "publish_content_views"=>true, "promote_or_remove_content_views"=>true}, "organization_id"=>"1", "api_version"=>"v2", "content_view"=>{"id"=>"3", "name"=>"cv_ostree", "label"=>"cv_ostree", "description"=>nil, "default"=>false, "created_at"=>"2016-03-17 15:44:09 +0530", "updated_at"=>"2016-03-17 15:44:09 +0530", "composite"=>false, "next_version"=>1, "repository_ids"=>nil, "component_ids"=>nil}} 2016-03-17 06:28:59 [app] [I] Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.7/app/views/katello/api/v2/common/update.json.rabl within katello/api/v2/layouts/resource (14.8ms) 2016-03-17 06:28:59 [app] [I] Completed 200 OK in 279ms (Views: 13.3ms | ActiveRecord: 53.3ms)