{"record":{"id":"6a47bdc7b9078771","repo":"theforeman/foreman","slug":"unable-to-obtain-group-group-from-external-ipam","errorCode":null,"errorMessage":"Unable to obtain group %{group} from External IPAM.","messagePattern":"Unable to obtain group %(.+?) from External IPAM\\.","errorType":"exception","errorClass":"ProxyException","httpStatus":null,"severity":"error","filePath":"app/services/proxy_api/external_ipam.rb","lineNumber":152,"sourceCode":"    #\n    # Params:   1. group:     The name of the External IPAM group\n    #\n    # Responses:\n    #   Response if success:\n    #     {\"name\":\"Awesome Group\", \"description\": \"Awesome Group\"}\n    #   Response if group doesn't exist:\n    #     {\"error\": \"Group not found in External IPAM\"}\n    #   Response if groups are not supported:\n    #     {\"error\": \"Groups are not supported\"}\n    #   Response if can't connect to External IPAM server\n    #     {\"error\": \"Unable to connect to External IPAM server\"}\n    def get_group(group)\n      raise \"group must be provided\" if group.blank?\n      response = parse get(\"/groups/#{CGI.escape(group)}\")\n      raise(response['error']) if response['error'].present?\n      response\n    rescue => e\n      raise ProxyException.new(url, e, N_(\"Unable to obtain group %{group} from External IPAM.\"), group: group)\n    end\n\n    # Get a list of subnets for the given External IPAM group.\n    #\n    # Params:  1. group:     The name of the External IPAM group containing the subnet.\n    #\n    # Responses:\n    #   Response if success:\n    #   {[\n    #     {subnet\":\"100.10.10.0\",\"mask\":\"24\",\"description\":\"Test Subnet 1\"},\n    #     {subnet\":\"100.20.20.0\",\"mask\":\"24\",\"description\":\"Test Subnet 2\"}\n    #   ]}\n    #   Response if groups not supported:\n    #     {\"error\": \"Groups are not supported\"}\n    #   Response if no subnets exist in group.\n    #     {\"error\": \"Subnet not found in External IPAM\"}\n    #   Response if group not found:\n    #     {\"error\": \"Group not found in External IPAM\"}","sourceCodeStart":134,"sourceCodeEnd":170,"githubUrl":"https://github.com/theforeman/foreman/blob/6b05625475cfe6aac31a88f8c8ee6e62e4efe620/app/services/proxy_api/external_ipam.rb#L134-L170","documentation":"Error \"Unable to obtain group %{group} from External IPAM.\" thrown in theforeman/foreman.","triggerScenarios":"Thrown at app/services/proxy_api/external_ipam.rb:152 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"}