Project

General

Profile

Actions

Bug #15725

closed

virt-who checkin should use default org view and should not overwrite existing registration

Added by Justin Sherrill about 8 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Difficulty:
medium
Triaged:
Fixed in Releases:
Found in Releases:

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


Related issues 1 (1 open0 closed)

Blocks Katello - Tracker #15825: Sprint 1 : Content-FocusedNewBrad Buckingham

Actions
Actions #1

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

Actions #2

Updated by Justin Sherrill about 8 years ago

  • Bugzilla link set to 1357878
Actions #3

Updated by Brad Buckingham about 8 years ago

Actions #4

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
Actions #5

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
Actions #6

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
Actions #7

Updated by Justin Sherrill about 8 years ago

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

Also available in: Atom PDF