Bug 49478 - Не создает html файл из-за отсутствия template.html
Summary: Не создает html файл из-за отсутствия template.html
Status: NEW
Alias: None
Product: Branch p10
Classification: Unclassified
Component: python3-module-osprofiler (show other bugs)
Version: не указана
Hardware: x86_64 Linux
: P5 normal
Assignee: aminov@altlinux.org
QA Contact: qa-p10@altlinux.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-22 13:28 MSK by Nikolai Zurabishvili
Modified: 2024-02-22 13:28 MSK (History)
1 user (show)

See Also:


Attachments
openstack-neutron-deploy.sh (4.52 KB, application/x-shellscript)
2024-02-22 13:28 MSK, Nikolai Zurabishvili
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nikolai Zurabishvili 2024-02-22 13:28:39 MSK
Created attachment 15590 [details]
openstack-neutron-deploy.sh

python3-module-osprofiler-3.1.0-alt1

Стенды (обновлены до p10):

KWorkstation 10.2.1 x86-64
Workstation 10.1 x86-64
Education 10.2 x86-64
Education 10.2 KDE x86-64
Server 10.1 x86-64

Шаги:
1. Развернуть neutron сервер используя скрипт (см openstack-neutron-deploy.sh)
2. Отредактировать секцию [profiler] в /etc/neutron/neutron.conf

[profiler]
enabled = true
hmac_keys = SECRET_KEY
connection_string = messaging://

3. Перезапустить neutron сервер 

# systemctl restart neutron-server.service

# . auth_data

4. Сгенерировать html файл 
 
# openstack network list --os-profile SECRET_KEY

# osprofiler trace show --html <trace_id> --connection-string=messaging://  --out data.html

где <trace_id> - получен из предыдущей команды

Ожидаемый результат: Создание html файла
 
Фактический результат: Traceback (most recent call last):
  File "/usr/bin/osprofiler", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python3/site-packages/osprofiler/cmd/shell.py", line 89, in main
    OSProfilerShell(args)
  File "/usr/lib/python3/site-packages/osprofiler/cmd/shell.py", line 39, in __init__
    args.func(args)
  File "/usr/lib/python3/site-packages/osprofiler/cmd/commands.py", line 97, in show
    with open(os.path.join(os.path.dirname(__file__),
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/site-packages/osprofiler/cmd/template.html'

Доп: Если вручную скачать template.html с апстрима и закинуть в cmd то html файл корректно генерируется