Failed to run instance because thread creation failed.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I failed to run instance because the thread couldn't be created. The followings are related messages and version I used.
Messages from nova-network.log:
2011-03-11 10:28:48,404 DEBUG nova [-] network_topic : network from (pid=7830) serve /usr/lib/
2011-03-11 10:28:48,404 AUDIT nova [-] Starting network node (version 2011.2-
2011-03-11 10:28:48,414 CRITICAL nova [-] failed to create /usr/lib/
(nova): TRACE: Traceback (most recent call last):
(nova): TRACE: File "/usr/bin/
(nova): TRACE: service.serve()
(nova): TRACE: File "/usr/lib/
(nova): TRACE: x.start()
(nova): TRACE: File "/usr/lib/
(nova): TRACE: self.manager.
(nova): TRACE: File "/usr/lib/
(nova): TRACE: super(VlanManager, self).init_host()
(nova): TRACE: File "/usr/lib/
(nova): TRACE: self.driver.
(nova): TRACE: File "/usr/lib/
(nova): TRACE: iptables_
(nova): TRACE: File "/usr/lib/
(nova): TRACE: with lock:
(nova): TRACE: File "/usr/lib/
(nova): TRACE: self.acquire()
(nova): TRACE: File "/usr/lib/
(nova): TRACE: raise LockFailed("failed to create %s" % self.unique_name)
(nova): TRACE: LockFailed: failed to create /usr/lib/
Version of nova-network: 2011.2~
The contents of nova.conf:
--sql_connectio
--s3_host=ubuntu7
--rabbit_
--cc_host=
--ec2_url=http://
--daemonize=1
--dhcpbridge_
--dhcpbridge=
--FAKE_
--ca_path=
--keys_
--networks_
--instances_
--images_
--buckets_
--libvirt_type=kvm
--network_
--vlan_
--logdir=
--verbose
--volume_
--fixed_
--network_size=64
Hi Guan. Can you try setting adding this to your nova.conf file:
--lock_path=/tmp
You can use any directory the nova user can write to.
The latest code requires a writable lock file directory.