Описание утилиты

Примечание

Все указанные в разделе команды выполняются только на контроллере.

Важно

Для выполнения всех тестов диагностики требуется выполнять команды от суперпользователя. Иначе тесты, для которых недостаточно прав, не будут выполнены и закончатся со статусом ПРОПУЩЕН.

openstack tnx tests - консольная утилита предназначена для диагностики работоспособности модулей и выявления ошибок, допущенных при их настройке. По результатам каждого этапа проверки выводится либо сообщение об успешном окончании, либо список сообщений о неуспешной проверке с описанием возможных причин.

Аргументы утилиты
Параметр Описание
-h, --help Вывод справки. Необязательный параметр.
-l, --list Вывод перечня всех модулей, поддерживающих самодиагностику. Необязательный параметр.
--show-last Вывод последнего сохраненного отчета для текущего пользователя. Необязательный параметр.
-n, --names MODULE_NAMES Вывод результата по конкретному модулю. Наименование задается параметром MODULE_NAMES. При нескольких наименованиях параметр разделяется пробелом. Необязательный параметр.
--silent Запуск процесса самодиагностики без отображения результата на экране. Необязательный параметр.
--save-file Запись результата самодиагностики в файл. По умолчанию /tmp/. Необязательный параметр.
--file-dir FILE_DIR Адрес каталога, где располагаются результаты самодиагностики (при сохранении или выводе существующих отчетов). Каталог задается параметром FILE_DIR. Используется с параметрами --save-file и --show-last. Необязательный параметр.
--errors-only Исключение из таблицы успешных тестов. Необязательный параметр.
--platform Запуск диагностики платформы Openstack без диагностики модулей. Необязательный параметр.
--modules Запуск диагностики модулей без диагностики платформы Openstack. Необязательный параметр.

В процессе выполнения утилита подключается к службе Keystone. Механизм аутентификации описан в разделе «Аутентификация в OpenStackClient». В случае возникновения ошибки при авторизации, будет выведено соответствующее сообщение. Например:

Not enough parameters to connect to OpenStack. Need token or username and password for keystone authenticate

Запрос перечня модулей, для которых доступна функция самодиагностики

Команда:

openstack tnx tests --list

Пример ответа:

Available modules:
    tnx_client
    tnx_dashboard
    tnx_monitor
    tnx_node_control
    tnx_scheduler
    tnx_vdi_client
    tnx_vdi_server

Запуск самодиагностики для одного модуля

Команда:

openstack tnx tests --names tnx_node_control --modules

Пример ответа:

+-------------------------+-------------------------------------------------------------------------------------+
| Дата и время запуска    | Пт 14 июн 2019 13:22:21 MSK                                                         |
+-------------------------+-------------------------------------------------------------------------------------+
| Версия OpenStack        | Queens (17.0.7)                                                                     |
+-------------------------+-------------------------------------------------------------------------------------+
| Имя хоста               | test.stand.loc                                                                      |
+-------------------------+-------------------------------------------------------------------------------------+
| Дистрибутив             | CentOS Linux 7.6.1810                                                               |
+-------------------------+-------------------------------------------------------------------------------------+
| Управляющие узлы        | 1                                                                                   |
+-------------------------+-------------------------------------------------------------------------------------+
| Вычислительные узлы     | 2                                                                                   |
+-------------------------+-------------------------------------------------------------------------------------+
| База данных             | mysql  Ver 15.1 Distrib 10.1.20-MariaDB, for Linux (x86_64) using  EditLine wrapper |
+-------------------------+-------------------------------------------------------------------------------------+
| Источник пакетов        | pypi-queens.tionix.loc                                                              |
+-------------------------+-------------------------------------------------------------------------------------+
| Версия tionix-licensing | 2.0.1                                                                               |
+-------------------------+-------------------------------------------------------------------------------------+

==================
TIONIX.NodeControl
Версия: 2.3.0 (актуальная: текущая)
Лицензия: 04-002-a7b5a1979334a169c323 (действительна до 31.09.2019 03:00:00)
==================
+----+--------------------------------------------+----------+------------------------------------------------------+
| N  | Название теста                             | Статус   | Причина неудачи                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 1  | test arp command                           | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 2  | test ceph script                           | ПРОПУЩЕН | Интеграция со службой Ceph не включена               |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 3  | test config file existence                 | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 4  | test connection to keystone                | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 5  | test connection to nova                    | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 6  | test drs service availability              | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 7  | test leases files exist                    | ПРОПУЩЕН | Файл leases не найден. По всей видимости у вас       |
|    |                                            |          | отсутствует DHCP сервер.                             |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 8  | test license validity                      | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 9  | test migrations applied                    | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 10 | test net isolation                         | ПРОПУЩЕН | Служба изоляции сети не включена                     |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 11 | test node control api connection           | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 12 | test node control api service registration | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 13 | test node control systemd services         | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 14 | test ping command                          | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 15 | test pxe folder owner write permissions    | ПРОПУЩЕН | Папка для PXE образов не существует, проверьте       |
|    |                                            |          | параметр конфигурации PXE.                           |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 16 | test registered celery tasks               | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 17 | test registered tasks to schedule          | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
Запущено 17 за 18.455сек.
УСПЕХ (успешно=13, неудачно=0, ошибок=0)

Запуск самодиагностики для нескольких модулей и диагностика платформы

Команда:

openstack tnx tests --names tnx_node_control tnx_dashboard

Пример ответа:

Диагностика платформы Openstack началась.
Системная информация:
+-----------------------------+-------------------------------------------------------------------------------------+
|Дата и время запуска         |Пт 14 июн 2019 13:47:49 MSK                                                          |
+-----------------------------+-------------------------------------------------------------------------------------+
|Неактивные сервисы           |openvswitch, selinux-policy-migrate-local-changes@targeted, target                   |
+-----------------------------+-------------------------------------------------------------------------------------+
|Имена баз данных             |aodh, cinder, glance, gnocchi, heat, information_schema, keystone, mysql, neutron,   |
|                             |nova, nova_api, nova_cell0, performance_schema, test, tionix, tionix_dash,           |
|                             |tionix_monitor, tionix_node_control, tionix_scheduler, tionix_vdi_server, watcher    |
+-----------------------------+-------------------------------------------------------------------------------------+
|Пользователи Rabbit          |tionix, openstack, guest                                                             |
+-----------------------------+-------------------------------------------------------------------------------------+
|Виртуальные хосты Rabbit     |tionix, /                                                                            |
+-----------------------------+-------------------------------------------------------------------------------------+
|Лимиты Rabbit                |total_limit: 924                                                                     |
|                             |total_used: 180                                                                      |
+-----------------------------+-------------------------------------------------------------------------------------+
|Права Rabbit "tionix"        |/:.* .* .*                                                                           |
|                             |tionix:.* .* .*                                                                      |
+-----------------------------+-------------------------------------------------------------------------------------+
|Права Rabbit "openstack"     |/:.* .* .*                                                                           |
+-----------------------------+-------------------------------------------------------------------------------------+
|Права Rabbit "guest"         |/:.* .* .*                                                                           |
+-----------------------------+-------------------------------------------------------------------------------------+
|Параметры конфигурации Apache|tionix-vdi-web: VirtualHost *:8888: processes=3, threads=10                          |
|                             |openstack-keystone: VirtualHost *:35357: processes=5, threads=2, VirtualHost *:5000: |
|                             |processes=5, threads=2                                                               |
|                             |tionix-scheduler-api: VirtualHost *:10001: processes=3, threads=10                   |
+-----------------------------+-------------------------------------------------------------------------------------+
|Apache MPM                   |prefork                                                                              |
+-----------------------------+-------------------------------------------------------------------------------------+

Сервисы OpenStack:
+----------------------------------+---------------+----------------+-----------------------------+---------+
| ID                               | Имя           | Тип            | Описание                    | Активен |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 02c0086d293144349e6754000006eae9 | cinderv3      | volumev3       | OpenStack Block Storage     | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 15001e4c33b34d3f87d2df05385b6921 | tnx-journal   | tnx-journal    | TIONIX Journal service      | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 29a6da77e2a144aeb51460d24e1245e4 | tnx-nc        | tnx-nc         | TIONIX NodeControl service  | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 3c632e2d308a4158b342c67014cc04b6 | heat-cfn      | cloudformation | Orchestration               | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 44507eaedf8e4d0494b22685710c92ca | aodh          | alarming       | Telemetry Alarming          | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 543543e070744eb994c3018fa734e3c6 | nova          | compute        | OpenStack Compute           | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 7cd1794d3b2c4fd190853b1d3a1ca709 | tnx-scheduler | tnx-scheduler  | TIONIX Scheduler service    | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 853d876ea56c407b9f2081e10e80b71e | neutron       | network        | OpenStack Networking        | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 97895983f52240de8d86cfaf13f8752e | placement     | placement      | Placement API               | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 9ab63af4fa9d4e5f948224993701c2e2 | tnx-vdi       | tnx-vdi        | TIONIX VDIserver service    | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 9d1f294ee3ba45858822cd5504de688e | tnx-monitor   | tnx-monitor    | TIONIX Monitor service      | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 9d9b7be502494ff69ae523b325cb469c | glance        | image          | OpenStack Image             | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 9e274d9e36694ebb8844258535691859 | gnocchi       | metric         | Metric Service              | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| b18f7526e4084b588c0aef6a540c2fc2 | heat          | orchestration  | Orchestration               | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| bad9c627555f408e810d2bd16e73c44c | keystone      | identity       |                             | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| cd607bf084554f0e97acf1a2955ddf82 | cinderv2      | volumev2       | OpenStack Block Storage     | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| d16f26bbedb34e2d99ffd3f7d7ed6f2a | watcher       | infra-optim    | Infrastructure Optimization | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+

Сети:
+--------------------------------------+----------+--------------------------------------+
| ID                                   | Имя      | Подсети                              |
+--------------------------------------+----------+--------------------------------------+
| 04c5439e-403c-4d4b-a9c4-662375f043c0 | local    | 5d639891-a249-464c-a9b5-51fb23a7ae74 |
+--------------------------------------+----------+--------------------------------------+
| 33fabef0-54a1-41e8-b398-72840915cf76 | provider | d92311cc-14d5-48b1-a3c4-df5c3ea0b92c |
+--------------------------------------+----------+--------------------------------------+

Маршрутизаторы:
+--------------------------------------+--------------------------------------+--------+----------------------------+
| ID                                   | Имя                                  | Статус | Проект                     |
+--------------------------------------+--------------------------------------+--------+----------------------------+
| 21c12c92-df50-4eb5-8cfc-889cad16b17e | 73624406-1d3d-4acd-bae2-d3779335ee56 | ACTIVE | 41ed17856686432ab1ddcc251a6|
|                                      |                                      |        | 61379                      |
+--------------------------------------+--------------------------------------+--------+----------------------------+
| 49a1a5ce-2fd4-4118-ae7c-1088e09e4799 | 861f0b0f-a9e0-4ef0-88ad-cb61fcf4faba | ACTIVE | 41ed17856686432ab1ddcc251a6|
|                                      |                                      |        | 61379                      |
+--------------------------------------+--------------------------------------+--------+----------------------------+
| a5e6cffd-ed05-488d-811c-700a210f62ba | router1                              | ACTIVE | 41ed17856686432ab1ddcc251a6|
|                                      |                                      |        | 61379                      |
+--------------------------------------+--------------------------------------+--------+----------------------------+
| b2475896-0996-4f8c-8711-11bcfd7c4689 | e8d626a5-e539-4fb8-9e98-661f121450e2 | ACTIVE | 41ed17856686432ab1ddcc251a6|
|                                      |                                      |        | 61379                      |
+--------------------------------------+--------------------------------------+--------+----------------------------+

Образы:
+--------------------------------------+--------+--------+
| ID                                   | Имя    | Статус |
+--------------------------------------+--------+--------+
| beea95b4-1a42-46f5-95ff-9deed454894a | cd     | queued |
+--------------------------------------+--------+--------+
| 0d54d5c0-ccef-4cc3-afd2-fde24ff438d5 | cirros | active |
+--------------------------------------+--------+--------+

