分享

OpenStack创建实例失败 求指导

网络行者 发表于 2017-4-18 15:19:36 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 9 20279
OPenStack创建测试实例失败,https://docs.openstack.org/ocata ... tance-provider.html,CentOS 7上创建的。
/var/log/nova/nova-compute.log提示如下:
2017-04-18 02:58:29.724 31256 ERROR nova.scheduler.client.report [req-d5d9a6f2-2b85-4c73-a621-9edce15e8d37 - - - - -] Failed to create resource provider record in placement API for UUID feb2f1da-043d-431f-89ad-1e9ddba199d4. Got 404: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /placement/resource_providers was not found on this server.</p>
</body></html>
.
2017-04-18 02:58:29.726 31256 WARNING nova.scheduler.client.report [req-d5d9a6f2-2b85-4c73-a621-9edce15e8d37 - - - - -] Unable to refresh my resource provider record
2017-04-18 02:58:29.862 31256 INFO nova.compute.resource_tracker [req-d5d9a6f2-2b85-4c73-a621-9edce15e8d37 - - - - -] Final resource view: name=compute1 phys_ram=3838MB used_ram=512MB phys_disk=49GB used_disk=0GB total_vcpus=2 used_vcpus=0 pci_stats=[]
2017-04-18 02:59:29.672 31256 ERROR nova.scheduler.client.report [req-d5d9a6f2-2b85-4c73-a621-9edce15e8d37 - - - - -] Failed to create resource provider record in placement API for UUID feb2f1da-043d-431f-89ad-1e9ddba199d4. Got 404: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /placement/resource_providers was not found on this server.</p>
</body></html>

/var/log/nova/nova-scheduler.log如下
2017-04-18 03:00:24.159 22431 ERROR nova.scheduler.client.report [req-f62d1479-e180-4314-a9c5-7903cb4d666c - - - - -] Failed to retrieve filtered list of resource providers from placement API for filters {'resources': 'DISK_GB:1,MEMORY_MB:64,VCPU:1'}. Got 404: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /placement/resource_providers was not found on this server.</p>
</body></html>
.
2017-04-18 03:00:24.160 22431 INFO nova.filters [req-f62d1479-e180-4314-a9c5-7903cb4d666c - - - - -] Filter RetryFilter returned 0 hosts
2017-04-18 03:00:24.161 22431 INFO nova.filters [req-f62d1479-e180-4314-a9c5-7903cb4d666c - - - - -] Filtering removed all hosts for the request with instance ID 'f394df8d-aaf8-463d-bcee-021762ac634a'. Filter results: ['RetryFilter: (start: 0, end: 0)']
2017-04-18 03:00:25.262 22431 INFO nova.scheduler.host_manager [req-8bf04d8c-16a8-4ce4-afd3-d200aaeca3c9 - - - - -] Successfully synced instances from host 'compute1'.
2017-04-18 03:02:30.386 22431 INFO nova.scheduler.host_manager [req-492df2d0-ace1-4142-9a6d-cf1e11d9ffba - - - - -] Successfully synced instances from host 'compute1'.
2017-04-18 03:04:33.303 22431 INFO nova.scheduler.host_manager [req-19b2077d-d008-4d4b-a3b7-9be15e460fb4 - - - - -] Successfully synced instances from host 'compute1'.
2017-04-18 03:06:34.384 22431 INFO nova.scheduler.host_manager [req-da9c0697-24cd-4c9d-918e-8aac2b6d1c24 - - - - -] Successfully synced instances from host 'compute1'.
2017-04-18 03:08:37.346 22431 INFO nova.scheduler.host_manager [req-14698144-8c06-4cd0-bab4-f2e86d752e79 - - - - -] Successfully synced instances from host 'compute1'.
2017-04-18 03:10:37.346 22431 INFO nova.scheduler.host_manager [req-845da10a-39df-448c-961a-a3bee66a6076 - - - - -] Successfully synced instances from host 'compute1'.
2017-04-18 03:12:38.303 22431 INFO nova.scheduler.host_manager [req-4e632976-2839-40f7-8c5f-46e0d4bf85d1 - - - - -] Successfully synced instances from host 'compute1'.

已有(9)人评论

跳转到指定楼层
网络行者 发表于 2017-4-18 15:21:02
https://docs.openstack.org/ocata/install-guide-rdo/overview.html按照官方教程装的,目前部署了controller、copmpute1这两台,面板可以正常登录,创建测试实例状态是ERROR。
回复

使用道具 举报

nextuser 发表于 2017-4-18 17:00:37
找不到资源,先看看Nova的服务列表是否都正常,在看看glance的日志。

回复

使用道具 举报

网络行者 发表于 2017-4-18 17:06:28
[root@controller ~]# openstack compute service list
+----+------------------+------------+----------+---------+-------+----------------------------+
| ID | Binary           | Host       | Zone     | Status  | State | Updated At                 |
+----+------------------+------------+----------+---------+-------+----------------------------+
|  1 | nova-conductor   | controller | internal | enabled | up    | 2017-04-18T09:05:34.000000 |
|  2 | nova-consoleauth | controller | internal | enabled | up    | 2017-04-18T09:05:34.000000 |
|  3 | nova-scheduler   | controller | internal | enabled | up    | 2017-04-18T09:05:30.000000 |
|  6 | nova-compute     | compute1   | nova     | enabled | up    | 2017-04-18T09:05:29.000000 |
+----+------------------+------------+----------+---------+-------+----------------------------+

Nova列表看着和文档上是一样的,应该正常。glance日志我看下
回复

使用道具 举报

