分享

在公共网络上启动实例后,检查实例的状态: nova list 后 Status是error

Morata 发表于 2017-12-25 20:36:40 [显示全部楼层] 只看大图 回帖奖励 阅读模式 关闭右栏 22 21786
Morata 发表于 2017-12-25 23:10:49
本帖最后由 Morata 于 2017-12-25 23:18 编辑
nextuser 发表于 2017-12-25 22:15
官网的网络,都是有子网的,看你的贴图好像并没有子网。
这是M版的
https://docs.openstack.org/mitaka ...

这个提供者网络我配置了。
我配置了
5.PNG
回复

使用道具 举报

Morata 发表于 2017-12-25 23:11:53
sstutu 发表于 2017-12-25 22:21
从你列出来的内容来看,是没有问题的。查看下其它组件的错误日志

我真的新手,不太懂。能说说怎么查吗。谢谢了
回复

使用道具 举报

Morata 发表于 2017-12-25 23:16:52
nextuser 发表于 2017-12-25 22:15
官网的网络,都是有子网的,看你的贴图好像并没有子网。
这是M版的
https://docs.openstack.org/mitaka ...

创建虚拟网络这一步骤我已经配置完成了。
我是配置 公共网络 的。
5.PNG
回复

使用道具 举报

Morata 发表于 2017-12-25 23:34:44
回复审核好慢
回复

使用道具 举报

langke93 发表于 2017-12-26 05:24:04
Morata 发表于 2017-12-25 23:11
我真的新手,不太懂。能说说怎么查吗。谢谢了

最好按照第一个办法,可参考下面文章
openstack排除查找错误的两种方法
http://www.aboutyun.com/forum.php?mod=viewthread&tid=7241


回复

使用道具 举报

Morata 发表于 2017-12-26 11:18:30
langke93 发表于 2017-12-26 05:24
最好按照第一个办法,可参考下面文章
openstack排除查找错误的两种方法
http://www.aboutyun.com/forum ...

先求教下,我这个问题大概排查什么组件,我进入了nova的目录,但是有好多个,我不知排查那个文件日志。谢谢了。root@controller:/var/log/nova# ls
nova-api.log  nova-cert.log  nova-conductor.log  nova-consoleauth.log  nova-manage.log  nova-novncproxy.log  nova-scheduler.log


有这么多个。
回复

使用道具 举报

langke93 发表于 2017-12-26 12:07:30
Morata 发表于 2017-12-26 11:18
先求教下,我这个问题大概排查什么组件,我进入了nova的目录,但是有好多个,我不知排查那个文件日志。谢 ...

创建实例需要使用到各个组件,哪个不成功,都会造成实例错误。最可能的是下面三个。
nova-api.log   nova-conductor.log   nova-manage.log   nova-scheduler.log

当然其它的也不排除,而且你可能只看了一个节点的Nova组件。其它节点,其它组件也需要看下。
在安装的时候,其实这些都是需要每个验证。到最后在排错,会非常的困难。

推荐先参考此套视频
about云零基础openstack入门视频【Juno和kilo】
http://www.aboutyun.com/forum.php?mod=viewthread&tid=22781


回复

使用道具 举报

Morata 发表于 2017-12-26 16:09:37
langke93 发表于 2017-12-26 12:07
创建实例需要使用到各个组件,哪个不成功,都会造成实例错误。最可能的是下面三个。
nova-api.log   nov ...

nova-api.log信息能帮我看看吗。谢谢了

root@controller:~# vi /var/log/nova/nova-api.log
2017-12-18 07:22:59.726 4049 INFO oslo_service.periodic_task [-] Skipping periodic task _periodic_update_dns because its interval is negative
2017-12-18 07:22:59.753 4049 WARNING nova.api.ec2.cloud [-] Deprecated: The in tree EC2 API is deprecated as of Kilo release and may be removed in a future release. The stackforge ec2-api project http://git.openstack.org/cgit/stackforge/ec2-api/ is the target replacement for this functionality.
2017-12-18 07:23:00.740 4049 INFO nova.wsgi [-] ec2 listening on 0.0.0.0:8773
2017-12-18 07:23:00.740 4049 INFO oslo_service.service [-] Starting 1 workers
2017-12-18 07:23:00.742 4049 INFO oslo_service.service [-] Started child 4332
2017-12-18 07:23:00.832 4332 INFO nova.ec2.wsgi.server [-] (4332) wsgi starting up on http://0.0.0.0:8773/
2017-12-18 07:23:03.531 4049 INFO nova.api.openstack [-] Loaded extensions: ['extensions', 'flavors', 'image-metadata', 'image-size', 'images', 'ips', 'limits', 'os-access-ips', 'os-admin-actions', 'os-admin-password', 'os-agents', 'os-aggregates', 'os-assisted-volume-snapshots', 'os-attach-interfaces', 'os-availability-zone', 'os-baremetal-nodes', 'os-block-device-mapping', 'os-cells', 'os-certificates', 'os-cloudpipe', 'os-config-drive', 'os-console-auth-tokens', 'os-console-output', 'os-consoles', 'os-create-backup', 'os-deferred-delete', 'os-disk-config', 'os-evacuate', 'os-extended-availability-zone', 'os-extended-server-attributes', 'os-extended-status', 'os-extended-volumes', 'os-fixed-ips', 'os-flavor-access', 'os-flavor-extra-specs', 'os-flavor-manage', 'os-flavor-rxtx', 'os-floating-ip-dns', 'os-floating-ip-pools', 'os-floating-ips', 'os-floating-ips-bulk', 'os-fping', 'os-hide-server-addresses', 'os-hosts', 'os-hypervisors', 'os-instance-actions', 'os-instance-usage-audit-log', 'os-keypairs', 'os-lock-server', 'os-migrate-server', 'os-migrations', 'os-multinic', 'os-multiple-create', 'os-networks', 'os-networks-associate', 'os-pause-server', 'os-personality', 'os-preserve-ephemeral-rebuild', 'os-quota-class-sets', 'os-quota-sets', 'os-remote-consoles', 'os-rescue', 'os-scheduler-hints', 'os-security-group-default-rules', 'os-security-groups', 'os-server-diagnostics', 'os-server-external-events', 'os-server-groups', 'os-server-password', 'os-server-usage', 'os-services', 'os-shelve', 'os-simple-tenant-usage', 'os-suspend-server', 'os-tenant-networks', 'os-used-limits', 'os-user-data', 'os-virtual-interfaces', 'os-volumes', 'server-metadata', 'servers', 'versions']
2017-12-18 07:23:03.538 4049 WARNING keystonemiddleware.auth_token [-] Use of the auth_admin_prefix, auth_host, auth_port, auth_protocol, identity_uri, admin_token, admin_user, admin_password, and admin_tenant_name configuration options is deprecated in favor of auth_plugin and related options and may be removed in a future release.
2017-12-18 07:23:03.538 4049 WARNING keystonemiddleware.auth_token [-] Configuring admin URI using auth fragments. This is deprecated, use 'identity_uri' instead.
2017-12-18 07:23:03.540 4049 WARNING keystonemiddleware.auth_token [-] Configuring auth_uri to point to the public identity endpoint is required; clients may not be able to authenticate against an admin endpoint
2017-12-18 07:23:04.010 4049 INFO nova.api.openstack [-] Loaded extensions: ['extensions', 'flavors', 'image-metadata', 'image-size', 'images', 'ips', 'limits', 'os-access-ips', 'os-admin-actions', 'os-admin-password', 'os-agents', 'os-aggregates', 'os-assisted-volume-snapshots', 'os-attach-interfaces', 'os-availability-zone', 'os-baremetal-nodes', 'os-block-device-mapping', 'os-cells', 'os-certificates', 'os-cloudpipe', 'os-config-drive', 'os-console-auth-tokens', 'os-console-output', 'os-consoles', 'os-create-backup', 'os-deferred-delete', 'os-disk-config', 'os-evacuate', 'os-extended-availability-zone', 'os-extended-server-attributes', 'os-extended-status', 'os-extended-volumes', 'os-fixed-ips', 'os-flavor-access', 'os-flavor-extra-specs', 'os-flavor-manage', 'os-flavor-rxtx', 'os-floating-ip-dns', 'os-floating-ip-pools', 'os-floating-ips', 'os-floating-ips-bulk', 'os-fping', 'os-hide-server-addresses', 'os-hosts', 'os-hypervisors', 'os-instance-actions', 'os-instance-usage-audit-log', 'os-keypairs', 'os-lock-server', 'os-migrate-server', 'os-migrations', 'os-multinic', 'os-multiple-create', 'os-networks', 'os-networks-associate', 'os-pause-server', 'os-personality', 'os-preserve-ephemeral-rebuild', 'os-quota-class-sets', 'os-quota-sets', 'os-remote-consoles', 'os-rescue', 'os-scheduler-hints', 'os-security-group-default-rules', 'os-security-groups', 'os-server-diagnostics', 'os-server-external-events', 'os-server-groups', 'os-server-password', 'os-server-usage', 'os-services', 'os-shelve', 'os-simple-tenant-usage', 'os-suspend-server', 'os-tenant-networks', 'os-used-limits', 'os-user-data', 'os-virtual-interfaces', 'os-volumes', 'server-metadata', 'servers', 'versions']
2017-12-18 07:23:04.015 4049 WARNING keystonemiddleware.auth_token [-] Use of the auth_admin_prefix, auth_host, auth_port, auth_protocol, identity_uri, admin_token, admin_user, admin_password, and admin_tenant_name configuration options is deprecated in favor of auth_plugin and related options and may be removed in a future release.