Проверка сервисов OpenStack:
+---------------+------------------------------+-----------------------+
| Сервис        | URL                          | Поддерживаемые версии |
+---------------+------------------------------+-----------------------+
| keystone      | http://test.stand.loc:5000/  | v3.10: stable         |
|               |                              | v2.0: deprecated      |
+---------------+------------------------------+-----------------------+
| tnx-journal   | http://test.stand.loc:9360/  | -                     |
+---------------+------------------------------+-----------------------+
| heat-cfn      | http://test.stand.loc:8000/  | v1.0: current         |
+---------------+------------------------------+-----------------------+
| heat          | http://test.stand.loc:8004/  | v1.0: current         |
+---------------+------------------------------+-----------------------+
| aodh          | http://test.stand.loc:8042/  | v2: stable            |
+---------------+------------------------------+-----------------------+
| nova          | http://test.stand.loc:8774/  | v2.1: current         |
|               |                              | v2.0: supported       |
+---------------+------------------------------+-----------------------+
| neutron       | http://test.stand.loc:9696/  | v2.0: current         |
+---------------+------------------------------+-----------------------+
| placement     | http://test.stand.loc:8778/  | v1.0:                 |
+---------------+------------------------------+-----------------------+
| tnx-monitor   | http://test.stand.loc:9363/  | -                     |
+---------------+------------------------------+-----------------------+
| glance        | http://test.stand.loc:9292/  | v2.6: current         |
|               |                              | v2.5: supported       |
|               |                              | v2.4: supported       |
|               |                              | v2.3: supported       |
|               |                              | v2.2: supported       |
|               |                              | v2.1: supported       |
|               |                              | v2.0: supported       |
|               |                              | v1.1: deprecated      |
|               |                              | v1.0: deprecated      |
+---------------+------------------------------+-----------------------+
| watcher       | http://test.stand.loc:9322/  | -                     |
+---------------+------------------------------+-----------------------+
| cinderv2      | http://test.stand.loc:8776/  | v3.0: current         |
|               |                              | v2.0: deprecated      |
+---------------+------------------------------+-----------------------+
| gnocchi       | http://test.stand.loc:8041/  | v1.0: current         |
+---------------+------------------------------+-----------------------+
| tnx-vdi       | http://test.stand.loc:9364/  | -                     |
+---------------+------------------------------+-----------------------+
| tnx-nc        | http://test.stand.loc:9362/  | -                     |
+---------------+------------------------------+-----------------------+
| cinderv3      | http://test.stand.loc:8776/  | v3.0: current         |
|               |                              | v2.0: deprecated      |
+---------------+------------------------------+-----------------------+
| tnx-scheduler | http://test.stand.loc:10001/ | -                     |
+---------------+------------------------------+-----------------------+

Точки подключения OpenStack:
+---------------+-----------+-----------+-----------------------------------------------+
| Сервис        | Интерфейс | Регион    | URL                                           |
+---------------+-----------+-----------+-----------------------------------------------+
| aodh          | admin     | RegionOne | http://test.stand.loc:8042                    |
+---------------+-----------+-----------+-----------------------------------------------+
| aodh          | internal  | RegionOne | http://test.stand.loc:8042                    |
+---------------+-----------+-----------+-----------------------------------------------+
| aodh          | public    | RegionOne | http://test.stand.loc:8042                    |
+---------------+-----------+-----------+-----------------------------------------------+
| cinderv2      | admin     | RegionOne | http://test.stand.loc:8776/v2/%(tenant_id)s   |
+---------------+-----------+-----------+-----------------------------------------------+
| cinderv2      | internal  | RegionOne | http://test.stand.loc:8776/v2/%(tenant_id)s   |
+---------------+-----------+-----------+-----------------------------------------------+
| cinderv2      | public    | RegionOne | http://test.stand.loc:8776/v2/%(tenant_id)s   |
+---------------+-----------+-----------+-----------------------------------------------+
| cinderv3      | admin     | RegionOne | http://test.stand.loc:8776/v3/%(project_id)s  |
+---------------+-----------+-----------+-----------------------------------------------+
| cinderv3      | internal  | RegionOne | http://test.stand.loc:8776/v3/%(project_id)s  |
+---------------+-----------+-----------+-----------------------------------------------+
| cinderv3      | public    | RegionOne | http://test.stand.loc:8776/v3/%(project_id)s  |
+---------------+-----------+-----------+-----------------------------------------------+
| glance        | admin     | RegionOne | http://test.stand.loc:9292                    |
+---------------+-----------+-----------+-----------------------------------------------+
| glance        | internal  | RegionOne | http://test.stand.loc:9292                    |
+---------------+-----------+-----------+-----------------------------------------------+
| glance        | public    | RegionOne | http://test.stand.loc:9292                    |
+---------------+-----------+-----------+-----------------------------------------------+
| gnocchi       | admin     | RegionOne | http://test.stand.loc:8041                    |
+---------------+-----------+-----------+-----------------------------------------------+
| gnocchi       | internal  | RegionOne | http://test.stand.loc:8041                    |
+---------------+-----------+-----------+-----------------------------------------------+
| gnocchi       | public    | RegionOne | http://test.stand.loc:8041                    |
+---------------+-----------+-----------+-----------------------------------------------+
| heat-cfn      | admin     | RegionOne | http://test.stand.loc:8000/v1                 |
+---------------+-----------+-----------+-----------------------------------------------+
| heat-cfn      | internal  | RegionOne | http://test.stand.loc:8000/v1                 |
+---------------+-----------+-----------+-----------------------------------------------+
| heat-cfn      | public    | RegionOne | http://test.stand.loc:8000/v1                 |
+---------------+-----------+-----------+-----------------------------------------------+
| heat          | admin     | RegionOne | http://test.stand.loc:8004/v1/%(tenant_id)s   |
+---------------+-----------+-----------+-----------------------------------------------+
| heat          | internal  | RegionOne | http://test.stand.loc:8004/v1/%(tenant_id)s   |
+---------------+-----------+-----------+-----------------------------------------------+
| heat          | public    | RegionOne | http://test.stand.loc:8004/v1/%(tenant_id)s   |
+---------------+-----------+-----------+-----------------------------------------------+
| keystone      | admin     | RegionOne | http://test.stand.loc:5000/v3/                |
+---------------+-----------+-----------+-----------------------------------------------+
| keystone      | internal  | RegionOne | http://test.stand.loc:5000/v3/                |
+---------------+-----------+-----------+-----------------------------------------------+
| keystone      | public    | RegionOne | http://test.stand.loc:5000/v3/                |
+---------------+-----------+-----------+-----------------------------------------------+
| neutron       | admin     | RegionOne | http://test.stand.loc:9696                    |
+---------------+-----------+-----------+-----------------------------------------------+
| neutron       | internal  | RegionOne | http://test.stand.loc:9696                    |
+---------------+-----------+-----------+-----------------------------------------------+
| neutron       | public    | RegionOne | http://test.stand.loc:9696                    |
+---------------+-----------+-----------+-----------------------------------------------+
| nova          | admin     | RegionOne | http://test.stand.loc:8774/v2.1/%(tenant_id)s |
+---------------+-----------+-----------+-----------------------------------------------+
| nova          | internal  | RegionOne | http://test.stand.loc:8774/v2.1/%(tenant_id)s |
+---------------+-----------+-----------+-----------------------------------------------+
| nova          | public    | RegionOne | http://test.stand.loc:8774/v2.1/%(tenant_id)s |
+---------------+-----------+-----------+-----------------------------------------------+
| placement     | admin     | RegionOne | http://test.stand.loc:8778                    |
+---------------+-----------+-----------+-----------------------------------------------+
| placement     | internal  | RegionOne | http://test.stand.loc:8778                    |
+---------------+-----------+-----------+-----------------------------------------------+
| placement     | public    | RegionOne | http://test.stand.loc:8778                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-journal   | admin     | RegionOne | http://test.stand.loc:9360                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-journal   | internal  | RegionOne | http://test.stand.loc:9360                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-journal   | public    | RegionOne | http://test.stand.loc:9360                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-monitor   | admin     | RegionOne | http://test.stand.loc:9363                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-monitor   | internal  | RegionOne | http://test.stand.loc:9363                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-monitor   | public    | RegionOne | http://test.stand.loc:9363                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-nc        | admin     | RegionOne | http://test.stand.loc:9362                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-nc        | internal  | RegionOne | http://test.stand.loc:9362                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-nc        | public    | RegionOne | http://test.stand.loc:9362                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-scheduler | admin     | RegionOne | http://test.stand.loc:10001                   |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-scheduler | internal  | RegionOne | http://test.stand.loc:10001                   |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-scheduler | public    | RegionOne | http://test.stand.loc:10001                   |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-vdi       | admin     | RegionOne | http://test.stand.loc:9364                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-vdi       | internal  | RegionOne | http://test.stand.loc:9364                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-vdi       | public    | RegionOne | http://test.stand.loc:9364                    |
+---------------+-----------+-----------+-----------------------------------------------+
| watcher       | admin     | RegionOne | http://test.stand.loc:9322                    |
+---------------+-----------+-----------+-----------------------------------------------+
| watcher       | internal  | RegionOne | http://test.stand.loc:9322                    |
+---------------+-----------+-----------+-----------------------------------------------+
| watcher       | public    | RegionOne | http://test.stand.loc:9322                    |
+---------------+-----------+-----------+-----------------------------------------------+

Домены:
+----------------------------------+-----------+---------+--------------------------+
| ID                               | Имя       | Активен | Описание                 |
+----------------------------------+-----------+---------+--------------------------+
| 0073fb75b81642a6a26b4b7ca7d023fd | heat      | True    | Stack projects and users |
+----------------------------------+-----------+---------+--------------------------+
| 7c7ba9ea1eaf405096d405bef9ad073e | openldap1 | True    |                          |
+----------------------------------+-----------+---------+--------------------------+
| ac6ed8ab27744a0e802d03fd3eb1f268 | openldap  | True    |                          |
+----------------------------------+-----------+---------+--------------------------+
| d8767372f228486390ac05e2d5edb72d | tionix    | True    |                          |
+----------------------------------+-----------+---------+--------------------------+
| default                          | Default   | True    | The default domain       |
+----------------------------------+-----------+---------+--------------------------+

+---------------------------------------------------------------------------------------------------+
| Конфигурация домена "openldap1"                                                                   |
+---------------------------------------------------------------------------------------------------+
| {                                                                                                 |
|   "identity": {                                                                                   |
|     "driver": "ldap"                                                                              |
|   },                                                                                              |
|   "ldap": {                                                                                       |
|     "group_name_attribute": "cn",                                                                 |
|     "suffix": "dc=test,dc=loc",                                                                   |
|     "group_objectclass": "groupOfNames",                                                          |
|     "user_id_attribute": "cn",                                                                    |
|     "group_tree_dn": "ou=Groups,dc=test,dc=loc",                                                  |
|     "group_filter": "",                                                                           |
|     "user_name_attribute": "cn",                                                                  |
|     "group_desc_attribute": "description",                                                        |
|     "user_allow_create": "True",                                                                  |
|     "user_mail_attribute": "mail",                                                                |
|     "group_member_attribute": "member",                                                           |
|     "group_id_attribute": "cn",                                                                   |
|     "group_allow_update": "True",                                                                 |
|     "use_dumb_member": "False",                                                                   |
|     "group_allow_create": "True",                                                                 |
|     "user_allow_update": "True",                                                                  |
|     "user_allow_delete": "True",                                                                  |
|     "user": "******",                                                                             |
|     "user_objectclass": "person",                                                                 |
|     "password": "******",                                                                         |
|     "group_allow_delete": "True",                                                                 |
|     "url": "ldap://10.35.129.14:389",                                                             |
|     "user_pass_attribute": "userPassword",                                                        |
|     "user_filter": "(&(objectClass=person)(memberOf=cn=Domain Users,ou=Groups,dc=test,dc=loc))",  |
|     "allow_subtree_delete": "False",                                                              |
|     "user_tree_dn": "ou=Users,dc=test,dc=loc"                                                     |
|   }                                                                                               |
| }                                                                                                 |
+---------------------------------------------------------------------------------------------------+

+---------------------------------------------------------------------------------------------+
| Конфигурация домена "openldap"                                                              |
+---------------------------------------------------------------------------------------------+
| {                                                                                           |
|   "identity": {                                                                             |
|     "driver": "ldap"                                                                        |
|   },                                                                                        |
|   "ldap": {                                                                                 |
|     "group_name_attribute": "cn",                                                           |
|     "suffix": "dc=test,dc=loc",                                                             |
|     "group_objectclass": "groupOfNames",                                                    |
|     "user_id_attribute": "cn",                                                              |
|     "group_tree_dn": "ou=Groups,dc=test,dc=loc",                                            |
|     "group_filter": "",                                                                     |
|     "user_name_attribute": "cn",                                                            |
|     "group_desc_attribute": "description",                                                  |
|     "user_allow_create": "True",                                                            |
|     "user_mail_attribute": "mail",                                                          |
|     "group_member_attribute": "member",                                                     |
|     "group_id_attribute": "cn",                                                             |
|     "group_allow_update": "True",                                                           |
|     "use_dumb_member": "False",                                                             |
|     "group_allow_create": "True",                                                           |
|     "user_allow_update": "True",                                                            |
|     "user_allow_delete": "True",                                                            |
|     "user": "******",                                                                       |
|     "user_objectclass": "person",                                                           |
|     "password": "******",                                                                   |
|     "group_allow_delete": "True",                                                           |
|     "url": "ldap://10.35.129.14:389",                                                       |
|     "user_pass_attribute": "userPassword",                                                  |
|     "user_filter": "(&(objectClass=person)(memberOf=cn=group8,ou=Groups,dc=test,dc=loc))",  |
|     "allow_subtree_delete": "False",                                                        |
|     "user_tree_dn": "ou=Users,dc=test,dc=loc"                                               |
|   }                                                                                         |
| }                                                                                           |
+---------------------------------------------------------------------------------------------+