网络行者 发表于 2017-4-18 17:09:52
glance日志显示:
2017-04-18 05:08:31.734 2066 INFO eventlet.wsgi.server [req-171210b8-fa77-49d0-9ec7-ce624f9151d9 - - - - -] 192.168.1.44 - - [18/Apr/2017 05:08:31] "GET /v2/images/cirros HTTP/1.1" 404 263 0.656002
2017-04-18 05:08:31.763 2066 INFO eventlet.wsgi.server [req-ca42d48f-4894-4058-91a6-701bcdbe7a11 - - - - -] 192.168.1.44 - - [18/Apr/2017 05:08:31] "GET /v2/images/cirros HTTP/1.1" 404 263 0.021561
2017-04-18 05:08:31.835 2066 INFO eventlet.wsgi.server [req-9263564e-c8e3-407f-878e-7af7d5e90d59 - - - - -] 192.168.1.44 - - [18/Apr/2017 05:08:31] "GET /v2/images?limit=20 HTTP/1.1" 200 876 0.063356
2017-04-18 05:08:31.847 2066 INFO eventlet.wsgi.server [req-34f3a5da-29ab-47a5-a2f6-134b9f13c2d3 - - - - -] 192.168.1.44 - - [18/Apr/2017 05:08:31] "GET /v2/schemas/image HTTP/1.1" 200 4384 0.004540
2017-04-18 05:08:34.379 2067 INFO eventlet.wsgi.server [req-5f2bfaa6-64f6-4328-ac6e-403ba999bc86 - - - - -] 192.168.1.44 - - [18/Apr/2017 05:08:34] "GET /v2/images/39b3f47d-a89d-4b19-821e-6f1107895eb7 HTTP/1.1" 200 798 0.051884
2017-04-18 05:08:34.396 2067 INFO eventlet.wsgi.server [req-e59e469a-a0cd-42e0-b2ca-1912dd815372 - - - - -] 192.168.1.44 - - [18/Apr/2017 05:08:34] "GET /v2/schemas/image HTTP/1.1" 200 4384 0.013442
2017-04-18 05:08:36.540 2066 INFO eventlet.wsgi.server [req-4fa21547-2339-4584-aaa7-eea40f54bebc - - - - -] 192.168.1.44 - - [18/Apr/2017 05:08:36] "GET /v2/images/39b3f47d-a89d-4b19-821e-6f1107895eb7 HTTP/1.1" 200 798 0.027220
回复

使用道具 举报

网络行者 发表于 2017-4-18 17:11:43
nextuser 发表于 2017-4-18 17:00
找不到资源,先看看Nova的服务列表是否都正常,在看看glance的日志。

glance日志是提示说找不到cirros这个镜像吧?
但是我执行命令看镜像状态是OK的。。

[root@controller ~]# openstack image list
+--------------------------------------+--------+--------+
| ID                                   | Name   | Status |
+--------------------------------------+--------+--------+
| 39b3f47d-a89d-4b19-821e-6f1107895eb7 | cirros | active |
+--------------------------------------+--------+--------+


回复

使用道具 举报

desehawk 发表于 2017-4-18 22:05:47
ERROR nova.scheduler.client.report
z这里应该是 nova.scheduler的问题,但是楼主的up状态。
是不是有僵尸进程什么的

回复

使用道具 举报

网络行者 发表于 2017-4-19 09:53:44
desehawk 发表于 2017-4-18 22:05
ERROR nova.scheduler.client.report
z这里应该是 nova.scheduler的问题,但是楼主的up状态。
是不是有僵 ...

服务我重启了,应该不会是服务问题。想问下你在部署创建镜像的时候镜像的目录会自动创建吗?
[root@controller ~]# . admin-openrc
[root@controller ~]# openstack image create "cirros" --file cirros-0.3.5-x86_64-disk.img --disk-format qcow2 --container-format bare --public
+------------------+------------------------------------------------------+
| Field            | Value                                                |
+------------------+------------------------------------------------------+
| checksum         | f8ab98ff5e73ebab884d80c9dc9c7290                     |
| container_format | bare                                                 |
| created_at       | 2017-04-19T01:51:00Z                                 |
| disk_format      | qcow2                                                |
| file             | /v2/images/5eef3527-6a2a-4653-a96f-898faf061122/file |
| id               | 5eef3527-6a2a-4653-a96f-898faf061122                 |
| min_disk         | 0                                                    |
| min_ram          | 0                                                    |
| name             | cirros                                               |
| owner            | eec17605de774ab1b794087b2ef902ce                     |
| protected        | False                                                |
| schema           | /v2/schemas/image                                    |
| size             | 13267968                                             |
| status           | active                                               |
| tags             |                                                      |
| updated_at       | 2017-04-19T01:51:01Z                                 |
| virtual_size     | None                                                 |
| visibility       | public                                               |
+------------------+------------------------------------------------------+
我执行这一步,但是发现系统上并没有/v2/images这个目录,也没有自动创建出来,不知道可是因为这个?创建的镜像我看是保存在/var/lib/glance/images/这个目录下。

回复

使用道具 举报

chaidamu 发表于 2017-4-26 14:36:50
我也遇到这个问题了.这是个文档中的bug.endpoint配置问题.bug链接参考:
https://bugs.launchpad.net/openstack-manuals/+bug/1683585
其实就是删除文档中的endpoint然后根据这个链接中建议的方式重新配置.就好了.
专门注册了个帐号来回复下2333
回复

使用道具 举报

网络行者 发表于 2017-6-6 21:23:51
chaidamu 发表于 2017-4-26 14:36
我也遇到这个问题了.这是个文档中的bug.endpoint配置问题.bug链接参考:
https://bugs.launchpad.net/opens ...

感谢,最近没上论坛才看到,这个问题后来也搜到是这个bug导致的,已经解决了。

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条