Actions
Bug #15725
closedvirt-who checkin should use default org view and should not overwrite existing registration
Difficulty:
medium
Triaged:
Bugzilla link:
Pull request:
Description
Right now virt-who checkin's still register the host to a specific content view and lifecycle environment, but the create host has no content facet. This is incorrect and should just use the default org view and library
Updated by Justin Sherrill about 8 years ago
to correct this, simply use:
foreman-rake console
User.current = User.first Katello::Hypervisor.all.each do |hypervisor| org = hypervisor.environment.organization hypervisor.content_view = org.default_content_view hypervisor.environment = org.library hypervisor.save! candlepin_environment_id = org.default_content_view.content_view_environments.first.cp_id ::Katello::Resources::Candlepin::Consumer.update(hypervisor.uuid, {'environment' => {'id' => candlepin_environment_id}}) end
Updated by Brad Buckingham about 8 years ago
- Blocks Tracker #15825: Sprint 1 : Content-Focused added
Updated by Justin Sherrill about 8 years ago
- Category set to 78
- Status changed from New to Assigned
- Assignee set to Justin Sherrill
- Translation missing: en.field_release set to 162
- Difficulty set to medium
Updated by Justin Sherrill about 8 years ago
- Subject changed from virt-who checkin should use default org view unless the hypervisor is registered to virt-who checkin should use default org view and should not overwrite existing registration
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/6235 added
Updated by Justin Sherrill about 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|6a9661b5822986ff255631117626145845b81b22.
Actions