Bareos Bug Tracker
Bareos Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001010bareos-core[All Projects] installer / packagespublic2018-09-24 13:422018-10-04 14:31
Reporteraron_s 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
StatusconfirmedResolutionopen 
PlatformLinuxOSUbuntuOS Version16.04
Product Version17.2.4 
Target VersionFixed in Version 
Summary0001010: Bareos database scripts should use db_address parameter in catalog config
DescriptionIf we configure the catalog resource and set "DB Address" and/or "DB Port" it is not used by the database scripts. For flawless configuration the scripts should be capable of installing, maintaining and deleting remote databases.
Steps To Reproduce# Check the configuration
bareos@ubuntu1604-daemons:~# /usr/sbin/bareos-dbcheck -B
catalog=MyCatalog
db_name=bareos
db_driver=postgresql
db_user=bareos
db_password=postgrespassword
db_address=databasehost.example.com
db_port=5432
db_socket=
db_type=PostgreSQL
working_dir=/var/lib/bareos

# Execute one of the scripts
bareos@ubuntu1604-daemons:~# su postgres -c /usr/lib/bareos/scripts/drop_bareos_tables
Dropping postgresql tables
psql: FATAL: database "bareos" does not exist
Dropping of Bareos PostgreSQL tables failed.

# Execute the script and pass the not-recognized parameter like the hostname
bareos@ubuntu1604-daemons:~# su postgres -c "/usr/lib/bareos/scripts/drop_bareos_tables --host databasehost.example.com"
Dropping postgresql tables
Password:
DROP TABLE
[...]
DROP TABLE
Dropping of Bareos PostgreSQL tables succeeded.
TagsNo tags attached.
bareos-master: impact
bareos-master: action
bareos-18.2: impact
bareos-18.2: action
bareos-17.2: impact
bareos-17.2: action
bareos-16.2: impact
bareos-16.2: action
bareos-15.2: impact
bareos-15.2: action
bareos-14.2: impact
bareos-14.2: action
bareos-13.2: impact
bareos-13.2: action
bareos-12.4: impact
bareos-12.4: action
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2018-09-24 13:42 aron_s New Issue
2018-09-24 13:42 aron_s Status new => assigned
2018-09-24 13:42 aron_s Assigned To => aron_s
2018-09-24 13:43 aron_s Status assigned => confirmed
2018-10-04 14:31 aron_s Assigned To aron_s =>
2018-10-04 14:31 aron_s Steps to Reproduce Updated View Revisions


Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker