> Do you have some extra plugins installed? Like OpenSCAP? I cannot > reproduce here. >
Nope, I don't have OpenSCAP. Here's what I have: This is an upgraded 1.14.1 version from 1.13. I did not run foreman-installer after the upgrade though. Should I try that or it does not makes sense to do so? > There should be full trace in logs, I don't know why you don't have > it. Have you deleted it, Can you increase logging to DEBUG? > > I've updated bug report with gist links with logs from both Foreman and client sides. It appears to me that during those first 3-5 minutes Foreman gets that "undefined local variable or method `reports'" error back from a client, but after that initial period that issue just magically disappears. With enough hosts doing the same thing, the duplicates are being created in discovered hosts breaking things further - for example, I can't use API to get a list of discovered hosts because of the duplicates: $ curl -kSs -u korekhov:$PASS https://localhost/api/v2/discovered_hosts | jq '.' { "error": { "message": "Host::Discovered#memory delegated to discovery_attribute_set.memory, but discovery_attribute_set is nil: #<Host::Discovered id: 82576, name: \"mac3c4a927210d4\", last_compile: nil, last_report: nil, updated_at: \"2017-04-07 06:25:45\", created_at: \"2017-04-07 06:25:45\", root_pass: nil, architecture_id: nil, operatingsystem_id: nil, environment_id: nil, ptable_id: nil, medium_id: nil, build: false, comment: nil, disk: nil, installed_at: nil, model_id: nil, hostgroup_id: nil, owner_id: nil, owner_type: nil, enabled: true, puppet_ca_proxy_id: nil, managed: false, use_image: nil, image_file: nil, uuid: nil, compute_resource_id: nil, puppet_proxy_id: nil, certname: nil, image_id: nil, organization_id: nil, location_id: nil, type: \"Host::Discovered\", otp: nil, realm_id: nil, compute_profile_id: nil, provision_method: nil, grub_pass: \"\", global_status: 0, lookup_value_matcher: nil, discovery_rule_id: nil, salt_proxy_id: nil, salt_environment_id: nil, pxe_loader: nil>" } } But once I clean up those duplicates, API starts working just fine: $ curl -kSs -u korekhov:$PASS https://localhost/api/v2/discovered_hosts | jq '.' | head { "total": 3203, "subtotal": 3203, "page": 1, "per_page": 50, "search": null, "sort": { "by": null, "order": null }, Please let me know if there's something else I could provide. -- You received this message because you are subscribed to the Google Groups "Foreman users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/foreman-users. For more options, visit https://groups.google.com/d/optout.
