前提,对官网问题的一个翻译

Troubleshooting Guide
排障手册

1、Failures(失败)

If Kolla fails, often it is caused by a CTRL-C during the deployment process or a problem in the globals.yml configuration.
如果kolla失败,经常是由于部署过程中使用了ctrl-c或者globals.yml配置文件中的配置错误

To correct the problem where Operators have a misconfigured environment,
the Kolla community has added a precheck feature which ensures the deployment targets are in a state where Kolla may deploy to them.
为了解决操作人员环境配置错误的问题,Kolla社区添加了预检功能,确保部署目标处于Kolla可以部署状态
To run the prechecks, execute:
执行预检查,执行如下命令
kolla-ansible prechecks

If a failure during deployment occurs it nearly always occurs during evaluation of the software.
Once the Operator learns the few configuration options required, it is highly unlikely they will experience a failure in deployment.
如果在部署期间发生故障,则几乎总是在评估软件期间发生。 一旦操作人员了解到所需的少数配置选项,他们就不太可能遇到部署失败。

Deployment may be run as many times as desired, but if a failure in a bootstrap task occurs,
a further deploy action will not correct the problem.
In this scenario, Kolla’s behavior is undefined.
部署可以根据需要运行多次,但如果发生引导任务失败,则进一步的部署操作将无法解决问题。
在这种情况下,Kolla的行为是不确定的。

The fastest way during to recover from a deployment failure is to remove the failed deployment:
从部署失败中恢复的最快方法是删除失败的部署:
kolla-ansible destroy -i <<inventory-file>>
--inventory, -i <inventory_path> Specify path to ansible inventory file(指定all-in-one或者multinode文件所在的目录)
Destroy Kolla containers, volumes and host configuration
(--include-images to also destroy Kolla images)使用该参数使用需要使用如下形式:
kolla-ansible destroy --include-images --yes-i-really-really-mean-it

Any time the tags of a release change, it is possible that the container implementation from older versions won’t match the Ansible playbooks in a new version.
If running multinode from a registry, each node’s Docker image cache must be refreshed with the latest images before a new deployment can occur.
任何时候版本标签发生变化,旧版本的容器实现可能与新版本中的Ansible playbooks不匹配。
如果从一个仓库运行多节点,则必须使用最新镜像刷新每个节点的Docker镜像缓存,然后才能进行新的部署。
To refresh the docker cache from the local Docker registry:
从本地docker镜像仓库刷新docker缓存
kolla-ansible pull

2、Debugging Kolla(调试kolla)

The status of containers after deployment can be determined on the deployment targets by executing:
可以通过执行以下命令在部署目标上确定部署后容器的状态:
docker ps -a

The logs can be examined by executing:
容器的Log可以在通过执行如下命令检查:
docker exec -it heka bash

The logs from all services in all containers may be read from /var/log/kolla/SERVICE_NAME
可以从/var/log/kolla/SERVICE_NAME中读取所有容器中所有服务的日志
If the stdout logs are needed, please run:
如果需要stdout日志,请运行
docker logs <container-name>

Note that most of the containers don’t log to stdout so the above command will provide no information.
请注意,大多数容器不会记录到stdout,因此上面的命令将不提供任何信息
When enable_central_logging is enabled, to view the logs in a web browser using Kibana, go to:
启用enable_central_logging后,可以使用Kibana在Web浏览器中查看日志,访问方式如下
http://<kolla_internal_vip_address>:<kibana_server_port> 或者http://<kolla_external_vip_address>:<kibana_server_port>
使用<kibana_user>和<kibana_password>进行身份验证。

The values <kolla_internal_vip_address>, <kolla_external_vip_address> <kibana_server_port> and <kibana_user> can be found in <kolla_install_path>/kolla/ansible/group_vars/all.yml or if the default values are overridden, in /etc/kolla/globals.yml. The value of <kibana_password> can be found in /etc/kolla/passwords.yml.
可以在<kolla_install_path> /kolla/ansible/group_vars/all.yml中找到值<kolla_internal_vip_address>,<kolla_external_vip_address> <kibana_server_port>和<kibana_user>,或者在/etc/kolla/globals.yml中覆盖默认值。。 <kibana_password>的值可以在/etc/kolla/passwords.yml中找到。

Note When you log in to Kibana web interface for the first time, you are prompted to create an index.
Please create an index using the name log-*.
This step is necessary until the default Kibana dashboard is implemented in Kolla.
注意首次登录Kibana Web界面时,系统会提示您创建索引。 请使用名称log- *创建索引。 在Kolla中实施默认Kibana仪表板之前,此步骤是必需的。

3、进入cd /var/lib/docker/volumes/kolla_logs/目录下,查看各个服务的日志记录

