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.
Bug 1201818 - Sat6 Content Hosts unusable after candlepin has an error in finding a unit
Summary: Sat6 Content Hosts unusable after candlepin has an error in finding a unit
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Subscription Management
Version: 6.0.8
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: Unspecified
Assignee: Eric Helms
QA Contact: Tazim Kolhar
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks: 1122832
TreeView+ depends on / blocked
 
Reported: 2015-03-13 15:01 UTC by Peter Vreman
Modified: 2019-07-11 08:46 UTC (History)
17 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-12 14:00:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Peter Vreman 2015-03-13 15:01:38 UTC
Description of problem:
This issue is about the failure tolerance of Sat6 and not the Candlepin error.

Listing content hosts is not possible anymore once candlepin has an error that it cannot find a unit. The result is that managing any other content hosts(e.g. content view change) and its subscriptions in the UI is not possible and you cannot use Sat6 anymore.

time curl -K /opt/hoici/etc/sat6/curl-hoici.conf "-HContent-Type: application/json" "-d{\"per_page\":9999}" -XGET https://localhost/katello/api/v2/organizations/4/systems | jq .
{
  "errors": [
    "Katello::Resources::Candlepin::Consumer: 410 Gone {\"displayMessage\":\"Unit fb3480f1-401a-42dc-aab6-d9d9674c4a7e has been deleted\",\"requestUuid\":\"4e48eef6-f70a-4adf-b2aa-d3ae967af02e\",\"deletedId\":\"fb3480f1-401a-42dc-aab6-d9d9674c4a7e\"} (GET /candlepin/consumers/fb3480f1-401a-42dc-aab6-d9d9674c4a7e)"
  ],
  "displayMessage": "Katello::Resources::Candlepin::Consumer: 410 Gone {\"displayMessage\":\"Unit fb3480f1-401a-42dc-aab6-d9d9674c4a7e has been deleted\",\"requestUuid\":\"4e48eef6-f70a-4adf-b2aa-d3ae967af02e\",\"deletedId\":\"fb3480f1-401a-42dc-aab6-d9d9674c4a7e\"} (GET /candlepin/consumers/fb3480f1-401a-42dc-aab6-d9d9674c4a7e)"
}

real    0m41.867s
user    0m0.181s
sys     0m0.052s



Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Sat6 Content Hosts shall be more tolerant against errors in candlepin
2.
3.

Actual results:
Sat6 has become unusable.


Expected results:
Sat6 is still usable for other content hosts.

Additional info:

Comment 1 RHEL Program Management 2015-03-13 15:03:08 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 Bryan Kearney 2015-03-13 15:26:21 UTC
Do you know how this occured? We are looking for steps to recreate this, but it appears that data was deleted from the candlepin server but not from katello.

Comment 4 Peter Vreman 2015-03-14 18:02:11 UTC
It has started after deleting a Hypervisor node that was previously been added by the virt-who process to support unlimited virtual guests.

This task indeed failed with an error:


Action:

Actions::Katello::System::Destroy

Input:

{"hypervisor"=>
  {"id"=>44,
   "name"=>"li-hc-1006",
   "uuid"=>"fb3480f1-401a-42dc-aab6-d9d9674c4a7e"},
 "organization"=>{"id"=>4, "name"=>"Hilti", "label"=>"Hilti"},
 "remote_user"=>"hoici-e5c83d29",
 "locale"=>"en"}

Output:

{}

Exception:

