yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #76710
[Bug 1803858] Re: 创建实例时报错:No schema supplied
[Expired for OpenStack Compute (nova) because there has been no activity
for 60 days.]
** Changed in: nova
Status: Incomplete => Expired
--
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/1803858
Title:
创建实例时报错:No schema supplied
Status in OpenStack Compute (nova):
Expired
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'>
请问这是什么问题,要如何解决,谢谢
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1803858/+subscriptions
References