<span id="mktg5"></span>

<i id="mktg5"><meter id="mktg5"></meter></i>

        <label id="mktg5"><meter id="mktg5"></meter></label>
        最新文章專題視頻專題問答1問答10問答100問答1000問答2000關(guān)鍵字專題1關(guān)鍵字專題50關(guān)鍵字專題500關(guān)鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關(guān)鍵字專題關(guān)鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
        問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
        當(dāng)前位置: 首頁 - 科技 - 知識百科 - 正文

        ManaginghostsinarunningOpenStackenvironment_MySQL

        來源:懂視網(wǎng) 責(zé)編:小采 時間:2020-11-09 19:11:47
        文檔

        ManaginghostsinarunningOpenStackenvironment_MySQL

        ManaginghostsinarunningOpenStackenvironment_MySQL:How does one remove a faulty/un/re-provisioned physical machine from the list of managed physical nodes in OpenStack nova Recently we had to remove a compute node in our cluster for management reasons (read, it went dead on us). But nova p
        推薦度:
        導(dǎo)讀ManaginghostsinarunningOpenStackenvironment_MySQL:How does one remove a faulty/un/re-provisioned physical machine from the list of managed physical nodes in OpenStack nova Recently we had to remove a compute node in our cluster for management reasons (read, it went dead on us). But nova p

        How does one remove a faulty/un/re-provisioned physical machine from the list of managed physical nodes in OpenStack nova? Recently we had to remove a compute node in our cluster for management reasons (read, it went dead on us). But nova perpetually maintains the host entry hoping at some point in time, it will come back online and start reporting its willingness to host new jobs.

        Normally, things will not break if you simply leave the dead node entry in place. But it will mess up the overall view of the cluster if you wish to do some capacity planning. The resources once reported by the dead node will continue to show up in the statistics and things will look all ”blue” when in fact they should be ”red”.

        There is no straight forward command to fix this problem, so here is a quick and dirty fix.

        1. log on as administrator on the controller node
        2. locate the nova configuration file, typically found at /etc/nova/nova.conf
        3. location the ”connection” parameter – this will tell you the database nova service uses

        Depending on whether the database is mysql or sqlite endpoint, modify your queries. The one shown next are for mysql endpoint.

        # mysql -u rootmysql> use nova;mysql> show tables;

        The tables of interest to us are ”compute_nodes” and ”services”. Next find the ”host” entry of the dead node from ”services” table.

        mysql> select * from services;+---------------------+---------------------+------------+----+-------------------+------------------+-------------+--------------+----------+---------+-----------------+| created_at| updated_at| deleted_at | id | host| binary | topic | report_count | disabled | deleted | disabled_reason |+---------------------+---------------------+------------+----+-------------------+------------------+-------------+--------------+----------+---------+-----------------+| 2013-11-15 14:25:48 | 2014-04-29 06:20:10 | NULL |1 | stable-controller | nova-consoleauth | consoleauth |1421475 |0 | 0 | NULL|| 2013-11-15 14:25:49 | 2014-04-29 06:20:05 | NULL |2 | stable-controller | nova-scheduler | scheduler |1421421 |0 | 0 | NULL|| 2013-11-15 14:25:49 | 2014-04-29 06:20:06 | NULL |3 | stable-controller | nova-conductor | conductor |1422189 |0 | 0 | NULL|| 2013-11-15 14:25:52 | 2014-04-29 06:20:05 | NULL |4 | stable-compute-1| nova-compute | compute |1393171 |0 | 0 | NULL|| 2013-11-15 14:25:54 | 2014-04-29 06:20:06 | NULL |5 | stable-compute-2| nova-compute | compute |1393167 |0 | 0 | NULL|| 2013-11-15 14:25:56 | 2014-04-29 06:20:05 | NULL |6 | stable-compute-4| nova-compute | compute |1392495 |0 | 0 | NULL|| 2013-11-15 14:26:34 | 2013-11-15 15:06:09 | NULL |7 | 002590628c0c| nova-compute | compute |219 |0 | 0 | NULL|| 2013-11-15 14:27:14 | 2014-04-29 06:20:10 | NULL |8 | stable-controller | nova-cert| cert|1421467 |0 | 0 | NULL|| 2013-11-15 15:48:53 | 2014-04-29 06:20:05 | NULL |9 | stable-compute-3| nova-compute | compute |1392736 |0 | 0 | NULL|+---------------------+---------------------+------------+----+-------------------+------------------+-------------+--------------+----------+---------+-----------------+

        The output for one of our test cloud is shown above, clearly the node that we want to remove is ”002590628c0c”.Note down the corresponding id for the erring host entry. This ”id” value will be used for ”service_id” in the following queries. Modify the example case with your own specific data. It is important that you first remove the corresponding entry from the ”compute_nodes” table and then in the ”services” table, otherwise due to foreign_key dependencies, the deletion will fail.

        mysql> delete from compute_nodes where service_id=7;mysql> delete from services where host='002590628c0c';

        Change the values above with corresponding values in your case. Voila! The erring compute entries are gone in the dashboard view and also from the resource consumed metrics.

        聲明:本網(wǎng)頁內(nèi)容旨在傳播知識,若有侵權(quán)等問題請及時與本網(wǎng)聯(lián)系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

        文檔

        ManaginghostsinarunningOpenStackenvironment_MySQL

        ManaginghostsinarunningOpenStackenvironment_MySQL:How does one remove a faulty/un/re-provisioned physical machine from the list of managed physical nodes in OpenStack nova Recently we had to remove a compute node in our cluster for management reasons (read, it went dead on us). But nova p
        推薦度:
        標(biāo)簽: sina mysql run
        • 熱門焦點

        最新推薦

        猜你喜歡

        熱門推薦

        專題
        Top
        主站蜘蛛池模板: 一区二区亚洲精品精华液| 久久精品亚洲一区二区三区浴池| 亚洲噜噜噜噜噜影院在线播放| 中国一级特黄的片子免费| 亚洲视频人成在线播放| 亚洲va中文字幕无码久久| 三级毛片在线免费观看| 亚洲国产另类久久久精品| 久久成人无码国产免费播放| 亚洲综合网美国十次| 中国在线观看免费高清完整版 | 中文字幕亚洲一区二区va在线| 免费在线观看一区| 美女裸身网站免费看免费网站| 亚洲国产专区一区| 亚洲国产精品精华液| 99视频全部免费精品全部四虎| 亚洲av之男人的天堂网站| 99久久人妻精品免费二区| 亚洲午夜久久久久久尤物| 动漫黄网站免费永久在线观看| 亚洲国产成人精品无码区花野真一 | 黄瓜视频影院在线观看免费| 亚洲午夜无码久久| 亚洲国产精品成人网址天堂| 久久99免费视频| 亚洲天堂男人影院| 国产亚洲精aa成人网站| 在线观看永久免费| 亚洲AV无码精品色午夜果冻不卡| 18以下岁毛片在免费播放| 久久精品亚洲日本波多野结衣 | 亚洲国产电影在线观看| 破了亲妺妺的处免费视频国产 | 国产日韩一区二区三免费高清| gogo全球高清大胆亚洲| 日韩免费高清大片在线| 国产亚洲视频在线观看网址| 亚洲男人都懂得羞羞网站| 国产精品无码免费视频二三区 | 天天摸天天碰成人免费视频|