theforeman/foreman · error · Foreman::Renderer::Errors::RenderingError
Partition table not defined for hostgroup
Error message
Partition table not defined for hostgroup
What it means
Error "Partition table not defined for hostgroup" thrown in theforeman/foreman.
Source
Thrown at app/models/hostgroup.rb:134
# TODO: add a method that returns the valid os for a hostgroup
def hostgroup
self
end
def self.title_name
"title".freeze
end
def disk_layout_source
@disk_layout_source ||= if ptable.present?
Foreman::Renderer::Source::String.new(name: ptable.name,
content: ptable.layout.tr("\r", ''))
end
end
def diskLayout
raise Foreman::Renderer::Errors::RenderingError, 'Partition table not defined for hostgroup' unless disk_layout_source
disk_layout_source.content
end
def inherited_lookup_value(key)
if key.path_elements.flatten.include?("hostgroup") && Setting["matchers_inheritance"]
ancestors.reverse_each do |hg|
if (v = LookupValue.find_by(:lookup_key_id => key.id, :id => hg.lookup_values))
return v.value, hg.to_label
end
end
end
[key.default_value, _("Default value")]
end
def parent_params(include_source = false)
hash = {}
ids = ancestor_ids
# need to pull out the hostgroups to ensure they are sorted first,View on GitHub (pinned to 6b05625475)
When it happens
Trigger: Thrown at app/models/hostgroup.rb:134 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of theforeman/foreman@6b05625475 (2026-08-23).
Data as JSON: /api/errors/e51985cf61ca57c7.
Report an issue: GitHub.