回复

使用道具 举报

Morata 发表于 2017-12-26 16:16:05
langke93 发表于 2017-12-26 12:07
创建实例需要使用到各个组件,哪个不成功,都会造成实例错误。最可能的是下面三个。
nova-api.log   nov ...

nova-scheduler.log的信息。谢谢了

root@controller:~# vi /var/log/nova/nova-scheduler.log
2017-12-18 07:23:06.207 4311 WARNING oslo_config.cfg [req-dacdfef8-d190-4472-99f9-be52585dedb3 - - - - -] Option "lock_path" from group "DEFAULT" is deprecated. Use option "lock_path" from group "oslo_concurrency".
2017-12-18 07:23:06.221 4311 INFO nova.service [-] Starting scheduler node (version 12.0.6)
2017-12-18 07:23:06.334 4311 INFO oslo.messaging._drivers.impl_rabbit [req-11464b90-2908-47c9-92c2-901c279e3842 - - - - -] Connecting to AMQP server on localhost:5672
2017-12-18 07:23:06.348 4311 INFO oslo.messaging._drivers.impl_rabbit [req-11464b90-2908-47c9-92c2-901c279e3842 - - - - -] Connected to AMQP server on 127.0.0.1:5672
2017-12-18 07:23:35.456 4311 INFO nova.scheduler.host_manager [req-761a388b-f22e-479a-b2e9-07daba4b1ae9 - - - - -] Received a sync request from an unknown host 'compute1'. Re-created its InstanceList.
2017-12-18 07:23:48.797 4311 INFO nova.scheduler.host_manager [req-86b86d99-c892-47db-95c6-d44614e6a210 - - - - -] Successfully synced instances from host 'compute1'.
2017-12-18 07:25:52.897 4311 INFO nova.scheduler.host_manager [req-d71351a3-daa2-4701-a66e-6ef7d0a62bf8 - - - - -] Successfully synced instances from host 'compute1'.
2017-12-18 07:27:52.949 4311 INFO nova.scheduler.host_manager [req-4d622e13-64a6-4241-b074-9fecadb9ea2b - - - - -] Successfully synced instances from host 'compute1'.
2017-12-18 07:29:58.016 4311 INFO nova.scheduler.host_manager [req-ff8eb5e1-d234-49cd-943d-3e1370579a63 - - - - -] Successfully synced instances from host 'compute1'.
2017-12-18 07:32:03.213 4311 INFO nova.scheduler.host_manager [req-aa456768-47bf-457a-9211-6fb9897ce5d0 - - - - -] Successfully synced instances from host 'compute1'.
2017-12-18 07:34:07.154 4311 INFO nova.scheduler.host_manager [req-1ae21c07-007a-466b-933c-ba3df2532d75 - - - - -] Successfully synced instances from host 'compute1'.
2017-12-18 07:36:13.375 4311 INFO nova.scheduler.host_manager [req-493fdc99-b5d5-42d6-abcf-ea333ab6a315 - - - - -] Successfully synced instances from host 'compute1'.
2017-12-18 07:38:16.417 4311 INFO nova.scheduler.host_manager [req-eabf2bf5-a24f-420c-8ce9-ddfe3a528d78 - - - - -] Successfully synced instances from host 'compute1'.
2017-12-18 07:39:40.344 4311 INFO oslo_service.service [req-dacdfef8-d190-4472-99f9-be52585dedb3 - - - - -] Caught SIGTERM, exiting
2017-12-18 07:39:40.345 4311 WARNING oslo_messaging.server [req-dacdfef8-d190-4472-99f9-be52585dedb3 - - - - -] start/stop/wait must be called in the same thread
2017-12-18 07:39:40.345 4311 WARNING oslo_messaging.server [req-dacdfef8-d190-4472-99f9-be52585dedb3 - - - - -] start/stop/wait must be called in the same thread
2017-12-18 07:39:45.619 4671 INFO oslo_service.periodic_task [req-a35a986b-4623-4fef-96a6-2a86275e0159 - - - - -] Skipping periodic task _periodic_update_dns because its interval is negative
2017-12-18 07:39:45.628 4671 INFO nova.service [-] Starting scheduler node (version 12.0.6)
2017-12-18 07:39:45.666 4671 INFO oslo.messaging._drivers.impl_rabbit [req-52c8d9f0-d1bf-4854-acb2-20cb9dbc8ee2 - - - - -] Connecting to AMQP server on controller:5672
2017-12-18 07:39:45.673 4671 INFO oslo.messaging._drivers.impl_rabbit [req-52c8d9f0-d1bf-4854-acb2-20cb9dbc8ee2 - - - - -] Connected to AMQP server on controller:5672
2017-12-18 07:40:21.474 4671 INFO nova.scheduler.host_manager [req-463b4aad-4b67-4189-b378-49d703af7864 - - - - -] Received a sync request from an unknown host 'compute1'. Re-created its InstanceList.
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@2017-12-18 20:40:21.368 900 INFO oslo_service.periodic_task [req-e51ba2fc-6ab3-473e-b168-fe6f7e7f9989 - - - - -] Skipping periodic task _periodic_update_dns because its interval is negative
2017-12-18 20:40:21.466 900 INFO nova.service [-] Starting scheduler node (version 12.0.6)
2017-12-18 20:40:22.162 900 INFO oslo.messaging._drivers.impl_rabbit [req-063d6a8d-bd94-4137-b9b0-e95d49189cf4 - - - - -] Connecting to AMQP server on controller:5672

回复

使用道具 举报

langke93 发表于 2017-12-26 16:37:20
Morata 发表于 2017-12-26 16:16
nova-scheduler.log的信息。谢谢了

root@controller:~# vi /var/log/nova/nova-scheduler.log

这里面没有错误,你需要过滤下日志,找到error
用下面命令:
[mw_shl_code=bash,true]cat 日志文件|grep ERROR[/mw_shl_code]
回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条