yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #94713
[Bug 2083779] [NEW] Unexpected API Error. keystoneauth1.exceptions.http.Unauthorized
Public bug reported:
I have installed a new setup with 1 controller and one compute following
the installation method. During run a instance from Horzion or cli. I am
getting the Unexpected API Error error. I checked all my credentials.
They are file. All service's users are also access able. I don't know
the reason. Can any one please help me to solve the issue. I ran a
instance using cli with debug parameter. Sharing the debug output.
Please help me out of this.
Hypervisor ---> Libvirt+qemu
Storage ---> LVM
Network ---> Neutron with OpenVSwitch
Nova package list
python3-novaclient-18.6.0-1.el9s.noarch
python3-nova-29.2.0-1.el9s.noarch
openstack-nova-common-29.2.0-1.el9s.noarch
openstack-nova-api-29.2.0-1.el9s.noarch
openstack-nova-conductor-29.2.0-1.el9s.noarch
openstack-nova-novncproxy-29.2.0-1.el9s.noarch
openstack-nova-scheduler-29.2.0-1.el9s.noarch
[root@controller ~]# openstack compute service list
+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+
| ID | Binary | Host | Zone | Status | State | Updated At |
+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+
| 4f8c4320-aaf1-4888-91b7-541b46833b83 | nova-conductor | controller | internal | enabled | up | 2024-10-06T17:44:11.000000 |
| 5d165d74-a653-4e6d-85eb-f3863645162c | nova-scheduler | controller | internal | enabled | up | 2024-10-06T17:44:12.000000 |
| ba83bc0a-a777-4bbd-bb54-91c7cbd2e381 | nova-compute | compute | nova | enabled | up | 2024-10-06T17:44:08.000000 |
+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+
[root@controller ~]# openstack network agent list
+--------------------------------------+--------------------+------------+-------------------+-------+-------+---------------------------+
| ID | Agent Type | Host | Availability Zone | Alive | State | Binary |
+--------------------------------------+--------------------+------------+-------------------+-------+-------+---------------------------+
| 139ea257-2bf6-43fd-b3e6-6919fe927dd5 | L3 agent | controller | nova | :-) | UP | neutron-l3-agent |
| 2b67fdd4-5489-4815-b463-4610587ffd79 | Open vSwitch agent | compute | None | :-) | UP | neutron-openvswitch-agent |
| 7c5d1857-15c2-4f0c-a5b2-8343dc2d04ee | Open vSwitch agent | controller | None | :-) | UP | neutron-openvswitch-agent |
| 940b5a9f-1b22-4abd-943c-c23f7cbcb2a6 | Metadata agent | controller | None | :-) | UP | neutron-metadata-agent |
| f7cdcd69-d75a-4115-9690-cad5d3348019 | DHCP agent | controller | nova | :-) | UP | neutron-dhcp-agent |
+--------------------------------------+--------------------+------------+-------------------+-------+-------+---------------------------+
=================================================
Running instance using cli with --debug
=================================================
[root@controller ~]# openstack --debug server create --flavor m1.nano --image cirros1 --nic net-id=a56ae24d-0f1b-441e-a0e3-754cbe893e30 provider-instance
START with options: --debug server create --flavor m1.nano --image cirros1 --nic net-id=a56ae24d-0f1b-441e-a0e3-754cbe893e30 provider-instance
options: Namespace(verbose_level=3, log_file=None, deferred_help=False, debug=True, cloud='', region_name='', cacert=None, cert='', key='', verify=None, insecure=None, default_domain='default', interface='', service_provider='', remote_project_name='', remote_project_id='', remote_project_domain_name='', remote_project_domain_id='', timing=False, os_beta_command=False, profile='', os_compute_api_version='', os_identity_api_version='3', os_image_api_version='2', os_network_api_version='', os_object_api_version='', os_volume_api_version='', os_key_manager_api_version='1', os_dns_api_version='2', auth_type='', username='admin', password='***', endpoint='', auth_url='http://controller:5000/v3', consumer_key='', consumer_secret='***', access_key='', access_secret='***', project_name='admin', system_scope='', domain_id='', domain_name='', project_id='', project_domain_id='', project_domain_name='Default', trust_id='', user_id='', user_domain_id='', user_domain_name='Default', identity_provider='', protocol='', client_id='', client_secret='***', openid_scope='', access_token_endpoint='', discovery_endpoint='', access_token_type='', redirect_uri='', code='', device_authorization_endpoint='', code_challenge_method='', oauth2_endpoint='', oauth2_client_id='', oauth2_client_secret='***', access_token='***', default_domain_id='', default_domain_name='', token='***', identity_provider_url='', service_provider_endpoint='', service_provider_entity_id='', auth_methods='', passcode='', application_credential_secret='***', application_credential_id='', application_credential_name='', os_project_name=None, os_project_id=None)
Auth plugin password selected
auth_config_hook(): {'api_timeout': None, 'verify': True, 'cacert': None, 'cert': None, 'key': None, 'baremetal_status_code_retries': '5', 'baremetal_introspection_status_code_retries': '5', 'image_status_code_retries': '5', 'disable_vendor_agent': {}, 'interface': 'public', 'floating_ip_source': 'neutron', 'image_api_use_tasks': False, 'image_format': 'qcow2', 'message': '', 'network_api_version': '2', 'object_store_api_version': '1', 'secgroup_source': 'neutron', 'status': 'active', 'auth': {'user_domain_name': 'Default', 'project_domain_name': 'Default', 'project_name': 'admin'}, 'verbose_level': 3, 'deferred_help': False, 'debug': True, 'default_domain': 'default', 'timing': False, 'username': 'admin', 'password': '***', 'auth_url': 'http://controller:5000/v3', 'beta_command': False, 'identity_api_version': '3', 'image_api_version': '2', 'key_manager_api_version': '1', 'dns_api_version': '2', 'region_name': '', 'auth_type': 'password', ': []}
defaults: {'api_timeout': None, 'verify': True, 'cacert': None, 'cert': None, 'key': None, 'auth_type': 'password', 'baremetal_status_code_retries': 5, 'baremetal_introspection_status_code_retries': 5, 'image_status_code_retries': 5, 'disable_vendor_agent': {}, 'interface': 'public', 'floating_ip_source': 'neutron', 'image_api_use_tasks': False, 'image_format': 'qcow2', 'message': '', 'network_api_version': '2', 'object_store_api_version': '1', 'secgroup_source': 'neutron', 'status': 'active'}
cloud cfg: {'api_timeout': None, 'verify': True, 'cacert': None, 'cert': None, 'key': None, 'baremetal_status_code_retries': '5', 'baremetal_introspection_status_code_retries': '5', 'image_status_code_retries': '5', 'disable_vendor_agent': {}, 'interface': 'public', 'floating_ip_source': 'neutron', 'image_api_use_tasks': False, 'image_format': 'qcow2', 'message': '', 'network_api_version': '2', 'object_store_api_version': '1', 'secgroup_source': 'neutron', 'status': 'active', 'auth': {'user_domain_name': 'Default', 'project_domain_name': 'Default', 'project_name': 'admin'}, 'verbose_level': 3, 'deferred_help': False, 'debug': True, 'default_domain': 'default', 'timing': False, 'username': 'admin', 'password': '***', 'auth_url': 'http://controller:5000/v3', 'beta_command': False, 'identity_api_version': '3', 'image_api_version': '2', 'key_manager_api_version': '1', 'dns_api_version': '2', 'region_name': '', 'auth_type': 'password', ': []}
compute API version 2.1, cmd group openstack.compute.v2
identity API version 3, cmd group openstack.identity.v3
image API version 2, cmd group openstack.image.v2
network API version 2, cmd group openstack.network.v2
object_store API version 1, cmd group openstack.object_store.v1
volume API version 3, cmd group openstack.volume.v3
key_manager API version 1, cmd group openstack.key_manager.v1
neutronclient API version 2, cmd group openstack.neutronclient.v2
dns API version 2, cmd group openstack.dns.v2
command: server create -> openstackclient.compute.v2.server.CreateServer (auth=True)
Auth plugin password selected
auth_config_hook(): {'api_timeout': None, 'verify': True, 'cacert': None, 'cert': None, 'key': None, 'baremetal_status_code_retries': '5', 'baremetal_introspection_status_code_retries': '5', 'image_status_code_retries': '5', 'disable_vendor_agent': {}, 'interface': 'public', 'floating_ip_source': 'neutron', 'image_api_use_tasks': False, 'image_format': 'qcow2', 'message': '', 'network_api_version': '2', 'object_store_api_version': '1', 'secgroup_source': 'neutron', 'status': 'active', 'auth': {'user_domain_name': 'Default', 'project_domain_name': 'Default', 'project_name': 'admin'}, 'additional_user_agent': [('osc-lib', '3.0.1')], 'verbose_level': 3, 'deferred_help': False, 'debug': True, 'default_domain': 'default', 'timing': False, 'username': 'admin', 'password': '***', 'auth_url': 'http://controller:5000/v3', 'beta_command': False, 'identity_api_version': '3', 'image_api_version': '2', 'key_manager_api_version': '1', 'dns_api_version': '2', 'region_name': '', 'auth_type': 'password', ': []}
Using auth plugin: password
Using parameters {'auth_url': 'http://controller:5000/v3', 'project_name': 'admin', 'project_domain_name': 'Default', 'username': 'admin', 'user_domain_name': 'Default', 'password': '***'}
Get auth_ref
REQ: curl -g -i -X GET http://controller:5000/v3 -H "Accept: application/json" -H "User-Agent: openstacksdk/3.0.0 keystoneauth1/5.6.0 python-requests/2.31.0 CPython/3.9.20"
Starting new HTTP connection (1): controller:5000
http://controller:5000 "GET /v3 HTTP/1.1" 200 250
RESP: [200] Connection: Keep-Alive Content-Length: 250 Content-Type: application/json Date: Sun, 06 Oct 2024 17:50:50 GMT Keep-Alive: timeout=5, max=100 Server: Apache/2.4.62 (CentOS Stream) mod_wsgi/4.7.1 Python/3.9 Vary: X-Auth-Token x-openstack-request-id: req-95a4fe84-07b7-4702-a957-71e7b1c89411
RESP BODY: {"version": {"id": "v3.14", "status": "stable", "updated": "2020-04-07T00:00:00Z", "links": [{"rel": "self", "href": "http://controller:5000/v3/"}], "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}]}}
GET call to http://controller:5000/v3 used request id req-95a4fe84-07b7-4702-a957-71e7b1c89411
Making authentication request to http://controller:5000/v3/auth/tokens
http://controller:5000 "POST /v3/auth/tokens HTTP/1.1" 201 4028
{"token": {"methods": ["password"], "user": {"domain": {"id": "default", "name": "Default"}, "id": "207ba9399f25416591b43d6a2beee445", "name": "admin", "password_expires_at": null}, "audit_ids": ["-PDqyb6hQxe5uazZsOC5pw"], "expires_at": "2024-10-06T18:50:51.000000Z", "issued_at": "2024-10-06T17:50:51.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "41a34adc3b4d4d1f99823b69fe380304", "name": "admin"}, "is_domain": false, "roles": [{"id": "5ad2f682e76947f18309b5f24cfe208a", "name": "reader"}, {"id": "95ff78f70a1841729f4b343ffe2f66c0", "name": "manager"}, {"id": "fce024546def4612bab98a8f2e657beb", "name": "admin"}, {"id": "72323a06a31e4df194df33560f5c0b23", "name": "member"}], "catalog": [{"endpoints": [{"id": "502aacafbf8f4d7eba2aedf851861307", "interface": "public", "region_id": "Banani", "url": "http://controller:9292", "region": "Banani"}, {"id": "9a7400b6bae64817b9d3b79c2fca25b2", "interface": "internal", "region_id": "Banani", "url": "http://controller:9292", "region": "Banani"}, {"id": "b11e517887d647a58176575d732564a5", "interface": "admin", "region_id": "Banani", "url": "http://controller:9292", "region": "Banani"}], "id": "39d44d4eeca24a48bbc29c652f7e3254", "type": "image", "name": "glance"}, {"endpoints": [], "id": "75602a7d87eb4edea25ad5e617dd7d45", "type": "volumev3", "name": "cinderv3"}, {"endpoints": [{"id": "361df382ac61480ba9ec72359be9a955", "interface": "public", "region_id": "Banani", "url": "http://controller:8774/v2.1", "region": "Banani"}, {"id": "9ee8a8c316f24b06be10bfe70030037f", "interface": "admin", "region_id": "Banani", "url": "http://controller:8774/v2.1", "region": "Banani"}, {"id": "a0684edb7b144fe1a5036aaa5a6231eb", "interface": "internal", "region_id": "Banani", "url": "http://controller:8774/v2.1", "region": "Banani"}], "id": "78bb12d4b7184aa992d625545a981209", "type": "compute", "name": "nova"}, {"endpoints": [{"id": "07e39125e7264c2b840a165e09ffd03b", "interface": "admin", "region_id": "Banani", "url": "http://controller:8778", "region": "Banani"}, {"id": "1b5b55db5e1c423a88cda1e5d168523f", "interface": "public", "region_id": "Banani", "url": "http://controller:8778", "region": "Banani"}, {"id": "9efc2e6223d048d9b91812468bb62eb7", "interface": "internal", "region_id": "Banani", "url": "http://controller:8778", "region": "Banani"}], "id": "7b17396347774242ba126d51ad46b50c", "type": "placement", "name": "placement"}, {"endpoints": [{"id": "6b58956a032046168e16fa3f24c7abe6", "interface": "internal", "region_id": "Banani", "url": "http://controller:9696", "region": "Banani"}, {"id": "a22006faa74147328be4c8f9ff235c10", "interface": "public", "region_id": "Banani", "url": "http://controller:9696", "region": "Banani"}, {"id": "c00fe9bfdc3b497c8473dc534e619657", "interface": "admin", "region_id": "Banani", "url": "http://controller:9696", "region": "Banani"}], "id": "7e6ceea96b3d4fc7b89723a74a606ad4", "type": "network", "name": "neutron"}, {"endpoints": [{"id": "561532806668459e8ee506016891ca6a", "interface": "public", "region_id": "Banani", "url": "http://controller:8776/v3/", "region": "Banani"}, {"id": "89f2847685dc4237a621c70b2be587a5", "interface": "admin", "region_id": "Banani", "url": "http://controller:8776/v3/", "region": "Banani"}, {"id": "a15d35ec8f78472084bcea78c2cd0ae1", "interface": "internal", "region_id": "Banani", "url": "http://controller:8776/v3/", "region": "Banani"}], "id": "bf7941ae4d194f15a981d8b9bc1a27fd", "type": "volumev3", "name": "cinderv3"}, {"endpoints": [{"id": "077d207620604c418b6a183b414b246d", "interface": "internal", "region_id": "Banani", "url": "http://controller:5000/v3/", "region": "Banani"}, {"id": "92ac5e41a6564841a14b55590c4efdbd", "interface": "public", "region_id": "Banani", "url": "http://controller:5000/v3/", "region": "Banani"}, {"id": "cceef889f43b4acab31a92cd2c1ebb1d", "interface": "admin", "region_id": "Banani", "url": "http://controller:5000/v3/", "region": "Banani"}], "id": "f80864dddf1949f1a9f500b0e2e684b2", "type": "identity", "name": "keystone"}]}}
run(Namespace(formatter='table', columns=[], noindent=False, variables=[], prefix='', max_width=0, fit_width=False, print_empty=False, server_name='provider-instance', flavor='m1.nano', image='cirros1', image_properties=None, volume=None, snapshot=None, boot_from_volume=None, block_device_mapping=[], block_devices=[], swap=None, ephemerals=[], nics=[{'net-id': 'a56ae24d-0f1b-441e-a0e3-754cbe893e30', 'port-id': '', 'v4-fixed-ip': '', 'v6-fixed-ip': ''}], password=None, security_group=[], key_name=None, properties=None, file=[], user_data=None, description=None, availability_zone=None, host=None, hypervisor_hostname=None, server_group=None, hints={}, config_drive=False, min=1, max=1, tags=[], hostname=None, wait=False, trusted_image_certs=None))
Instantiating compute client for API Version Major: 2, Minor: 1
Instantiating compute api: <class 'openstackclient.api.compute_v2.APIv2'>
Instantiating volume client: <class 'cinderclient.v3.client.Client'>
REQ: curl -g -i -X GET http://controller:9292 -H "Accept: application/json" -H "User-Agent: openstacksdk/3.0.0 keystoneauth1/5.6.0 python-requests/2.31.0 CPython/3.9.20"
Starting new HTTP connection (1): controller:9292
http://controller:9292 "GET / HTTP/1.1" 300 1592
RESP: [300] Connection: keep-alive Content-Length: 1592 Content-Type: application/json Date: Sun, 06 Oct 2024 17:50:51 GMT
RESP BODY: {"versions": [{"id": "v2.15", "status": "CURRENT", "links": [{"rel": "self", "href": "http://controller:9292/v2/"}]}, {"id": "v2.13", "status": "SUPPORTED", "links": [{"rel": "self", "href": "http://controller:9292/v2/"}]}, {"id": "v2.12", "status": "SUPPORTED", "links": [{"rel": "self", "href": "http://controller:9292/v2/"}]}, {"id": "v2.11", "status": "SUPPORTED", "links": [{"rel": "self", "href": "http://controller:9292/v2/"}]}, {"id": "v2.10", "status": "SUPPORTED", "links": [{"rel": "self", "href": "http://controller:9292/v2/"}]}, {"id": "v2.9", "status": "SUPPORTED", "links": [{"rel": "self", "href": "http://controller:9292/v2/"}]}, {"id": "v2.8", "status": "SUPPORTED", "links": [{"rel": "self", "href": "http://controller:9292/v2/"}]}, {"id": "v2.7", "status": "SUPPORTED", "links": [{"rel": "self", "href": "http://controller:9292/v2/"}]}, {"id": "v2.6", "status": "SUPPORTED", "links": [{"rel": "self", "href": "http://controller:9292/v2/"}]}, {"id": "v2.5", "status": "SUPPORTED", "links": [{"rel": "self", "href": "http://controller:9292/v2/"}]}, {"id": "v2.4", "status": "SUPPORTED", "links": [{"rel": "self", "href": "http://controller:9292/v2/"}]}, {"id": "v2.3", "status": "SUPPORTED", "links": [{"rel": "self", "href": "http://controller:9292/v2/"}]}, {"id": "v2.2", "status": "SUPPORTED", "links": [{"rel": "self", "href": "http://controller:9292/v2/"}]}, {"id": "v2.1", "status": "SUPPORTED", "links": [{"rel": "self", "href": "http://controller:9292/v2/"}]}, {"id": "v2.0", "status": "SUPPORTED", "links": [{"rel": "self", "href": "http://controller:9292/v2/"}]}]}
Image client initialized using OpenStack SDK: <openstack.image.v2._proxy.Proxy object at 0x7fd3dd8dc790>
REQ: curl -g -i -X GET http://controller:9292/v2/images/cirros1 -H "User-Agent: openstacksdk/3.0.0 keystoneauth1/5.6.0 python-requests/2.31.0 CPython/3.9.20" -H "X-Auth-Token: {SHA256}cbae857181a6507e022dd1bce2ddf64499562b4820c74ed256572a882180937f"
http://controller:9292 "GET /v2/images/cirros1 HTTP/1.1" 404 152
RESP: [404] Connection: keep-alive Content-Length: 152 Content-Type: text/html; charset=UTF-8 Date: Sun, 06 Oct 2024 17:50:52 GMT X-Openstack-Request-Id: req-9dc8cb73-709f-4cab-8f27-c8df4a0809ca
RESP BODY: Omitted, Content-Type is set to text/html; charset=UTF-8. Only application/json, text/plain responses have their bodies logged.
GET call to image for http://controller:9292/v2/images/cirros1 used request id req-9dc8cb73-709f-4cab-8f27-c8df4a0809ca
REQ: curl -g -i -X GET "http://controller:9292/v2/images?name=cirros1" -H "Accept: application/json" -H "User-Agent: openstacksdk/3.0.0 keystoneauth1/5.6.0 python-requests/2.31.0 CPython/3.9.20" -H "X-Auth-Token: {SHA256}cbae857181a6507e022dd1bce2ddf64499562b4820c74ed256572a882180937f"
http://controller:9292 "GET /v2/images?name=cirros1 HTTP/1.1" 200 882
RESP: [200] Connection: keep-alive Content-Length: 882 Content-Type: application/json Date: Sun, 06 Oct 2024 17:50:52 GMT X-Openstack-Request-Id: req-a2d309d6-799f-47cf-8f88-d83814efac5e
RESP BODY: {"images": [{"name": "cirros1", "disk_format": "qcow2", "container_format": "bare", "visibility": "public", "size": 12716032, "virtual_size": 46137344, "status": "active", "checksum": "443b7623e27ecf03dc9e01ee93f67afe", "protected": false, "min_ram": 0, "min_disk": 0, "owner": "8aef603cef5943fea996f3c09dc2e909", "os_hidden": false, "os_hash_algo": "sha512", "os_hash_value": "6513f21e44aa3da349f248188a44bc304a3653a04122d8fb4535423c8e1d14cd6a153f735bb0982e2161b5b5186106570c17a9e58b64dd39390617cd5a350f78", "id": "e4b2849b-df2b-40d0-8757-e34616527533", "created_at": "2024-10-06T08:43:05Z", "updated_at": "2024-10-06T08:43:06Z", "tags": [], "self": "/v2/images/e4b2849b-df2b-40d0-8757-e34616527533", "file": "/v2/images/e4b2849b-df2b-40d0-8757-e34616527533/file", "schema": "/v2/schemas/image", "stores": "fs"}], "first": "/v2/images?name=cirros1", "schema": "/v2/schemas/images"}
GET call to image for http://controller:9292/v2/images?name=cirros1 used request id req-a2d309d6-799f-47cf-8f88-d83814efac5e
REQ: curl -g -i -X GET http://controller:8774/v2.1/flavors/m1.nano -H "Accept: application/json" -H "User-Agent: python-novaclient" -H "X-Auth-Token: {SHA256}cbae857181a6507e022dd1bce2ddf64499562b4820c74ed256572a882180937f" -H "X-OpenStack-Nova-API-Version: 2.1"
Starting new HTTP connection (1): controller:8774
http://controller:8774 "GET /v2.1/flavors/m1.nano HTTP/1.1" 404 80
RESP: [404] Connection: keep-alive Content-Length: 80 Content-Type: application/json; charset=UTF-8 Date: Sun, 06 Oct 2024 17:50:53 GMT Openstack-Api-Version: compute 2.1 Vary: OpenStack-API-Version, X-OpenStack-Nova-API-Version X-Compute-Request-Id: req-65b3e340-2430-42d5-bfff-71e6e405469e X-Openstack-Nova-Api-Version: 2.1 X-Openstack-Request-Id: req-65b3e340-2430-42d5-bfff-71e6e405469e
RESP BODY: {"itemNotFound": {"code": 404, "message": "Flavor m1.nano could not be found."}}
GET call to compute for http://controller:8774/v2.1/flavors/m1.nano used request id req-65b3e340-2430-42d5-bfff-71e6e405469e
REQ: curl -g -i -X GET http://controller:8774/v2.1/flavors -H "Accept: application/json" -H "User-Agent: python-novaclient" -H "X-Auth-Token: {SHA256}cbae857181a6507e022dd1bce2ddf64499562b4820c74ed256572a882180937f" -H "X-OpenStack-Nova-API-Version: 2.1"
http://controller:8774 "GET /v2.1/flavors HTTP/1.1" 200 187
RESP: [200] Connection: keep-alive Content-Length: 187 Content-Type: application/json Date: Sun, 06 Oct 2024 17:50:53 GMT Openstack-Api-Version: compute 2.1 Vary: OpenStack-API-Version, X-OpenStack-Nova-API-Version X-Compute-Request-Id: req-00e40e3d-3d1e-4196-ab69-8dd770a0c331 X-Openstack-Nova-Api-Version: 2.1 X-Openstack-Request-Id: req-00e40e3d-3d1e-4196-ab69-8dd770a0c331
RESP BODY: {"flavors": [{"id": "0", "name": "m1.nano", "links": [{"rel": "self", "href": "http://controller:8774/v2.1/flavors/0"}, {"rel": "bookmark", "href": "http://controller:8774/flavors/0"}]}]}
GET call to compute for http://controller:8774/v2.1/flavors used request id req-00e40e3d-3d1e-4196-ab69-8dd770a0c331
REQ: curl -g -i -X GET http://controller:8774/v2.1/flavors/0 -H "Accept: application/json" -H "User-Agent: python-novaclient" -H "X-Auth-Token: {SHA256}cbae857181a6507e022dd1bce2ddf64499562b4820c74ed256572a882180937f" -H "X-OpenStack-Nova-API-Version: 2.1"
http://controller:8774 "GET /v2.1/flavors/0 HTTP/1.1" 200 353
RESP: [200] Connection: keep-alive Content-Length: 353 Content-Type: application/json Date: Sun, 06 Oct 2024 17:50:53 GMT Openstack-Api-Version: compute 2.1 Vary: OpenStack-API-Version, X-OpenStack-Nova-API-Version X-Compute-Request-Id: req-fceb3e7f-defd-4de9-8c49-0092b4a54820 X-Openstack-Nova-Api-Version: 2.1 X-Openstack-Request-Id: req-fceb3e7f-defd-4de9-8c49-0092b4a54820
RESP BODY: {"flavor": {"id": "0", "name": "m1.nano", "ram": 64, "disk": 1, "swap": "", "OS-FLV-EXT-DATA:ephemeral": 0, "OS-FLV-DISABLED:disabled": false, "vcpus": 1, "os-flavor-access:is_public": true, "rxtx_factor": 1.0, "links": [{"rel": "self", "href": "http://controller:8774/v2.1/flavors/0"}, {"rel": "bookmark", "href": "http://controller:8774/flavors/0"}]}}
GET call to compute for http://controller:8774/v2.1/flavors/0 used request id req-fceb3e7f-defd-4de9-8c49-0092b4a54820
network endpoint in service catalog
Network client initialized using OpenStack SDK: <openstack.network.v2._proxy.Proxy object at 0x7fd3dd8dc9a0>
REQ: curl -g -i -X GET http://controller:9696/v2.0/networks/a56ae24d-0f1b-441e-a0e3-754cbe893e30 -H "User-Agent: openstacksdk/3.0.0 keystoneauth1/5.6.0 python-requests/2.31.0 CPython/3.9.20" -H "X-Auth-Token: {SHA256}cbae857181a6507e022dd1bce2ddf64499562b4820c74ed256572a882180937f"
Starting new HTTP connection (1): controller:9696
http://controller:9696 "GET /v2.0/networks/a56ae24d-0f1b-441e-a0e3-754cbe893e30 HTTP/1.1" 200 689
RESP: [200] Connection: keep-alive Content-Length: 689 Content-Type: application/json Date: Sun, 06 Oct 2024 17:50:53 GMT X-Openstack-Request-Id: req-70895476-b555-41cd-9fe7-2bd7679bcb35
RESP BODY: {"network":{"id":"a56ae24d-0f1b-441e-a0e3-754cbe893e30","name":"provider","tenant_id":"8aef603cef5943fea996f3c09dc2e909","admin_state_up":true,"mtu":1500,"status":"ACTIVE","subnets":["c65152f8-b4a2-4147-830a-c6f1fbfb9fdf"],"shared":true,"availability_zone_hints":[],"availability_zones":["nova"],"ipv4_address_scope":null,"ipv6_address_scope":null,"router:external":true,"description":"","port_security_enabled":true,"is_default":false,"tags":[],"created_at":"2024-10-03T00:46:03Z","updated_at":"2024-10-06T04:40:09Z","revision_number":4,"project_id":"8aef603cef5943fea996f3c09dc2e909","provider:network_type":"flat","provider:physical_network":"provider","provider:segmentation_id":null}}
GET call to network for http://controller:9696/v2.0/networks/a56ae24d-0f1b-441e-a0e3-754cbe893e30 used request id req-70895476-b555-41cd-9fe7-2bd7679bcb35
network endpoint in service catalog
boot_args: ['provider-instance', openstack.image.v2.image.Image(name=cirros1, disk_format=qcow2, container_format=bare, visibility=public, size=12716032, virtual_size=46137344, status=active, checksum=443b7623e27ecf03dc9e01ee93f67afe, protected=False, min_ram=0, min_disk=0, owner=8aef603cef5943fea996f3c09dc2e909, os_hidden=False, os_hash_algo=sha512, os_hash_value=6513f21e44aa3da349f248188a44bc304a3653a04122d8fb4535423c8e1d14cd6a153f735bb0982e2161b5b5186106570c17a9e58b64dd39390617cd5a350f78, id=e4b2849b-df2b-40d0-8757-e34616527533, created_at=2024-10-06T08:43:05Z, updated_at=2024-10-06T08:43:06Z, tags=[], file=/v2/images/e4b2849b-df2b-40d0-8757-e34616527533/file, schema=/v2/schemas/image, properties={'stores': 'fs'}, location=Munch({'cloud': '', 'region_name': '', 'zone': None, 'project': Munch({'id': '41a34adc3b4d4d1f99823b69fe380304', 'name': 'admin', 'domain_id': None, 'domain_name': 'Default'})})), <Flavor: m1.nano>]
boot_kwargs: {'meta': None, 'files': {}, 'reservation_id': None, 'min_count': 1, 'max_count': 1, 'security_groups': [], 'userdata': None, 'key_name': None, 'availability_zone': None, 'admin_pass': None, 'block_device_mapping_v2': [], 'nics': [{'net-id': 'a56ae24d-0f1b-441e-a0e3-754cbe893e30', 'port-id': '', 'v4-fixed-ip': '', 'v6-fixed-ip': ''}], 'scheduler_hints': {}, 'config_drive': None}
REQ: curl -g -i -X POST http://controller:8774/v2.1/servers -H "Accept: application/json" -H "Content-Type: application/json" -H "User-Agent: python-novaclient" -H "X-Auth-Token: {SHA256}cbae857181a6507e022dd1bce2ddf64499562b4820c74ed256572a882180937f" -H "X-OpenStack-Nova-API-Version: 2.1" -d '{"server": {"name": "provider-instance", "imageRef": "e4b2849b-df2b-40d0-8757-e34616527533", "flavorRef": "0", "min_count": 1, "max_count": 1, "networks": [{"uuid": "a56ae24d-0f1b-441e-a0e3-754cbe893e30"}]}}'
http://controller:8774 "POST /v2.1/servers HTTP/1.1" 500 216
RESP: [500] Connection: keep-alive Content-Length: 216 Content-Type: application/json; charset=UTF-8 Date: Sun, 06 Oct 2024 17:50:55 GMT Openstack-Api-Version: compute 2.1 Vary: OpenStack-API-Version, X-OpenStack-Nova-API-Version X-Compute-Request-Id: req-6af9a015-8c25-4e13-be4a-124f5cc9ac99 X-Openstack-Nova-Api-Version: 2.1 X-Openstack-Request-Id: req-6af9a015-8c25-4e13-be4a-124f5cc9ac99
RESP BODY: {"computeFault": {"code": 500, "message": "Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.\n<class 'keystoneauth1.exceptions.http.Unauthorized'>"}}
POST call to compute for http://controller:8774/v2.1/servers used request id req-6af9a015-8c25-4e13-be4a-124f5cc9ac99
Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'keystoneauth1.exceptions.http.Unauthorized'> (HTTP 500) (Request-ID: req-6af9a015-8c25-4e13-be4a-124f5cc9ac99)
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/cliff/app.py", line 410, in run_subcommand
result = cmd.run(parsed_args)
File "/usr/lib/python3.9/site-packages/osc_lib/command/command.py", line 38, in run
return super(Command, self).run(parsed_args)
File "/usr/lib/python3.9/site-packages/cliff/display.py", line 117, in run
column_names, data = self.take_action(parsed_args)
File "/usr/lib/python3.9/site-packages/openstackclient/compute/v2/server.py", line 2030, in take_action
server = compute_client.servers.create(*boot_args, **boot_kwargs)
File "/usr/lib/python3.9/site-packages/novaclient/v2/servers.py", line 1657, in create
return self._boot(response_key, *boot_args, **boot_kwargs)
File "/usr/lib/python3.9/site-packages/novaclient/v2/servers.py", line 966, in _boot
return self._create(
File "/usr/lib/python3.9/site-packages/novaclient/base.py", line 363, in _create
resp, body = self.api.client.post(url, body=body)
File "/usr/lib/python3.9/site-packages/keystoneauth1/adapter.py", line 399, in post
return self.request(url, 'POST', **kwargs)
File "/usr/lib/python3.9/site-packages/novaclient/client.py", line 78, in request
raise exceptions.from_response(resp, body, url, method)
novaclient.exceptions.ClientException: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'keystoneauth1.exceptions.http.Unauthorized'> (HTTP 500) (Request-ID: req-6af9a015-8c25-4e13-be4a-124f5cc9ac99)
clean_up CreateServer: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'keystoneauth1.exceptions.http.Unauthorized'> (HTTP 500) (Request-ID: req-6af9a015-8c25-4e13-be4a-124f5cc9ac99)
** Affects: nova
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/2083779
Title:
Unexpected API Error. keystoneauth1.exceptions.http.Unauthorized
Status in OpenStack Compute (nova):
New
Bug description:
I have installed a new setup with 1 controller and one compute
following the installation method. During run a instance from Horzion
or cli. I am getting the Unexpected API Error error. I checked all my
credentials. They are file. All service's users are also access able.
I don't know the reason. Can any one please help me to solve the
issue. I ran a instance using cli with debug parameter. Sharing the
debug output. Please help me out of this.
Hypervisor ---> Libvirt+qemu
Storage ---> LVM
Network ---> Neutron with OpenVSwitch
Nova package list
python3-novaclient-18.6.0-1.el9s.noarch
python3-nova-29.2.0-1.el9s.noarch
openstack-nova-common-29.2.0-1.el9s.noarch
openstack-nova-api-29.2.0-1.el9s.noarch
openstack-nova-conductor-29.2.0-1.el9s.noarch
openstack-nova-novncproxy-29.2.0-1.el9s.noarch
openstack-nova-scheduler-29.2.0-1.el9s.noarch
[root@controller ~]# openstack compute service list
+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+
| ID | Binary | Host | Zone | Status | State | Updated At |
+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+
| 4f8c4320-aaf1-4888-91b7-541b46833b83 | nova-conductor | controller | internal | enabled | up | 2024-10-06T17:44:11.000000 |
| 5d165d74-a653-4e6d-85eb-f3863645162c | nova-scheduler | controller | internal | enabled | up | 2024-10-06T17:44:12.000000 |
| ba83bc0a-a777-4bbd-bb54-91c7cbd2e381 | nova-compute | compute | nova | enabled | up | 2024-10-06T17:44:08.000000 |
+--------------------------------------+----------------+------------+----------+---------+-------+----------------------------+
[root@controller ~]# openstack network agent list
+--------------------------------------+--------------------+------------+-------------------+-------+-------+---------------------------+
| ID | Agent Type | Host | Availability Zone | Alive | State | Binary |
+--------------------------------------+--------------------+------------+-------------------+-------+-------+---------------------------+
| 139ea257-2bf6-43fd-b3e6-6919fe927dd5 | L3 agent | controller | nova | :-) | UP | neutron-l3-agent |
| 2b67fdd4-5489-4815-b463-4610587ffd79 | Open vSwitch agent | compute | None | :-) | UP | neutron-openvswitch-agent |
| 7c5d1857-15c2-4f0c-a5b2-8343dc2d04ee | Open vSwitch agent | controller | None | :-) | UP | neutron-openvswitch-agent |
| 940b5a9f-1b22-4abd-943c-c23f7cbcb2a6 | Metadata agent | controller | None | :-) | UP | neutron-metadata-agent |
| f7cdcd69-d75a-4115-9690-cad5d3348019 | DHCP agent | controller | nova | :-) | UP | neutron-dhcp-agent |
+--------------------------------------+--------------------+------------+-------------------+-------+-------+---------------------------+
=================================================
Running instance using cli with --debug
=================================================
[root@controller ~]# openstack --debug server create --flavor m1.nano --image cirros1 --nic net-id=a56ae24d-0f1b-441e-a0e3-754cbe893e30 provider-instance
START with options: --debug server create --flavor m1.nano --image cirros1 --nic net-id=a56ae24d-0f1b-441e-a0e3-754cbe893e30 provider-instance
options: Namespace(verbose_level=3, log_file=None, deferred_help=False, debug=True, cloud='', region_name='', cacert=None, cert='', key='', verify=None, insecure=None, default_domain='default', interface='', service_provider='', remote_project_name='', remote_project_id='', remote_project_domain_name='', remote_project_domain_id='', timing=False, os_beta_command=False, profile='', os_compute_api_version='', os_identity_api_version='3', os_image_api_version='2', os_network_api_version='', os_object_api_version='', os_volume_api_version='', os_key_manager_api_version='1', os_dns_api_version='2', auth_type='', username='admin', password='***', endpoint='', auth_url='http://controller:5000/v3', consumer_key='', consumer_secret='***', access_key='', access_secret='***', project_name='admin', system_scope='', domain_id='', domain_name='', project_id='', project_domain_id='', project_domain_name='Default', trust_id='', user_id='', user_domain_id='', user_domain_name='Default', identity_provider='', protocol='', client_id='', client_secret='***', openid_scope='', access_token_endpoint='', discovery_endpoint='', access_token_type='', redirect_uri='', code='', device_authorization_endpoint='', code_challenge_method='', oauth2_endpoint='', oauth2_client_id='', oauth2_client_secret='***', access_token='***', default_domain_id='', default_domain_name='', token='***', identity_provider_url='', service_provider_endpoint='', service_provider_entity_id='', auth_methods='', passcode='', application_credential_secret='***', application_credential_id='', application_credential_name='', os_project_name=None, os_project_id=None)
Auth plugin password selected
auth_config_hook(): {'api_timeout': None, 'verify': True, 'cacert': None, 'cert': None, 'key': None, 'baremetal_status_code_retries': '5', 'baremetal_introspection_status_code_retries': '5', 'image_status_code_retries': '5', 'disable_vendor_agent': {}, 'interface': 'public', 'floating_ip_source': 'neutron', 'image_api_use_tasks': False, 'image_format': 'qcow2', 'message': '', 'network_api_version': '2', 'object_store_api_version': '1', 'secgroup_source': 'neutron', 'status': 'active', 'auth': {'user_domain_name': 'Default', 'project_domain_name': 'Default', 'project_name': 'admin'}, 'verbose_level': 3, 'deferred_help': False, 'debug': True, 'default_domain': 'default', 'timing': False, 'username': 'admin', 'password': '***', 'auth_url': 'http://controller:5000/v3', 'beta_command': False, 'identity_api_version': '3', 'image_api_version': '2', 'key_manager_api_version': '1', 'dns_api_version': '2', 'region_name': '', 'auth_type': 'password', ': []}
defaults: {'api_timeout': None, 'verify': True, 'cacert': None, 'cert': None, 'key': None, 'auth_type': 'password', 'baremetal_status_code_retries': 5, 'baremetal_introspection_status_code_retries': 5, 'image_status_code_retries': 5, 'disable_vendor_agent': {}, 'interface': 'public', 'floating_ip_source': 'neutron', 'image_api_use_tasks': False, 'image_format': 'qcow2', 'message': '', 'network_api_version': '2', 'object_store_api_version': '1', 'secgroup_source': 'neutron', 'status': 'active'}
cloud cfg: {'api_timeout': None, 'verify': True, 'cacert': None, 'cert': None, 'key': None, 'baremetal_status_code_retries': '5', 'baremetal_introspection_status_code_retries': '5', 'image_status_code_retries': '5', 'disable_vendor_agent': {}, 'interface': 'public', 'floating_ip_source': 'neutron', 'image_api_use_tasks': False, 'image_format': 'qcow2', 'message': '', 'network_api_version': '2', 'object_store_api_version': '1', 'secgroup_source': 'neutron', 'status': 'active', 'auth': {'user_domain_name': 'Default', 'project_domain_name': 'Default', 'project_name': 'admin'}, 'verbose_level': 3, 'deferred_help': False, 'debug': True, 'default_domain': 'default', 'timing': False, 'username': 'admin', 'password': '***', 'auth_url': 'http://controller:5000/v3', 'beta_command': False, 'identity_api_version': '3', 'image_api_version': '2', 'key_manager_api_version': '1', 'dns_api_version': '2', 'region_name': '', 'auth_type': 'password', ': []}
compute API version 2.1, cmd group openstack.compute.v2
identity API version 3, cmd group openstack.identity.v3
image API version 2, cmd group openstack.image.v2
network API version 2, cmd group openstack.network.v2
object_store API version 1, cmd group openstack.object_store.v1
volume API version 3, cmd group openstack.volume.v3
key_manager API version 1, cmd group openstack.key_manager.v1
neutronclient API version 2, cmd group openstack.neutronclient.v2
dns API version 2, cmd group openstack.dns.v2
command: server create -> openstackclient.compute.v2.server.CreateServer (auth=True)
Auth plugin password selected
auth_config_hook(): {'api_timeout': None, 'verify': True, 'cacert': None, 'cert': None, 'key': None, 'baremetal_status_code_retries': '5', 'baremetal_introspection_status_code_retries': '5', 'image_status_code_retries': '5', 'disable_vendor_agent': {}, 'interface': 'public', 'floating_ip_source': 'neutron', 'image_api_use_tasks': False, 'image_format': 'qcow2', 'message': '', 'network_api_version': '2', 'object_store_api_version': '1', 'secgroup_source': 'neutron', 'status': 'active', 'auth': {'user_domain_name': 'Default', 'project_domain_name': 'Default', 'project_name': 'admin'}, 'additional_user_agent': [('osc-lib', '3.0.1')], 'verbose_level': 3, 'deferred_help': False, 'debug': True, 'default_domain': 'default', 'timing': False, 'username': 'admin', 'password': '***', 'auth_url': 'http://controller:5000/v3', 'beta_command': False, 'identity_api_version': '3', 'image_api_version': '2', 'key_manager_api_version': '1', 'dns_api_version': '2', 'region_name': '', 'auth_type': 'password', ': []}
Using auth plugin: password
Using parameters {'auth_url': 'http://controller:5000/v3', 'project_name': 'admin', 'project_domain_name': 'Default', 'username': 'admin', 'user_domain_name': 'Default', 'password': '***'}
Get auth_ref
REQ: curl -g -i -X GET http://controller:5000/v3 -H "Accept: application/json" -H "User-Agent: openstacksdk/3.0.0 keystoneauth1/5.6.0 python-requests/2.31.0 CPython/3.9.20"
Starting new HTTP connection (1): controller:5000
http://controller:5000 "GET /v3 HTTP/1.1" 200 250
RESP: [200] Connection: Keep-Alive Content-Length: 250 Content-Type: application/json Date: Sun, 06 Oct 2024 17:50:50 GMT Keep-Alive: timeout=5, max=100 Server: Apache/2.4.62 (CentOS Stream) mod_wsgi/4.7.1 Python/3.9 Vary: X-Auth-Token x-openstack-request-id: req-95a4fe84-07b7-4702-a957-71e7b1c89411
RESP BODY: {"version": {"id": "v3.14", "status": "stable", "updated": "2020-04-07T00:00:00Z", "links": [{"rel": "self", "href": "http://controller:5000/v3/"}], "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}]}}
GET call to http://controller:5000/v3 used request id req-95a4fe84-07b7-4702-a957-71e7b1c89411
Making authentication request to http://controller:5000/v3/auth/tokens
http://controller:5000 "POST /v3/auth/tokens HTTP/1.1" 201 4028
{"token": {"methods": ["password"], "user": {"domain": {"id": "default", "name": "Default"}, "id": "207ba9399f25416591b43d6a2beee445", "name": "admin", "password_expires_at": null}, "audit_ids": ["-PDqyb6hQxe5uazZsOC5pw"], "expires_at": "2024-10-06T18:50:51.000000Z", "issued_at": "2024-10-06T17:50:51.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "41a34adc3b4d4d1f99823b69fe380304", "name": "admin"}, "is_domain": false, "roles": [{"id": "5ad2f682e76947f18309b5f24cfe208a", "name": "reader"}, {"id": "95ff78f70a1841729f4b343ffe2f66c0", "name": "manager"}, {"id": "fce024546def4612bab98a8f2e657beb", "name": "admin"}, {"id": "72323a06a31e4df194df33560f5c0b23", "name": "member"}], "catalog": [{"endpoints": [{"id": "502aacafbf8f4d7eba2aedf851861307", "interface": "public", "region_id": "Banani", "url": "http://controller:9292", "region": "Banani"}, {"id": "9a7400b6bae64817b9d3b79c2fca25b2", "interface": "internal", "region_id": "Banani", "url": "http://controller:9292", "region": "Banani"}, {"id": "b11e517887d647a58176575d732564a5", "interface": "admin", "region_id": "Banani", "url": "http://controller:9292", "region": "Banani"}], "id": "39d44d4eeca24a48bbc29c652f7e3254", "type": "image", "name": "glance"}, {"endpoints": [], "id": "75602a7d87eb4edea25ad5e617dd7d45", "type": "volumev3", "name": "cinderv3"}, {"endpoints": [{"id": "361df382ac61480ba9ec72359be9a955", "interface": "public", "region_id": "Banani", "url": "http://controller:8774/v2.1", "region": "Banani"}, {"id": "9ee8a8c316f24b06be10bfe70030037f", "interface": "admin", "region_id": "Banani", "url": "http://controller:8774/v2.1", "region": "Banani"}, {"id": "a0684edb7b144fe1a5036aaa5a6231eb", "interface": "internal", "region_id": "Banani", "url": "http://controller:8774/v2.1", "region": "Banani"}], "id": "78bb12d4b7184aa992d625545a981209", "type": "compute", "name": "nova"}, {"endpoints": [{"id": "07e39125e7264c2b840a165e09ffd03b", "interface": "admin", "region_id": "Banani", "url": "http://controller:8778", "region": "Banani"}, {"id": "1b5b55db5e1c423a88cda1e5d168523f", "interface": "public", "region_id": "Banani", "url": "http://controller:8778", "region": "Banani"}, {"id": "9efc2e6223d048d9b91812468bb62eb7", "interface": "internal", "region_id": "Banani", "url": "http://controller:8778", "region": "Banani"}], "id": "7b17396347774242ba126d51ad46b50c", "type": "placement", "name": "placement"}, {"endpoints": [{"id": "6b58956a032046168e16fa3f24c7abe6", "interface": "internal", "region_id": "Banani", "url": "http://controller:9696", "region": "Banani"}, {"id": "a22006faa74147328be4c8f9ff235c10", "interface": "public", "region_id": "Banani", "url": "http://controller:9696", "region": "Banani"}, {"id": "c00fe9bfdc3b497c8473dc534e619657", "interface": "admin", "region_id": "Banani", "url": "http://controller:9696", "region": "Banani"}], "id": "7e6ceea96b3d4fc7b89723a74a606ad4", "type": "network", "name": "neutron"}, {"endpoints": [{"id": "561532806668459e8ee506016891ca6a", "interface": "public", "region_id": "Banani", "url": "http://controller:8776/v3/", "region": "Banani"}, {"id": "89f2847685dc4237a621c70b2be587a5", "interface": "admin", "region_id": "Banani", "url": "http://controller:8776/v3/", "region": "Banani"}, {"id": "a15d35ec8f78472084bcea78c2cd0ae1", "interface": "internal", "region_id": "Banani", "url": "http://controller:8776/v3/", "region": "Banani"}], "id": "bf7941ae4d194f15a981d8b9bc1a27fd", "type": "volumev3", "name": "cinderv3"}, {"endpoints": [{"id": "077d207620604c418b6a183b414b246d", "interface": "internal", "region_id": "Banani", "url": "http://controller:5000/v3/", "region": "Banani"}, {"id": "92ac5e41a6564841a14b55590c4efdbd", "interface": "public", "region_id": "Banani", "url": "http://controller:5000/v3/", "region": "Banani"}, {"id": "cceef889f43b4acab31a92cd2c1ebb1d", "interface": "admin", "region_id": "Banani", "url": "http://controller:5000/v3/", "region": "Banani"}], "id": "f80864dddf1949f1a9f500b0e2e684b2", "type": "identity", "name": "keystone"}]}}
run(Namespace(formatter='table', columns=[], noindent=False, variables=[], prefix='', max_width=0, fit_width=False, print_empty=False, server_name='provider-instance', flavor='m1.nano', image='cirros1', image_properties=None, volume=None, snapshot=None, boot_from_volume=None, block_device_mapping=[], block_devices=[], swap=None, ephemerals=[], nics=[{'net-id': 'a56ae24d-0f1b-441e-a0e3-754cbe893e30', 'port-id': '', 'v4-fixed-ip': '', 'v6-fixed-ip': ''}], password=None, security_group=[], key_name=None, properties=None, file=[], user_data=None, description=None, availability_zone=None, host=None, hypervisor_hostname=None, server_group=None, hints={}, config_drive=False, min=1, max=1, tags=[], hostname=None, wait=False, trusted_image_certs=None))
Instantiating compute client for API Version Major: 2, Minor: 1
Instantiating compute api: <class 'openstackclient.api.compute_v2.APIv2'>
Instantiating volume client: <class 'cinderclient.v3.client.Client'>
REQ: curl -g -i -X GET http://controller:9292 -H "Accept: application/json" -H "User-Agent: openstacksdk/3.0.0 keystoneauth1/5.6.0 python-requests/2.31.0 CPython/3.9.20"
Starting new HTTP connection (1): controller:9292
http://controller:9292 "GET / HTTP/1.1" 300 1592
RESP: [300] Connection: keep-alive Content-Length: 1592 Content-Type: application/json Date: Sun, 06 Oct 2024 17:50:51 GMT
RESP BODY: {"versions": [{"id": "v2.15", "status": "CURRENT", "links": [{"rel": "self", "href": "http://controller:9292/v2/"}]}, {"id": "v2.13", "status": "SUPPORTED", "links": [{"rel": "self", "href": "http://controller:9292/v2/"}]}, {"id": "v2.12", "status": "SUPPORTED", "links": [{"rel": "self", "href": "http://controller:9292/v2/"}]}, {"id": "v2.11", "status": "SUPPORTED", "links": [{"rel": "self", "href": "http://controller:9292/v2/"}]}, {"id": "v2.10", "status": "SUPPORTED", "links": [{"rel": "self", "href": "http://controller:9292/v2/"}]}, {"id": "v2.9", "status": "SUPPORTED", "links": [{"rel": "self", "href": "http://controller:9292/v2/"}]}, {"id": "v2.8", "status": "SUPPORTED", "links": [{"rel": "self", "href": "http://controller:9292/v2/"}]}, {"id": "v2.7", "status": "SUPPORTED", "links": [{"rel": "self", "href": "http://controller:9292/v2/"}]}, {"id": "v2.6", "status": "SUPPORTED", "links": [{"rel": "self", "href": "http://controller:9292/v2/"}]}, {"id": "v2.5", "status": "SUPPORTED", "links": [{"rel": "self", "href": "http://controller:9292/v2/"}]}, {"id": "v2.4", "status": "SUPPORTED", "links": [{"rel": "self", "href": "http://controller:9292/v2/"}]}, {"id": "v2.3", "status": "SUPPORTED", "links": [{"rel": "self", "href": "http://controller:9292/v2/"}]}, {"id": "v2.2", "status": "SUPPORTED", "links": [{"rel": "self", "href": "http://controller:9292/v2/"}]}, {"id": "v2.1", "status": "SUPPORTED", "links": [{"rel": "self", "href": "http://controller:9292/v2/"}]}, {"id": "v2.0", "status": "SUPPORTED", "links": [{"rel": "self", "href": "http://controller:9292/v2/"}]}]}
Image client initialized using OpenStack SDK: <openstack.image.v2._proxy.Proxy object at 0x7fd3dd8dc790>
REQ: curl -g -i -X GET http://controller:9292/v2/images/cirros1 -H "User-Agent: openstacksdk/3.0.0 keystoneauth1/5.6.0 python-requests/2.31.0 CPython/3.9.20" -H "X-Auth-Token: {SHA256}cbae857181a6507e022dd1bce2ddf64499562b4820c74ed256572a882180937f"
http://controller:9292 "GET /v2/images/cirros1 HTTP/1.1" 404 152
RESP: [404] Connection: keep-alive Content-Length: 152 Content-Type: text/html; charset=UTF-8 Date: Sun, 06 Oct 2024 17:50:52 GMT X-Openstack-Request-Id: req-9dc8cb73-709f-4cab-8f27-c8df4a0809ca
RESP BODY: Omitted, Content-Type is set to text/html; charset=UTF-8. Only application/json, text/plain responses have their bodies logged.
GET call to image for http://controller:9292/v2/images/cirros1 used request id req-9dc8cb73-709f-4cab-8f27-c8df4a0809ca
REQ: curl -g -i -X GET "http://controller:9292/v2/images?name=cirros1" -H "Accept: application/json" -H "User-Agent: openstacksdk/3.0.0 keystoneauth1/5.6.0 python-requests/2.31.0 CPython/3.9.20" -H "X-Auth-Token: {SHA256}cbae857181a6507e022dd1bce2ddf64499562b4820c74ed256572a882180937f"
http://controller:9292 "GET /v2/images?name=cirros1 HTTP/1.1" 200 882
RESP: [200] Connection: keep-alive Content-Length: 882 Content-Type: application/json Date: Sun, 06 Oct 2024 17:50:52 GMT X-Openstack-Request-Id: req-a2d309d6-799f-47cf-8f88-d83814efac5e
RESP BODY: {"images": [{"name": "cirros1", "disk_format": "qcow2", "container_format": "bare", "visibility": "public", "size": 12716032, "virtual_size": 46137344, "status": "active", "checksum": "443b7623e27ecf03dc9e01ee93f67afe", "protected": false, "min_ram": 0, "min_disk": 0, "owner": "8aef603cef5943fea996f3c09dc2e909", "os_hidden": false, "os_hash_algo": "sha512", "os_hash_value": "6513f21e44aa3da349f248188a44bc304a3653a04122d8fb4535423c8e1d14cd6a153f735bb0982e2161b5b5186106570c17a9e58b64dd39390617cd5a350f78", "id": "e4b2849b-df2b-40d0-8757-e34616527533", "created_at": "2024-10-06T08:43:05Z", "updated_at": "2024-10-06T08:43:06Z", "tags": [], "self": "/v2/images/e4b2849b-df2b-40d0-8757-e34616527533", "file": "/v2/images/e4b2849b-df2b-40d0-8757-e34616527533/file", "schema": "/v2/schemas/image", "stores": "fs"}], "first": "/v2/images?name=cirros1", "schema": "/v2/schemas/images"}
GET call to image for http://controller:9292/v2/images?name=cirros1 used request id req-a2d309d6-799f-47cf-8f88-d83814efac5e
REQ: curl -g -i -X GET http://controller:8774/v2.1/flavors/m1.nano -H "Accept: application/json" -H "User-Agent: python-novaclient" -H "X-Auth-Token: {SHA256}cbae857181a6507e022dd1bce2ddf64499562b4820c74ed256572a882180937f" -H "X-OpenStack-Nova-API-Version: 2.1"
Starting new HTTP connection (1): controller:8774
http://controller:8774 "GET /v2.1/flavors/m1.nano HTTP/1.1" 404 80
RESP: [404] Connection: keep-alive Content-Length: 80 Content-Type: application/json; charset=UTF-8 Date: Sun, 06 Oct 2024 17:50:53 GMT Openstack-Api-Version: compute 2.1 Vary: OpenStack-API-Version, X-OpenStack-Nova-API-Version X-Compute-Request-Id: req-65b3e340-2430-42d5-bfff-71e6e405469e X-Openstack-Nova-Api-Version: 2.1 X-Openstack-Request-Id: req-65b3e340-2430-42d5-bfff-71e6e405469e
RESP BODY: {"itemNotFound": {"code": 404, "message": "Flavor m1.nano could not be found."}}
GET call to compute for http://controller:8774/v2.1/flavors/m1.nano used request id req-65b3e340-2430-42d5-bfff-71e6e405469e
REQ: curl -g -i -X GET http://controller:8774/v2.1/flavors -H "Accept: application/json" -H "User-Agent: python-novaclient" -H "X-Auth-Token: {SHA256}cbae857181a6507e022dd1bce2ddf64499562b4820c74ed256572a882180937f" -H "X-OpenStack-Nova-API-Version: 2.1"
http://controller:8774 "GET /v2.1/flavors HTTP/1.1" 200 187
RESP: [200] Connection: keep-alive Content-Length: 187 Content-Type: application/json Date: Sun, 06 Oct 2024 17:50:53 GMT Openstack-Api-Version: compute 2.1 Vary: OpenStack-API-Version, X-OpenStack-Nova-API-Version X-Compute-Request-Id: req-00e40e3d-3d1e-4196-ab69-8dd770a0c331 X-Openstack-Nova-Api-Version: 2.1 X-Openstack-Request-Id: req-00e40e3d-3d1e-4196-ab69-8dd770a0c331
RESP BODY: {"flavors": [{"id": "0", "name": "m1.nano", "links": [{"rel": "self", "href": "http://controller:8774/v2.1/flavors/0"}, {"rel": "bookmark", "href": "http://controller:8774/flavors/0"}]}]}
GET call to compute for http://controller:8774/v2.1/flavors used request id req-00e40e3d-3d1e-4196-ab69-8dd770a0c331
REQ: curl -g -i -X GET http://controller:8774/v2.1/flavors/0 -H "Accept: application/json" -H "User-Agent: python-novaclient" -H "X-Auth-Token: {SHA256}cbae857181a6507e022dd1bce2ddf64499562b4820c74ed256572a882180937f" -H "X-OpenStack-Nova-API-Version: 2.1"
http://controller:8774 "GET /v2.1/flavors/0 HTTP/1.1" 200 353
RESP: [200] Connection: keep-alive Content-Length: 353 Content-Type: application/json Date: Sun, 06 Oct 2024 17:50:53 GMT Openstack-Api-Version: compute 2.1 Vary: OpenStack-API-Version, X-OpenStack-Nova-API-Version X-Compute-Request-Id: req-fceb3e7f-defd-4de9-8c49-0092b4a54820 X-Openstack-Nova-Api-Version: 2.1 X-Openstack-Request-Id: req-fceb3e7f-defd-4de9-8c49-0092b4a54820
RESP BODY: {"flavor": {"id": "0", "name": "m1.nano", "ram": 64, "disk": 1, "swap": "", "OS-FLV-EXT-DATA:ephemeral": 0, "OS-FLV-DISABLED:disabled": false, "vcpus": 1, "os-flavor-access:is_public": true, "rxtx_factor": 1.0, "links": [{"rel": "self", "href": "http://controller:8774/v2.1/flavors/0"}, {"rel": "bookmark", "href": "http://controller:8774/flavors/0"}]}}
GET call to compute for http://controller:8774/v2.1/flavors/0 used request id req-fceb3e7f-defd-4de9-8c49-0092b4a54820
network endpoint in service catalog
Network client initialized using OpenStack SDK: <openstack.network.v2._proxy.Proxy object at 0x7fd3dd8dc9a0>
REQ: curl -g -i -X GET http://controller:9696/v2.0/networks/a56ae24d-0f1b-441e-a0e3-754cbe893e30 -H "User-Agent: openstacksdk/3.0.0 keystoneauth1/5.6.0 python-requests/2.31.0 CPython/3.9.20" -H "X-Auth-Token: {SHA256}cbae857181a6507e022dd1bce2ddf64499562b4820c74ed256572a882180937f"
Starting new HTTP connection (1): controller:9696
http://controller:9696 "GET /v2.0/networks/a56ae24d-0f1b-441e-a0e3-754cbe893e30 HTTP/1.1" 200 689
RESP: [200] Connection: keep-alive Content-Length: 689 Content-Type: application/json Date: Sun, 06 Oct 2024 17:50:53 GMT X-Openstack-Request-Id: req-70895476-b555-41cd-9fe7-2bd7679bcb35
RESP BODY: {"network":{"id":"a56ae24d-0f1b-441e-a0e3-754cbe893e30","name":"provider","tenant_id":"8aef603cef5943fea996f3c09dc2e909","admin_state_up":true,"mtu":1500,"status":"ACTIVE","subnets":["c65152f8-b4a2-4147-830a-c6f1fbfb9fdf"],"shared":true,"availability_zone_hints":[],"availability_zones":["nova"],"ipv4_address_scope":null,"ipv6_address_scope":null,"router:external":true,"description":"","port_security_enabled":true,"is_default":false,"tags":[],"created_at":"2024-10-03T00:46:03Z","updated_at":"2024-10-06T04:40:09Z","revision_number":4,"project_id":"8aef603cef5943fea996f3c09dc2e909","provider:network_type":"flat","provider:physical_network":"provider","provider:segmentation_id":null}}
GET call to network for http://controller:9696/v2.0/networks/a56ae24d-0f1b-441e-a0e3-754cbe893e30 used request id req-70895476-b555-41cd-9fe7-2bd7679bcb35
network endpoint in service catalog
boot_args: ['provider-instance', openstack.image.v2.image.Image(name=cirros1, disk_format=qcow2, container_format=bare, visibility=public, size=12716032, virtual_size=46137344, status=active, checksum=443b7623e27ecf03dc9e01ee93f67afe, protected=False, min_ram=0, min_disk=0, owner=8aef603cef5943fea996f3c09dc2e909, os_hidden=False, os_hash_algo=sha512, os_hash_value=6513f21e44aa3da349f248188a44bc304a3653a04122d8fb4535423c8e1d14cd6a153f735bb0982e2161b5b5186106570c17a9e58b64dd39390617cd5a350f78, id=e4b2849b-df2b-40d0-8757-e34616527533, created_at=2024-10-06T08:43:05Z, updated_at=2024-10-06T08:43:06Z, tags=[], file=/v2/images/e4b2849b-df2b-40d0-8757-e34616527533/file, schema=/v2/schemas/image, properties={'stores': 'fs'}, location=Munch({'cloud': '', 'region_name': '', 'zone': None, 'project': Munch({'id': '41a34adc3b4d4d1f99823b69fe380304', 'name': 'admin', 'domain_id': None, 'domain_name': 'Default'})})), <Flavor: m1.nano>]
boot_kwargs: {'meta': None, 'files': {}, 'reservation_id': None, 'min_count': 1, 'max_count': 1, 'security_groups': [], 'userdata': None, 'key_name': None, 'availability_zone': None, 'admin_pass': None, 'block_device_mapping_v2': [], 'nics': [{'net-id': 'a56ae24d-0f1b-441e-a0e3-754cbe893e30', 'port-id': '', 'v4-fixed-ip': '', 'v6-fixed-ip': ''}], 'scheduler_hints': {}, 'config_drive': None}
REQ: curl -g -i -X POST http://controller:8774/v2.1/servers -H "Accept: application/json" -H "Content-Type: application/json" -H "User-Agent: python-novaclient" -H "X-Auth-Token: {SHA256}cbae857181a6507e022dd1bce2ddf64499562b4820c74ed256572a882180937f" -H "X-OpenStack-Nova-API-Version: 2.1" -d '{"server": {"name": "provider-instance", "imageRef": "e4b2849b-df2b-40d0-8757-e34616527533", "flavorRef": "0", "min_count": 1, "max_count": 1, "networks": [{"uuid": "a56ae24d-0f1b-441e-a0e3-754cbe893e30"}]}}'
http://controller:8774 "POST /v2.1/servers HTTP/1.1" 500 216
RESP: [500] Connection: keep-alive Content-Length: 216 Content-Type: application/json; charset=UTF-8 Date: Sun, 06 Oct 2024 17:50:55 GMT Openstack-Api-Version: compute 2.1 Vary: OpenStack-API-Version, X-OpenStack-Nova-API-Version X-Compute-Request-Id: req-6af9a015-8c25-4e13-be4a-124f5cc9ac99 X-Openstack-Nova-Api-Version: 2.1 X-Openstack-Request-Id: req-6af9a015-8c25-4e13-be4a-124f5cc9ac99
RESP BODY: {"computeFault": {"code": 500, "message": "Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.\n<class 'keystoneauth1.exceptions.http.Unauthorized'>"}}
POST call to compute for http://controller:8774/v2.1/servers used request id req-6af9a015-8c25-4e13-be4a-124f5cc9ac99
Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'keystoneauth1.exceptions.http.Unauthorized'> (HTTP 500) (Request-ID: req-6af9a015-8c25-4e13-be4a-124f5cc9ac99)
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/cliff/app.py", line 410, in run_subcommand
result = cmd.run(parsed_args)
File "/usr/lib/python3.9/site-packages/osc_lib/command/command.py", line 38, in run
return super(Command, self).run(parsed_args)
File "/usr/lib/python3.9/site-packages/cliff/display.py", line 117, in run
column_names, data = self.take_action(parsed_args)
File "/usr/lib/python3.9/site-packages/openstackclient/compute/v2/server.py", line 2030, in take_action
server = compute_client.servers.create(*boot_args, **boot_kwargs)
File "/usr/lib/python3.9/site-packages/novaclient/v2/servers.py", line 1657, in create
return self._boot(response_key, *boot_args, **boot_kwargs)
File "/usr/lib/python3.9/site-packages/novaclient/v2/servers.py", line 966, in _boot
return self._create(
File "/usr/lib/python3.9/site-packages/novaclient/base.py", line 363, in _create
resp, body = self.api.client.post(url, body=body)
File "/usr/lib/python3.9/site-packages/keystoneauth1/adapter.py", line 399, in post
return self.request(url, 'POST', **kwargs)
File "/usr/lib/python3.9/site-packages/novaclient/client.py", line 78, in request
raise exceptions.from_response(resp, body, url, method)
novaclient.exceptions.ClientException: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'keystoneauth1.exceptions.http.Unauthorized'> (HTTP 500) (Request-ID: req-6af9a015-8c25-4e13-be4a-124f5cc9ac99)
clean_up CreateServer: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'keystoneauth1.exceptions.http.Unauthorized'> (HTTP 500) (Request-ID: req-6af9a015-8c25-4e13-be4a-124f5cc9ac99)
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/2083779/+subscriptions