分享

在openstack部署了实例,状态总是“ERROR” (三)

我用7台物理机(control节点,neutron节点,compute节点2台,ceph节点3台)测试环境
scheduler.log日志有写日志,实在看不出来是哪里错了
麻烦大家了!

[root@controller nova]# neutron net-list
+--------------------------------------+----------+-------------------------------------------------------+
| id                                   | name     | subnets                                               |
+--------------------------------------+----------+-------------------------------------------------------+
| 91aeba1e-a0ed-4db9-bad7-fdc3d021312f | ext-net  | 5955793d-2d37-487a-a55a-e28f3f2bd77e 192.168.100.0/24 |
| a321fd56-0976-4dae-b725-75016c302365 | demo-net | a86cf5df-3b9f-4c0b-978c-380db3e884fd 172.32.16.0/24   |
+--------------------------------------+----------+-------------------------------------------------------+
[root@controller nova]# nova boot --flavor m1.tiny --image cirros-0.3.2-x86_64 --nic net-id=a321fd56-0976-4dae-b725-75016c302365  --security-group default --key-name demo-key vm-cirros-vol

[root@controller nova]# nova list
+--------------------------------------+---------------+--------+------------+-------------+----------+
| ID                                   | Name          | Status | Task State | Power State | Networks |
+--------------------------------------+---------------+--------+------------+-------------+----------+
| 79ea5c38-5114-4c86-8c5a-2d4110b37290 | vm-cirros-vol | ERROR  | -          | NOSTATE     |          |
+--------------------------------------+---------------+--------+------------+-------------+----------+


