{"action":"created","issue":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/1497","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/1497/labels{/name}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/1497/comments","events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/1497/events","html_url":"https://github.com/ManageIQ/manageiq/issues/1497","id":55812459,"number":1497,"title":"Ovirt/RHEVM discovery probe detects other services as RHEVM","user":{"login":"jrafanie","id":19339,"avatar_url":"https://avatars.githubusercontent.com/u/19339?v=3","gravatar_id":"","url":"https://api.github.com/users/jrafanie","html_url":"https://github.com/jrafanie","followers_url":"https://api.github.com/users/jrafanie/followers","following_url":"https://api.github.com/users/jrafanie/following{/other_user}","gists_url":"https://api.github.com/users/jrafanie/gists{/gist_id}","starred_url":"https://api.github.com/users/jrafanie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrafanie/subscriptions","organizations_url":"https://api.github.com/users/jrafanie/orgs","repos_url":"https://api.github.com/users/jrafanie/repos","events_url":"https://api.github.com/users/jrafanie/events{/privacy}","received_events_url":"https://api.github.com/users/jrafanie/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-01-28T20:42:23Z","updated_at":"2015-01-30T18:15:56Z","closed_at":null,"body":"https://github.com/ManageIQ/manageiq/blob/cc31879ae292c2bd4aad3a143a216cbfc536daa0/lib/discovery/modules/RedHatRhevmProbe.rb#L26\r\n\r\n```ruby\r\n    require 'ovirt'\r\n\r\n    if PortScanner.portOpen(ost, Ovirt::Service::DEFAULT_PORT)\r\n      begin\r\n        rhevm = Ovirt::Inventory.new(\r\n          :server     => ost.ipaddr,\r\n          :username   => 'test',\r\n          :password   => 'test',\r\n          :verify_ssl => false\r\n        )\r\n        rhevm.api\r\n      rescue => err\r\n        ost.hypervisor << :rhevm if err.to_s.include?('401 Unauthorized:')\r\n      end\r\n    end\r\n```\r\n\r\nSince the DEFAULT_PORT is 443 and the default uri path is /api, we'd identify anything without the test user that responds on http://ip:443/api  with \"401 Unauthorized\" as RHEVM/Ovirt."},"comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments/72244916","html_url":"https://github.com/ManageIQ/manageiq/issues/1497#issuecomment-72244916","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/1497","id":72244916,"user":{"login":"jrafanie","id":19339,"avatar_url":"https://avatars.githubusercontent.com/u/19339?v=3","gravatar_id":"","url":"https://api.github.com/users/jrafanie","html_url":"https://github.com/jrafanie","followers_url":"https://api.github.com/users/jrafanie/followers","following_url":"https://api.github.com/users/jrafanie/following{/other_user}","gists_url":"https://api.github.com/users/jrafanie/gists{/gist_id}","starred_url":"https://api.github.com/users/jrafanie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrafanie/subscriptions","organizations_url":"https://api.github.com/users/jrafanie/orgs","repos_url":"https://api.github.com/users/jrafanie/repos","events_url":"https://api.github.com/users/jrafanie/events{/privacy}","received_events_url":"https://api.github.com/users/jrafanie/received_events","type":"User","site_admin":false},"created_at":"2015-01-30T18:15:56Z","updated_at":"2015-01-30T18:15:56Z","body":"@dajohnso @blomquisg do you have any idea who might have better suggestions on how to properly discover ovirt/rhevm?  I do notice the responses have this in their header:\r\n`WWW-Authenticate: Basic realm=\"ENGINE\"`  \r\n\r\nENGINE doesn't seem very specific to RHEVM/ovirt but it's probably better than what we're doing now."}}