NoMethodError: undefined method `[]' for nil:NilClass

Backtrace:

/opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/lib/actions/katello/system/destroy.rb:34:in `finalize'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/action.rb:465:in `block (2 levels) in execute_finalize'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware/stack.rb:26:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware/stack.rb:26:in `pass'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware.rb:16:in `pass'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/lib/actions/middleware/remote_action.rb:29:in `block in finalize'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/lib/actions/middleware/remote_action.rb:51:in `block (2 levels) in as_remote_user'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/lib/katello/util/thread_session.rb:85:in `set_pulp_config'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/lib/actions/middleware/remote_action.rb:41:in `as_pulp_user'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/lib/actions/middleware/remote_action.rb:50:in `block in as_remote_user'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/lib/katello/util/thread_session.rb:92:in `set_cp_config'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/lib/actions/middleware/remote_action.rb:36:in `as_cp_user'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/lib/actions/middleware/remote_action.rb:49:in `as_remote_user'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/lib/actions/middleware/remote_action.rb:29:in `finalize'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware/stack.rb:22:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware/stack.rb:26:in `pass'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware.rb:16:in `pass'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/action/progress.rb:30:in `with_progress_calculation'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/action/progress.rb:22:in `finalize'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware/stack.rb:22:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware/stack.rb:26:in `pass'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware.rb:16:in `pass'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/lib/actions/middleware/keep_locale.rb:28:in `block in finalize'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/lib/actions/middleware/keep_locale.rb:35:in `with_locale'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/lib/actions/middleware/keep_locale.rb:28:in `finalize'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware/stack.rb:22:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware/world.rb:30:in `execute'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/action.rb:464:in `block in execute_finalize'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/action.rb:365:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/action.rb:365:in `block in with_error_handling'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/action.rb:365:in `catch'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/action.rb:365:in `with_error_handling'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/action.rb:463:in `execute_finalize'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/action.rb:230:in `execute'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:9:in `block (2 levels) in execute'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/execution_plan/steps/abstract.rb:152:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/execution_plan/steps/abstract.rb:152:in `with_meta_calculation'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:8:in `block in execute'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:22:in `open_action'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:7:in `execute'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/executors/parallel/sequential_manager.rb:72:in `run_step'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/executors/parallel/sequential_manager.rb:57:in `dispatch'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/executors/parallel/sequential_manager.rb:64:in `block in run_in_sequence'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/executors/parallel/sequential_manager.rb:64:in `each'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/executors/parallel/sequential_manager.rb:64:in `all?'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/executors/parallel/sequential_manager.rb:64:in `run_in_sequence'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/executors/parallel/sequential_manager.rb:53:in `dispatch'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/executors/parallel/sequential_manager.rb:28:in `block (2 levels) in finalize'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware/stack.rb:26:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware/stack.rb:26:in `pass'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware.rb:16:in `pass'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware.rb:41:in `finalize_phase'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware/stack.rb:22:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware/stack.rb:26:in `pass'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware.rb:16:in `pass'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware.rb:41:in `finalize_phase'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware/stack.rb:22:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware/stack.rb:26:in `pass'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware.rb:16:in `pass'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware.rb:41:in `finalize_phase'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware/stack.rb:22:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/middleware/world.rb:30:in `execute'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/executors/parallel/sequential_manager.rb:27:in `block in finalize'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/transaction_adapters/active_record.rb:5:in `transaction'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/executors/parallel/sequential_manager.rb:24:in `finalize'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/executors/parallel/worker.rb:23:in `block in on_message'
/opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:859:in `block in assigns'
/opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:858:in `tap'
/opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:858:in `assigns'
/opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:138:in `match_value'
/opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:116:in `block in match'
/opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:115:in `each'
/opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:115:in `match'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/executors/parallel/worker.rb:17:in `on_message'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:82:in `on_envelope'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:72:in `receive'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:99:in `block (2 levels) in run'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:99:in `loop'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:99:in `block in run'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:99:in `catch'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:99:in `run'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.3/lib/dynflow/micro_actor.rb:13:in `block in initialize'
/opt/rh/ruby193/root/usr/share/gems/gems/logging-1.8.1/lib/logging/diagnostic_context.rb:323:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/logging-1.8.1/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'

Comment 5 Peter Vreman 2015-03-16 09:37:03 UTC
I tried to re-index Katello, but that also fails:

# foreman-rake katello:reindex
Elasticsearch Indices cleared.
Re-indexing User
Re-indexing Organization
Re-indexing Katello::ContentViewPackageGroupFilterRule
Re-indexing Katello::ContentViewPuppetModule
Re-indexing Katello::ContentViewErratumFilterRule
Re-indexing Katello::ContentViewFilter
Re-indexing Katello::Repository
Re-indexing Katello::ContentView
Re-indexing Katello::Provider
Re-indexing Katello::TaskStatus
Re-indexing Katello::HostCollection
Re-indexing Katello::Job
Re-indexing Katello::ContentViewHistory
Re-indexing Katello::Product
Re-indexing Katello::KTEnvironment
Re-indexing Katello::ActivationKey
Re-indexing Katello::SyncPlan
Re-indexing Katello::GpgKey
Re-indexing Katello::Distributor
Re-indexing Katello::System
Re-indexing Katello::ContentViewPackageFilterRule
Re-indexing Katello::Notice
Re-indexing Katello::ContentViewPuppetEnvironment
Re-indexing Katello::ContentViewPackageFilter
Re-indexing Katello::ContentViewPackageGroupFilter
Re-indexing Katello::ContentViewErratumFilter
Re-indexing Katello::PulpTaskStatus
Re-indexing Katello::PulpSyncStatus
Re-indexing Katello::MarketingProduct
Re-indexing Katello::Hypervisor
rake aborted!
Katello::Resources::Candlepin::Consumer: 410 Gone {"displayMessage":"Unit fb3480f1-401a-42dc-aab6-d9d9674c4a7e has been deleted","requestUuid":"79218cc3-9e82-4f92-a9cf-34e431867553","deletedId":"fb3480f1-401a-42dc-aab6-d9d9674c4a7e"} (GET /candlepin/consumers/fb3480f1-401a-42dc-aab6-d9d9674c4a7e)

Tasks: TOP => katello:reindex
(See full trace by running task with --trace)

Comment 8 Ekin Meroglu 2015-03-19 22:32:12 UTC
Hi,

I've come across the very same issue, deleting a virt-who created hypervisor ended with the above error (i.e. "NoMethodError: undefined method `[]' for nil:NilClass"). I cannot list any content hosts in the organization that this hypervisor was on. I have another organization which does not seem to be effected:

