Red Hat Bugzilla – Bug 1264312
Deprecation warning when initializing database
Last modified: 2015-12-08 08:31:17 EST
Description of problem:
When you start appliance_console and use it to configure database, a deprecation warning pops up during the process:
Initialize postgresql complete
DEPRECATION WARNING: In the next release, this will return the same as `#connection_pool_list`. (An array of pools, rather than a hash mapping specs to pools.). (called from validate! at /var/www/miq/lib/appliance_console/database_configuration.rb:214)
Create region starting
Version-Release number of selected component (if applicable):
*** Bug 1270595 has been marked as a duplicate of this bug. ***
New commit detected on ManageIQ/manageiq/master:
Author: Nick Carboni <email@example.com>
AuthorDate: Tue Oct 20 09:47:38 2015 -0400
Commit: Nick Carboni <firstname.lastname@example.org>
CommitDate: Tue Oct 20 09:47:38 2015 -0400
Using .remove_connection to remove test connection from the pool
This removes a deprecation warning and also corrects the behavior as
the hash returned from .connection_pools has a connection spec as the key
rather than the owner class name, so the previous implementation was never
deleting the connection anyway.
gems/pending/appliance_console/database_configuration.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
The warning no longer show up in 18.104.22.168
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.