nova-client never return when removing floating ip

Bug #953924 reported by Lars Erik Pedersen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned

Bug Description

When I run "nova remove-floating-ip <id> <ip>" the command never returns, but it still succeed in actually removing the IP. When the command is interrupted by ctrl+c it prints a traceback

nova remove-floating-ip 142 192.168.10.132
^CTraceback (most recent call last):
  File "/usr/bin/nova", line 9, in <module>
    load_entry_point('python-novaclient==2012.1', 'console_scripts', 'nova')()
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 353, in main
    OpenStackComputeShell().main(sys.argv[1:])
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 304, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 982, in do_remove_floating_ip
    server.remove_floating_ip(args.address)
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line 80, in remove_floating_ip
    self.manager.remove_floating_ip(self, address)
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line 287, in remove_floating_ip
    self._action('removeFloatingIp', server, {'address': address})
  File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line 538, in _action
    return self.api.client.post(url, body={action: info})
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 133, in post
    return self._cs_request(url, 'POST', **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 118, in _cs_request
    **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 88, in request
    resp, body = super(HTTPClient, self).request(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1444, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1196, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1166, in _conn_request
    response = conn.getresponse()
  File "/usr/lib/python2.7/httplib.py", line 1027, in getresponse
    response.begin()
  File "/usr/lib/python2.7/httplib.py", line 407, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python2.7/httplib.py", line 365, in _read_status
    line = self.fp.readline()
  File "/usr/lib/python2.7/socket.py", line 430, in readline
    data = recv(1)
KeyboardInterrupt

Running Diablo 2011.3.1, with one controller, and three compute nodes. Multi_host and Vlan networking.

Tags: network
Revision history for this message
Mark McLoughlin (markmc) wrote :

It sounds like the nova-network service got stuck? Does e.g. 'nova floating-ip-list' work after you hit Ctrl-C? Is this reproducible?

If you can reproduce, try removing the iptables lock file from your lock_path dir and restart the nova-network service? Does that fix things? If so, we need to figure out why the lock is being leaked

Could you also set verbose=True and attach the network service log file?

tags: added: network
Changed in nova:
status: New → Incomplete
Revision history for this message
Thierry Carrez (ttx) wrote :

We cannot solve the issue you reported without more information. Could you please provide the requested information ?

Revision history for this message
Thierry Carrez (ttx) wrote :

This bug lacks the necessary information to effectively reproduce and fix it, therefore it has been closed. Feel free to reopen the bug by providing the requested information and set the bug status back to ''New''.

Changed in nova:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.