Vadim
если nova-list не пашет, то лучше с нее начать
Vadim
а вообще enpoint может не работать из-за конфига неправильного
Vadim
openstack server list это клиентом openstack
Vadim
у меня рабочий такой
Vadim
python2-openstacksdk-0.9.13-1.el7.noarch
python-openstackclient-3.8.1-1.el7.noarch
✠ FLASh ✠
нова клиенты должны работать тоже
✠ FLASh ✠
странно кароч все
✠ FLASh ✠
а где ты нашел эту ошибку что ты в начале кинул?
Yuf
при комманде openstack-status
Vadim
в базу загляните nova и nova-api
Vadim
таблицы есть там?
Yuf
на другие сервисы тоже ругается на tenant_id
Yuf
== Nova networks ==
/usr/lib/python2.7/site-packages/novaclient/client.py:278: UserWarning: The 'tenant_id' argument is deprecated in Ocata and its use may result in errors in future releases. As 'project_id' is provided, the 'tenant_id' argument will be ignored.
warnings.warn(msg)
WARNING: Command network-list is deprecated and will be removed after Nova 15.0.0 is released. Use python-neutronclient or openstackclient instead.
Yuf
+--------------------------------------+------------+------+
| ID | Label | Cidr |
+--------------------------------------+------------+------+
| f1be0cd1-a22d-401e-9dab-e24471407ba9 | sharednet1 | - |
+--------------------------------------+------------+------+
== Nova instance flavors ==
/usr/lib/python2.7/site-packages/novaclient/client.py:278: UserWarning: The 'tenant_id' argument is deprecated in Ocata and its use may result in errors in future releases. As 'project_id' is provided, the 'tenant_id' argument will be ignored.
warnings.warn(msg)
Vadim
export OS_PROJECT_NAME=admin
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_DOMAIN_NAME=Default
export OS_AUTH_URL=http://controller:35357/v3
export OS_IDENTITY_API_VERSION=3
Yuf
бляяяяяяяяяяяяяяя
Vadim
так у вас?
Yuf
база данных криво селаааааааааааа
Yuf
блять
Yuf
три дня ебался
Yuf
только щас заметил
Yuf
MariaDB [(none)]> show databases;
+--------------------+
| Database |
+--------------------+
| cinder |
| glance |
| information_schema |
| keystone |
| mysql |
| neutron |
| neutron_ml2 |
| nova |
| nova_api |
| nova_cell0 |
| nova_placement |
| performance_schema |
+--------------------+
12 rows in set (0.00 sec)
MariaDB [(none)]> use nova_api;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
MariaDB [nova_api]>
Yuf
Yuf
щас буду копать дальше
Vadim
сам такое ловил, нз)
Yuf
MariaDB [nova_api]> show tables;
+------------------------------+
| Tables_in_nova_api |
+------------------------------+
| aggregate_hosts |
| aggregate_metadata |
| aggregates |
| allocations |
| build_requests |
| cell_mappings |
| flavor_extra_specs |
| flavor_projects |
| flavors |
| host_mappings |
| instance_group_member |
| instance_group_policy |
| instance_groups |
| instance_mappings |
| inventories |
| key_pairs |
| migrate_version |
| placement_aggregates |
| project_user_quotas |
| quota_classes |
| quota_usages |
| quotas |
| request_specs |
| reservations |
| resource_classes |
| resource_provider_aggregates |
| resource_providers |
+------------------------------+
27 rows in set (0.00 sec)
MariaDB [nova_api]>
Yuf
стоп
Yuf
это все таблы ?
Yuf
чтото мало
Vadim
похоже, вот мои
Vadim
MariaDB [nova_api]> show tables;
+------------------------------+
| Tables_in_nova_api |
+------------------------------+
| aggregate_hosts |
| aggregate_metadata |
| aggregates |
| allocations |
| build_requests |
| cell_mappings |
| flavor_extra_specs |
| flavor_projects |
| flavors |
| host_mappings |
| instance_group_member |
| instance_group_policy |
| instance_groups |
| instance_mappings |
| inventories |
| key_pairs |
| migrate_version |
| placement_aggregates |
| project_user_quotas |
| quota_classes |
| quota_usages |
| quotas |
| request_specs |
| reservations |
| resource_classes |
| resource_provider_aggregates |
| resource_providers |
+------------------------------+
Vadim
а дб nova?
Yuf
|
| shadow_pci_devices |
| shadow_project_user_quotas |
| shadow_provider_fw_rules |
| shadow_quota_classes |
| shadow_quota_usages |
| shadow_quotas |
| shadow_reservations |
| shadow_s3_images |
| shadow_security_group_default_rules |
| shadow_security_group_instance_association |
| shadow_security_group_rules |
| shadow_security_groups |
| shadow_services |
| shadow_snapshot_id_mappings |
| shadow_snapshots |
| shadow_task_log |
| shadow_virtual_interfaces |
| shadow_volume_id_mappings |
| shadow_volume_usage_cache |
| snapshot_id_mappings |
| snapshots |
| tags |
| task_log |
| virtual_interfaces |
| volume_id_mappings |
| volume_usage_cache |
+--------------------------------------------+
110 rows in set (0.00 sec)
Vadim
похоже на то
Vadim
тоже 110 у меня
Vadim
export OS_USERNAME=admin
export OS_PASSWORD=труляля
export OS_PROJECT_NAME=admin
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_DOMAIN_NAME=Default
export OS_AUTH_URL=http://controller:35357/v3
export OS_IDENTITY_API_VERSION=3
Vadim
так же?
Yuf
ofc
Yuf
shas
Yuf
export OS_PROJECT_NAME=admin
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_DOMAIN_NAME=Default
export OS_AUTH_URL=http://10.10.26.177:35357/v3
export OS_AUTH_URL=http://10.10.26.177:35357/v3
export OS_IDENTITY_API_VERSION=3
Yuf
177 контроллер
Yuf
yum info python-openstackclient
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.corbina.net
* epel: repo.fedoralinux.ir
* extras: mirror.corbina.net
* updates: mirror.corbina.net
Installed Packages
Name : python-openstackclient
Arch : noarch
Version : 3.8.1
Release : 1.el7
Size : 5.9 M
Repo : installed
From repo : centos-openstack-ocata
Summary : OpenStack Command-line Client
URL : http://github.com/openstack/python-openstackclient
License : ASL 2.0
Description : python-openstackclient is a unified command-line client for the OpenStack APIs.
: It is a thin wrapper to the stock python-*client modules that implement the
: actual REST API client actions.
Александр
А почему вы не можете пользоваться pastebin
Александр
Зачем этот хлам в чате?
Yuf
для вывод таблиц в нова бд использовать pasteban ?
Yuf
pastebin ?
Александр
Лучше чатик да?
Yuf
ytf
Yuf
неа
Yuf
nova list ругается
✠ FLASh ✠
на что?
Vadim
не отрабатывает?
Yuf
те же ошибки \
Yuf
ocata
✠ FLASh ✠
та логи запости же)
Yuf
щас Александр ругатся будет
✠ FLASh ✠
не сюда на pastebin
✠ FLASh ✠
а сюда ссылку кинь
Yuf
nova list
/usr/lib/python2.7/site-packages/novaclient/client.py:278: UserWarning: The 'tenant_id' argument is deprecated in Ocata and its use may result in errors in future releases. As 'project_id' is provided, the 'tenant_id' argument will be ignored.
warnings.warn(msg)
Aleksandr
Это warn, а не ошибка, не критично.
Александр
Ну ребят эти портянки читать сложно, понимаю лог ошибки небольшой, но по 3 собщения эт ппц
Aleksandr
nova-* логи смотри.
✠ FLASh ✠
весь лог кинь на pastebin и дай посмотреть
Yuf
ofc
Yuf
щас
Yuf
https://pastebin.com/E3bcZiJe
Vadim
ошибку при команде nova list тоже залейте
✠ FLASh ✠
http://10.10.26.177:8774/v2.1 <--- может ругаться из-за микроверсии вот этой 2.1
Vadim
у меня также и работает
✠ FLASh ✠
RESP BODY: {"message": "The resource could not be found.<br /><br />\n\n\n", "code": "404 Not Found", "title": "Not Found"}
Yuf
Yuf
nova list еще грузится
Yuf
не отработалась команда
Yuf
# openstack-service status nova
MainPID=25018 Id=openstack-nova-api.service ActiveState=active
MainPID=25014 Id=openstack-nova-conductor.service ActiveState=active
MainPID=25042 Id=openstack-nova-consoleauth.service ActiveState=active
MainPID=25016 Id=openstack-nova-novncproxy.service ActiveState=active
MainPID=25116 Id=openstack-nova-scheduler.service ActiveState=active
[root@
✠ FLASh ✠
curl -g -i -X GET http://10.10.26.177:8774/v2.1/94ee682e5eac4fd390c034298acdb0a7/servers/detail вот это у тебя возвращает ошибку