UEC: Troubleshooting jika VCPU free / max bernilai NOL

From SpeedyWiki

Jump to: navigation, search

Perhatikan free / max VCPU tidak 0, berisi angka hal ini berarti ada node yang terdaftar & bisa digunakan. Kita mempunyai masalah jika free / max bernilai 0 seperti di bawah ini

euca-describe-availability-zones verbose
AVAILABILITYZONE	cluster1	192.168.0.2
AVAILABILITYZONE	|- vm types	free / max   cpu   ram  disk
AVAILABILITYZONE	|- m1.small	0000 / 0000   1    192     2
AVAILABILITYZONE	|- c1.medium	0000 / 0000   1    256     5
AVAILABILITYZONE	|- m1.large	0000 / 0000   2    512    10
AVAILABILITYZONE	|- m1.xlarge	0000 / 0000   2   1024    20
AVAILABILITYZONE	|- c1.xlarge	0000 / 0000   4   2048    20


Jika kita melihat dalam daftar di atas free/max VCPU bernilai 0, hal ini berarti node (NC) tidak terdaftar secara automatis.

Jika ingin melakukan discovery Node pada Server, untuk mendiscover Node Controller (NC).

$ sudo euca_conf --discover-nodes

Hasilnya kira-kira adalah

ERROR: could not synchronize keys with fe80::215:17ff:fead:c7c1!
The configuration will not have this node.
Hint: to setup passwordless login to the nodes as user eucalyptus, you can
run the following commands on node fe80::215:17ff:fead:c7c1:
sudo -u eucalyptus mkdir -p ~eucalyptus/.ssh
sudo -u eucalyptus tee ~eucalyptus/.ssh/authorized_keys > /dev/null <<EOT
ssh-rsa  AAAAB3NzaC1yc2EAAAADAQABAAABAQDIlJ1AMIA2/fITDYu7gZHx1ivRKRTHLMmqGHX5mPywB2OPf25mFsOVLTvGNjHl1q6mKwCetAfFr4EI5nG8Qz9bLaDvFfeyUJlA+IE0mpIyultfFM173tMC0LMO5jGTJxuM+GuUittFeYtg+nR8CuVl6DBeYDOM1Ih1S5rWlJjJbwwOYniLzamCshbV7T1r/6oM09X5uJIka5Pm4JGduIw3xFeAttYAhkyvBdZnanlWq1J/Fm46v1HHZBsGcke6n7uNr2hq/QQpw1mmUA29fwQPl87Wd9U+7ZtlxJxYJD4HUa+9nimi9WvDB1PUWm+E8qOVtZIeBMUxIzcX2Pu9jPmz eucalyptus@cloud
EOT

Be sure that authorized_keys is not group/world readable or writable

Trying rsync to sync keys with "fe80::fcb6:8aff:fe1d:8791"...ssh: Could not resolve hostname fe80: Name or service not known
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(601) [sender=3.0.7]
failed.
Trying scp to sync keys to: eucalyptus@fe80::fcb6:8aff:fe1d:8791://var/lib/eucalyptus/keys/...
ssh: Could not resolve hostname fe80: Name or service not known
lost connection
failed.

ERROR: could not synchronize keys with fe80::fcb6:8aff:fe1d:8791!
The configuration will not have this node.
Hint: to setup passwordless login to the nodes as user eucalyptus, you can
run the following commands on node fe80::fcb6:8aff:fe1d:8791:
sudo -u eucalyptus mkdir -p ~eucalyptus/.ssh
sudo -u eucalyptus tee ~eucalyptus/.ssh/authorized_keys > /dev/null <<EOT
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIlJ1AMIA2/fITDYu7gZHx1ivRKRTHLMmqGHX5mPywB2OPf25mFsOVLTvGNjHl1q6mKwCetAfFr4EI5nG8Qz9bLaDvFfeyUJlA+IE0mpIyultfFM173tMC0LMO5jGTJxuM+GuUittFeYtg+nR8CuVl6DBeYDOM1Ih1S5rWlJjJbwwOYniLzamCshbV7T1r/6oM09X5uJIka5Pm4JGduIw3xFeAttYAhkyvBdZnanlWq1J/Fm46v1HHZBsGcke6n7uNr2hq/QQpw1mmUA29fwQPl87Wd9U+7ZtlxJxYJD4HUa+9nimi9WvDB1PUWm+E8qOVtZIeBMUxIzcX2Pu9jPmz eucalyptus@cloud
EOT

Lakuan perintah

sudo -u eucalyptus mkdir -p ~eucalyptus/.ssh
sudo -u eucalyptus tee ~eucalyptus/.ssh/authorized_keys > /dev/null <<EOT
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIlJ1AMIA2/fITDYu7gZHx1ivRKRTHLMmqGHX5mPywB2OPf25mFsOVLTvGNjHl1q6mKwCetAfFr4EI5nG8Qz9bLaDvFfeyUJlA+IE0mpIyultfFM173tMC0LMO5jGTJxuM+GuUittFeYtg+nR8CuVl6DBeYDOM1Ih1S5rWlJjJbwwOYniLzamCshbV7T1r/6oM09X5uJIka5Pm4JGduIw3xFeAttYAhkyvBdZnanlWq1J/Fm46v1HHZBsGcke6n7uNr2hq/QQpw1mmUA29fwQPl87Wd9U+7ZtlxJxYJD4HUa+9nimi9WvDB1PUWm+E8qOVtZIeBMUxIzcX2Pu9jPmz eucalyptus@cloud
EOT
sudo -u eucalyptus mkdir -p ~eucalyptus/.ssh
sudo -u eucalyptus tee ~eucalyptus/.ssh/authorized_keys > /dev/null <<EOT
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIlJ1AMIA2/fITDYu7gZHx1ivRKRTHLMmqGHX5mPywB2OPf25mFsOVLTvGNjHl1q6mKwCetAfFr4EI5nG8Qz9bLaDvFfeyUJlA+IE0mpIyultfFM173tMC0LMO5jGTJxuM+GuUittFeYtg+nR8CuVl6DBeYDOM1Ih1S5rWlJjJbwwOYniLzamCshbV7T1r/6oM09X5uJIka5Pm4JGduIw3xFeAttYAhkyvBdZnanlWq1J/Fm46v1HHZBsGcke6n7uNr2hq/QQpw1mmUA29fwQPl87Wd9U+7ZtlxJxYJD4HUa+9nimi9WvDB1PUWm+E8qOVtZIeBMUxIzcX2Pu9jPmz eucalyptus@cloud
EOT


[edit] Pranala Menarik

Personal tools