計算節點不能加入到openstack集羣中

通過kolla-ansible擴容計算節點後,發現計算節點不能加入到集羣中,如下:

2020-05-24 23:41:57.939 6 INFO nova.compute.manager [req-5e895f00-5701-462c-92fb-7bbb1bf6b044 - - - - -] Looking for unclaimed instances stuck in BUILDING status for nodes managed by this host
2020-05-24 23:41:57.959 6 WARNING nova.compute.manager [req-5e895f00-5701-462c-92fb-7bbb1bf6b044 - - - - -] Compute node openstack01 not found in the database and therefore unable to error out any instances stuck in BUILDING state on this node. If this is the first time this service is starting on this host, then you can ignore this warning.: ComputeHostNotFound_Remote: Compute host openstack01 could not be found.
2020-05-24 23:41:57.990 6 WARNING nova.compute.manager [req-5e895f00-5701-462c-92fb-7bbb1bf6b044 - - - - -] No compute node record found for host openstack01. If this is the first time this service is starting on this host, then you can ignore this warning.: ComputeHostNotFound_Remote: Compute host openstack01 could not be found.
===然後這裏一直卡着================

通過在控制節點的nova-api容器中執行:“nova-manage cell_v2 discover_hosts --verbose”依舊不能發現計算節點oepnstack01.

 

沒辦法,只能進入到 nova.compute.manager的這個文件中一步步調試,結果發現,在與ceph連接時client.connect()一直卡着:

   def _connect_to_rados(self, pool=None):
        client = rados.Rados(rados_id=self.rbd_user,
                                  conffile=self.ceph_conf)
        try:
            client.connect()
            pool_to_open = pool or self.pool
            # NOTE(luogangyi): open_ioctx >= 10.1.0 could handle unicode
            # arguments perfectly as part of Python 3 support.
            # Therefore, when we turn to Python 3, it's safe to remove
            # str() conversion.
            ioctx = client.open_ioctx(str(pool_to_open))
            return client, ioctx
        except rados.Error:
            # shutdown cannot raise an exception
所以猜想,/etc/ceph/下的配置文件有錯,事實證明,的確有錯,ceph的mon ip寫錯了。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章