# hammer organization list
---|----------------------|----------------------|----------------------------------
ID | NAME                 | LABEL                | DESCRIPTION                      
---|----------------------|----------------------|----------------------------------
1  | Default_Organization | Default_Organization | Default_Organization Organization
3  | linuxera             | linuxera             | linuxera                         
---|----------------------|----------------------|----------------------------------

# hammer content-host list --organization-id 3
-------------------------------------|----------------------
ID                                   | NAME                 
-------------------------------------|----------------------
426befa0-ee6e-4095-b759-242f72c0bb64 | throin [ESX]         
....
....  
950113d5-31cf-45c2-92a8-298b72e39954 | bard [RHEVM]         
-------------------------------------|----------------------  

# # hammer content-host list --organization-id 1
Katello::Resources::Candlepin::Consumer: 410 Gone {"displayMessage":"Unit 3e20b5eb-1bd2-4779-a21f-b0b65a40816e has been deleted","requestUuid":"dae83646-a662-4f96-b39c-e30559dc3b38","deletedId":"3e20b5eb-1bd2-4779-a21f-b0b65a40816e"} (GET /candlepin/consumers/3e20b5eb-1bd2-4779-a21f-b0b65a40816e)

# hammer content-host info --id 3e20b5eb-1bd2-4779-a21f-b0b65a40816e
Katello::Resources::Candlepin::Consumer: 410 Gone {"displayMessage":"Unit 3e20b5eb-1bd2-4779-a21f-b0b65a40816e has been deleted","requestUuid":"1c372c05-1224-41cd-8533-778222b04745","deletedId":"3e20b5eb-1bd2-4779-a21f-b0b65a40816e"} (GET /candlepin/consumers/3e20b5eb-1bd2-4779-a21f-b0b65a40816e)

Trying to delete the content host once again does not help either:

# hammer content-host delete --id 3e20b5eb-1bd2-4779-a21f-b0b65a40816e
Could not delete content host:
  Task 4d0eeda1-b016-45ed-a300-b7739d67d6fb: Katello::Errors::CandlepinError: Unit 3e20b5eb-1bd2-4779-a21f-b0b65a40816e has been deleted

Comment 9 Vladimir Stackov 2015-03-20 13:05:42 UTC
Bug already present in upstream bug-tracker but it was in rejected state [1]

[1] http://projects.theforeman.org/issues/4092

Comment 11 Brett Thurber 2015-03-23 15:35:40 UTC
Seeing same issue here with Sat 6.1.  Steps to reproduce:

1.  Install virt-who into a VMware environment on a RHEL 7 guest.
2.  Verify ESX hosts are discovered and are listed under content hosts.
3.  Select an ESX content host and unregister.
4.  The ESX host will continue to report under content hosts however when selecting, no details appear of the system, just receive the circle of death.

Running the following commands validate the 410 error:

[root@rhci-sat61 ~]# hammer organization list
[Foreman] Username: admin
[Foreman] Password for admin: 
---|----------------------|----------------------|------------
ID | NAME                 | LABEL                | DESCRIPTION
---|----------------------|----------------------|------------
1  | Default Organization | Default_Organization |            
3  | virt-who             | virt-who             |            
---|----------------------|----------------------|------------
[root@rhci-sat61 ~]# hammer content-host list --organization-id 3
[Foreman] Username: admin
[Foreman] Password for admin: 
Katello::Resources::Candlepin::Consumer: 410 Gone {"displayMessage":"Unit 045b86eb-6d64-4c3e-a7d1-638faa005c2e has been deleted","requestUuid":"f7c1650b-72c5-4a9a-ab8f-bb05f1d3c529","deletedId":"045b86eb-6d64-4c3e-a7d1-638faa005c2e"} (GET /candlepin/consumers/045b86eb-6d64-4c3e-a7d1-638faa005c2e)

Comment 12 Eric Helms 2015-03-23 16:46:16 UTC
Created redmine issue http://projects.theforeman.org/issues/9872 from this bug

Comment 14 Bryan Kearney 2015-03-26 16:05:30 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/9872 has been closed
-------------
Eric Helms
Applied in changeset commit:katello|2e21704f0886a8da91fc9c38b89ebf83b41b8f7c.

Comment 18 Tazim Kolhar 2015-04-30 08:48:58 UTC
VERIFIED:
 rpm -qa | grep foreman
ruby193-rubygem-foreman_docker-1.2.0.10-1.el6_6sat.noarch
ruby193-rubygem-foreman_gutterball-0.0.1.9-1.el6_6sat.noarch
foreman-debug-1.7.2.18-1.el6_6sat.noarch
foreman-vmware-1.7.2.18-1.el6_6sat.noarch
rubygem-hammer_cli_foreman_bootdisk-0.1.2.6-1.el6_6sat.noarch
rubygem-hammer_cli_foreman_discovery-0.0.1.8-1.el6_6sat.noarch
puppet-foreman_scap_client-0.3.3-8.el6_6sat.noarch
foreman-1.7.2.18-1.el6_6sat.noarch
foreman-libvirt-1.7.2.18-1.el6_6sat.noarch
ruby193-rubygem-foreman_hooks-0.3.7-2.el6_6sat.noarch
ruby193-rubygem-foreman_bootdisk-4.0.2.12-1.el6_6sat.noarch
rubygem-hammer_cli_foreman-0.1.4.10-1.el6_6sat.noarch
foreman-postgresql-1.7.2.18-1.el6_6sat.noarch
foreman-selinux-1.7.2.13-1.el6_6sat.noarch
qe-sat6-rhel66.usersys.redhat.com-foreman-proxy-1.0-2.noarch
foreman-compute-1.7.2.18-1.el6_6sat.noarch
foreman-gce-1.7.2.18-1.el6_6sat.noarch
ruby193-rubygem-foreman_discovery-2.0.0.12-1.el6_6sat.noarch
foreman-proxy-1.7.2.4-1.el6_6sat.noarch
qe-sat6-rhel66.usersys.redhat.com-foreman-client-1.0-1.noarch
qe-sat6-rhel66.usersys.redhat.com-foreman-proxy-client-1.0-1.noarch
foreman-ovirt-1.7.2.18-1.el6_6sat.noarch
ruby193-rubygem-foreman-redhat_access-0.1.0-1.el6_6sat.noarch
rubygem-hammer_cli_foreman_tasks-0.0.3.4-1.el6_6sat.noarch
ruby193-rubygem-foreman-tasks-0.6.12.4-1.el6_6sat.noarch