+---------------------------------------------------------------+
| Конфигурация домена "tionix"                                  |
+---------------------------------------------------------------+
| {                                                             |
|   "identity": {                                               |
|     "driver": "ldap"                                          |
|   },                                                          |
|   "ldap": {                                                   |
|     "group_name_attribute": "cn",                             |
|     "suffix": "dc=tionix,dc=loc",                             |
|     "group_objectclass": "group",                             |
|     "user_id_attribute": "sAMAccountName",                    |
|     "group_tree_dn": "ou=groups,ou=tionix,dc=tionix,dc=loc",  |
|     "group_filter": "",                                       |
|     "user_name_attribute": "sAMAccountName",                  |
|     "group_desc_attribute": "description",                    |
|     "user_allow_create": "False",                             |
|     "user_mail_attribute": "mail",                            |
|     "group_member_attribute": "",                             |
|     "group_id_attribute": "cn",                               |
|     "group_allow_update": "False",                            |
|     "use_dumb_member": "False",                               |
|     "group_allow_create": "False",                            |
|     "user_allow_update": "False",                             |
|     "user_allow_delete": "False",                             |
|     "user": "******",                                         |
|     "user_objectclass": "person",                             |
|     "password": "******",                                     |
|     "group_allow_delete": "False",                            |
|     "url": "ldap://10.35.20.130:389",                         |
|     "user_pass_attribute": "userPassword",                    |
|     "allow_subtree_delete": "False",                          |
|     "user_tree_dn": "ou=users,ou=tionix,dc=tionix,dc=loc"     |
|   }                                                           |
| }                                                             |
+---------------------------------------------------------------+

Диагностика модулей TIONIX началась.
Запускаем тесты для: tnx_dashboard, tnx_node_control

+-------------------------+-------------------------------------------------------------------------------------+
| Дата и время запуска    | Пт 14 июн 2019 11:42:24 MSK                                                         |
+-------------------------+-------------------------------------------------------------------------------------+
| Версия OpenStack        | Queens (17.0.9)                                                                     |
+-------------------------+-------------------------------------------------------------------------------------+
| Имя хоста               | test.stand.loc                                                                      |
+-------------------------+-------------------------------------------------------------------------------------+
| Дистрибутив             | CentOS Linux 7.6.1810                                                               |
+-------------------------+-------------------------------------------------------------------------------------+
| Управляющие узлы        | 1                                                                                   |
+-------------------------+-------------------------------------------------------------------------------------+
| Вычислительные узлы     | 2                                                                                   |
+-------------------------+-------------------------------------------------------------------------------------+
| База данных             | mysql  Ver 15.1 Distrib 10.1.20-MariaDB, for Linux (x86_64) using  EditLine wrapper |
+-------------------------+-------------------------------------------------------------------------------------+
| Источник пакетов        | pypi-queens.tionix.loc                                                              |
+-------------------------+-------------------------------------------------------------------------------------+
| Версия tionix-licensing | 2.0.1                                                                               |
+-------------------------+-------------------------------------------------------------------------------------+

================
TIONIX.Dashboard
Версия: 2.3.0 (актуальная: текущая)
Лицензия: Этот модуль не требует наличия лицензии.
================
+----+-----------------------------------+----------+---------------------------------------------------------------+
| N  | Название теста                    | Статус   | Причина неудачи                                               |
+----+-----------------------------------+----------+---------------------------------------------------------------+
| 1  | func test dashboard db            | УСПЕХ    |                                                               |
+----+-----------------------------------+----------+---------------------------------------------------------------+
| 2  | test available images             | УСПЕХ    |                                                               |
+----+-----------------------------------+----------+---------------------------------------------------------------+
| 3  | test connection to neutron        | УСПЕХ    |                                                               |
+----+-----------------------------------+----------+---------------------------------------------------------------+
| 4  | test dashboard installed          | ПРОПУЩЕН | Тест недоступен для пользователя "centos"                     |
+----+-----------------------------------+----------+---------------------------------------------------------------+
| 5  | test localization files           | УСПЕХ    |                                                               |
+----+-----------------------------------+----------+---------------------------------------------------------------+
| 6  | test monitor connection           | УСПЕХ    |                                                               |
+----+-----------------------------------+----------+---------------------------------------------------------------+
| 7  | test node control connection      | УСПЕХ    |                                                               |
+----+-----------------------------------+----------+---------------------------------------------------------------+
| 8  | test registered tasks to schedule | УСПЕХ    |                                                               |
+----+-----------------------------------+----------+---------------------------------------------------------------+
| 9  | test scheduler connection         | УСПЕХ    |                                                               |
+----+-----------------------------------+----------+---------------------------------------------------------------+
| 10 | test vdi server connection        | УСПЕХ    |                                                               |
+----+-----------------------------------+----------+---------------------------------------------------------------+
Запущено 10 за 30.952сек.
УСПЕХ (успешно=9, неудачно=0, ошибок=0)

==================
TIONIX.NodeControl
Версия: 2.3.0 (актуальная: текущая)
Лицензия: 04-002-a7b5a1979334a169c323 (действительна до 31.09.2019 03:00:00)
==================
+----+--------------------------------------------+----------+------------------------------------------------------+
| N  | Название теста                             | Статус   | Причина неудачи                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 1  | test arp command                           | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 2  | test ceph script                           | ПРОПУЩЕН | Интеграция со службой Ceph не включена               |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 3  | test config file existence                 | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 4  | test connection to keystone                | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 5  | test connection to nova                    | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 6  | test drs service availability              | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 7  | test leases files exist                    | ПРОПУЩЕН | Файл leases не найден. По всей видимости у вас       |
|    |                                            |          | отсутствует DHCP сервер.                             |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 8  | test license validity                      | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 9  | test migrations applied                    | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 10 | test net isolation                         | ПРОПУЩЕН | Служба изоляции сети не включена                     |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 11 | test node control api connection           | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 12 | test node control api service registration | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 13 | test node control systemd services         | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 14 | test ping command                          | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 15 | test pxe folder owner write permissions    | ПРОПУЩЕН | Папка для PXE образов не существует, проверьте       |
|    |                                            |          | параметр конфигурации PXE.                           |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 16 | test registered celery tasks               | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 17 | test registered tasks to schedule          | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
Запущено 17 за 18.455сек.
УСПЕХ (успешно=13, неудачно=0, ошибок=0)

====
ИТОГ
====
Запущено 27 за 14.565сек.
УСПЕХ (успешно=23, неудачно=0, ошибок=0)

Запуск самодиагностики для всех модулей и платформы OpenStack

Команда:

openstack tnx tests

Пример ответа:

Системная информация:
+-----------------------------+-------------------------------------------------------------------------------------+
|Дата и время запуска         |Пт 14 июн 2019 13:47:49 MSK                                                          |
+-----------------------------+-------------------------------------------------------------------------------------+
|Неактивные сервисы           |openvswitch, selinux-policy-migrate-local-changes@targeted, target                   |
+-----------------------------+-------------------------------------------------------------------------------------+
|Имена баз данных             |aodh, cinder, glance, gnocchi, heat, information_schema, keystone, mysql, neutron,   |
|                             |nova, nova_api, nova_cell0, performance_schema, test, tionix, tionix_dash,           |
|                             |tionix_monitor, tionix_node_control, tionix_scheduler, tionix_vdi_server, watcher    |
+-----------------------------+-------------------------------------------------------------------------------------+
|Пользователи Rabbit          |tionix, openstack, guest                                                             |
+-----------------------------+-------------------------------------------------------------------------------------+
|Виртуальные хосты Rabbit     |tionix, /                                                                            |
+-----------------------------+-------------------------------------------------------------------------------------+
|Лимиты Rabbit                |total_limit: 924                                                                     |
|                             |total_used: 180                                                                      |
+-----------------------------+-------------------------------------------------------------------------------------+
|Права Rabbit "tionix"        |/:.* .* .*                                                                           |
|                             |tionix:.* .* .*                                                                      |
+-----------------------------+-------------------------------------------------------------------------------------+
|Права Rabbit "openstack"     |/:.* .* .*                                                                           |
+-----------------------------+-------------------------------------------------------------------------------------+
|Права Rabbit "guest"         |/:.* .* .*                                                                           |
+-----------------------------+-------------------------------------------------------------------------------------+
|Параметры конфигурации Apache|tionix-vdi-web: VirtualHost *:8888: processes=3, threads=10                          |
|                             |openstack-keystone: VirtualHost *:35357: processes=5, threads=2, VirtualHost *:5000: |
|                             |processes=5, threads=2                                                               |
|                             |tionix-scheduler-api: VirtualHost *:10001: processes=3, threads=10                   |
+-----------------------------+-------------------------------------------------------------------------------------+
|Apache MPM                   |prefork                                                                              |
+-----------------------------+-------------------------------------------------------------------------------------+

Сервисы OpenStack:
+----------------------------------+---------------+----------------+-----------------------------+---------+
| ID                               | Имя           | Тип            | Описание                    | Активен |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 02c0086d293144349e6754000006eae9 | cinderv3      | volumev3       | OpenStack Block Storage     | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 15001e4c33b34d3f87d2df05385b6921 | tnx-journal   | tnx-journal    | TIONIX Journal service      | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 29a6da77e2a144aeb51460d24e1245e4 | tnx-nc        | tnx-nc         | TIONIX NodeControl service  | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 3c632e2d308a4158b342c67014cc04b6 | heat-cfn      | cloudformation | Orchestration               | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 44507eaedf8e4d0494b22685710c92ca | aodh          | alarming       | Telemetry Alarming          | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 543543e070744eb994c3018fa734e3c6 | nova          | compute        | OpenStack Compute           | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 7cd1794d3b2c4fd190853b1d3a1ca709 | tnx-scheduler | tnx-scheduler  | TIONIX Scheduler service    | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 853d876ea56c407b9f2081e10e80b71e | neutron       | network        | OpenStack Networking        | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 97895983f52240de8d86cfaf13f8752e | placement     | placement      | Placement API               | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 9ab63af4fa9d4e5f948224993701c2e2 | tnx-vdi       | tnx-vdi        | TIONIX VDIserver service    | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 9d1f294ee3ba45858822cd5504de688e | tnx-monitor   | tnx-monitor    | TIONIX Monitor service      | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 9d9b7be502494ff69ae523b325cb469c | glance        | image          | OpenStack Image             | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 9e274d9e36694ebb8844258535691859 | gnocchi       | metric         | Metric Service              | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| b18f7526e4084b588c0aef6a540c2fc2 | heat          | orchestration  | Orchestration               | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| bad9c627555f408e810d2bd16e73c44c | keystone      | identity       |                             | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| cd607bf084554f0e97acf1a2955ddf82 | cinderv2      | volumev2       | OpenStack Block Storage     | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| d16f26bbedb34e2d99ffd3f7d7ed6f2a | watcher       | infra-optim    | Infrastructure Optimization | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+

Сети:
+--------------------------------------+----------+--------------------------------------+
| ID                                   | Имя      | Подсети                              |
+--------------------------------------+----------+--------------------------------------+
| 7a45a47b-46fa-49a3-aec9-c82a238d6a5d | provider | 418d0ef7-55f3-4af3-803e-8716a361012d |
+--------------------------------------+----------+--------------------------------------+
| f159b2ec-b16b-4042-8138-185ed8634a41 | localnet | 3c320600-92cf-4e1f-a3a5-80eb769f22d7 |
+--------------------------------------+----------+--------------------------------------+

Маршрутизаторы:
+--------------------------------------+------------+--------+----------------------------------+
| ID                                   | Имя        | Статус | Проект                           |
+--------------------------------------+------------+--------+----------------------------------+
| e368d362-89e8-4394-9611-2f38a7bc047c | ext-router | ACTIVE | e73a7e4b45a947a890de6243564c9517 |
+--------------------------------------+------------+--------+----------------------------------+

Образы:
+--------------------------------------+-----------------------+--------+
| ID                                   | Имя                   | Статус |
+--------------------------------------+-----------------------+--------+
| 532e4ed0-4070-4edd-9b2a-5bdd6ae31ca8 | bench-ubuntu1snapshot | active |
+--------------------------------------+-----------------------+--------+
| 545a8561-2e67-41ce-9db9-bd6143b35758 | cirros1snapshot       | active |
+--------------------------------------+-----------------------+--------+
| 6293316b-c98a-409f-898f-ba5e25b95fb5 | bench-ubuntu          | active |
+--------------------------------------+-----------------------+--------+
| 12a141f7-68c6-4183-856b-8eb53dc197df | centos7cloud          | active |
+--------------------------------------+-----------------------+--------+
| 766d7c8d-96ab-4c4e-8736-8af22fc412fb | vdi_rdp               | active |
+--------------------------------------+-----------------------+--------+
| 912ba5ae-51ae-43f6-b8d5-ce51c7ae1637 | cirros                | active |
+--------------------------------------+-----------------------+--------+

