创建实例时报错:No schema supplied

Bug #1803858 reported by chensiluo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Expired
Undecided
Unassigned

Bug Description

我安装官方文档部署完openstack-pike后,最后一步需要启动一个实例
官方文档的地址:https://docs.openstack.org/install-guide/launch-instance-selfservice.html
前面的操作都是正确的,比如;
. demo-openrc
openstack flavor list
[root@controller ~]# openstack flavor list
+----+---------+-----+------+-----------+-------+-----------+
| ID | Name | RAM | Disk | Ephemeral | VCPUs | Is Public |
+----+---------+-----+------+-----------+-------+-----------+
| 0 | m1.nano | 64 | 1 | 0 | 1 | True |
+----+---------+-----+------+-----------+-------+-----------+

openstack image list
[root@controller ~]# openstack image list
+--------------------------------------+--------+--------+
| ID | Name | Status |
+--------------------------------------+--------+--------+
| f213ed9c-ef55-416e-a615-7a6c811fbdd9 | cirros | active |
+--------------------------------------+--------+--------+

openstack network list
[root@controller ~]# openstack network list
+--------------------------------------+------------------+--------------------------------------+
| ID | Name | Subnets |
+--------------------------------------+------------------+--------------------------------------+
| a01249d3-38fe-4fea-bd27-9d0c08364bc9 | provider | afa5c984-b2db-4a05-b9bf-60c47ec78b2e |
| bac14094-3b96-4a1f-b2de-1eb74bcb0ba1 | selfservice-demo | 5991c21e-6a01-48b5-9c3e-08a5b2b63f5c |
+--------------------------------------+------------------+--------------------------------------+

openstack security group list
[root@controller ~]# openstack security group list
+--------------------------------------+---------+-------------+----------------------------------+
| ID | Name | Description | Project |
+--------------------------------------+---------+-------------+----------------------------------+
| 1e207c89-07f2-452e-a96d-fa7eea71e865 | default | 缺省安全组 | 44b99ab754fd4c95b6d8e32dd826a39f |
+--------------------------------------+---------+-------------+----------------------------------+
[root@controller ~]# openstack keypair list
+-------+-------------------------------------------------+
| Name | Fingerprint |
+-------+-------------------------------------------------+
| mykey | 1f:ce:ee:c9:d4:20:ec:af:a8:49:b8:a9:b9:dc:7d:c5 |
+-------+-------------------------------------------------+

上面的操作都正常,与官方一致
当我执行:
[root@controller ~]# openstack server create --flavor m1.nano --image cirros --nic net-id=bac14094-3b96-4a1f-b2de-1eb74bcb0ba1 --security-group default --key-name mykey selfservice-instance
就报了错误:

[root@controller ~]# openstack server create --flavor m1.nano --image cirros --nic net-id=bac14094-3b96-4a1f-b2de-1eb74bcb0ba1 --security-group default --key-name mykey selfservice-instance
发生意外 API 错误。请在 http://bugs.launchpad.net/nova/ 处报告此错误,并且附上 Nova API 日志(如果可能)。
<class 'keystoneauth1.exceptions.connection.UnknownConnectionError'> (HTTP 500) (Request-ID: req-942fd1e8-3cf5-4f54-9b25-5dfaa7fa915d)

