這篇文章將為大家詳細(xì)講解有關(guān)OpenStack斷電重啟ceilometer獲取數(shù)據(jù)出錯(cuò)怎么辦,小編覺得挺實(shí)用的,因此分享給大家做個(gè)參考,希望大家閱讀完這篇文章后可以有所收獲。
站在用戶的角度思考問題,與客戶深入溝通,找到安圖網(wǎng)站設(shè)計(jì)與安圖網(wǎng)站推廣的解決方案,憑借多年的經(jīng)驗(yàn),讓設(shè)計(jì)與互聯(lián)網(wǎng)技術(shù)結(jié)合,創(chuàng)造個(gè)性化、用戶體驗(yàn)好的作品,建站類型包括:成都網(wǎng)站設(shè)計(jì)、網(wǎng)站建設(shè)、企業(yè)官網(wǎng)、英文網(wǎng)站、手機(jī)端網(wǎng)站、網(wǎng)站推廣、域名注冊(cè)、網(wǎng)絡(luò)空間、企業(yè)郵箱。業(yè)務(wù)覆蓋安圖地區(qū)。
查看日志文件:
root@controller:/var/log/ceilometer# cat ceilometer-api.log 2017-05-31 13:57:31.620 23249 TRACE ceilometer.api.hooks ConnectionFailure: could not connect to controller:27017: [Errno 111] ECONNREFUSED 2017-05-31 13:57:31.620 23249 TRACE ceilometer.api.hooks 2017-05-31 13:57:31.749 23249 INFO ceilometer.storage.mongo.utils [-] Connecting to MongoDB on [('controller', 27017)] 2017-05-31 13:57:31.750 23249 WARNING ceilometer.storage.mongo.utils [-] Unable to connect to the database server: could not connect to controller:27017: [Errno 111] ECONNREFUSED. 2017-05-31 13:57:41.751 23249 INFO ceilometer.storage.mongo.utils [-] Connecting to mongodb on [('controller', 27017)] 2017-05-31 13:57:41.751 23249 WARNING ceilometer.storage.mongo.utils [-] Unable to connect to the database server: could not connect to controller:27017: [Errno 111] ECONNREFUSED. 2017-05-31 13:57:51.752 23249 INFO ceilometer.storage.mongo.utils [-] Connecting to mongodb on [('controller', 27017)] 2017-05-31 13:57:51.752 23249 WARNING ceilometer.storage.mongo.utils [-] Unable to connect to the database server: could not connect to controller:27017: [Errno 111] ECONNREFUSED. 2017-05-31 13:58:01.762 23249 INFO ceilometer.storage.mongo.utils [-] Connecting to mongodb on [('controller', 27017)] 2017-05-31 13:58:01.762 23249 WARNING ceilometer.storage.mongo.utils [-] Unable to connect to the database server: could not connect to controller:27017: [Errno 111] ECONNREFUSED.
根據(jù)日志文件判斷為 Mongodb的錯(cuò)誤
root@controller:/var/log/mongodb# cat mongodb.log ***** SERVER RESTARTED ***** Wed May 31 11:25:53.786 [initandlisten] MongoDB starting : pid=1779 port=27017 dbpath=/var/lib/mongodb 64-bit host=controller Wed May 31 11:25:53.786 [initandlisten] db version v2.4.9 Wed May 31 11:25:53.786 [initandlisten] git version: nogitversion Wed May 31 11:25:53.786 [initandlisten] build info: Linux orlo 3.2.0-58-generic #88-Ubuntu SMP Tue Dec 3 17:37:58 UTC 2013 x86_64 BOOST_LIB_VERSION=1_54 Wed May 31 11:25:53.786 [initandlisten] allocator: tcmalloc Wed May 31 11:25:53.786 [initandlisten] options: { bind_ip: "192.168.1.170", config: "/etc/mongodb.conf", dbpath: "/var/lib/mongodb", logappend: "true", logpath: "/var/log/mongodb/mongodb.log", nojournal: "true", noprealloc: "true", smallfiles: "true" } ************** **Unclean shutdown detected.** Please visit http://dochub.mongodb.org/core/repair for recovery instructions. ************* Wed May 31 11:25:53.797 [initandlisten] exception in initAndListen: 12596 old lock file, terminating Wed May 31 11:25:53.797 dbexit: Wed May 31 11:25:53.797 [initandlisten] shutdown: going to close listening sockets... Wed May 31 11:25:53.797 [initandlisten] shutdown: going to flush diaglog... Wed May 31 11:25:53.797 [initandlisten] shutdown: going to close sockets... Wed May 31 11:25:53.797 [initandlisten] shutdown: waiting for fs preallocator... Wed May 31 11:25:53.797 [initandlisten] shutdown: closing all files... Wed May 31 11:25:53.797 [initandlisten] closeAllFiles() finished Wed May 31 11:25:53.797 dbexit: really exiting now
可以看出錯(cuò)誤為Unclean shutdown detected.然后根據(jù)此百度查找方法,解決方案 記得要修改數(shù)據(jù)庫(kù)文件為 mongdb用戶和組
關(guān)于“OpenStack斷電重啟ceilometer獲取數(shù)據(jù)出錯(cuò)怎么辦”這篇文章就分享到這里了,希望以上內(nèi)容可以對(duì)大家有一定的幫助,使各位可以學(xué)到更多知識(shí),如果覺得文章不錯(cuò),請(qǐng)把它分享出去讓更多的人看到。