[Puppet Users] puppetdb, foreman, one particular node has a problem

Steve Wray
Wed, 16 Oct 2013 03:46:18 -0000

I have about 75 nodes now and recently added 6 of them. They are all
running Debian squeeze and all have exactly the same Puppet packages. One
is giving an error when I try to enroll it:

Failed to import facts: PG::UndefinedColumn: ERROR:  column
"environment"
of relation "hosts" does not exist
LINE 1: ...d", "created_at", "disk",
"domain_id", "enabled", "environme...

: INSERT INTO "hosts" ("architecture_id", "build",
"certname", "comment",
"compute_resource_id", "created_at", "disk",
"domain_id", "enabled", "environment",
"environment_id", "hostgroup_id", "image_file",
"image_id", "installed_at",
"ip", "last_compile", "last_freshcheck",
"last_report", "location_id",
"mac", "managed", "medium_id",
"model_id", "name", "operatingsystem_id",
"organization_id", "owner_id", "owner_type",
"ptable_id", "puppet_ca_proxy_id",
"puppet_proxy_id","puppet_status", "root_pass",
"serial", "source_file_id",
"subnet_id", "type", "updated_at",
"use_image", "uuid") VALUES ($1, $2, $3,
$4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19,
$20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33, $34,
$35, $36, $37, $38, $39, $40, $41) RETURNING "id"
  Rendered text template (0.0ms)

theres nothing special about this node and other enrollments I''ve done
today have been fine. Exactly the same environments, same packages, same
everything. Whats different?