Проверка сервисов OpenStack:
+---------------+------------------------------+-----------------------+
| Сервис        | URL                          | Поддерживаемые версии |
+---------------+------------------------------+-----------------------+
| keystone      | http://test.stand.loc:5000/  | v3.10: stable         |
|               |                              | v2.0: deprecated      |
+---------------+------------------------------+-----------------------+
| tnx-journal   | http://test.stand.loc:9360/  | -                     |
+---------------+------------------------------+-----------------------+
| heat-cfn      | http://test.stand.loc:8000/  | v1.0: current         |
+---------------+------------------------------+-----------------------+
| heat          | http://test.stand.loc:8004/  | v1.0: current         |
+---------------+------------------------------+-----------------------+
| aodh          | http://test.stand.loc:8042/  | v2: stable            |
+---------------+------------------------------+-----------------------+
| nova          | http://test.stand.loc:8774/  | v2.1: current         |
|               |                              | v2.0: supported       |
+---------------+------------------------------+-----------------------+
| neutron       | http://test.stand.loc:9696/  | v2.0: current         |
+---------------+------------------------------+-----------------------+
| placement     | http://test.stand.loc:8778/  | v1.0:                 |
+---------------+------------------------------+-----------------------+
| tnx-monitor   | http://test.stand.loc:9363/  | -                     |
+---------------+------------------------------+-----------------------+
| glance        | http://test.stand.loc:9292/  | v2.6: current         |
|               |                              | v2.5: supported       |
|               |                              | v2.4: supported       |
|               |                              | v2.3: supported       |
|               |                              | v2.2: supported       |
|               |                              | v2.1: supported       |
|               |                              | v2.0: supported       |
|               |                              | v1.1: deprecated      |
|               |                              | v1.0: deprecated      |
+---------------+------------------------------+-----------------------+
| watcher       | http://test.stand.loc:9322/  | -                     |
+---------------+------------------------------+-----------------------+
| cinderv2      | http://test.stand.loc:8776/  | v3.0: current         |
|               |                              | v2.0: deprecated      |
+---------------+------------------------------+-----------------------+
| gnocchi       | http://test.stand.loc:8041/  | v1.0: current         |
+---------------+------------------------------+-----------------------+
| tnx-vdi       | http://test.stand.loc:9364/  | -                     |
+---------------+------------------------------+-----------------------+
| tnx-nc        | http://test.stand.loc:9362/  | -                     |
+---------------+------------------------------+-----------------------+
| cinderv3      | http://test.stand.loc:8776/  | v3.0: current         |
|               |                              | v2.0: deprecated      |
+---------------+------------------------------+-----------------------+
| tnx-scheduler | http://test.stand.loc:10001/ | -                     |
+---------------+------------------------------+-----------------------+

Точки подключения OpenStack:
+---------------+-----------+-----------+-----------------------------------------------+
| Сервис        | Интерфейс | Регион    | URL                                           |
+---------------+-----------+-----------+-----------------------------------------------+
| aodh          | admin     | RegionOne | http://test.stand.loc:8042                    |
+---------------+-----------+-----------+-----------------------------------------------+
| aodh          | internal  | RegionOne | http://test.stand.loc:8042                    |
+---------------+-----------+-----------+-----------------------------------------------+
| aodh          | public    | RegionOne | http://test.stand.loc:8042                    |
+---------------+-----------+-----------+-----------------------------------------------+
| cinderv2      | admin     | RegionOne | http://test.stand.loc:8776/v2/%(tenant_id)s   |
+---------------+-----------+-----------+-----------------------------------------------+
| cinderv2      | internal  | RegionOne | http://test.stand.loc:8776/v2/%(tenant_id)s   |
+---------------+-----------+-----------+-----------------------------------------------+
| cinderv2      | public    | RegionOne | http://test.stand.loc:8776/v2/%(tenant_id)s   |
+---------------+-----------+-----------+-----------------------------------------------+
| cinderv3      | admin     | RegionOne | http://test.stand.loc:8776/v3/%(project_id)s  |
+---------------+-----------+-----------+-----------------------------------------------+
| cinderv3      | internal  | RegionOne | http://test.stand.loc:8776/v3/%(project_id)s  |
+---------------+-----------+-----------+-----------------------------------------------+
| cinderv3      | public    | RegionOne | http://test.stand.loc:8776/v3/%(project_id)s  |
+---------------+-----------+-----------+-----------------------------------------------+
| glance        | admin     | RegionOne | http://test.stand.loc:9292                    |
+---------------+-----------+-----------+-----------------------------------------------+
| glance        | internal  | RegionOne | http://test.stand.loc:9292                    |
+---------------+-----------+-----------+-----------------------------------------------+
| glance        | public    | RegionOne | http://test.stand.loc:9292                    |
+---------------+-----------+-----------+-----------------------------------------------+
| gnocchi       | admin     | RegionOne | http://test.stand.loc:8041                    |
+---------------+-----------+-----------+-----------------------------------------------+
| gnocchi       | internal  | RegionOne | http://test.stand.loc:8041                    |
+---------------+-----------+-----------+-----------------------------------------------+
| gnocchi       | public    | RegionOne | http://test.stand.loc:8041                    |
+---------------+-----------+-----------+-----------------------------------------------+
| heat-cfn      | admin     | RegionOne | http://test.stand.loc:8000/v1                 |
+---------------+-----------+-----------+-----------------------------------------------+
| heat-cfn      | internal  | RegionOne | http://test.stand.loc:8000/v1                 |
+---------------+-----------+-----------+-----------------------------------------------+
| heat-cfn      | public    | RegionOne | http://test.stand.loc:8000/v1                 |
+---------------+-----------+-----------+-----------------------------------------------+
| heat          | admin     | RegionOne | http://test.stand.loc:8004/v1/%(tenant_id)s   |
+---------------+-----------+-----------+-----------------------------------------------+
| heat          | internal  | RegionOne | http://test.stand.loc:8004/v1/%(tenant_id)s   |
+---------------+-----------+-----------+-----------------------------------------------+
| heat          | public    | RegionOne | http://test.stand.loc:8004/v1/%(tenant_id)s   |
+---------------+-----------+-----------+-----------------------------------------------+
| keystone      | admin     | RegionOne | http://test.stand.loc:5000/v3/                |
+---------------+-----------+-----------+-----------------------------------------------+
| keystone      | internal  | RegionOne | http://test.stand.loc:5000/v3/                |
+---------------+-----------+-----------+-----------------------------------------------+
| keystone      | public    | RegionOne | http://test.stand.loc:5000/v3/                |
+---------------+-----------+-----------+-----------------------------------------------+
| neutron       | admin     | RegionOne | http://test.stand.loc:9696                    |
+---------------+-----------+-----------+-----------------------------------------------+
| neutron       | internal  | RegionOne | http://test.stand.loc:9696                    |
+---------------+-----------+-----------+-----------------------------------------------+
| neutron       | public    | RegionOne | http://test.stand.loc:9696                    |
+---------------+-----------+-----------+-----------------------------------------------+
| nova          | admin     | RegionOne | http://test.stand.loc:8774/v2.1/%(tenant_id)s |
+---------------+-----------+-----------+-----------------------------------------------+
| nova          | internal  | RegionOne | http://test.stand.loc:8774/v2.1/%(tenant_id)s |
+---------------+-----------+-----------+-----------------------------------------------+
| nova          | public    | RegionOne | http://test.stand.loc:8774/v2.1/%(tenant_id)s |
+---------------+-----------+-----------+-----------------------------------------------+
| placement     | admin     | RegionOne | http://test.stand.loc:8778                    |
+---------------+-----------+-----------+-----------------------------------------------+
| placement     | internal  | RegionOne | http://test.stand.loc:8778                    |
+---------------+-----------+-----------+-----------------------------------------------+
| placement     | public    | RegionOne | http://test.stand.loc:8778                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-journal   | admin     | RegionOne | http://test.stand.loc:9360                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-journal   | internal  | RegionOne | http://test.stand.loc:9360                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-journal   | public    | RegionOne | http://test.stand.loc:9360                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-monitor   | admin     | RegionOne | http://test.stand.loc:9363                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-monitor   | internal  | RegionOne | http://test.stand.loc:9363                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-monitor   | public    | RegionOne | http://test.stand.loc:9363                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-nc        | admin     | RegionOne | http://test.stand.loc:9362                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-nc        | internal  | RegionOne | http://test.stand.loc:9362                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-nc        | public    | RegionOne | http://test.stand.loc:9362                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-scheduler | admin     | RegionOne | http://test.stand.loc:10001                   |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-scheduler | internal  | RegionOne | http://test.stand.loc:10001                   |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-scheduler | public    | RegionOne | http://test.stand.loc:10001                   |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-vdi       | admin     | RegionOne | http://test.stand.loc:9364                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-vdi       | internal  | RegionOne | http://test.stand.loc:9364                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-vdi       | public    | RegionOne | http://test.stand.loc:9364                    |
+---------------+-----------+-----------+-----------------------------------------------+
| watcher       | admin     | RegionOne | http://test.stand.loc:9322                    |
+---------------+-----------+-----------+-----------------------------------------------+
| watcher       | internal  | RegionOne | http://test.stand.loc:9322                    |
+---------------+-----------+-----------+-----------------------------------------------+
| watcher       | public    | RegionOne | http://test.stand.loc:9322                    |
+---------------+-----------+-----------+-----------------------------------------------+

Домены:
+----------------------------------+-----------+---------+--------------------------+
| ID                               | Имя       | Активен | Описание                 |
+----------------------------------+-----------+---------+--------------------------+
| 72081fc0ed7241d3be4899d328b11f2d | openldap  | True    |                          |
+----------------------------------+-----------+---------+--------------------------+
| 76e1b8f39c7a46f0b6ff4ea30d1a550c | heat      | True    | Stack projects and users |
+----------------------------------+-----------+---------+--------------------------+
| 7887479c217842ae805cc4ed26045f06 | openldap1 | True    |                          |
+----------------------------------+-----------+---------+--------------------------+
| default                          | Default   | True    | The default domain       |
+----------------------------------+-----------+---------+--------------------------+
| f82a5b8edb5447789571733de382ff7c | tionix    | True    |                          |
+----------------------------------+-----------+---------+--------------------------+

Диагностика модулей TIONIX началась.
Запускаем тесты для: tnx_client, tnx_dashboard, tnx_monitor, tnx_node_control, tnx_scheduler, tnx_vdi_server

+-------------------------+-------------------------------------------------------------------------------------+
| Дата и время запуска    | Пт 14 июн 2019 13:22:21 MSK                                                         |
+-------------------------+-------------------------------------------------------------------------------------+
| Версия OpenStack        | Queens (17.0.7)                                                                     |
+-------------------------+-------------------------------------------------------------------------------------+
| Имя хоста               | test.stand.loc                                                                      |
+-------------------------+-------------------------------------------------------------------------------------+
| Дистрибутив             | CentOS Linux 7.6.1810                                                               |
+-------------------------+-------------------------------------------------------------------------------------+
| Управляющие узлы        | 1                                                                                   |
+-------------------------+-------------------------------------------------------------------------------------+
| Вычислительные узлы     | 2                                                                                   |
+-------------------------+-------------------------------------------------------------------------------------+
| База данных             | mysql  Ver 15.1 Distrib 10.1.20-MariaDB, for Linux (x86_64) using  EditLine wrapper |
+-------------------------+-------------------------------------------------------------------------------------+
| Источник пакетов        | pypi-queens.tionix.loc                                                              |
+-------------------------+-------------------------------------------------------------------------------------+
| Версия tionix-licensing | 2.0.1                                                                               |
+-------------------------+-------------------------------------------------------------------------------------+

=============
TIONIX.Client
Версия: 2.3.0 (актуальная: текущая)
Лицензия: Этот модуль не требует наличия лицензии.
=============
+----+--------------------------------------------------+--------+-----------------+
| N  | Название теста                                   | Статус | Причина неудачи |
+----+--------------------------------------------------+--------+-----------------+
| 1  | test admin role in domain                        | УСПЕХ  |                 |
+----+--------------------------------------------------+--------+-----------------+
| 2  | test check openstack endpoints                   | УСПЕХ  |                 |
+----+--------------------------------------------------+--------+-----------------+
| 3  | test client systemd services                     | УСПЕХ  |                 |
+----+--------------------------------------------------+--------+-----------------+
| 4  | test installation source file                    | УСПЕХ  |                 |
+----+--------------------------------------------------+--------+-----------------+
| 5  | test journal api connection                      | УСПЕХ  |                 |
+----+--------------------------------------------------+--------+-----------------+
| 6  | test journal api service registration            | УСПЕХ  |                 |
+----+--------------------------------------------------+--------+-----------------+
| 7  | test migrations applied                          | УСПЕХ  |                 |
+----+--------------------------------------------------+--------+-----------------+
| 8  | test tionix modules compatibility with openstack | УСПЕХ  |                 |
+----+--------------------------------------------------+--------+-----------------+
| 9  | test tionix modules versions                     | УСПЕХ  |                 |
+----+--------------------------------------------------+--------+-----------------+
| 10 | test valid openstack version                     | УСПЕХ  |                 |
+----+--------------------------------------------------+--------+-----------------+
Запущено 10 за 57.204сек.
УСПЕХ (успешно=10, неудачно=0, ошибок=0)

================
TIONIX.Dashboard
Версия: 2.3.0 (актуальная: текущая)
Лицензия: Этот модуль не требует наличия лицензии.
================
+----+-----------------------------------+--------+-----------------+
| N  | Название теста                    | Статус | Причина неудачи |
+----+-----------------------------------+--------+-----------------+
| 1  | func test dashboard db            | УСПЕХ  |                 |
+----+-----------------------------------+--------+-----------------+
| 2  | test available images             | УСПЕХ  |                 |
+----+-----------------------------------+--------+-----------------+
| 3  | test connection to neutron        | УСПЕХ  |                 |
+----+-----------------------------------+--------+-----------------+
| 4  | test dashboard installed          | УСПЕХ  |                 |
+----+-----------------------------------+--------+-----------------+
| 5  | test localization files           | УСПЕХ  |                 |
+----+-----------------------------------+--------+-----------------+
| 6  | test monitor connection           | УСПЕХ  |                 |
+----+-----------------------------------+--------+-----------------+
| 7  | test node control connection      | УСПЕХ  |                 |
+----+-----------------------------------+--------+-----------------+
| 8  | test registered tasks to schedule | УСПЕХ  |                 |
+----+-----------------------------------+--------+-----------------+
| 9  | test scheduler connection         | УСПЕХ  |                 |
+----+-----------------------------------+--------+-----------------+
| 10 | test vdi server connection        | УСПЕХ  |                 |
+----+-----------------------------------+--------+-----------------+
Запущено 10 за 29.359сек.
УСПЕХ (успешно=10, неудачно=0, ошибок=0)

==============
TIONIX.Monitor
Версия: 2.3.0 (актуальная: текущая)
Лицензия: 03-002-45108d2f0853cf3d6616 (действительна до 31.09.2019 03:00:00)
==============
+---+-------------------------------------+-------+----------------+
|N  |Название теста                       |Статус |Причина неудачи |
+---+-------------------------------------+-------+----------------+
|1  |test config file existence           |УСПЕХ  |                |
+---+-------------------------------------+-------+----------------+
|2  |test connection to gnocchi           |УСПЕХ  |                |
+---+-------------------------------------+-------+----------------+
|3  |test connection to keystone          |УСПЕХ  |                |
+---+-------------------------------------+-------+----------------+
|4  |test connection to zabbix            |УСПЕХ  |                |
+---+-------------------------------------+-------+----------------+
|5  |test gnocchi metrics                 |УСПЕХ  |                |
+---+-------------------------------------+-------+----------------+
|6  |test license validity                |УСПЕХ  |                |
+---+-------------------------------------+-------+----------------+
|7  |test migrations applied              |УСПЕХ  |                |
+---+-------------------------------------+-------+----------------+
|8  |test monitor api connection          |УСПЕХ  |                |
+---+-------------------------------------+-------+----------------+
|9  |test monitor api service registration|УСПЕХ  |                |
+---+-------------------------------------+-------+----------------+
|10 |test monitor systemd services        |УСПЕХ  |                |
+---+-------------------------------------+-------+----------------+
Запущено 10 за 75.008сек.
УСПЕХ (успешно=10, неудачно=0, ошибок=0)

==================
TIONIX.NodeControl
Версия: 2.3.0 (актуальная: текущая)
Лицензия: 04-002-a7b5a1979334a169c323 (действительна до 31.09.2019 03:00:00)
==================
+----+--------------------------------------------+----------+------------------------------------------------------+
| N  | Название теста                             | Статус   | Причина неудачи                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 1  | test arp command                           | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 2  | test ceph script                           | ПРОПУЩЕН | Интеграция со службой Ceph не включена               |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 3  | test config file existence                 | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 4  | test connection to keystone                | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 5  | test connection to nova                    | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 6  | test drs service availability              | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 7  | test leases files exist                    | ПРОПУЩЕН | Файл leases не найден. По всей видимости у вас       |
|    |                                            |          | отсутствует DHCP сервер.                             |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 8  | test license validity                      | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 9  | test migrations applied                    | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 10 | test net isolation                         | ПРОПУЩЕН | Служба изоляции сети не включена                     |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 11 | test node control api connection           | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 12 | test node control api service registration | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 13 | test node control systemd services         | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 14 | test ping command                          | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 15 | test pxe folder owner write permissions    | ПРОПУЩЕН | Папка для PXE образов не существует, проверьте       |
|    |                                            |          | параметр конфигурации PXE.                           |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 16 | test registered celery tasks               | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 17 | test registered tasks to schedule          | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
Запущено 17 за 18.455сек.
УСПЕХ (успешно=13, неудачно=0, ошибок=0)

================
TIONIX.Scheduler
Версия: 2.3.0 (актуальная: текущая)
Лицензия: Этот модуль не требует наличия лицензии.
================
+---+-----------------------------------------+--------+-----------------+
| N | Название теста                          | Статус | Причина неудачи |
+---+-----------------------------------------+--------+-----------------+
| 1 | test apache config enabled              | УСПЕХ  |                 |
+---+-----------------------------------------+--------+-----------------+
| 2 | test apache config existence            | УСПЕХ  |                 |
+---+-----------------------------------------+--------+-----------------+
| 3 | test config file existence              | УСПЕХ  |                 |
+---+-----------------------------------------+--------+-----------------+
| 4 | test connection to keystone             | УСПЕХ  |                 |
+---+-----------------------------------------+--------+-----------------+
| 5 | test connection to rabbit               | УСПЕХ  |                 |
+---+-----------------------------------------+--------+-----------------+
| 6 | test migrations applied                 | УСПЕХ  |                 |
+---+-----------------------------------------+--------+-----------------+
| 7 | test scheduler api connection           | УСПЕХ  |                 |
+---+-----------------------------------------+--------+-----------------+
| 8 | test scheduler api service registration | УСПЕХ  |                 |
+---+-----------------------------------------+--------+-----------------+
| 9 | test scheduler systemd services         | УСПЕХ  |                 |
+---+-----------------------------------------+--------+-----------------+
Запущено 9 за 18.857сек.
УСПЕХ (успешно=9, неудачно=0, ошибок=0)

================
TIONIX.VDIserver
Версия: 2.3.0 (актуальная: текущая)
Лицензия: 07-002-972fb12437f60c4a5411 (действительна до 31.09.2019 03:00:00)
================
+--+----------------------------------------+--------+--------------------------------------------------------------+
|N |Название теста                          |Статус  |Причина неудачи                                               |
+--+----------------------------------------+--------+--------------------------------------------------------------+
|1 |test apache config enabled              |УСПЕХ   |                                                              |
+--+----------------------------------------+--------+--------------------------------------------------------------+
|2 |test apache config existence            |УСПЕХ   |                                                              |
+--+----------------------------------------+--------+--------------------------------------------------------------+
|3 |test config file existence              |УСПЕХ   |                                                              |
+--+----------------------------------------+--------+--------------------------------------------------------------+
|4 |test connection to keystone             |УСПЕХ   |                                                              |
+--+----------------------------------------+--------+--------------------------------------------------------------+
|5 |test connection to nova                 |УСПЕХ   |                                                              |
+--+----------------------------------------+--------+--------------------------------------------------------------+
|6 |test license validity                   |УСПЕХ   |                                                              |
+--+----------------------------------------+--------+--------------------------------------------------------------+
|7 |test migrations applied                 |УСПЕХ   |                                                              |
+--+----------------------------------------+--------+--------------------------------------------------------------+
|8 |test profiler log file accesses         |ПРОПУЩЕН|Тест актуален только в случае, если в LOG_LEVEL указан DEBUG. |
+--+----------------------------------------+--------+--------------------------------------------------------------+
|9 |test registered celery tasks            |УСПЕХ   |                                                              |
+--+----------------------------------------+--------+--------------------------------------------------------------+
|10|test registered tasks to schedule       |УСПЕХ   |                                                              |
+--+----------------------------------------+--------+--------------------------------------------------------------+
|11|test request vm log file accesses       |УСПЕХ   |                                                              |
+--+----------------------------------------+--------+--------------------------------------------------------------+
|12|test vdi api                            |УСПЕХ   |                                                              |
+--+----------------------------------------+--------+--------------------------------------------------------------+
|13|test vdi server api connection          |УСПЕХ   |                                                              |
+--+----------------------------------------+--------+--------------------------------------------------------------+
|14|test vdi server api service registration|УСПЕХ   |                                                              |
+--+----------------------------------------+--------+--------------------------------------------------------------+
|15|test vdi server systemd services        |УСПЕХ   |                                                              |
+--+----------------------------------------+--------+--------------------------------------------------------------+
|16|test vdi web                            |УСПЕХ   |                                                              |
+--+----------------------------------------+--------+--------------------------------------------------------------+
Запущено 16 за 47.537сек.
УСПЕХ (успешно=15, неудачно=0, ошибок=0)

====
ИТОГ
====
Запущено 71 за 256.294сек.
УСПЕХ (успешно=67, неудачно=0, ошибок=0)

Получение результатов последней самодиагностики

Вывод последнего сохраненного отчета для текущего пользователя:

openstack tnx tests --show-last

Примечание

Для получения результата команды необходимо наличие сохраненного ранее отчета о самодиагностике.

Пример ответа:

+-------------------------+-------------------------------------------------------------------------------------+
| Дата и время запуска    | Пт 14 июн 2019 13:22:21 MSK                                                         |
+-------------------------+-------------------------------------------------------------------------------------+
| Версия OpenStack        | Queens (17.0.7)                                                                     |
+-------------------------+-------------------------------------------------------------------------------------+
| Имя хоста               | test.stand.loc                                                                      |
+-------------------------+-------------------------------------------------------------------------------------+
| Дистрибутив             | CentOS Linux 7.6.1810                                                               |
+-------------------------+-------------------------------------------------------------------------------------+
| Управляющие узлы        | 1                                                                                   |
+-------------------------+-------------------------------------------------------------------------------------+
| Вычислительные узлы     | 2                                                                                   |
+-------------------------+-------------------------------------------------------------------------------------+
| База данных             | mysql  Ver 15.1 Distrib 10.1.20-MariaDB, for Linux (x86_64) using  EditLine wrapper |
+-------------------------+-------------------------------------------------------------------------------------+
| Источник пакетов        | pypi-queens.tionix.loc                                                              |
+-------------------------+-------------------------------------------------------------------------------------+
| Версия tionix-licensing | 2.0.1                                                                               |
+-------------------------+-------------------------------------------------------------------------------------+

==================
TIONIX.NodeControl
Версия: 2.3.0 (актуальная: текущая)
Лицензия: 04-002-a7b5a1979334a169c323 (действительна до 31.09.2019 03:00:00)
==================
+----+--------------------------------------------+----------+------------------------------------------------------+
| N  | Название теста                             | Статус   | Причина неудачи                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 1  | test arp command                           | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 2  | test ceph script                           | ПРОПУЩЕН | Интеграция со службой Ceph не включена               |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 3  | test config file existence                 | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 4  | test connection to keystone                | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 5  | test connection to nova                    | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 6  | test drs service availability              | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 7  | test leases files exist                    | ПРОПУЩЕН | Файл leases не найден. По всей видимости у вас       |
|    |                                            |          | отсутствует DHCP сервер.                             |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 8  | test license validity                      | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 9  | test migrations applied                    | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 10 | test net isolation                         | ПРОПУЩЕН | Служба изоляции сети не включена                     |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 11 | test node control api connection           | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 12 | test node control api service registration | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 13 | test node control systemd services         | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 14 | test ping command                          | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 15 | test pxe folder owner write permissions    | ПРОПУЩЕН | Папка для PXE образов не существует, проверьте       |
|    |                                            |          | параметр конфигурации PXE.                           |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 16 | test registered celery tasks               | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 17 | test registered tasks to schedule          | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
Запущено 17 за 18.455сек.
УСПЕХ (успешно=13, неудачно=0, ошибок=0)

Выгрузка результатов самодиагностики в файл

Для вывода диагностики в файл требуется указать флаг сохранения в файл и каталог, куда будут выгружены результаты:

openstack tnx tests --save-file --file-dir /tmp/self-diagnostic

В результате выполнения команды будет создан файл диагностики в каталоге /tmp/self-diagnostic.

Запуск самодиагностики с пропуском успешных тестов

Команда:

openstack tnx tests --errors-only --modules

Пример ответа:

+-------------------------+-------------------------------------------------------------------------------------+
| Дата и время запуска    | Пт 14 июн 2019 13:22:21 MSK                                                         |
+-------------------------+-------------------------------------------------------------------------------------+
| Версия OpenStack        | Queens (17.0.7)                                                                     |
+-------------------------+-------------------------------------------------------------------------------------+
| Имя хоста               | test.stand.loc                                                                      |
+-------------------------+-------------------------------------------------------------------------------------+
| Дистрибутив             | CentOS Linux 7.6.1810                                                               |
+-------------------------+-------------------------------------------------------------------------------------+
| Управляющие узлы        | 1                                                                                   |
+-------------------------+-------------------------------------------------------------------------------------+
| Вычислительные узлы     | 2                                                                                   |
+-------------------------+-------------------------------------------------------------------------------------+
| База данных             | mysql  Ver 15.1 Distrib 10.1.20-MariaDB, for Linux (x86_64) using  EditLine wrapper |
+-------------------------+-------------------------------------------------------------------------------------+
| Источник пакетов        | pypi-queens.tionix.loc                                                              |
+-------------------------+-------------------------------------------------------------------------------------+
| Версия tionix-licensing | 2.0.1                                                                               |
+-------------------------+-------------------------------------------------------------------------------------+

=============
TIONIX.Client
Версия: 2.3.0 (актуальная: текущая)
Лицензия: Этот модуль не требует наличия лицензии.
=============
+---+--------------------------------------------------+---------+--------------------------------------------------+
| N | Название теста                                   | Статус  | Причина неудачи                                  |
+---+--------------------------------------------------+---------+--------------------------------------------------+
| 1 | test check openstack endpoints                   | НЕУДАЧА | Недоступные точки подключения: Watcher:admin.    |
+---+--------------------------------------------------+---------+--------------------------------------------------+
| 2 | test tionix modules compatibility with openstack | НЕУДАЧА | Установленная версия Nova несовместима с одним   |
|   |                                                  |         | из модулей TIONIX.                               |
+---+--------------------------------------------------+---------+--------------------------------------------------+
| 3 | test tionix modules versions                     | НЕУДАЧА | Версии установленных модулей могут быть          |
|   |                                                  |         | несовместимы. Необходимо использовать одну и ту  |
|   |                                                  |         | же основную и вспомогательную версию всех        |
|   |                                                  |         | модулей.                                         |
+---+--------------------------------------------------+---------+--------------------------------------------------+
| 4 | test valid openstack version                     | НЕУДАЧА | Keystone:                                        |
|   |                                                  |         | ldappool==1.0. Необходимо ldappool>=2.2.0,       |
|   |                                                  |         | <=2.2.0                                          |
|   |                                                  |         | Общие пакеты:                                    |
|   |                                                  |         | python-watcherclient==2.1.0. Необходимо          |
|   |                                                  |         | python-watcherclient>=1.4.0,<=1.6.0              |
+---+--------------------------------------------------+---------+--------------------------------------------------+
Запущено 10 за 60.377сек.
НЕУДАЧА (успешно=6, неудачно=4, ошибок=0)

================
TIONIX.Dashboard
Версия: 2.3.0 (актуальная: текущая)
Лицензия: Этот модуль не требует наличия лицензии.
================
+---+------------------------+--------+-------------------------------------------------------------------+
| N | Название теста         | Статус | Причина неудачи                                                   |
+---+------------------------+--------+-------------------------------------------------------------------+
| 1 | func test dashboard db | ОШИБКА | ImportError: Failed to import test module: func_test_dashboard_db |
|   |                        |        |                                                                   |
+---+------------------------+--------+-------------------------------------------------------------------+
Запущено 10 за 44.180сек.
НЕУДАЧА (успешно=8, неудачно=0, ошибок=1)

==============
TIONIX.Monitor
Версия: 2.3.0 (актуальная: текущая)
Лицензия: 03-002-45108d2f0853cf3d6616 (действительна до 31.09.2019 03:00:00)
==============
+-+--------------------+-------+------------------------------------------------------------------------------------+
|N|Название теста      |Статус |Причина неудачи                                                                     |
+-+--------------------+-------+------------------------------------------------------------------------------------+
|1|test gnocchi metrics|НЕУДАЧА|Не найдены актуальные данные по следующим метрикам Gnocchi: disk.read.requests.rate,|
| |                    |       |disk.write.requests.rate, disk.read.bytes.rate, disk.write.bytes.rate, disk.latency,|
| |                    |       |disk.iops, network.incoming.bytes.rate, network.outgoing.bytes.rate,                |
| |                    |       |network.incoming.packets.rate,network.outgoing.packets.rate. Пожалуйста, убедитесь, |
| |                    |       |что служба сбора данных Gnocchi работает и настроена для сбора необходимых метрик.  |
+-+--------------------+-------+------------------------------------------------------------------------------------+
Запущено 9 за 79.594сек.
НЕУДАЧА (успешно=8, неудачно=1, ошибок=0)

==================
TIONIX.NodeControl
Версия: 2.3.0 (актуальная: текущая)
Лицензия: 04-002-a7b5a1979334a169c323 (действительна до 31.09.2019 03:00:00)
==================
Запущено 17 за 30.413сек.
УСПЕХ (успешно=13, неудачно=0, ошибок=0)

================
TIONIX.Scheduler
Версия: 2.3.0 (актуальная: текущая)
Лицензия: Этот модуль не требует наличия лицензии.
================
Запущено 9 за 23.461сек.
УСПЕХ (успешно=9, неудачно=0, ошибок=0)

================
TIONIX.VDIserver
Версия: 2.3.0 (актуальная: текущая)
Лицензия: 07-002-972fb12437f60c4a5411 (действительна до 31.09.2019 03:00:00)
================
+-+---------------------------------+-------+-----------------------------------------------------------------------+
|N|Название теста                   |Статус |Причина неудачи                                                        |
+-+---------------------------------+-------+-----------------------------------------------------------------------+
|1|test registered tasks to schedule|НЕУДАЧА|Задача недоступна для планирования:                                    |
| |                                 |       |tionix_vdi_server.tasks.launch_vdi_vm_task.                            |
| |                                 |       |Попробуйте перезапустить воркер Celery модуля TIONIX.Scheduler:        |
| |                                 |       |systemctl restart tionix-scheduler-worker                              |
+-+---------------------------------+-------+-----------------------------------------------------------------------+
Запущено 16 за 30.123сек.
НЕУДАЧА (успешно=14, неудачно=1, ошибок=0)

====
ИТОГ
====
Запущено 70 за 268.148сек.
НЕУДАЧА (успешно=57, неудачно=6, ошибок=1)

Запуск самодиагностики в подробном режиме

В подробном режиме выводится список используемых параметров.

Команда:

openstack tnx tests --names tnx_node_control --verbose

Пример ответа:

Системная информация:
+-----------------------------+-------------------------------------------------------------------------------------+
|Дата и время запуска         |Пт 14 июн 2019 13:47:49 MSK                                                          |
+-----------------------------+-------------------------------------------------------------------------------------+
|Неактивные сервисы           |openvswitch, selinux-policy-migrate-local-changes@targeted, target                   |
+-----------------------------+-------------------------------------------------------------------------------------+
|Имена баз данных             |aodh, cinder, glance, gnocchi, heat, information_schema, keystone, mysql, neutron,   |
|                             |nova, nova_api, nova_cell0, performance_schema, test, tionix, tionix_dash,           |
|                             |tionix_monitor, tionix_node_control, tionix_scheduler, tionix_vdi_server, watcher    |
+-----------------------------+-------------------------------------------------------------------------------------+
|Пользователи Rabbit          |tionix, openstack, guest                                                             |
+-----------------------------+-------------------------------------------------------------------------------------+
|Виртуальные хосты Rabbit     |tionix, /                                                                            |
+-----------------------------+-------------------------------------------------------------------------------------+
|Лимиты Rabbit                |total_limit: 924                                                                     |
|                             |total_used: 180                                                                      |
+-----------------------------+-------------------------------------------------------------------------------------+
|Права Rabbit "tionix"        |/:.* .* .*                                                                           |
|                             |tionix:.* .* .*                                                                      |
+-----------------------------+-------------------------------------------------------------------------------------+
|Права Rabbit "openstack"     |/:.* .* .*                                                                           |
+-----------------------------+-------------------------------------------------------------------------------------+
|Права Rabbit "guest"         |/:.* .* .*                                                                           |
+-----------------------------+-------------------------------------------------------------------------------------+
|Параметры конфигурации Apache|tionix-vdi-web: VirtualHost *:8888: processes=3, threads=10                          |
|                             |openstack-keystone: VirtualHost *:35357: processes=5, threads=2, VirtualHost *:5000: |
|                             |processes=5, threads=2 tionix-scheduler-api: VirtualHost *:10001: processes=3,       |
|                             |threads=10                                                                           |
+-----------------------------+-------------------------------------------------------------------------------------+
|Apache MPM                   |prefork                                                                              |
+-----------------------------+-------------------------------------------------------------------------------------+

Сервисы OpenStack:
+----------------------------------+---------------+----------------+-----------------------------+---------+
| ID                               | Имя           | Тип            | Описание                    | Активен |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 023ef173ad4c4410849257bc7292414a | cinderv2      | volumev2       | OpenStack Block Storage     | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 07e12e6227cf47f5be55c6eaba1041eb | aodh          | alarming       | Telemetry Alarming          | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 1e91ce8aef5e4819b67f798c0dd9b478 | keystone      | identity       |                             | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 217ca35dd8154360aef3ed90cef54aab | heat-cfn      | cloudformation | Orchestration               | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 52516190b0b049c0abce9fb88efb9c9b | glance        | image          | OpenStack Image             | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 5a5e27b7316e407f8c7963c0ea48be10 | tnx-scheduler | tnx-scheduler  | TIONIX Scheduler service    | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 6151c6832f6a47afa80161a3a7f50029 | tnx-vdi       | tnx-vdi        | TIONIX VDIserver service    | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 6f90bb213f2e4d819943b8aa532b2f06 | gnocchi       | metric         | Metric Service              | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 746b8439eb204b669b615b4c3e8c6e8e | tnx-monitor   | tnx-monitor    | TIONIX Monitor service      | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 8ce1c403057f40fd99f46b79959afeb9 | nova          | compute        | OpenStack Compute           | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| 92c5e63bdafe4dc18cc75ce3e1784643 | cinderv3      | volumev3       | OpenStack Block Storage     | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| ad651b7586604383802aca7e66acb993 | heat          | orchestration  | Orchestration               | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| b6f5949a69e44941816bdea69adaeb1d | tnx-journal   | tnx-journal    | TIONIX Journal service      | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| c828d54255d64fa3bed5dd4960280bcd | tnx-nc        | tnx-nc         | TIONIX NodeControl service  | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| d36e3f9b26434138968715fe0ec3ab4f | placement     | placement      | Placement API               | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| f404703d273d48b2b33143cd2348a8fd | neutron       | network        | OpenStack Networking        | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+
| fac8c6e0526843c7a98994f9facbfcb1 | watcher       | infra-optim    | Infrastructure Optimization | True    |
+----------------------------------+---------------+----------------+-----------------------------+---------+

Сети:
+--------------------------------------+----------+--------------------------------------+
| ID                                   | Имя      | Подсети                              |
+--------------------------------------+----------+--------------------------------------+
| 9ce14287-5240-4e1e-a6e5-654a6ecfd07c | localnet | d6d4a477-6704-4d60-a649-5b8673f42751 |
+--------------------------------------+----------+--------------------------------------+
| b6a21fce-de28-456a-b1d2-88e6efb7f570 | provider | 4924c7dc-3efe-4c37-9bbc-bd72df276194 |
+--------------------------------------+----------+--------------------------------------+

Маршрутизаторы:
+--------------------------------------+------------+--------+----------------------------------+
| ID                                   | Имя        | Статус | Проект                           |
+--------------------------------------+------------+--------+----------------------------------+
| 568fa2db-07bd-48b5-a28c-31b04db14d4f | ext-router | ACTIVE | ed2679728b76443d968a715256a3b574 |
+--------------------------------------+------------+--------+----------------------------------+

Образы:
+--------------------------------------+-----------------------+--------+
| ID                                   | Имя                   | Статус |
+--------------------------------------+-----------------------+--------+
| 9dc5b844-0679-407f-b3e6-ae1580c015e9 | bench-ubuntu1snapshot | active |
+--------------------------------------+-----------------------+--------+
| cdf7f29a-09ac-49ff-8076-6dbc8a1ed689 | cirros1snapshot       | active |
+--------------------------------------+-----------------------+--------+
| a0d5ef28-c8e2-43c9-97ee-ea7bb7870a51 | bench-ubuntu          | active |
+--------------------------------------+-----------------------+--------+
| 94c2ce88-a6f0-4029-a55a-88c7b201d5a8 | centos7cloud          | active |
+--------------------------------------+-----------------------+--------+
| a7ca718c-c1d8-4871-b0b2-030f5fa15d2b | vdi_rdp               | active |
+--------------------------------------+-----------------------+--------+
| 6cf43dad-7bab-49d9-bd2b-358827648a9b | cirros                | active |
+--------------------------------------+-----------------------+--------+

