Last active
August 29, 2015 14:24
-
-
Save kentarosasaki/7921f0d44bb2d073ccc7 to your computer and use it in GitHub Desktop.
NovaでInstanceのresizeができないときの対処法 ref: http://qiita.com/kentarosasaki/items/9c0b6c9200bf424311f9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Unexpected error while running command.\nCommand: ssh ${ip-of-nova-compute} mkdir -p /var/lib/nova/instances/${instance-uuid}\nExit code: 255\nStdout: ''\nStderr: 'Host key verification failed.\\r\\n'\n"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# すべてのnovaノードで追加する | |
allow_resize_to_same_host=True | |
# nova-schedulerが稼働しているノードで追加する | |
scheduler_default_filters=AllHostsFilter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat /etc/passwd | grep nova | |
nova:x:106:112::/var/lib/nova:/bin/false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo usermod -s /bin/bash nova |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo su nova | |
$ ssh-keygen -t rsa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat << EOF > ~/.ssh/config | |
Host * | |
StrictHostKeyChecking no | |
UserKnownHostsFile=/dev/null | |
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys; chmod 600 ~/.ssh/authorized_keys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo su nova | |
$ cd ~/ | |
$ tar zcvf /tmp/nova_ssh.tar.gz .ssh | |
$ scp /tmp/nova_ssh.tar.gz ${パスワードログインが可能な別のユーザ}@${全てのnovaノード}:/tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo tar xvzf /tmp/nova_ssh.tar.gz -C /var/lib/nova/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment