国产99久久精品_欧美日本韩国一区二区_激情小说综合网_欧美一级二级视频_午夜av电影_日本久久精品视频

最新文章專題視頻專題問答1問答10問答100問答1000問答2000關鍵字專題1關鍵字專題50關鍵字專題500關鍵字專題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關鍵字專題關鍵字專題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
當前位置: 首頁 - 科技 - 知識百科 - 正文

ManaginghostsinarunningOpenStackenvironment_MySQL

來源:懂視網 責編:小采 時間: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
推薦度:
導讀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.

聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。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
推薦度:
標簽: sina mysql run
  • 熱門焦點

最新推薦

猜你喜歡

熱門推薦

專題
Top
主站蜘蛛池模板: 九九九九热精品免费视频 | 成人无码一区二区片 | 欧美日韩中文字幕在线 | 欧美日韩国产精品 | 国产精品99久久久 | 性欧美大战久久久久久久野外 | 国产午夜电影在线观看 | 一区二区三区福利 | 91视频一区 | 一区二区三区久久 | 在线观看国产视频 | 久久久久久综合一区中文字幕 | 久久久久久国产精品视频 | 在线观看欧美国产 | 国产区精品 | 自拍偷拍欧美亚洲 | 欧美中文日韩 | 国产第7页 | 国产在线精品一区二区三区 | 国产精品视频久久久久久 | 国产精品视频一区二区三区w | 亚欧激情| 国产不卡一区二区视频免费 | 亚洲国产成人精品女人久久久 | 麻豆果冻国产91在线极品 | 日韩有码在线播放 | 日产精品久久久一区二区 | 精品一成人岛国片在线观看 | 国产啪视频 | 亚欧精品在线观看 | 初撮六十路| 伊人久久婷婷 | 欧美十区| 久久免费国产精品一区二区 | 欧美极品尤物在线播放一级 | 欧美精品国产日韩综合在线 | 国产日韩在线观看视频网站 | 久久久无码精品亚洲日韩按摩 | 97久久综合区小说区图片专区 | 毛片一级免费 | 韩国精品欧美一区二区三区 |