Project

General

Profile

Actions

Bug #9607

closed

discovery search fails on ip address

Added by Ohad Levy about 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Discovery plugin
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

2015-03-02 14:43:28 [I] Started GET "/discovered_hosts/auto_complete_search?search=++facts" for 10.35.4.108 at 2015-03-02 14:43:28 +0000
2015-03-02 14:43:28 [I] Processing by DiscoveredHostsController#auto_complete_search as JSON
2015-03-02 14:43:28 [I]   Parameters: {"search"=>"  facts"}
2015-03-02 14:43:28 [W] Operation FAILED: Host::Discovered(id: integer, name: string, last_compile: datetime, last_freshcheck: datetime, last_report: datetime, updated_at: datetime, source_file_id: integer, created_at: datetime, root_pass: string, serial: string, puppet_status: integer, architecture_id: integer, operatingsystem_id: integer, environment_id: integer, ptable_id: integer, medium_id: integer, build: boolean, comment: text, disk: text, installed_at: datetime, model_id: integer, hostgroup_id: integer, owner_id: integer, owner_type: string, enabled: boolean, puppet_ca_proxy_id: integer, managed: boolean, use_image: boolean, image_file: text, puppet_proxy_id: integer, uuid: string, compute_resource_id: integer, certname: string, image_id: integer, organization_id: integer, location_id: integer, type: string, compute_profile_id: integer, provision_method: string, otp: string, realm_id: integer, grub_pass: string, discovery_rule_id: integer) doesn't have column :ip.
2015-03-02 14:43:28 [I]   Rendered common/500.html.erb (3.9ms)
2015-03-02 14:43:28 [I] Completed 500 Internal Server Error in 19.2ms (Views: 4.7ms | ActiveRecord: 1.4ms)


Related issues 1 (0 open1 closed)

Related to Discovery - Bug #10445: Searching for hosts in discovery view throws postgres errorClosed05/11/2015Actions
Actions #1

Updated by Dominic Cleal about 9 years ago

  • Target version set to Discovery Plugin 3.0.0
  • translation missing: en.field_release deleted (28)
Actions #2

Updated by Ori Rabin about 9 years ago

This also happens with mac.
Just picking ip/mac to search before even adding a value the log shows:

ActiveRecord::UnknownAttributeError (Host::Discovered(id: integer, name: string, last_compile: datetime, last_freshcheck: datetime, last_report: datetime, updated_at: 
datetime, source_file_id: integer, created_at: datetime, root_pass: string, serial: string, puppet_status: integer, architecture_id: integer, operatingsystem_id: 
integer, environment_id: integer, ptable_id: integer, medium_id: integer, build: boolean, comment: text, disk: text, installed_at: datetime, model_id: integer, 
hostgroup_id: integer, owner_id: integer, owner_type: string, enabled: boolean, puppet_ca_proxy_id: integer, managed: boolean, use_image: boolean, image_file: string, 
uuid: string, compute_resource_id: integer, puppet_proxy_id: integer, certname: string, image_id: integer, organization_id: integer, location_id: integer, type: string,
otp: string, realm_id: integer, compute_profile_id: integer, provision_method: string, grub_pass: string, discovery_rule_id: integer) doesn't have column :ip.)
Actions #3

Updated by Lukas Zapletal about 9 years ago

  • Category set to Discovery plugin
  • Priority changed from Normal to Low
  • Target version deleted (Discovery Plugin 3.0.0)
Actions #4

Updated by Ori Rabin about 9 years ago

  • Assignee set to Ori Rabin
Actions #5

Updated by The Foreman Bot about 9 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_discovery/pull/178 added
  • Pull request deleted ()
Actions #6

Updated by Lukas Zapletal almost 9 years ago

  • Related to Bug #10445: Searching for hosts in discovery view throws postgres error added
Actions #7

Updated by Anonymous almost 9 years ago

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

Also available in: Atom PDF