Bug 902681 - SSH setup error
Summary: SSH setup error
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: openstack-packstack
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Derek Higgins
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-22 09:04 UTC by Matthias Runge
Modified: 2013-01-22 09:28 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-01-22 09:28:14 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Log file from run (3.27 KB, text/x-log)
2013-01-22 09:04 UTC, Matthias Runge
no flags Details

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.


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