Проверка сервисов OpenStack:
+---------------+------------------------------+-----------------------+
| Сервис        | URL                          | Поддерживаемые версии |
+---------------+------------------------------+-----------------------+
| heat-cfn      | http://test.stand.loc:8000/  | v1.0: current         |
+---------------+------------------------------+-----------------------+
| tnx-monitor   | http://test.stand.loc:9363/  | -                     |
+---------------+------------------------------+-----------------------+
| placement     | http://test.stand.loc:8778/  | v1.0:                 |
+---------------+------------------------------+-----------------------+
| cinderv3      | http://test.stand.loc:8776/  | v3.0: current         |
|               |                              | v2.0: deprecated      |
+---------------+------------------------------+-----------------------+
| tnx-scheduler | http://test.stand.loc:10001/ | -                     |
+---------------+------------------------------+-----------------------+
| gnocchi       | http://test.stand.loc:8041/  | v1.0: current         |
+---------------+------------------------------+-----------------------+
| tnx-journal   | http://test.stand.loc:9360/  | -                     |
+---------------+------------------------------+-----------------------+
| neutron       | http://test.stand.loc:9696/  | v2.0: current         |
+---------------+------------------------------+-----------------------+
| tnx-vdi       | http://test.stand.loc:9364/  | -                     |
+---------------+------------------------------+-----------------------+
| glance        | http://test.stand.loc:9292/  | v2.6: current         |
|               |                              | v2.5: supported       |
|               |                              | v2.4: supported       |
|               |                              | v2.3: supported       |
|               |                              | v2.2: supported       |
|               |                              | v2.1: supported       |
|               |                              | v2.0: supported       |
|               |                              | v1.1: deprecated      |
|               |                              | v1.0: deprecated      |
+---------------+------------------------------+-----------------------+
| tnx-nc        | http://test.stand.loc:9362/  | -                     |
+---------------+------------------------------+-----------------------+
| nova          | http://test.stand.loc:8774/  | v2.1: current         |
|               |                              | v2.0: supported       |
+---------------+------------------------------+-----------------------+
| watcher       | http://test.stand.loc:9322/  | -                     |
+---------------+------------------------------+-----------------------+
| cinderv2      | http://test.stand.loc:8776/  | v3.0: current         |
|               |                              | v2.0: deprecated      |
+---------------+------------------------------+-----------------------+
| keystone      | http://test.stand.loc:5000/  | v3.10: stable         |
|               |                              | v2.0: deprecated      |
+---------------+------------------------------+-----------------------+
| aodh          | http://test.stand.loc:8042/  | v2: stable            |
+---------------+------------------------------+-----------------------+
| heat          | http://test.stand.loc:8004/  | v1.0: current         |
+---------------+------------------------------+-----------------------+

Точки подключения OpenStack:
+---------------+-----------+-----------+-----------------------------------------------+
| Сервис        | Интерфейс | Регион    | URL                                           |
+---------------+-----------+-----------+-----------------------------------------------+
| aodh          | admin     | RegionOne | http://test.stand.loc:8042                    |
+---------------+-----------+-----------+-----------------------------------------------+
| aodh          | internal  | RegionOne | http://test.stand.loc:8042                    |
+---------------+-----------+-----------+-----------------------------------------------+
| aodh          | public    | RegionOne | http://test.stand.loc:8042                    |
+---------------+-----------+-----------+-----------------------------------------------+
| cinderv2      | admin     | RegionOne | http://test.stand.loc:8776/v2/%(tenant_id)s   |
+---------------+-----------+-----------+-----------------------------------------------+
| cinderv2      | internal  | RegionOne | http://test.stand.loc:8776/v2/%(tenant_id)s   |
+---------------+-----------+-----------+-----------------------------------------------+
| cinderv2      | public    | RegionOne | http://test.stand.loc:8776/v2/%(tenant_id)s   |
+---------------+-----------+-----------+-----------------------------------------------+
| cinderv3      | admin     | RegionOne | http://test.stand.loc:8776/v3/%(project_id)s  |
+---------------+-----------+-----------+-----------------------------------------------+
| cinderv3      | internal  | RegionOne | http://test.stand.loc:8776/v3/%(project_id)s  |
+---------------+-----------+-----------+-----------------------------------------------+
| cinderv3      | public    | RegionOne | http://test.stand.loc:8776/v3/%(project_id)s  |
+---------------+-----------+-----------+-----------------------------------------------+
| glance        | admin     | RegionOne | http://test.stand.loc:9292                    |
+---------------+-----------+-----------+-----------------------------------------------+
| glance        | internal  | RegionOne | http://test.stand.loc:9292                    |
+---------------+-----------+-----------+-----------------------------------------------+
| glance        | public    | RegionOne | http://test.stand.loc:9292                    |
+---------------+-----------+-----------+-----------------------------------------------+
| gnocchi       | admin     | RegionOne | http://test.stand.loc:8041                    |
+---------------+-----------+-----------+-----------------------------------------------+
| gnocchi       | internal  | RegionOne | http://test.stand.loc:8041                    |
+---------------+-----------+-----------+-----------------------------------------------+
| gnocchi       | public    | RegionOne | http://test.stand.loc:8041                    |
+---------------+-----------+-----------+-----------------------------------------------+
| heat-cfn      | admin     | RegionOne | http://test.stand.loc:8000/v1                 |
+---------------+-----------+-----------+-----------------------------------------------+
| heat-cfn      | internal  | RegionOne | http://test.stand.loc:8000/v1                 |
+---------------+-----------+-----------+-----------------------------------------------+
| heat-cfn      | public    | RegionOne | http://test.stand.loc:8000/v1                 |
+---------------+-----------+-----------+-----------------------------------------------+
| heat          | admin     | RegionOne | http://test.stand.loc:8004/v1/%(tenant_id)s   |
+---------------+-----------+-----------+-----------------------------------------------+
| heat          | internal  | RegionOne | http://test.stand.loc:8004/v1/%(tenant_id)s   |
+---------------+-----------+-----------+-----------------------------------------------+
| heat          | public    | RegionOne | http://test.stand.loc:8004/v1/%(tenant_id)s   |
+---------------+-----------+-----------+-----------------------------------------------+
| keystone      | admin     | RegionOne | http://test.stand.loc:5000/v3/                |
+---------------+-----------+-----------+-----------------------------------------------+
| keystone      | internal  | RegionOne | http://test.stand.loc:5000/v3/                |
+---------------+-----------+-----------+-----------------------------------------------+
| keystone      | public    | RegionOne | http://test.stand.loc:5000/v3/                |
+---------------+-----------+-----------+-----------------------------------------------+
| neutron       | admin     | RegionOne | http://test.stand.loc:9696                    |
+---------------+-----------+-----------+-----------------------------------------------+
| neutron       | internal  | RegionOne | http://test.stand.loc:9696                    |
+---------------+-----------+-----------+-----------------------------------------------+
| neutron       | public    | RegionOne | http://test.stand.loc:9696                    |
+---------------+-----------+-----------+-----------------------------------------------+
| nova          | admin     | RegionOne | http://test.stand.loc:8774/v2.1/%(tenant_id)s |
+---------------+-----------+-----------+-----------------------------------------------+
| nova          | internal  | RegionOne | http://test.stand.loc:8774/v2.1/%(tenant_id)s |
+---------------+-----------+-----------+-----------------------------------------------+
| nova          | public    | RegionOne | http://test.stand.loc:8774/v2.1/%(tenant_id)s |
+---------------+-----------+-----------+-----------------------------------------------+
| placement     | admin     | RegionOne | http://test.stand.loc:8778                    |
+---------------+-----------+-----------+-----------------------------------------------+
| placement     | internal  | RegionOne | http://test.stand.loc:8778                    |
+---------------+-----------+-----------+-----------------------------------------------+
| placement     | public    | RegionOne | http://test.stand.loc:8778                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-journal   | admin     | RegionOne | http://test.stand.loc:9360                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-journal   | internal  | RegionOne | http://test.stand.loc:9360                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-journal   | public    | RegionOne | http://test.stand.loc:9360                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-monitor   | admin     | RegionOne | http://test.stand.loc:9363                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-monitor   | internal  | RegionOne | http://test.stand.loc:9363                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-monitor   | public    | RegionOne | http://test.stand.loc:9363                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-nc        | admin     | RegionOne | http://test.stand.loc:9362                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-nc        | internal  | RegionOne | http://test.stand.loc:9362                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-nc        | public    | RegionOne | http://test.stand.loc:9362                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-scheduler | admin     | RegionOne | http://test.stand.loc:10001                   |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-scheduler | internal  | RegionOne | http://test.stand.loc:10001                   |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-scheduler | public    | RegionOne | http://test.stand.loc:10001                   |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-vdi       | admin     | RegionOne | http://test.stand.loc:9364                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-vdi       | internal  | RegionOne | http://test.stand.loc:9364                    |
+---------------+-----------+-----------+-----------------------------------------------+
| tnx-vdi       | public    | RegionOne | http://test.stand.loc:9364                    |
+---------------+-----------+-----------+-----------------------------------------------+
| watcher       | admin     | RegionOne | http://test.stand.loc:9322                    |
+---------------+-----------+-----------+-----------------------------------------------+
| watcher       | internal  | RegionOne | http://test.stand.loc:9322                    |
+---------------+-----------+-----------+-----------------------------------------------+
| watcher       | public    | RegionOne | http://test.stand.loc:9322                    |
+---------------+-----------+-----------+-----------------------------------------------+

Домены:
+----------------------------------+-----------+---------+--------------------------+
| ID                               | Имя       | Активен | Описание                 |
+----------------------------------+-----------+---------+--------------------------+
| 2dfdbbe00bc14bfe90a58e44e333f820 | openldap  | True    |                          |
+----------------------------------+-----------+---------+--------------------------+
| 475639e2f7a24358b5581db032ddf7a5 | openldap1 | True    |                          |
+----------------------------------+-----------+---------+--------------------------+
| 6dde66351a7c4dab81adf543d8ca1ea2 | heat      | True    | Stack projects and users |
+----------------------------------+-----------+---------+--------------------------+
| default                          | Default   | True    | The default domain       |
+----------------------------------+-----------+---------+--------------------------+
| f8f21093e3aa4eab999fbafdda6c5b46 | tionix    | True    |                          |
+----------------------------------+-----------+---------+--------------------------+

Диагностика модулей TIONIX началась.
Запускаем тесты для: tnx_node_control

+-------------------------+-------------------------------------------------------------------------------------+
| Дата и время запуска    | Пт 14 июн 2019 13:22:21 MSK                                                         |
+-------------------------+-------------------------------------------------------------------------------------+
| Версия OpenStack        | Queens (17.0.9)                                                                     |
+-------------------------+-------------------------------------------------------------------------------------+
| Имя хоста               | test.stand.loc                                                                      |
+-------------------------+-------------------------------------------------------------------------------------+
| Дистрибутив             | CentOS Linux 7.6.1810                                                               |
+-------------------------+-------------------------------------------------------------------------------------+
| Управляющие узлы        | 1                                                                                   |
+-------------------------+-------------------------------------------------------------------------------------+
| Вычислительные узлы     | 2                                                                                   |
+-------------------------+-------------------------------------------------------------------------------------+
| База данных             | mysql  Ver 15.1 Distrib 10.1.20-MariaDB, for Linux (x86_64) using  EditLine wrapper |
+-------------------------+-------------------------------------------------------------------------------------+
| Источник пакетов        | pypi-queens.tionix.loc                                                              |
+-------------------------+-------------------------------------------------------------------------------------+
| Версия tionix-licensing | 2.0.1                                                                               |
+-------------------------+-------------------------------------------------------------------------------------+

