Ask Your Question
0

resize instance [closed]

asked 2016-04-05 14:08:25 -0500

Whistler gravatar image

How to resize an instance in openstack kilo.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Whistler
close date 2016-04-28 11:18:19.406157

2 answers

Sort by ยป oldest newest most voted
1

answered 2016-04-06 02:44:36 -0500

soumitrakarmakar gravatar image

updated 2016-04-28 11:16:53 -0500

Allow password less ssh communication between your compute nodes. The problem should be resolved. **

  1. cat /etc/passwd | grep nova (check if the userid in all the compute are same.)
  2. Modify user nova: usermod -s /bin/bash nova

Generate ssh key for nova user 3. su - nova 4. ssh-keygen -t rsa -bash-4.2$ cat << EOF > ~/.ssh/config Host * StrictHostKeyChecking no UserKnownHostsFile=/dev/null EOF

-bash-4.2$ cat ~/.ssh/id_rsa.pub > .ssh/authorized_keys -bash-4.2$ chmod 600 .ssh/authorized_keys

Then scp the files in .ssh/ to all compute nodes scp .ssh/* ip_of_your_compute_node://var/lib/nova/.ssh/

for that setup a password for nova:

passwd nova

**

edit flag offensive delete link more

Comments

check your flavor

herrsergio gravatar imageherrsergio ( 2016-04-28 10:16:20 -0500 )edit
0

answered 2016-04-06 05:39:13 -0500

The command to resize instance is

nova resize myCirrosServer 4 --poll

--poll parameter is used to display the resize progress.

4 is the flavor id that you can get by nova flavor-list and the instance will be resized to that flavour.

Hope that helps !!

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2016-04-05 14:08:25 -0500

Seen: 360 times

Last updated: Apr 28 '16