Bug 726961 - driver_postgresql.py is not able to handle password with special chars
Summary: driver_postgresql.py is not able to handle password with special chars
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Spacewalk
Classification: Community
Component: Installation
Version: 1.5
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jan Pazdziora (Red Hat)
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space16
TreeView+ depends on / blocked
 
Reported: 2011-07-31 13:47 UTC by Alexander Yegorov
Modified: 2012-03-06 09:17 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-08-01 11:28:27 UTC
Embargoed:


Attachments (Terms of Use)

Description Alexander Yegorov 2011-07-31 13:47:45 UTC
Description of problem:
1. spacewalk-setup is not able to run successfully, if the password contains special chars
2. /usr/bin/rhn-satellite-activate --disconnected --rhn-cert=/usr/share/spacewalk/setup/spacewalk-public.cert fails with the error about inability to connect to postgresql DB

Version-Release number of selected component (if applicable):
1.5.45

How reproducible:
Running  spacewalk-setup
Run spacewalk-setup --disconnected --answer-file=/tmp/ansfile
ansfile should contain the following value among defaults:
db-password=pass#word

Steps to Reproduce:
1. put the following into ansfile:
admin-email = root@localhost
ssl-set-org = Spacewalk Org
ssl-set-org-unit = spacewalk
ssl-set-city = My City
ssl-set-state = My State
ssl-set-country = US
ssl-password = spacewalk
ssl-set-email = root@localhost
ssl-config-sslvhost = Y
db-backend=postgresql
db-name=spaceschema
db-user=spaceuser
db-password=pass#word
db-host=host
db-port=5432
enable-tftp=Y
2.Run spacewalk-setup --disconnected --answer-file=/tmp/ansfile
3. Get the following message after  spacewalk-setup exit:
There was a problem validating the satellite certificate: 1
  
Actual results:
.....
** Activating Spacewalk.
There was a problem validating the satellite certificate: 1


Expected results:
.....
** Activating Spacewalk.
* Enabling Monitoring.
* Configuring apache SSL virtual host.
* Configuring tomcat.
* Configuring jabberd.
* Creating SSL certificates.
** SSL: Generating CA certificate.
** SSL: Deploying CA certificate.
** SSL: Generating server certificate.
** SSL: Storing SSL certificates.
* Deploying configuration files.
* Update configuration in database.
* Setting up Cobbler..
cobblerd does not appear to be running/accessible
* Restarting services.
   ((%%))
Installation complete.
Visit https://server.com to create the Spacewalk administrator account.

Additional info:

Comment 1 Jan Pazdziora (Red Hat) 2011-08-01 11:28:27 UTC
This is not about driver_postgresql.py, it's about the hash sign being used to mark comments in the config files. As such, we consider this as a known limitation.


Note You need to log in before you can comment on or make changes to this bug.