{"record":{"id":"0fa2b7f60552b57e","repo":"theforeman/foreman","slug":"unable-to-perform-identify-bmc-operation","errorCode":null,"errorMessage":"Unable to perform identify BMC operation","messagePattern":"Unable to perform identify BMC operation","errorType":"exception","errorClass":"ProxyAPI::ProxyException","httpStatus":null,"severity":"error","filePath":"app/services/proxy_api/bmc.rb","lineNumber":84,"sourceCode":"    end\n\n    # perform an identify operation on the bmc device\n    def identify(args)\n      # get \"/bmc/:host/chassis/identify/:action\"\n      # put \"/bmc/:host/chassis/identify/:action\"\n      case args[:action]\n      when \"status\"\n        full_path_as_hash = bmc_url_for_get('identify', args[:action])\n        parse get(full_path_as_hash[:path], query: full_path_as_hash[:query])\n      when \"on\", \"off\"\n        parse put(with_provider(args), bmc_url_for('identify', args[:action]))\n      else\n        raise NoMethodError\n      end\n    rescue NoMethodError => e\n      raise e\n    rescue => e\n      raise ProxyException.new(url, e, N_(\"Unable to perform identify BMC operation\"))\n    end\n\n    # perform a lan get operation on the bmc device\n    def lan(args)\n      # get \"/bmc/:host/lan/:action\"\n      case args[:action]\n      when \"ip\", \"netmask\", \"mac\", \"gateway\"\n        full_path_as_hash = bmc_url_for_get('lan', args[:action])\n        response = parse(get(full_path_as_hash[:path], query: full_path_as_hash[:query]))\n        response.is_a?(Hash) ? response['result'] : response\n      else\n        raise NoMethodError\n      end\n    rescue NoMethodError => e\n      raise e\n    rescue => e\n      raise ProxyException.new(url, e, N_(\"Unable to perform lan BMC operation\"))\n    end","sourceCodeStart":66,"sourceCodeEnd":102,"githubUrl":"https://github.com/theforeman/foreman/blob/6b05625475cfe6aac31a88f8c8ee6e62e4efe620/app/services/proxy_api/bmc.rb#L66-L102","documentation":"Error \"Unable to perform identify BMC operation\" thrown in theforeman/foreman.","triggerScenarios":"Thrown at app/services/proxy_api/bmc.rb:84 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6b05625475cfe6aac31a88f8c8ee6e62e4efe620","analyzedAt":"2026-08-23T17:46:34.094Z","schemaVersion":2},"datasetVersion":"2026-08-23T21:17:23.414Z"}