Ask Your Question

re-sizing instance error

asked 2015-05-06 09:16:01 -0500

bobyakov gravatar image

Hi Guys,

I know I have to set up passwordless ssh to get this to work. Here is my problem, all the instructions state to switch to nova user, before running ssh-keygen when I do it prompts me for a password. Have no Idea what it is, and concerned if I reset it, what will break. Please shed some light.

Using Ubuntu 14 and icehouse.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-05-06 09:32:06 -0500

Are you running these as root, sudo, or nova? Have you tried switching to your nova user and trying again?

usermod -s /bin/bash nova
su - nova
ssh-keygen -t rsa
edit flag offensive delete link more


You helped me figure it out. I needed to modify user from /bin/false to /bin/bash then as root I am able to switch to nova. My mistake first I tried from a regular user,that didn't work I switched to root and tried again,but I never changed usermod. I also tried usermod from basic user not from root

bobyakov gravatar imagebobyakov ( 2015-05-06 10:18:55 -0500 )edit

Also can you confirm if I need to do this on controller as well as compute nodes, or just compute nodes?

bobyakov gravatar imagebobyakov ( 2015-05-06 10:20:07 -0500 )edit

Should just be your compute nodes, also in your ~/.ssh/config (if this file doesn't exist, just create it):

Host * StrictHostKeyChecking no

or you can manually SSH to all compute nodes that exist and accept the key

omar-munoz gravatar imageomar-munoz ( 2015-05-06 10:49:42 -0500 )edit

Do I need to set a password for the nova user? tried ssh-copy-id nova@host, prompting for password. Also, would resetting this password impact anything in openstack, not sure how this nova user id different from nova user in keystone.

bobyakov gravatar imagebobyakov ( 2015-05-08 14:10:34 -0500 )edit

why not just scp /var/lib/nova/.ssh/ root@compute01:/var/lib/nova/.ssh/authorized_keys

sudo chown -R nova:nova /var/lib/nova/
omar-munoz gravatar imageomar-munoz ( 2015-05-08 15:08:48 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-05-06 09:16:01 -0500

Seen: 106 times

Last updated: May 06 '15