After upgrading rhev from 3.2 to 3.3, the rhevm-dwh-setup script fails

Solution Unverified - Updated -

Issue

  • When upgrading rhev, running rhev-dwh-setup fails with:
2014-06-04 05:52:10::DEBUG::common_utils::915::root:: Executing command --> '/bin/su -l postgres -c /usr/bin/psql -U postgres -tA -c "select 1 from pg_roles where rolname='readonly';"' in working directory '/root'
2014-06-04 05:52:10::DEBUG::common_utils::970::root:: output =
2014-06-04 05:52:10::DEBUG::common_utils::971::root:: stderr = Password for user postgres:
psql: fe_sendauth: no password supplied

2014-06-04 05:52:10::DEBUG::common_utils::972::root:: retcode = 2
2014-06-04 05:52:10::ERROR::rhevm-dwh-setup::703::root:: Exception caught!
2014-06-04 05:52:10::ERROR::rhevm-dwh-setup::704::root:: Traceback (most recent call last):
  File "/usr/bin/rhevm-dwh-setup", line 485, in main
    while not utils.userValid(readonly_user):
  File "/usr/share/ovirt-engine-dwh/common_utils.py", line 1564, in userValid
    output, rc = runPostgresSuQuery(sql_query)
  File "/usr/share/ovirt-engine-dwh/common_utils.py", line 1505, in runPostgresSuQuery
    stdIn=stdIn,
  File "/usr/share/ovirt-engine-dwh/common_utils.py", line 975, in execCmd
    raise Exception(msg)
Exception: Return Code is not zero

Environment

  • Red Hat Enterprise Virtualization 3.3
  • rhevm upgraded to 3.3 using engine-setup
  • rhevm-dwh and rhevm-reports updated to 3.3 using yum

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.