查看了nova-api的日志:
2018-11-18 17:42:43.373 2041 ERROR nova.api.openstack.extensions return wrapped(*args, **kwargs)
2018-11-18 17:42:43.373 2041 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 703, in request
2018-11-18 17:42:43.373 2041 ERROR nova.api.openstack.extensions resp = send(**kwargs)
2018-11-18 17:42:43.373 2041 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 781, in _send_request
2018-11-18 17:42:43.373 2041 ERROR nova.api.openstack.extensions raise exceptions.UnknownConnectionError(msg, e)
2018-11-18 17:42:43.373 2041 ERROR nova.api.openstack.extensions UnknownConnectionError: Unexpected exception for http//controller:9292/v2/images/f213ed9c-ef55-416e-a615-7a6c811fbdd9: Invalid URL 'http//controller:9292/v2/images/f213ed9c-ef55-416e-a615-7a6c811fbdd9': No schema supplied. Perhaps you meant http://http//controller:9292/v2/images/f213ed9c-ef55-416e-a615-7a6c811fbdd9?
2018-11-18 17:42:43.373 2041 ERROR nova.api.openstack.extensions
2018-11-18 17:42:43.374 2041 INFO nova.api.openstack.wsgi [req-0b26b9a0-1269-4eb8-a93a-36e9b491d5a3 - - - - -] HTTP exception thrown: 发生意外 API 错误。请在 http://bugs.launchpad.net/nova/ 处报告此错误,并且附上 Nova API 日志(如果可能)。
<class 'keystoneauth1.exceptions.connection.UnknownConnectionError'>

请问这是什么问题,要如何解决,谢谢

Tags: instance
Revision history for this message
Takashi Natsume (natsume-takashi) wrote :

> Invalid URL 'http//controller:9292/v2/images/f213ed9c-ef55-416e-a615-7a6c811fbdd9'

It seems that the configuration of the glance endpoint is not correct.
Needs output of 'openstack endpoint list' command and nova configuration files.

Changed in nova:
status: New → Incomplete
Revision history for this message
chensiluo (chensiluo) wrote :

[root@controller ~]# openstack endpoint list
+----------------------------------+-----------+--------------+--------------+---------+-----------+-----------------------------+
| ID | Region | Service Name | Service Type | Enabled | Interface | URL |
+----------------------------------+-----------+--------------+--------------+---------+-----------+-----------------------------+
| 00d4a2b751cd45bdbe7465526ebedac9 | RegionOne | nova | compute | True | admin | http://controller:8774/v2.1 |
| 159a03ad2d314e5984d358cc7c5a8376 | RegionOne | placement | placement | True | public | http://controller:8778 |
| 1c6c22fe9d68402b89306ccf77a50232 | RegionOne | neutron | network | True | internal | http://controller:9696 |
| 32803506705f40fe86460b3b2bdfd27e | RegionOne | keystone | identity | True | public | http://controller:5000/v3/ |
| 3af1c2b122f74ae1b7b6f83e44bf8b62 | RegionOne | nova | compute | True | internal | http://controller:8774/v2.1 |
| 60e8ad4cb01b438f886e28cdd0341805 | RegionOne | glance | image | True | admin | http://controller:9292 |
| 653dc778abec4f868afabf267485f745 | RegionOne | glance | image | True | public | http://controller:9292 |
| 73a1e938b2b84a608cc4989ee7b1fa21 | RegionOne | neutron | network | True | admin | http://controller:9696 |
| 7c3169b7638845f19ebbd82883500168 | RegionOne | keystone | identity | True | internal | http://controller:5000/v3/ |
| 82708785c27c4c3a85f49f66bc0c185a | RegionOne | placement | placement | True | internal | http://controller:8778 |
| a49312716cb44b7ea052789e30701e10 | RegionOne | neutron | network | True | public | http://controller:9696 |
| af2ec24cd9e9467e8a2b1a12c9afeac0 | RegionOne | nova | compute | True | public | http://controller:8774/v2.1 |
| e952bff2950d4402976c675853ed5dbb | RegionOne | glance | image | True | internal | http://controller:9292 |
| f17194a2461d480092991aad8a5aaf94 | RegionOne | placement | placement | True | admin | http://controller:8778 |
| f4ed452f97cf450aac78aa923d8184ae | RegionOne | keystone | identity | True | admin | http://controller:35357/v3/ |
+----------------------------------+-----------+--------------+--------------+---------+-----------+-----------------------------+

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack Compute (nova) because there has been no activity for 60 days.]

Changed in nova:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.