Project

General

Profile

Actions

Bug #8555

closed

Associate VMs results in an error

Added by Andrew Lau over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Difficulty:
easy
Triaged:
Fixed in Releases:
Found in Releases:

Description

Hello,

Kudos for this awesome plugin, ran into one bug while testing it.

Running Foreman 1.7 (upgrade from 1.6), errors occurred in both 1.6 and 1.7 and using ruby193-rubygem-foreman_digitalocean-0.0.2-1.el6.noarch

When associating VMs, it will error with:

ActiveRecord::StatementInvalid
PGError: ERROR: operator does not exist: character varying = integer LINE 1: ...sts"."compute_resource_id" = 1 AND "hosts"."uuid" IN (335119... ^ HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts. : SELECT COUNT FROM "hosts" WHERE "hosts"."type" IN ('Host::Managed') AND "hosts"."compute_resource_id" = 1 AND "hosts"."uuid" IN (3351196)
app/controllers/compute_resources_controller.rb:46:in `block in associate'
app/controllers/compute_resources_controller.rb:45:in `associate'
app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'
lib/middleware/catch_json_parse_errors.rb:9:in `call'

Actions

Also available in: Atom PDF