Bug 902681

Summary: SSH setup error
Product: [Fedora] Fedora Reporter: Matthias Runge <mrunge>
Component: openstack-packstackAssignee: Derek Higgins <derekh>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: derekh, mmagr, p
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-22 09:28:14 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:
Attachments:
Description Flags
Log file from run none

Description Matthias Runge 2013-01-22 09:04:17 UTC
Created attachment 684953 [details]
Log file from run

Hi,
in a script, I'm doing something like this:
ssh-keygen -f /root/.ssh/id_rsa -N ""
cat /root/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys
chmod 600 /root/.ssh/id_rsa.pub
cat > /root/packstack-answer-file << EOP
[general]
CONFIG_DEBUG=n
CONFIG_GLANCE_INSTALL=y
CONFIG_CINDER_INSTALL=y
CONFIG_NOVA_INSTALL=y
CONFIG_HORIZON_INSTALL=y
CONFIG_SWIFT_INSTALL=n
CONFIG_CLIENT_INSTALL=y
CONFIG_SSH_KEY=/root/.ssh/id_rsa
CONFIG_MYSQL_HOST=127.0.0.1
CONFIG_MYSQL_USER=root
...
CONFIG_RH_PASSWORD=
EOP

systemctl start mysqld.service
packstack --answer-file=/root/packstack-answer-file


The packstack bails out with the following error: -----END RSA PRIVATE KEY-----' /root/.ssh/authorized_keys
+ echo -----BEGIN RSA PRIVATE KEY-----
+ MIIEowIBAAKCAQEA0GOyK6TPAh4xpY4Yab/fHBAok1Tu5m9VmQziThm1rK/1YDve
bash: line 32: MIIEowIBAAKCAQEA0GOyK6TPAh4xpY4Yab/fHBAok1Tu5m9VmQziThm1rK/1YDve: No such file or directory
++ t
++ exit 127

rpm -q openstack-packstack
openstack-packstack-2012.2.2-0.4.dev315.fc18.noarch

Comment 1 Matthias Runge 2013-01-22 09:07:38 UTC
Ah, I see, if I don't provide any value for CONFIG_SSH_KEY, the install goes further.

Comment 2 Martin Magr 2013-01-22 09:21:18 UTC
the correct value should be CONFIG_SSH_KEY=/root/.ssh/id_rsa.pub

Comment 3 Matthias Runge 2013-01-22 09:28:14 UTC
I see. Thanks anyway.