=============================
Извлеченные параметры: TIONIX
=============================
+--+---------------------------------+------------------------------------------------------------------------------+
|N |Variable name                    |Value                                                                         |
+--+---------------------------------+------------------------------------------------------------------------------+
|1 |CINDER_VERSION                   |2                                                                             |
+--+---------------------------------+------------------------------------------------------------------------------+
|2 |DB                               |{u'ENGINE': u'mysql+pymysql', u'NAME': u'tionix', u'MAX_POOL_SIZE': 5,        |
|  |                                 |u'HOST': u'test.stand.loc', u'USER': u'tionix', u'POOL_TIMEOUT': 30,          |
|  |                                 |u'MAX_OVERFLOW': 30, u'POOL_RECYCLE': 3600, u'PASSWORD': '******',            |
|  |                                 |u'PORT': u'3306'}                                                             |
+--+---------------------------------+------------------------------------------------------------------------------+
|3 |JOURNAL_API_LISTEN               |0.0.0.0                                                                       |
+--+---------------------------------+------------------------------------------------------------------------------+
|4 |JOURNAL_API_LISTEN_PORT          |9360                                                                          |
+--+---------------------------------+------------------------------------------------------------------------------+
|5 |JOURNAL_API_LOGFILE              |/var/log/tionix/client/journal-api.log                                        |
+--+---------------------------------+------------------------------------------------------------------------------+
|6 |JOURNAL_KEYSTONE_LISTENER_LOGFILE|/var/log/tionix/client/journal-keystone-listener.log                          |
+--+---------------------------------+------------------------------------------------------------------------------+
|7 |JOURNAL_LISTENER_LOGFILE         |/var/log/tionix/client/journal-listener.log                                   |
+--+---------------------------------+------------------------------------------------------------------------------+
|8 |JOURNAL_NOVA_LISTENER_LOGFILE    |/var/log/tionix/client/journal-nova-listener.log                              |
+--+---------------------------------+------------------------------------------------------------------------------+
|9 |KEYSTONE                         |{u'MEMCACHED_SERVERS': u'localhost:11211', u'CEILOMETER_SERVICE_NAME':        |
|  |                                 |u'metering', u'COMPUTE_SERVICE_NAME': u'compute', u'JOURNAL_SERVICE_TYPE':    |
|  |                                 |u'tnx-journal', u'USER_DOMAIN_NAME': u'default', u'NC_SERVICE_TYPE':          |
|  |                                 |u'tnx-nc', u'MONITOR_SERVICE_TYPE': u'tnx-monitor', u'VDI_SERVICE_TYPE':      |
|  |                                 |u'tnx-vdi', u'AUTH_USER': u'admin', u'AUTH_TENANT': u'admin',                 |
|  |                                 |u'AUTH_VERSION': u'3', u'SCHEDULER_SERVICE_TYPE': u'tnx-scheduler',           |
|  |                                 |u'GNOCCHI_SERVICE_NAME': u'metric', u'VOLUME_SERVICE_NAME': u'volumev2',      |
|  |                                 |u'AUTH_URL': u'http://test.stand.loc:5000', u'AUTH_PASSWORD': '******',       |
|  |                                 |u'PROJECT_DOMAIN_NAME': u'default'}                                           |
+--+---------------------------------+------------------------------------------------------------------------------+
|10|KEYSTONE_RABBIT_VHOST            |/                                                                             |
+--+---------------------------------+------------------------------------------------------------------------------+
|11|LOG_LEVEL                        |INFO                                                                          |
+--+---------------------------------+------------------------------------------------------------------------------+
|12|NEUTRON_VERSION                  |2                                                                             |
+--+---------------------------------+------------------------------------------------------------------------------+
|13|NOVA_RABBIT_VHOST                |/                                                                             |
+--+---------------------------------+------------------------------------------------------------------------------+
|14|RABBIT_QUEUES                    |{u'USERNAME': u'tionix', u'VHOST': u'tionix', u'HOST': u'ana-cnt7q-ovs-02',   |
|  |                                 |u'BROKER_TYPE': u'amqp', u'PASSWORD': '******', u'PORT':                      |
|  |                                 |u'5672'}                                                                      |
+--+---------------------------------+------------------------------------------------------------------------------+
|15|SENTRY                           |{u'ENABLED': False, u'LOG_LEVEL': u'CRITICAL'}                                |
+--+---------------------------------+------------------------------------------------------------------------------+

=========================================
Извлеченные параметры: TIONIX.NodeControl
=========================================
+--+-----------------------------------+----------------------------------------------------------------------------+
|N |Variable name                      |Value                                                                       |
+--+-----------------------------------+----------------------------------------------------------------------------+
|1 |ALLOW_EVACUATE_HOST                |True                                                                        |
+--+-----------------------------------+----------------------------------------------------------------------------+
|2 |ALLOW_HOST_AUTO_POWER_OFF          |False                                                                       |
+--+-----------------------------------+----------------------------------------------------------------------------+
|3 |CONTROLLER_AUTH_PATH               |/etc/tionix/hybrid/admin-openrc                                             |
+--+-----------------------------------+----------------------------------------------------------------------------+
|4 |CONTROLLER_USERNAME                |tionix                                                                      |
+--+-----------------------------------+----------------------------------------------------------------------------+
|5 |DB                                 |{'ENGINE': u'mysql+pymysql', 'NAME': u'tionix_node_control',                |
|  |                                   |'MAX_POOL_SIZE': 5, 'HOST': u'test.stand.loc', 'USER': u'tionix',           |
|  |                                   |'POOL_TIMEOUT': 30, 'MAX_OVERFLOW': 30, 'POOL_RECYCLE': 3600, 'PASSWORD':   |
|  |                                   |'******', 'PORT': u'3306'}                                                  |
+--+-----------------------------------+----------------------------------------------------------------------------+
|6 |DB_CONNECTION_MAX_RETRIES          |2                                                                           |
+--+-----------------------------------+----------------------------------------------------------------------------+
|7 |DHCP_LEASES_FILEPATHS              |/var/lib/dhcp/dhcpd/state/dhcpd.leases, /var/lib/dhcp/dhcpd.leases          |
+--+-----------------------------------+----------------------------------------------------------------------------+
|8 |DRS                                |{'DRS_PASSWORD': '******', 'DRS_HOSTNAME': u'10.35.129.130', 'DRS_PORT':    |
|  |                                   |8080, 'DRS_USER': u'Tionix'}                                                |
+--+-----------------------------------+----------------------------------------------------------------------------+
|9 |DRS_TRIGGER_INTERVAL               |600                                                                         |
+--+-----------------------------------+----------------------------------------------------------------------------+
|10|ENABLE_AGENT                       |False                                                                       |
+--+-----------------------------------+----------------------------------------------------------------------------+
|11|ENABLE_CEPH_INTEGRATION            |False                                                                       |
+--+-----------------------------------+----------------------------------------------------------------------------+
|12|ENABLE_NETWORK_ISOLATION           |False                                                                       |
+--+-----------------------------------+----------------------------------------------------------------------------+
|13|HOST_ATTACH_MAX_RETRIES            |10                                                                          |
+--+-----------------------------------+----------------------------------------------------------------------------+
|14|HOST_ATTACH_RETRY_DELAY            |120                                                                         |
+--+-----------------------------------+----------------------------------------------------------------------------+
|15|HOST_RESTART_TIMEOUT               |600                                                                         |
+--+-----------------------------------+----------------------------------------------------------------------------+
|16|KEYSTONE                           |{'COMPUTE_SERVICE_NAME': u'compute', 'USER_DOMAIN_NAME': u'default',        |
|  |                                   |'AUTH_USER': u'admin', 'AUTH_TENANT': u'admin', 'AUTH_VERSION': u'3',       |
|  |                                   |'AUTH_URL': u'http://test.stand.loc:5000', 'VOLUME_SERVICE_NAME':           |
|  |                                   |u'volumev2', 'MEMCACHED_SERVERS': u'localhost:11211', 'AUTH_PASSWORD':      |
|  |                                   |'******', 'PROJECT_DOMAIN_NAME': u'default'}                                |
+--+-----------------------------------+----------------------------------------------------------------------------+
|17|KEY_PATH                           |/etc/tionix/hybrid/tionix.crt                                               |
+--+-----------------------------------+----------------------------------------------------------------------------+
|18|LOG_LEVEL                          |INFO                                                                        |
+--+-----------------------------------+----------------------------------------------------------------------------+
|19|MAX_DOWN_HOSTS                     |0                                                                           |
+--+-----------------------------------+----------------------------------------------------------------------------+
|20|MAX_TICK_COUNT                     |10                                                                          |
+--+-----------------------------------+----------------------------------------------------------------------------+
|21|NETWORK_ISOLATION_API_PORT         |5549                                                                        |
+--+-----------------------------------+----------------------------------------------------------------------------+
|22|NODE_CONTROL_AGENT_LOGFILE         |/var/log/tionix/node-control/agent.log                                      |
+--+-----------------------------------+----------------------------------------------------------------------------+
|23|NODE_CONTROL_API_AUDIT_ENABLED     |True                                                                        |
+--+-----------------------------------+----------------------------------------------------------------------------+
|24|NODE_CONTROL_API_LISTEN            |0.0.0.0                                                                     |
+--+-----------------------------------+----------------------------------------------------------------------------+
|25|NODE_CONTROL_API_LISTEN_PORT       |9362                                                                        |
+--+-----------------------------------+----------------------------------------------------------------------------+
|26|NODE_CONTROL_API_LOGFILE           |/var/log/tionix/node-control/node-control-api.log                           |
+--+-----------------------------------+----------------------------------------------------------------------------+
|27|NODE_CONTROL_DRS_TRIGGER_LOGFILE   |/var/log/tionix/node-control/drs-trigger.log                                |
+--+-----------------------------------+----------------------------------------------------------------------------+
|28|NODE_CONTROL_NODE_SYNCER_LOGFILE   |/var/log/tionix/node-control/node-syncer.log                                |
+--+-----------------------------------+----------------------------------------------------------------------------+
|29|NODE_CONTROL_NODE_TRACKER_LOGFILE  |/var/log/tionix/node-control/node-tracker.log                               |
+--+-----------------------------------+----------------------------------------------------------------------------+
|30|NODE_CONTROL_NOVA_LISTENER_LOGFILE |/var/log/tionix/node-control/nova-listener.log                              |
+--+-----------------------------------+----------------------------------------------------------------------------+
|31|NODE_CONTROL_WORKER_LOGFILE        |/var/log/tionix/node-control/worker.log                                     |
+--+-----------------------------------+----------------------------------------------------------------------------+
|32|NOVA_RABBIT_VHOST                  |/                                                                           |
+--+-----------------------------------+----------------------------------------------------------------------------+
|33|NOVA_VERSION                       |2.60                                                                        |
+--+-----------------------------------+----------------------------------------------------------------------------+
|34|PXE                                |{'CONF_DIR': u'/var/lib/tftpboot/pxelinux.cfg/'}                            |
+--+-----------------------------------+----------------------------------------------------------------------------+
|35|RABBIT_QUEUES                      |{'USERNAME': u'tionix', 'VHOST': u'tionix', 'HOST': u'ana-cnt7q-ovs-02',    |
|  |                                   |'BROKER_TYPE': u'amqp', 'PASSWORD': '******', 'PORT': u'5672'}              |
+--+-----------------------------------+----------------------------------------------------------------------------+
|36|RETRIES_WAIT_FOR_NODE_STATE        |240                                                                         |
+--+-----------------------------------+----------------------------------------------------------------------------+
|37|RETRIES_WAIT_FOR_VM_STATUS         |60                                                                          |
+--+-----------------------------------+----------------------------------------------------------------------------+
|38|SDN_NETWORKS_PREFIX                |30                                                                          |
+--+-----------------------------------+----------------------------------------------------------------------------+
|39|SDN_VLAN_RANGES                    |100:120                                                                     |
+--+-----------------------------------+----------------------------------------------------------------------------+
|40|SENTRY                             |{'DSN': u'http://1d91324581b44791a396f4fadca925ec:18e6643635bf4dce9d0d59ae08|
|  |                                   |d8bf99@sentry.tionix.loc/4', 'LOG_LEVEL': u'CRITICAL',                      |
|  |                                   |'ENABLED': False}                                                           |
+--+-----------------------------------+----------------------------------------------------------------------------+
|41|SETTINGS_TRACKER                   |{'MUTEX_UP': 1, 'MUTEX': 3, 'LOOP_TIME': 30}                                |
+--+-----------------------------------+----------------------------------------------------------------------------+
|42|SLEEP_TIME                         |30                                                                          |
+--+-----------------------------------+----------------------------------------------------------------------------+
|43|SYNC_NOVA_NODES_TIME               |60                                                                          |
+--+-----------------------------------+----------------------------------------------------------------------------+
|44|TIMEOUT_RESERV_NODE_UP             |15                                                                          |
+--+-----------------------------------+----------------------------------------------------------------------------+
|45|TRACEBACK_ENABLED                  |False                                                                       |
+--+-----------------------------------+----------------------------------------------------------------------------+
==================
TIONIX.NodeControl
Версия: 2.3.0 (актуальная: текущая)
Лицензия: 04-002-a7b5a1979334a169c323 (действительна до 31.09.2019 03:00:00)
==================
+----+--------------------------------------------+----------+------------------------------------------------------+
| N  | Название теста                             | Статус   | Причина неудачи                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 1  | test arp command                           | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 2  | test ceph script                           | ПРОПУЩЕН | Интеграция со службой Ceph не включена               |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 3  | test config file existence                 | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 4  | test connection to keystone                | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 5  | test connection to nova                    | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 6  | test drs service availability              | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 7  | test leases files exist                    | ПРОПУЩЕН | Файл leases не найден. По всей видимости у вас       |
|    |                                            |          | отсутствует DHCP сервер.                             |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 8  | test license validity                      | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 9  | test migrations applied                    | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 10 | test net isolation                         | ПРОПУЩЕН | Служба изоляции сети не включена                     |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 11 | test node control api connection           | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 12 | test node control api service registration | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 13 | test node control systemd services         | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 14 | test ping command                          | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 15 | test pxe folder owner write permissions    | ПРОПУЩЕН | Папка для PXE образов не существует, проверьте       |
|    |                                            |          | параметр конфигурации PXE.                           |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 16 | test registered celery tasks               | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
| 17 | test registered tasks to schedule          | УСПЕХ    |                                                      |
+----+--------------------------------------------+----------+------------------------------------------------------+
Запущено 17 за 18.455сек.
УСПЕХ (успешно=13, неудачно=0, ошибок=0)

====
ИТОГ
====
Запущено 17 за 8.491сек.
УСПЕХ (успешно=13, неудачно=0, ошибок=0)