国产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
主站蜘蛛池模板: 欧美在线视频 一区二区 | 91精品国产91久久久久久 | 亚洲欧美精品伊人久久 | 国产日韩欧美高清 | 国产日韩一区 | 日本精品一区二区三区在线观看 | 亚洲欧美韩国 | 日韩欧美系列 | 多人伦精品一区二区三区视频 | 日韩欧美系列 | 日韩欧美在线综合网 | 国产成人精品综合久久久 | 国产精品特级毛片一区二区三区 | 在线国产毛片 | 国产一区二区三区夜色 | 欧美国产高清 | 国产日产高清欧美一区二区三区 | 国产手机视频在线观看 | 精品欧美一区手机在线观看 | 欧美夜夜爽 | 在线观看国产精品入口 | 日韩欧美一二区 | 毛片一区二区三区 | 日韩一区二区三区四区不卡 | 欧美专区亚洲 | 亚洲视频播放 | 一级全黄60分钟免费网站 | 国产亚洲一区二区精品 | 国产一级片免费看 | 国产欧美精品 | 99精品视频在线观看免费播放 | 国产高清美女一级a毛片久久 | 亚洲欧美自拍偷拍 | 国产精品视频第一区二区三区 | 精品在线免费观看 | 成人久久久精品乱码一区二区三区 | 亚洲 欧美 中文字幕 | 一级毛片真人不卡免费播 | 亚洲欧洲精品成人久久曰影片 | 欧美日韩精品一区二区三区四区 | 日本美女一区二区 |