yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #85695
[Bug 1921979] [NEW] qemu: qemu_thread_create: Resource temporarily unavailable
Public bug reported:
Description
===========
When I start my nova-compute. It always reports errors, breaks resources update. Here is the log:
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager [req-1eed160c-86ea-4d86-abe1-bf80daa1315d - - - - -] Error updating resources for node hw-arm-controller-1.: InvalidDiskInfo: 磁盘信息文件无效:对 /var/lib/libvirt/images/ubuntu18.04-2.qcow2 执行 qemu-img 失败:Unexpected error while running command.
Command: /usr/bin/python2 -m oslo_concurrency.prlimit --as=1073741824 --cpu=30 -- env LC_ALL=C LANG=C qemu-img info /var/lib/libvirt/images/ubuntu18.04-2.qcow2 --force-share
Exit code: -6
Stdout: u''
Stderr: u'qemu: qemu_thread_create: Resource temporarily unavailable\n'
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager Traceback (most recent call last):
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 7408, in update_available_resource_for_node
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager rt.update_available_resource(context, nodename)
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 706, in update_available_resource
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager resources = self.driver.get_available_resource(nodename)
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 7090, in get_available_resource
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager disk_over_committed = self._get_disk_over_committed_size_total()
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 8640, in _get_disk_over_committed_size_total
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager config, block_device_info)
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 8542, in _get_instance_disk_info_from_config
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager qemu_img_info = disk_api.get_disk_info(path)
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/virt/disk/api.py", line 136, in get_disk_info
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager return images.qemu_img_info(path)
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/virt/images.py", line 88, in qemu_img_info
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager raise exception.InvalidDiskInfo(reason=msg)
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager InvalidDiskInfo: 磁盘信息文件无效:对 /var/lib/libvirt/images/ubuntu18.04-2.qcow2 执行 qemu-img 失败:Unexpected error while running command.
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager Command: /usr/bin/python2 -m oslo_concurrency.prlimit --as=1073741824 --cpu=30 -- env LC_ALL=C LANG=C qemu-img info /var/lib/libvirt/images/ubuntu18.04-2.qcow2 --force-share
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager Exit code: -6
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager Stdout: u''
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager Stderr: u'qemu: qemu_thread_create: Resource temporarily unavailable\n'
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager
2021-03-30 11:13:46.587 2100913 INFO oslo_service.service [-] Caught SIGINT signal, instantaneous exiting
It seems a bug which fixed in ironic.
https://storyboard.openstack.org/#!/story/2007644#comment-158124
It worked well when I merge this patch.
Steps to reproduce
==================
Note: There are several instances launched by virsh, without nova. When I cleaned them, it worked well.
systemctl restart nova-compute
Expected result
===============
nova-compute start and without error.
Actual result
=============
Compute service start but with error log
Environment
===========
1. Found in Q release, but still exists in master.
2. qemu v2.12.0
3. Arm server
4. NeoKylin Linux Advanced Server release V7Update6
** Affects: nova
Importance: Undecided
Assignee: wangzhh (wangzhh)
Status: New
** Changed in: nova
Assignee: (unassigned) => wangzhh (wangzhh)
--
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/1921979
Title:
qemu: qemu_thread_create: Resource temporarily unavailable
Status in OpenStack Compute (nova):
New
Bug description:
Description
===========
When I start my nova-compute. It always reports errors, breaks resources update. Here is the log:
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager [req-1eed160c-86ea-4d86-abe1-bf80daa1315d - - - - -] Error updating resources for node hw-arm-controller-1.: InvalidDiskInfo: 磁盘信息文件无效:对 /var/lib/libvirt/images/ubuntu18.04-2.qcow2 执行 qemu-img 失败:Unexpected error while running command.
Command: /usr/bin/python2 -m oslo_concurrency.prlimit --as=1073741824 --cpu=30 -- env LC_ALL=C LANG=C qemu-img info /var/lib/libvirt/images/ubuntu18.04-2.qcow2 --force-share
Exit code: -6
Stdout: u''
Stderr: u'qemu: qemu_thread_create: Resource temporarily unavailable\n'
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager Traceback (most recent call last):
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 7408, in update_available_resource_for_node
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager rt.update_available_resource(context, nodename)
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 706, in update_available_resource
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager resources = self.driver.get_available_resource(nodename)
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 7090, in get_available_resource
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager disk_over_committed = self._get_disk_over_committed_size_total()
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 8640, in _get_disk_over_committed_size_total
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager config, block_device_info)
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 8542, in _get_instance_disk_info_from_config
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager qemu_img_info = disk_api.get_disk_info(path)
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/virt/disk/api.py", line 136, in get_disk_info
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager return images.qemu_img_info(path)
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/virt/images.py", line 88, in qemu_img_info
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager raise exception.InvalidDiskInfo(reason=msg)
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager InvalidDiskInfo: 磁盘信息文件无效:对 /var/lib/libvirt/images/ubuntu18.04-2.qcow2 执行 qemu-img 失败:Unexpected error while running command.
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager Command: /usr/bin/python2 -m oslo_concurrency.prlimit --as=1073741824 --cpu=30 -- env LC_ALL=C LANG=C qemu-img info /var/lib/libvirt/images/ubuntu18.04-2.qcow2 --force-share
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager Exit code: -6
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager Stdout: u''
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager Stderr: u'qemu: qemu_thread_create: Resource temporarily unavailable\n'
2021-03-30 11:13:45.604 2100913 ERROR nova.compute.manager
2021-03-30 11:13:46.587 2100913 INFO oslo_service.service [-] Caught SIGINT signal, instantaneous exiting
It seems a bug which fixed in ironic.
https://storyboard.openstack.org/#!/story/2007644#comment-158124
It worked well when I merge this patch.
Steps to reproduce
==================
Note: There are several instances launched by virsh, without nova. When I cleaned them, it worked well.
systemctl restart nova-compute
Expected result
===============
nova-compute start and without error.
Actual result
=============
Compute service start but with error log
Environment
===========
1. Found in Q release, but still exists in master.
2. qemu v2.12.0
3. Arm server
4. NeoKylin Linux Advanced Server release V7Update6
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1921979/+subscriptions