Pages

Tuesday, April 21, 2015

Enabling Instance resizing In Openstack Juno


Editing Configuration
#Run on ALL Compute Server and Contoller Server

sed -i "s/#allow_resize_to_same_host.*/allow_resize_to_same_host=true/g" /etc/nova/nova.conf
sed -i "s/#allow_migrate_to_same_host.*/allow_migrate_to_same_host=true/g" /etc/nova/nova.conf

Configure the nova user
usermod -s /bin/bash nova

And enable password less authentication between Nova user’s in all server’s.

To Create Public and Private key for the user
ssh-keygen

To Copy the Public key to other users
ssh-copy-id <To all Server’s>

Add the Following Configruation file under Nova User in Every Server which has a Nova User
su - nova
cat << EOF > ~/.ssh/config
Host *
    StrictHostKeyChecking no
    UserKnownHostsFile=/dev/null
EOF

5 comments:

  1. When I try to SU to nova, it requires a password.
    how do you get around that?

    ReplyDelete
  2. Hi , you can set the nova password from the root user. By default the nova user don't have password. But once we change the shell for nova user we can set the password from the root user.

    ReplyDelete
    Replies
    1. Will resetting password break anything in openstack?

      Delete
    2. Hi, I am not 100% sure about it. But in our environment it didn't break anything and it worked fine.

      Delete
  3. This comment has been removed by a blog administrator.

    ReplyDelete