Bug 1371515
Summary: | Exception on GetUserProfileQuery (unknown cause) : "The column name user_portal_vm_auto_login was not found in this ResultSet" | ||
---|---|---|---|
Product: | [oVirt] ovirt-engine | Reporter: | Yaniv Kaul <ykaul> |
Component: | Database.Core | Assignee: | Martin Perina <mperina> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Lucie Leistnerova <lleistne> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 4.0.2.7 | CC: | bugs, emesika, mgoldboi, mperina, tjelinek |
Target Milestone: | ovirt-4.0.4 | Flags: | rule-engine:
ovirt-4.0.z+
rule-engine: blocker+ mgoldboi: planning_ack+ mperina: devel_ack+ pstehlik: testing_ack+ |
Target Release: | 4.0.4 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-09-26 12:41:19 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | Infra | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Yaniv Kaul
2016-08-30 11:47:53 UTC
BTW, it seems to flood the log. Example: 2016-08-30 14:49:20,495 ERROR [org.ovirt.engine.core.bll.GetUserProfileQuery] (default task-142) [] Exception: org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [select * from getuserprofilebyuserid(?)]; nested exception is org.postgresql.util.PSQLException: The column name user_portal_vm_auto_login was not found in this ResultSet. 2016-08-30 14:49:20,946 ERROR [org.ovirt.engine.core.bll.GetUserProfileQuery] (default task-239) [] Query 'GetUserProfileQuery' failed: PreparedStatementCallback; bad SQL grammar [select * from getuserprofilebyuserid(?)]; nested exception is org.postgresql.util.PSQLException: The column name user_portal_vm_auto_login was not found in this ResultSet. 2016-08-30 14:49:20,946 ERROR [org.ovirt.engine.core.bll.GetUserProfileQuery] (default task-239) [] Exception: org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [select * from getuserprofilebyuserid(?)]; nested exception is org.postgresql.util.PSQLException: The column name user_portal_vm_auto_login was not found in this ResultSet. 2016-08-30 14:49:20,957 ERROR [org.ovirt.engine.core.bll.GetUserProfileQuery] (default task-239) [] Query 'GetUserProfileQuery' failed: PreparedStatementCallback; bad SQL grammar [select * from getuserprofilebyuserid(?)]; nested exception is org.postgresql.util.PSQLException: The column name user_portal_vm_auto_login was not found in this ResultSet. 2016-08-30 14:49:20,957 ERROR [org.ovirt.engine.core.bll.GetUserProfileQuery] (default task-239) [] Exception: org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [select * from getuserprofilebyuserid(?)]; nested exception is org.postgresql.util.PSQLException: The column name user_portal_vm_auto_login was not found in this ResultSet. 2016-08-30 14:49:22,662 ERROR [org.ovirt.engine.core.bll.GetUserProfileQuery] (default task-117) [] Query 'GetUserProfileQuery' failed: PreparedStatementCallback; bad SQL grammar [select * from getuserprofilebyuserid(?)]; nested exception is org.postgresql.util.PSQLException: The column name user_portal_vm_auto_login was not found in this ResultSet. 2016-08-30 14:49:22,662 ERROR [org.ovirt.engine.core.bll.GetUserProfileQuery] (default task-117) [] Exception: org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [select * from getuserprofilebyuserid(?)]; nested exception is org.postgresql.util.PSQLException: The column name user_portal_vm_auto_login was not found in this ResultSet. 2016-08-30 14:49:31,434 ERROR [org.ovirt.engine.core.bll.GetUserProfileQuery] (default task-239) [] Query 'GetUserProfileQuery' failed: PreparedStatementCallback; bad SQL grammar [select * from getuserprofilebyuserid(?)]; nested exception is org.postgresql.util.PSQLException: The column name user_portal_vm_auto_login was not found in this ResultSet. 2016-08-30 14:49:31,434 ERROR [org.ovirt.engine.core.bll.GetUserProfileQuery] (default task-239) [] Exception: org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [select * from getuserprofilebyuserid(?)]; nested exception is org.postgresql.util.PSQLException: The column name user_portal_vm_auto_login was not found in this ResultSet. 2016-08-30 14:49:31,812 ERROR [org.ovirt.engine.core.bll.GetUserProfileQuery] (default task-234) [] Query 'GetUserProfileQuery' failed: PreparedStatementCallback; bad SQL grammar [select * from getuserprofilebyuserid(?)]; nested exception is org.postgresql.util.PSQLException: The column name user_portal_vm_auto_login was not found in this ResultSet. 2016-08-30 14:49:31,812 ERROR [org.ovirt.engine.core.bll.GetUserProfileQuery] (default task-234) [] Exception: org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [select * from getuserprofilebyuserid(?)]; nested exception is org.postgresql.util.PSQLException: The column name user_portal_vm_auto_login was not found in this ResultSet. Marking as blocker, because all user upgrading from 3.6 are affected by this. Only new 4.0 installation (no upgrade) works fine Here is workaround for 4.0.0 - 4.0.3 users who performed upgrade from 3.6 (clean 4.0 installations are not affected by this bug): cd /usr/share/ovirt-engine/dbscripts/upgrade cp 03_06_1790_add_vm_auto_login_column_to_user_profiles_table.sql 04_00_0865_add_vm_auto_login_column_to_user_profiles_table.sql engine-setup Following workaround will cause no issues on future upgrade to 4.0.4, which fixes the issue regularly. engine upgraded 3.6.9 -> 4.0.4 and column user_profiles.user_portal_vm_auto_login created, no setup error verified in ovirt-engine-4.0.4.2-0.1.el7ev.noarch |