<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Thanks Nat. The script didn't help but removing lock files from the directory that you mentioned definitely helped.<br><br>Thanks,<br>Salman<br><br><div><div id="SkyDrivePlaceholder"></div>> Date: Sat, 14 Apr 2012 21:55:47 -0400<br>> Subject: Re: [Openstack] nova-network service stuck<br>> From: nathanael.i.burton@gmail.com<br>> To: salmanmk@live.com<br>> CC: openstack@lists.launchpad.net<br>> <br>> Salman,<br>> <br>> The location for the locks is determined by the --lock_path setting in<br>> nova.conf.  This is apparently set to the base path where the nova<br>> python code lives ($pybasedir) in devstack:<br>> <br>> 2012-04-14 21:35:42 DEBUG nova.service [-] lock_path : /opt/stack/nova<br>> from (pid=3700) wait /opt/stack/nova/nova/service.py:442<br>> <br>> Since, that directory has a bunch of important files in it, certainly<br>> don't follow my previous advice and remove all the files in that<br>> directory.  There is a bug<br>> (https://bugs.launchpad.net/nova/+bug/785955) about nova not cleaning<br>> up locks that should have been fixed in essex-4.  As part of the fix<br>> to that Mike Pittaro wrote a cleanup locks script that should be in<br>> /opt/stack/nova/tools/clean_file_locks.py.  Try running that and let<br>> us know if that fixed it.  If not look for *.lock files in<br>> /opt/stack/nova<br>> <br>> Thanks,<br>> <br>> Nate<br>> <br>> On Sat, Apr 14, 2012 at 9:07 PM, Salman Malik <salmanmk@live.com> wrote:<br>> > Thanks Nate for the quick reply.<br>> > There is no such directory on the system (I am using devstack if that<br>> > helps...)<br>> ><br>> > Thanks,<br>> > Salman<br>> ><br>> > ________________________________<br>> > Date: Sat, 14 Apr 2012 21:00:39 -0400<br>> > Subject: Re: [Openstack] nova-network service stuck<br>> > From: nathanael.i.burton@gmail.com<br>> > To: salmanmk@live.com<br>> > CC: openstack@lists.launchpad.net<br>> ><br>> ><br>> > Check in Nova's lock dir, on my system it's /var/lib/nova/tmp. Remove any<br>> > files in there and restart the services.<br>> > Nate<br>> > On Apr 14, 2012 8:56 PM, "Salman Malik" <salmanmk@live.com> wrote:<br>> ><br>> > Hi All,<br>> ><br>> > I am having problem with getting nova-service to work. The last line that is<br>> > shown on the screen is: "2012-04-14 19:42:39 DEBUG nova.utils [-] Attempting<br>> > to grab file lock "iptables" for method "apply"... from (pid=3649) inner<br>> > /opt/stack/nova/nova/utils.py:936" and the service is stuck at this point.<br>> > So when I do a nova-manage service list, network service turns out to be<br>> > unhappy. I haven't found much help on how to 'unlock' iptables file.<br>> ><br>> > Thoughts please ?<br>> ><br>> > Salman<br>> ><br>> > _______________________________________________<br>> > Mailing list: https://launchpad.net/~openstack<br>> > Post to     : openstack@lists.launchpad.net<br>> > Unsubscribe : https://launchpad.net/~openstack<br>> > More help   : https://help.launchpad.net/ListHelp<br>> ><br></div>                                        </div></body>
</html>