Project

General

Profile

Bug #9298

errata apply with inc update includes full system info and sends even without checking 'apply to content hosts'

Added by Justin Sherrill about 8 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web UI
Target version:
Difficulty:
easy
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Unsure if related, but it seems that errata are applied to systems even when the 'apply errata to content hosts are not checked.

Also, when performing an incremental errata through the apply errata screen, i see the full systems being sent to the server:

{
"add_content":{
"errata_ids":[
"d960bf2d-bc9c-4f53-af27-bdad55a6a775"
]
},
"content_view_version_environments":[ {
"content_view_version_id":49,
"environment_ids":[
1
]
}
],
"propagate_to_composites":true,
"resolve_dependencies":true,
"update_systems":{
"included":{
"ids":[
"0422339f-83f7-4d4d-9352-49004aae9497"
],
"resources":[ {
"uuid":"0422339f-83f7-4d4d-9352-49004aae9497",
"name":"client.devel.foo6344",
"description":"Initial Registration Params",
"location":"None",
"content_view":{
"id":17,
"name":"component2",
"label":"component2",
"description":null,
"organization_id":1,
"default":false,
"created_at":"2015-02-09T12:06:14-05:00",
"updated_at":"2015-02-09T12:09:03-05:00",
"composite":null,
"next_version":2,
"organization":"Default Organization",
"environments":[
"Library"
],
"versions":[
"1.0",
"1.1"
],
"versions_details":[ {
"version":"1.0",
"published":"2015-02-09 12:09:03 -0500",
"environments":[

]
}, {
"version":"1.1",
"published":"2015-02-09 14:24:58 -0500",
"environments":[
"Library"
]
}
]
},
"content_view_id":17,
"distribution":"Red Hat Enterprise Linux Server 6.4",
"katello_agent_installed":true,
"registered_by":"Admin User",
"content_overrides":[
],
"entitlementStatus":"valid",
"autoheal":false,
"href":"/consumers/0422339f-83f7-4d4d-9352-49004aae9497",
"release":null,
"checkin_time":"2015-02-09T14:31:58-05:00",
"created":"2015-01-05T14:21:30.647+0000",
"installedProducts":[ {
"productId":"69",
"productName":"Red Hat Enterprise Linux Server",
"version":"6.5",
"arch":"x86_64",
"status":"green",
"startDate":"2011-10-11T04:00:00.000+0000",
"endDate":"2022-01-01T04:59:59.000+0000"
}
],
"service_level":"",
"products":[ {
"id":103,
"name":"neederrata"
}, {
"id":53,
"name":"Red Hat Enterprise Linux Load Balancer for RHEL Server"
}, {
"id":66,
"name":"Red Hat Beta"
}, {
"id":90,
"name":"Red Hat Enterprise Linux High Availability for RHEL Server"
}, {
"id":91,
"name":"Red Hat Enterprise Linux Server"
}, {
"id":94,
"name":"Red Hat Satellite Tools 6 MDP"
}, {
"id":95,
"name":"Red Hat Satellite 6 MDP"
}, {
"id":96,
"name":"Red Hat Satellite Capsule 6 Beta"
}, {
"id":97,
"name":"Oracle Java for RHEL Server"
}, {
"id":98,
"name":"Red Hat Satellite 6 Beta"
}, {
"id":99,
"name":"Red Hat Satellite"
}
],
"host":null,
"hostCollections":[
],
"customInfo":[
],
"environment":{
"library":true,
"id":1,
"name":"Library",
"label":"Library",
"description":null,
"organization":{
"name":"Default Organization",
"label":"Default_Organization",
"id":1
},
"created_at":"2014-12-08T15:39:47-05:00",
"updated_at":"2014-12-08T15:39:47-05:00",
"prior":null,
"successor":null,
"counts":{
"content_hosts":1,
"content_views":10,
"packages":18553,
"puppet_modules":3,
"errata":{
"security":605,
"bugfix":1879,
"enhancement":365,
"total":2849
},
"yum_repositories":9,
"docker_repositories":0,
"products":4
},
"permissions":{
"view_lifecycle_environments":true,
"edit_lifecycle_environments":true,
"destroy_lifecycle_environments":false,
"promote_or_remove_content_views_to_environments":true
}
},
"activation_keys":[
],
"organization_id":1,
"id":"0422339f-83f7-4d4d-9352-49004aae9497",
"errata_counts":{
"security":39,
"bugfix":144,
"enhancement":19,
"total":202
},
"release_ver":null,
"permissions":{
"editable":true
},
"selected":true
}
],
"search":null,
"params":{
"organization_id":"1",
"errata_ids[]":[
"d960bf2d-bc9c-4f53-af27-bdad55a6a775"
],
"page":1,
"search":""
}
},
"excluded":{
"ids":[
]
},
"errata_ids":[
"d960bf2d-bc9c-4f53-af27-bdad55a6a775"
],
"organization_id":"1"
},
"api_version":"v2",
"content_view_version":{
}
}

Related issues

Blocks Katello - Tracker #8176: Errata Management Incremental UpdatesResolved2014-10-29

Associated revisions

Revision 0f380d74
Added by Walden Raines about 8 years ago

Merge pull request #4993 from waldenraines/9298

Fixes #9298: only apply errata if box is checked, bz 1191214.

History

#1 Updated by Justin Sherrill about 8 years ago

  • Blocks Tracker #8176: Errata Management Incremental Updates added

#2 Updated by Walden Raines about 8 years ago

  • Status changed from New to Assigned
  • Assignee set to Walden Raines

#3 Updated by Walden Raines about 8 years ago

  • Bugzilla link set to 1191214

#4 Updated by The Foreman Bot about 8 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/4993 added
  • Pull request deleted ()

#5 Updated by Walden Raines about 8 years ago

Note that the fix only addresses the issue of not setting update_systems correctly with the checkbox. The issue of the resources array appearing in the post data will be addressed in http://projects.theforeman.org/issues/9313

#6 Updated by Walden Raines about 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#7 Updated by Eric Helms about 8 years ago

  • Legacy Backlogs Release (now unused) set to 23

Also available in: Atom PDF