官网路径:https://docs.openstack.org/kolla-ansible/4.0.1/troubleshooting.html

kolla出现问题时的定位方式的更多相关文章

  1. CSS 的定位方式和含义

    CSS 的定位方式和含义 总结一下 CSS 的定位方式.CSS 的定位 position 是处理页面布局时非常重要的属性. CSS 中有 3 种基本的定位机制:普通流.浮动和绝对定位. 在没有指定的情 ...

  2. htnl中的遮罩层以及定位方式

    在页面显示遮罩层,例如:一个div的css样式: $msk.css({ "top":"0", "left":"0", & ...

  3. Android定位方式和测试方法

    Android常用的三种定位方式有:基于GPS定位.基于基站地位.基于wifi定位. 1.基于GPS定位: GPS定位需要GPS模块(硬件)的支持,没有GPS模块是无法进行GPS定位的. GPS定位最 ...

  4. android 三种定位方式

    http://www.cnblogs.com/oudi/archive/2012/03/22/2411509.html 最近在看android关于定位的方式,查了很多资料,也做了相关实验,在手机上做了 ...

  5. 【高德地图API】从零开始学高德JS API(七)——定位方式大揭秘

    原文:[高德地图API]从零开始学高德JS API(七)——定位方式大揭秘 摘要:关于定位,分为GPS定位和网络定位2种.GPS定位,精度较高,可达到10米,但室内不可用,且超级费电.网络定位,分为w ...

  6. Webdriver其他定位方式

    1.下拉框的定位 在遇到select下拉框的选择时,比如: <select id="nr" name="NR"> <option select ...

  7. 七 APPIUM Android 定位方式

    1.定位元素应用元素   1.1通过id定位元素 Android里面定位的id一般为resrouce-id: 代码可以这样写: WebElement element = driver.findElem ...

  8. selenium定位方式-获取标签元素:find_element_by_xxx

    定位方式取舍# 唯一定位方式.多属性定位.层级+角标定位(离目标元素越近,相对定位越好) # 推荐用css selector(很少用递进层次的定位)# 什么时候用xpath呢? 当你定位元素时,必须要 ...

  9. CSS特例定位方式

    同级向下一个元素定位,一个+表示下一个元素,++表格下下个元素 input[name='name1'] +input td:eq(0)表示第一个td元素,此定位方式限于执行js,在selenium时用 ...

随机推荐

  1. Visualforce入门第一篇_2017.3.1

    什么是Visualforce??   Visualforce是Forcce.com平台上的试图控制技术,结构与标记与HTML非常相似.Visualforce页面可以显示从数据库或者Web服务器得到的数 ...

  2. linux指令 apt-grt指令使用

    apt-get 是linux的一条指令,主流的linux版本Debian和ubuntu都使用apt-get来安装软件.那么,需安装的软件都放在哪里呢??? apt-get 利用软件安装源来安装软件,其 ...

  3. Errors occurred during the build. Errors occurred during the build. Errors running builder 'JavaScript Validator' on XXX

    选择项目--右键Properties--Builders--如果有则取消第一项“JavaScript Validator”的勾. http://blog.csdn.net/error_case/art ...

  4. python selenium 滚动条处理、页面拖动

    selenium中没有直接控制滚动条的方法,可以使用方法:execute_script(),可以直接执行js的脚本. 一.竖向滚动条控制,三种方法总有一款适合你. 1.滚动条拉到最底: js=&quo ...

  5. git教程(远程仓库和管理分支)

    在github上新建了一个仓库,然后相与本地的仓库联系起来 $ Git remote add origin https://github.com/liona329/learngit.git fatal ...

  6. Tortoisesvn 如何在资源管理器中断开连接

    你在这个文件夹下打开“工具—文件夹选项—查看”,勾选“显示隐藏的文件夹”选项,可以看到在SVN所在的文件夹下面, 有一个.svn文件夹,把它删除了,刷新一下就可以了.

  7. asp.netcore di 实现批量接口注入

    废话少说,先上代码 public static Dictionary<Type, Type[]> GetImpleAndInterfaces(string assemblyName,str ...

  8. 实验吧CTF题库-编程(部分)

    百米 3秒提交答案,数字是随机变化的 利用Python脚本解题 # -*- coding:utf-8 -*- __author__ = "MuT6 Sch01aR" import ...

  9. pa14-30条职场经验

    可以说是很多本厚厚的职场经验书籍的精华部分,掌握了这30条可以说是天下无敌了,但真要掌握这30条经验可不是什么容易的事情,他们都是环环相 扣的,一条做不好可能有些能做好的项目就会落空,耐下性子,看看你 ...

  10. paramiko 模块封装

    #!/usr/bin/env python#coding=utf-8 import paramiko, getpass,sys,traceback class ssh_utils(): def log ...