[Eucalyptus-Users 0468] Re: euca_conf --register-nodes でNCが追加できない

江成洋一 enari @ newson.co.jp
2011年 4月 13日 (水) 11:03:25 JST


江成です。お世話になっております。

本件ですが、解決できないまま環境の利用期限を過ぎてしまったため、
自社に余っている端末で、ほぼ同様の構成にして検証しましたが再現しませんでした。

ハードやIPアドレスやホスト名などの環境情報は異なっていますが、
それ以外にも、CLC/CCのOSとNCの仮想化ソフトが異なっています。
 * CLC/CC:RHEL5.5、NC:CentOS5.5(KVM)
 * CLC/CC:CentOS5.5、NC:CentOS5.5(Xen)

もう少し、調査してみたいと考えています。

取り急ぎご報告までに。
よろしくお願いします。


2011年2月9日19:07 江成洋一 <enari @ newson.co.jp>:
> 羽深様、
> 江成です。お世話になっております。
>
> 本件、まだ解決に至っておりません。
>
> 教えていただいたコマンドを手動で実行したところ、
> 戻り値0でリターンありました。
>
> [root @ vssv03 ~]# /usr/bin/rsync -az
> /var/lib/eucalyptus/keys/cluster/node-cert.pem \
>> /var/lib/eucalyptus/keys/cluster/cluster-cert.pem \
>> /var/lib/eucalyptus/keys/cluster/cluster-pk.pem \
>> /var/lib/eucalyptus/keys/cluster/node-pk.pem \
>> /var/lib/eucalyptus/keys/cluster/vtunpass \
>> /var/lib/eucalyptus/keys/cloud-cert.pem \
>> 10.5.1.3:/var/lib/eucalyptus/keys/
> root @ 10.5.1.3's password:
> [root @ vssv03 ~]# echo $?
> 0
> [root @ vssv03 ~]#
> [root @ vssv03 ~]# euca_conf --list-clusters
> registered clusters:
>   cluster  10.5.1.3
> [root @ vssv03 ~]#
>
>
>> ls -lR /var/lib/eucalyptus/keys/
>> の結果とか教えてもらえないでしょうか?
> 実行結果は下記になりました。
>
> [root @ vssv03 ~]# ls -lR /var/lib/eucalyptus/keys/
> /var/lib/eucalyptus/keys/:
> 合計 96
> -rwxr-xr-x 1 eucalyptus eucalyptus  2839  2月 13  2010 cc-client-policy.xml
> -rw-r--r-- 1 eucalyptus eucalyptus  1257  1月 25 20:38 cloud-cert.pem
> drwxr-xr-x 2 eucalyptus eucalyptus  4096  1月 25 20:38 cluster
> -rw-r--r-- 1 eucalyptus eucalyptus  1257  1月 25 20:38 cluster-cert.pem
> -rw-r--r-- 1 eucalyptus eucalyptus  1679  1月 25 20:38 cluster-pk.pem
> -rw-r--r-- 1 eucalyptus eucalyptus 21546  1月 25 12:12 euca.p12
> -rwxr-xr-x 1 eucalyptus eucalyptus  2841  2月 13  2010 nc-client-policy.xml
> -rw-r--r-- 1 eucalyptus eucalyptus  1257  1月 25 20:38 node-cert.pem
> -rw-r--r-- 1 eucalyptus eucalyptus  1675  1月 25 20:38 node-pk.pem
> -rw-r--r-- 1 eucalyptus eucalyptus 36281  2月  9 12:43 vtunall.conf
> -rw-r--r-- 1 eucalyptus eucalyptus   512  1月 25 20:38 vtunpass
>
> /var/lib/eucalyptus/keys/cluster:
> 合計 20
> -rw-r--r-- 1 eucalyptus eucalyptus 1257  1月 25 20:38 cluster-cert.pem
> -rw-r--r-- 1 eucalyptus eucalyptus 1679  1月 25 20:38 cluster-pk.pem
> -rw-r--r-- 1 eucalyptus eucalyptus 1257  1月 25 20:38 node-cert.pem
> -rw-r--r-- 1 eucalyptus eucalyptus 1675  1月 25 20:38 node-pk.pem
> -rw-r--r-- 1 eucalyptus eucalyptus  512  1月 25 20:38 vtunpass
> [root @ vssv03 ~]#
>
> [root @ vssv03 ~]# euca_conf --list-nodes
> registered nodes:
>   10.5.1.5  cluster
> [root @ vssv03 ~]#
>
> [root @ vssv03 admin]# euca_conf --register-nodes 10.5.1.5
>
> INFO: We expect all nodes to have eucalyptus installed in / for key
> synchronization.
>
> Trying rsync to sync keys with "10.5.1.5"...root @ 10.5.1.5's password:
> done.
> [root @ vssv03 admin]#
>
> [root @ vssv03 admin]# euca_conf --list-nodes
> registered nodes:
>   10.5.1.5  cluster
> [root @ vssv03 admin]#
> [root @ vssv03 admin]# euca-describe-availability-zones verbose
> AVAILABILITYZONE        cluster 10.5.1.3
> AVAILABILITYZONE        |- vm types     free / max   cpu   ram  disk
> AVAILABILITYZONE        |- m1.small     0000 / 0000   1    128     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
> [root @ vssv03 admin]#
>
>
> お手数をおかけしますが、よろしくお願いします。
>
>
> 2011年2月8日23:26 Xiu YuShen <xiu.yushen @ gmail.com>:
>> たびたびすみません、羽深です。
>> 中途半端なコマンドを送ってしまいました。
>> 正しくは、
>> /usr/bin/rsync -az /var/lib/eucalyptus/keys/cluster/node-cert.pem \
>> /var/lib/eucalyptus/keys/cluster/cluster-cert.pem \
>> /var/lib/eucalyptus/keys/cluster/cluster-pk.pem \
>> /var/lib/eucalyptus/keys/cluster/node-pk.pem \
>> /var/lib/eucalyptus/keys/cluster/vtunpass \
>> /var/lib/eucalyptus/keys/cloud-cert.pem \
>> 10.5.1.3:/var/lib/eucalyptus/keys/
>> です。すみません。
>>
>>
>> 2011年2月8日23:24 Xiu YuShen <xiu.yushen @ gmail.com>:
>>> 羽深です。
>>>
>>> 今更の反応ですみません。もしまだ解決されていないようであればと思い。
>>>
>>>> ・以下eucalyptus入門を参考に、インストール
>>>> http://cloud.watch.impress.co.jp/docs/column/eucalyptus/20100924_394058.html
>>>
>>> 参考にして頂き、ありがとうございます。
>>>
>>>> Trying rsync to sync keys with "10.5.1.3"...root @ 10.5.1.3's password:
>>>> ★:正しいパスワードを入力するも、エラー発生
>>>> Permission denied, please try again.
>>>> root @ 10.5.1.3's password:
>>>> rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(260)
>>>> [sender=2.6.8]
>>>> failed.
>>>
>>> これってつまり以下を手動で実行してもエラーになりますでしょうか?
>>> /usr/bin/rsync -az /var/lib/eucalyptus/keys/cluster/node-cert.pem \
>>> /var/lib/eucalyptus/keys/cluster/cluster-cert.pem \
>>> /var/lib/eucalyptus/keys/cluster/cluster-pk.pem \
>>> /var/lib/eucalyptus/keys/cluster/node-pk.pem
>>> /var/lib/eucalyptus/keys/cluster/vtunpass
>>> /var/lib/eucalyptus/keys/cloud-cert.pem \
>>> 10.5.1.3:/var/lib/eucalyptus/keys/
>>>
>>> ちなみにもし手動でやっても失敗するのであれば、
>>> ls -lR /var/lib/eucalyptus/keys/
>>> の結果とか教えてもらえないでしょうか?
>>>
>>> 反応が遅くなりましたが、取り急ぎ。
>>>
>>>
>>> 2011年1月26日6:55 江成 洋一 <enari @ newson.co.jp>:
>>>> はじめまして、江成と申します。
>>>>
>>>> いきなりですが、Eucalyptusの設定について質問させてください。
>>>>
>>>> Eucalyptusを実験環境に導入したのですが、NCが認識されなくて困っています。
>>>> 下記にまとめましたので、アドバイスなどいただけると助かります。
>>>> よろしくお願いします。
>>>>
>>>> ■事象
>>>> ・euca_conf --register-nodes でNCが追加するが、
>>>> euca_conf --list-nodesで確認できない。
>>>> ・eucalyptus.confには追加されている。
>>>> ・euca-describe-availability-zones verbose でfree/maxが0
>>>>
>>>>
>>>> ■環境
>>>> ・eucalyptus1.6.2
>>>> ・CLC/CCとNCのサーバ2台構成
>>>> ・CLC/CC:RHEL5.5、NC:CentOS5.5
>>>> ※プロジェクトの都合で、このような構成になりました
>>>> ・KVM
>>>> ・以下eucalyptus入門を参考に、インストール
>>>> http://cloud.watch.impress.co.jp/docs/column/eucalyptus/20100924_394058.html
>>>> ※Xen部分は省略
>>>> ※Walrus、CC、SCの登録はWebUIから実施
>>>> ・MANAGEDモード
>>>>
>>>> ■やったこと
>>>> ・/usr/sbin/euca_confの修正
>>>> http://ml.eucalyptus-users.jp/pipermail/eucalyptus-users/2010-July/000365.html
>>>> ・euca_conf --deregister-cluster
>>>> ・euca_conf -synckeys
>>>>
>>>> ■特記事項
>>>> ★:euca_confの修正
>>>> [root @ vssv03 eucalyptus]# !diff
>>>> diff /usr/sbin/euca_conf /usr/sbin/euca_conf.org
>>>> 1366,1367c1366
>>>> <       # Get the CC_NAME
>>>> <       . /etc/eucalyptus/eucalyptus.conf
>>>> ---
>>>>>
>>>> 1383,1385c1382
>>>> < #             if ! sync_keys ${SOURCEDIR} ${DESTDIR} ${NEWNODE} node-cert.pem
>>>> cluster-cert.pem node-pk.pem cloud-cert.pem; then
>>>> <               if ! sync_keys ${SOURCEDIR}/${CC_NAME} ${DESTDIR} ${NEWNODE}
>>>> node-cert.pem cluster-cert.pem node-pk.pem cloud-cert.pem; then
>>>> <
>>>> ---
>>>>>               if ! sync_keys ${SOURCEDIR} ${DESTDIR} ${NEWNODE} node-cert.pem
>>>> cluster-cert.pem node-pk.pem cloud-cert.pem; then
>>>> [root @ vssv03 eucalyptus]#
>>>>
>>>> ★:clusterが追加できない
>>>> [root @ vssv03 eucalyptus]# euca_conf --register-cluster cluster 10.5.1.3
>>>>
>>>> Trying rsync to sync keys with "10.5.1.3"...root @ 10.5.1.3's password:
>>>> ★:正しいパスワードを入力するも、エラー発生
>>>> Permission denied, please try again.
>>>> root @ 10.5.1.3's password:
>>>> rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(260)
>>>> [sender=2.6.8]
>>>> failed.
>>>>
>>>>
>>>> Trying scp to sync keys with "" (user "eucalyptus")...
>>>> The authenticity of host '10.5.1.3 (10.5.1.3)' can't be established.
>>>> RSA key fingerprint is 1d:be:02:57:0a:3f:c0:dd:9e:2b:59:96:5e:f3:a3:f3.
>>>> Are you sure you want to continue connecting (yes/no)? failed.
>>>> ERROR: failed to sync keys with 10.5.1.3; registration will not be complete
>>>> until keys can be synced, please try again.
>>>>
>>>>
>>>> ★:WebUIからcluster追加
>>>>
>>>> [root @ vssv03 eucalyptus]# euca_conf --list-clusters
>>>> registered clusters:
>>>>   cluster-name  10.5.1.3
>>>> [root @ vssv03 eucalyptus]# euca_conf --deregister-cluster 10.5.1.3
>>>>
>>>> SUCCESS: cluster '10.5.1.3' successfully deregistered.
>>>>
>>>> ★:NCを追加後、確認できず
>>>> [root @ vssv03 eucalyptus]# euca_conf --list-nodes
>>>>
>>>> ★:euca_conf をsh -x で実行
>


Eucalyptus-Users メーリングリストの案内