Bug 1356213
Summary: | PostgresAdmin.runcmd fails when overrides to the default options are provided | |||
---|---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Joe Vlcek <jvlcek> | |
Component: | Appliance | Assignee: | Joe Vlcek <jvlcek> | |
Status: | CLOSED ERRATA | QA Contact: | Alex Newman <anewman> | |
Severity: | medium | Docs Contact: | ||
Priority: | high | |||
Version: | 5.7.0 | CC: | abellott, anewman, gtanzill, jdeubel, jhardy, jvlcek, kbrock, obarenbo, simaishi | |
Target Milestone: | GA | Keywords: | ZStream | |
Target Release: | 5.7.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | appliance:database | |||
Fixed In Version: | 5.7.0.0 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1438674 (view as bug list) | Environment: | ||
Last Closed: | 2017-01-04 12:57:22 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1438674 |
Description
Joe Vlcek
2016-07-13 17:17:29 UTC
This issue is blocking www.pivotaltracker.com/projects/1608513
The source of the failure is the arguements to File.open are out of order in
gems/pending/util/postgres_admin.rb
10.8.99.217 sb> diff gems/pending/util/postgres_admin.rb.FIX gems/pending/util/postgres_admin.rb.ORIG
270c270
< File.open(PGPASS_FILE, "w", 0600) { |f| f.write pass } if opts[:password]
---
> File.open(PGPASS_FILE, 0600, "w") { |f| f.write pass } if opts[:password]
This is fixed by Keenan Brock's commit: https://github.com/ManageIQ/manageiq/commit/0dcef4f71016b704afee8b5642a95f4946fe5041 *** Bug 1356212 has been marked as a duplicate of this bug. *** 5.7.0.3 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. https://rhn.redhat.com/errata/RHBA-2017-0012.html |