Project

General

Profile

Actions

Bug #23306

closed

foreman-maintain health check --label candlepin-validate-db fails on external database

Added by Ales Dujicek about 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

foreman-maintain does not connect to remote database
it uses local connection --url='jdbc:postgresql:candlepin'
should respect /etc/candlepin/candlepin.conf
org.quartz.dataSource.myDS.URL=jdbc:postgresql://192.168.122.93:5432/candlepin1db
and use
--url='jdbc:postgresql://192.168.122.93:5432/candlepin1db'

# foreman-maintain health check --label candlepin-validate-db
Running ForemanMaintain::Scenario::FilteredScenario
================================================================================
Check to validate candlepin database:                                 [FAIL]
########## ERROR ############
Error running command: liquibase --driver=org.postgresql.Driver --classpath=/usr/share/java/postgresql-jdbc.jar:/var/lib/tomcat/webapps/candlepin/WEB-INF/classes/ --changeLogFile=db/changelog/changelog-validate.xml --url='jdbc:postgresql:candlepin' --username='candlepin1' --password='candlepin1pw' --logLevel=debug migrate -Dcommunity=False
Status code: 65280
Command output: Liquibase update Failed: liquibase.exception.DatabaseException: org.postgresql.util.PSQLException: FATAL: password authentication failed for user "candlepin1" 
SEVERE 4/18/18 1:35 AM:liquibase: liquibase.exception.DatabaseException: org.postgresql.util.PSQLException: FATAL: password authentication failed for user "candlepin1" 

rubygem-foreman_maintain-0.1.5-2.el7.noarch

Actions #1

Updated by Kavita Gaikwad almost 6 years ago

  • Bugzilla link set to 1592683
Actions #2

Updated by Kavita Gaikwad almost 6 years ago

  • Assignee set to Kavita Gaikwad
Actions #3

Updated by The Foreman Bot almost 6 years ago

  • Pull request https://github.com/theforeman/foreman_maintain/pull/196 added
Actions #4

Updated by Kavita Gaikwad almost 6 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
Actions #5

Updated by Ivan Necas almost 6 years ago

  • Triaged set to No
  • Fixed in Releases foreman-maintain-0.2.4 added
  • Found in Releases deleted (Nightly)
Actions

Also available in: Atom PDF