[root@controller nova]# tail scheduler.log
2015-04-01 09:53:25.136 30605 ERROR nova.scheduler.filter_scheduler [req-28a57de2-4c53-4634-b732-0ee50fa39c2e 07ca03740fef4388b0b1407ad0a1bbe1 9b807b0dd7de4bba87c3e4704d9fa5e9] [instance: 79ea5c38-5114-4c86-8c5a-2d4110b37290] Error from last host: computer02 (node computer02): [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1328, in _build_instance\n    set_access_ip=set_access_ip)\n', u'  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 393, in decorated_function\n    return function(self, context, *args, **kwargs)\n', u'  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1740, in _spawn\n    LOG.exception(_(\'Instance failed to spawn\'), instance=instance)\n', u'  File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__\n    six.reraise(self.type_, self.value, self.tb)\n', u'  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1737, in _spawn\n    block_device_info)\n', u'  File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 2294, in spawn\n    block_device_info)\n', u'  File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 3695, in _create_domain_and_network\n    power_on=power_on)\n', u'  File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 3596, in _create_domain\n    domain.XMLDesc(0))\n', u'  File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__\n    six.reraise(self.type_, self.value, self.tb)\n', u'  File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 3591, in _create_domain\n    domain.createWithFlags(launch_flags)\n', u'  File "/usr/lib/python2.6/site-packages/eventlet/tpool.py", line 179, in doit\n    result = proxy_call(self._autowrap, f, *args, **kwargs)\n', u'  File "/usr/lib/python2.6/site-packages/eventlet/tpool.py", line 139, in proxy_call\n    rv = execute(f,*args,**kwargs)\n', u'  File "/usr/lib/python2.6/site-packages/eventlet/tpool.py", line 77, in tworker\n    rv = meth(*args,**kwargs)\n', u'  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 716, in createWithFlags\n    if ret == -1: raise libvirtError (\'virDomainCreateWithFlags() failed\', dom=self)\n', u'libvirtError: internal error Process exited while reading console log output: char device redirected to /dev/pts/2\n2015-04-01T01:53:23.645919Z qemu-kvm: -drive file=rbd:volumes/79ea5c38-5114-4c86-8c5a-2d4110b37290_disk:id=volumes:key=AQBLz/9UKHBIHxAAAz+GlsSBCHd897MNdA/wIQ==:auth_supported=cephx\\;none:mon_host=10.0.1.153\\:6789,if=none,id=drive-virtio-disk0,format=raw,cache=none: could not open disk image rbd:volumes/79ea5c38-5114-4c86-8c5a-2d4110b37290_disk:id=volumes:key=AQBLz/9UKHBIHxAAAz+GlsSBCHd897MNdA/wIQ==:auth_supported=cephx\\;none:mon_host=10.0.1.153\\:6789: No such file or directory\n\n']
2015-04-01 09:53:37.749 30605 ERROR nova.scheduler.filter_scheduler [req-28a57de2-4c53-4634-b732-0ee50fa39c2e 07ca03740fef4388b0b1407ad0a1bbe1 9b807b0dd7de4bba87c3e4704d9fa5e9] [instance: 79ea5c38-5114-4c86-8c5a-2d4110b37290] Error from last host: computer01 (node computer01): [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1328, in _build_instance\n    set_access_ip=set_access_ip)\n', u'  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 393, in decorated_function\n    return function(self, context, *args, **kwargs)\n', u'  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1740, in _spawn\n    LOG.exception(_(\'Instance failed to spawn\'), instance=instance)\n', u'  File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__\n    six.reraise(self.type_, self.value, self.tb)\n', u'  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1737, in _spawn\n    block_device_info)\n', u'  File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 2294, in spawn\n    block_device_info)\n', u'  File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 3695, in _create_domain_and_network\n    power_on=power_on)\n', u'  File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 3596, in _create_domain\n    domain.XMLDesc(0))\n', u'  File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__\n    six.reraise(self.type_, self.value, self.tb)\n', u'  File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 3591, in _create_domain\n    domain.createWithFlags(launch_flags)\n', u'  File "/usr/lib/python2.6/site-packages/eventlet/tpool.py", line 179, in doit\n    result = proxy_call(self._autowrap, f, *args, **kwargs)\n', u'  File "/usr/lib/python2.6/site-packages/eventlet/tpool.py", line 139, in proxy_call\n    rv = execute(f,*args,**kwargs)\n', u'  File "/usr/lib/python2.6/site-packages/eventlet/tpool.py", line 77, in tworker\n    rv = meth(*args,**kwargs)\n', u'  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 716, in createWithFlags\n    if ret == -1: raise libvirtError (\'virDomainCreateWithFlags() failed\', dom=self)\n', u'libvirtError: internal error Process exited while reading console log output: char device redirected to /dev/pts/2\n2015-04-01T01:53:36.128238Z qemu-kvm: -drive file=rbd:volumes/79ea5c38-5114-4c86-8c5a-2d4110b37290_disk:id=volumes:key=AQBLz/9UKHBIHxAAAz+GlsSBCHd897MNdA/wIQ==:auth_supported=cephx\\;none:mon_host=10.0.1.153\\:6789,if=none,id=drive-virtio-disk0,format=raw,cache=none: could not open disk image rbd:volumes/79ea5c38-5114-4c86-8c5a-2d4110b37290_disk:id=volumes:key=AQBLz/9UKHBIHxAAAz+GlsSBCHd897MNdA/wIQ==:auth_supported=cephx\\;none:mon_host=10.0.1.153\\:6789: No such file or directory\n\n']
2015-04-01 09:53:37.755 30605 WARNING nova.scheduler.driver [req-28a57de2-4c53-4634-b732-0ee50fa39c2e 07ca03740fef4388b0b1407ad0a1bbe1 9b807b0dd7de4bba87c3e4704d9fa5e9] [instance: 79ea5c38-5114-4c86-8c5a-2d4110b37290] Setting instance to ERROR state.




已有(12)人评论

跳转到指定楼层
bioger_hit 发表于 2015-4-7 15:13:48
普通租户能否看到外部网段。
最好把管理员的外部网段共享
neutron net-create ext-net --shared --router:external True \
  --provider:physical_network external --provider:network_type flat

回复

使用道具 举报

wonitazansa 发表于 2015-4-7 16:37:23
我这个命令没有用的外网地方呀
nova boot --flavor m1.tiny --image cirros-0.3.2-x86_64 --nic net-id=a321fd56-0976-4dae-b725-75016c302365  --security-group default --key-name demo-key vm-cirros-vol

普通租户能否看到外部网段。这部怎么查看
回复

使用道具 举报

bioger_hit 发表于 2015-4-7 16:55:30
wonitazansa 发表于 2015-4-7 16:37
我这个命令没有用的外网地方呀
nova boot --flavor m1.tiny --image cirros-0.3.2-x86_64 --nic net-id=a3 ...



普通租户通过这个命令,查看不到管理员的外网ip地址
neutron net-list




1.png

如上图,看不到外网,可能就会出现,
进入管理员网络,设置共享

gongxiang.png

就能看到了

2.png






回复

使用道具 举报

wonitazansa 发表于 2015-4-7 17:59:49
谢谢回答,本身就是共享
[root@controller nova]# neutron net-list
+--------------------------------------+----------+-------------------------------------------------------+
| id                                   | name     | subnets                                               |
+--------------------------------------+----------+-------------------------------------------------------+
| 91aeba1e-a0ed-4db9-bad7-fdc3d021312f | ext-net  | 5955793d-2d37-487a-a55a-e28f3f2bd77e 192.168.100.0/24 |
| a321fd56-0976-4dae-b725-75016c302365 | demo-net | a86cf5df-3b9f-4c0b-978c-380db3e884fd 172.32.16.0/24   |
+--------------------------------------+----------+-------------------------------------------------------+
[root@controller nova]#
回复

使用道具 举报

arsenduan 发表于 2015-4-7 18:34:06
wonitazansa 发表于 2015-4-7 17:59
谢谢回答,本身就是共享
[root@controller nova]# neutron net-list
+--------------------------------- ...


看下服务都正常
  1. nova service-list
复制代码


回复

使用道具 举报

arsenduan 发表于 2015-4-7 18:37:43
wonitazansa 发表于 2015-4-7 17:59
谢谢回答,本身就是共享
[root@controller nova]# neutron net-list
+--------------------------------- ...

nova配置文件配置的virt-type=kvm还是qemu

还有镜像是否正常,可以尝试更换一个。
回复

使用道具 举报

wonitazansa 发表于 2015-4-8 06:52:59
谢谢回复
[root@controller nova]# nova service-list
+------------------+------------+----------+---------+-------+----------------------------+-----------------+
| Binary           | Host       | Zone     | Status  | State | Updated_at                 | Disabled Reason |
+------------------+------------+----------+---------+-------+----------------------------+-----------------+
| nova-cert        | controller | internal | enabled | up    | 2015-04-07T22:40:49.000000 | -               |
| nova-consoleauth | controller | internal | enabled | up    | 2015-04-07T22:40:45.000000 | -               |
| nova-scheduler   | controller | internal | enabled | up    | 2015-04-07T22:40:47.000000 | -               |
| nova-conductor   | controller | internal | enabled | up    | 2015-04-07T22:40:45.000000 | -               |
| nova-compute     | computer01 | nova     | enabled | up    | 2015-04-07T22:40:43.000000 | None            |
| nova-compute     | computer02 | nova     | enabled | up    | 2015-04-07T22:40:46.000000 | None            |
+------------------+------------+----------+---------+-------+----------------------------+-----------------+

[root@controller nova]# vi /etc/nova/nova.conf
virt_type=kvm


怎么看镜像是否正常?

回复

使用道具 举报

jixianqiuxue 发表于 2015-4-9 00:01:23
wonitazansa 发表于 2015-4-8 06:52
谢谢回复
[root@controller nova]# nova service-list
+------------------+------------+----------+--- ...




glance image-list
回复

使用道具 举报

desehawk 发表于 2015-4-9 00:34:20
本帖最后由 desehawk 于 2015-4-9 00:36 编辑
wonitazansa 发表于 2015-4-8 06:52
谢谢回复
[root@controller nova]# nova service-list
+------------------+------------+----------+--- ...


楼主是否安装qemu-img和qemu-kvm包http://ceph.com/packages/ceph-extras/rpm/centos6.3/x86_64/
参考:
Ceph与OpenStack整合文档
回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条