Upgraded to 1.5 from 1.41 and when trying to delete a system through
Foreman we get this error:
Warning!PGError: ERROR: value too long for type character varying(255) :
INSERT INTO "audits" ("action", "associated_id", "associated_name",
"associated_type", "auditable_id", "auditable_name", "auditable_type",
"audited_changes", "comment", "created_at", "remote_address", "user_id",
"user_type", "username", "version") VALUES ($1, $2, $3, $4, $5, $6, $7, $8,
$9, $10, $11, $12, $13, $14, $15) RETURNING "id"
Other VM actions such as shutting the VM off seem to work fine, just not
able to delete so far.
Any ideas?
Thanks.
I think this is bug Bug #5671: Stack trace due to audit table field being too short - Foreman as long puppet
class parameter overrides can cause long audit messages. A patch is
linked from that bug report if you want to use it, or it will be in
Foreman 1.5.1 when released.
···
On 14/05/14 19:28, Jack Watroba wrote:
> Upgraded to 1.5 from 1.41 and when trying to delete a system through
> Foreman we get this error:
>
>
> Warning!
>
> PGError: ERROR: value too long for type character varying(255) : INSERT
> INTO "audits" ("action", "associated_id", "associated_name",
> "associated_type", "auditable_id", "auditable_name", "auditable_type",
> "audited_changes", "comment", "created_at", "remote_address", "user_id",
> "user_type", "username", "version") VALUES ($1, $2, $3, $4, $5, $6, $7,
> $8, $9, $10, $11, $12, $13, $14, $15) RETURNING "id"
>
> Other VM actions such as shutting the VM off seem to work fine, just not
> able to delete so far.
>
> Any ideas?
–
Dominic Cleal
Red Hat Engineering