Project

General

Profile

Actions

Bug #10565

closed

After registering content host, it is not listed / Bug #6171

Added by Claudiu Nagy almost 9 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

I am hitting the exact description of BUG #6171

OS: redhat
RELEASE: CentOS Linux release 7.1.1503 (Core)
FOREMAN: 1.8.1
RUBY: ruby 2.0.0p598 (2014-11-13) [x86_64-linux]
PUPPET: 3.7.5
DENIALS: 0

After subscribing host to katello 2.2 it is not shown in content host list, nor with hammer cli.

Steps to Reproduce:
1. register host by standard means i.e.: subscription-manager register --force --org="ACME_Corporation" --environment="Library"
2. observe "The system has been registered with id:$HOST-ID" message
3. try hammer content-host info --id=$HOST-ID and observe, that host was registered
4. try hammer content-host list --organization-label='ACME_Corporation'
5. try list content hosts for ACME_Corporation in ui

Actual results:
No data.

Expected results:
At least the registered host should have been listed

Actions #1

Updated by Dominic Cleal almost 9 years ago

  • Tracker changed from Support to Bug
  • Project changed from Foreman to Katello
  • Category deleted (API)
  • Triaged set to No
Actions #2

Updated by Eric Helms almost 9 years ago

  • Status changed from New to Need more information
  • translation missing: en.field_release set to 55
  • Triaged changed from No to Yes

You see the content host listed from hammer but not the Web UI? Do you see errors in production.log? Does the Content Host sit and spin or just show no results?

Actions #3

Updated by Claudiu Nagy almost 9 years ago

The missing hosts don't show up in the web gui or hammer. The webpage is loading fine and shows some systems and not others. Same with hammer. There are no errors reported in the logs.
If in hammer i try to get the information of the missing systems by explicitly providing the uuid then it works. I have also looked into mongodb and postgresql databases and i can see the systems are there.

Actions #4

Updated by Eric Helms almost 9 years ago

Are the missing hosts different in anyway than the hosts that are showing up? Hypervisors? or configuration? or the base OS? Trying to see if there is a common thread.

Actions #5

Updated by Claudiu Nagy almost 9 years ago

The missing hosts are identical with others that work.

Actions #6

Updated by Eric Helms almost 9 years ago

Can you try running `rake katello:reindex' as this sounds like the registered systems are not in Elasticsearch.

Actions #7

Updated by Claudiu Nagy almost 9 years ago

I have run the command "foreman-rake katello:reindex", but the problem is still there. =========
  1. foreman-rake katello:reindex
    Elasticsearch Indices cleared.
    Re-indexing Katello::TaskStatus
    Re-indexing Katello::ContentViewFilter
    Re-indexing Katello::Product
    Re-indexing Katello::Repository
    Re-indexing Katello::ContentView
    Re-indexing Katello::ContentViewPuppetEnvironment
    Re-indexing Katello::ContentViewPuppetModule
    Re-indexing Katello::HostCollection
    Re-indexing Katello::ContentViewHistory
    Re-indexing Katello::Job
    Re-indexing Katello::ContentViewPackageFilterRule
    Re-indexing Katello::System
    Re-indexing Katello::ContentViewPackageGroupFilterRule
    Re-indexing Katello::Notice
    Re-indexing Katello::ContentViewErratumFilterRule
    Re-indexing Katello::ActivationKey
    Re-indexing Katello::Provider
    Re-indexing Katello::Distributor
    Re-indexing Katello::PulpTaskStatus
    Re-indexing Katello::PulpSyncStatus
    Re-indexing Katello::ContentViewPackageGroupFilter
    Re-indexing Katello::ContentViewErratumFilter
    Re-indexing Katello::ContentViewPackageFilter
    Re-indexing Katello::MarketingProduct
    Re-indexing Katello::Hypervisor
    Re-indexing Katello::Package
    Re-indexing Katello::PuppetModule
    Re-indexing Katello::Distribution
    Re-indexing Katello::PackageGroup
    Re-indexing Pools =====
    In the Re-indexing list i don't see any Katello::ContetHosts or something similar. Is it posible that this job is not re-indexing the content hosts?
Actions #8

Updated by Claudiu Nagy almost 9 years ago

Below are a few more things that i have noticed:
1) only 2 content hosts have the problem at this time, and hosts that have been registered since then are working as expected
2) I was able to add the 2 content hosts to a Host Collection (with hammer cli) and that Host collection shows a count of 6 Content Hosts but when i list them i only see 4 of them.

Something happened with this 2 hosts that prevents them from being listed in katello related queries (webpage, API or CLI).

Actions #9

Updated by Eric Helms almost 9 years ago

  • translation missing: en.field_release changed from 55 to 61
Actions #10

Updated by Eric Helms over 8 years ago

  • translation missing: en.field_release changed from 61 to 31
Actions #11

Updated by Stephen Benjamin over 8 years ago

  • translation missing: en.field_release changed from 31 to 70

Mass move to 2.4.0

Actions #12

Updated by Justin Sherrill over 8 years ago

  • translation missing: en.field_release changed from 70 to 86
Actions #13

Updated by Eric Helms about 8 years ago

  • Status changed from Need more information to Resolved

Elasticsearch has been removed and content hosts have been reworked for better integration with Host objects. Please re-open if you still see this on 3.0

Actions

Also available in: Atom PDF