# hammer content-host list --organization-id 1
[Foreman] Username: admin
[Foreman] Password for admin: 
-------------------------------------|---------------------------------------------|-------------------
ID                                   | NAME                                        | INSTALLABLE ERRATA
-------------------------------------|---------------------------------------------|-------------------
16d5c312-db1a-4589-85a7-8024dc226abd | ibm-x3650m4-01-vm-16.lab.eng.bos.redhat.com | 0                 
-------------------------------------|---------------------------------------------|-------------------


# hammer content-host info --id 16d5c312-db1a-4589-85a7-8024dc226abd
[Foreman] Username: admin
[Foreman] Password for admin: 
Name:                    ibm-x3650m4-01-vm-16.lab.eng.bos.redhat.com
ID:                      16d5c312-db1a-4589-85a7-8024dc226abd
Katello Agent Installed: no
Description:             Initial Registration Params
Location:                None
Lifecycle Environment:   Library
Content View:            Default Organization View
Entitlement Status:      invalid
Release Version:         
Autoheal:                true
Security Errata:         0
Bugfix Errata:           0
Enhancement Errata:      0

# hammer content-host delete --id 16d5c312-db1a-4589-85a7-8024dc226abd
[Foreman] Username: admin
[Foreman] Password for admin: 
Content host deleted

Comment 19 Tazim Kolhar 2015-05-04 08:59:01 UTC
moving it to ON_QA

Comment 20 gaoshang 2015-05-04 09:18:47 UTC
According to Comment 11, this bug not exist any more in Satellite-6.1.0-RHEL-7-20150429.2, please see following steps:

1.  Install virt-who into a VMware environment on a RHEL guest.
2.  Verify ESX hosts are discovered and are listed under content hosts.
3.  Select an ESX content host and unregister.
4.  Restart virt-who service, the unregistered ESX content host in step 3 has been listed under content hosts again.

Running the following commands, no 410 error found

[root@dell-pem710-01 ~]# hammer organization list
[Foreman] Username: admin
[Foreman] Password for admin: 
---|----------------------|----------------------|------------
ID | NAME                 | LABEL                | DESCRIPTION
---|----------------------|----------------------|------------
1  | Default Organization | Default_Organization |            
---|----------------------|----------------------|------------

[root@dell-pem710-01 ~]#  hammer content-host list --organization-id 1
[Foreman] Username: admin
[Foreman] Password for admin: 
-------------------------------------|-----------------------------------------|-------------------
ID                                   | NAME                                    | INSTALLABLE ERRATA
-------------------------------------|-----------------------------------------|-------------------
542acacd-c3cb-4cc9-a1e4-54b85747f54b | 86b2bd00-8bad-11e2-87f4-6c3be514699d    | 0                 
b1cf2c17-de14-461c-b37a-91425d12b3bd | aee4ff00-8c33-11e2-994a-6c3be51d959a    | 0                 
b671ad07-877c-4f8e-92a5-3ceaf2970a42 | cisco-b200m1-03.rhts.eng.bos.redhat.com | 0                 
-------------------------------------|-----------------------------------------|-------------------

Comment 21 Bryan Kearney 2015-08-11 13:35:37 UTC
This bug is slated to be released with Satellite 6.1.

Comment 22 Bryan Kearney 2015-08-12 14:00:53 UTC
This bug was fixed in version 6.1.1 of Satellite which was released on 12 August, 2015.


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