Ask Your Question
0

delete VM but still see it running in compute node

asked 2014-08-11 16:32:59 -0500

murad gravatar image

updated 2014-08-12 13:18:57 -0500

When I run nova delete <instance-id> I don't see any error and next time I run nova list I don't see the deleted instance

However, the instance is still running in the compute node, I know that because I can see it when I run virsh --list all withing the compute node.

I also see this error in openvswitch in openvswitch-agent.log in compute node. So I'm not sure if it is related to the above problem or not.

The error below happens exactly after I restart the services. Am I having a problem with neutron user?

Command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ovs-vsctl', '--timeout=10', 'list-ports', 'br-int'] Exit code: 1 Stdout: '' Stderr: '2014-08-11T12:59:37Z|00001|reconnect|WARN|unix:/var/run/openvswitch/db.sock: connection attempt failed (No such file or directory)\novs-vsctl: unix:/var/run/openvswitch/db.sock: database connection failed (No such file or directory)\n' 2014-08-11 12:59:37.086 35164 ERROR neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] Error while processing VIF ports 2014-08-11 12:59:37.086 35164 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent Traceback (most recent call last): 2014-08-11 12:59:37.086 35164 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent File "/usr/lib/python2.7/dist-packages/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py", line 1213, in rpc_loop 2014-08-11 12:59:37.086 35164 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent port_info = self.scan_ports(ports, updated_ports_copy) 2014-08-11 12:59:37.086 35164 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent File "/usr/lib/python2.7/dist-packages/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py", line 816, in scan_ports 2014-08-11 12:59:37.086 35164 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent cur_ports = self.int_br.get_vif_port_set() 2014-08-11 12:59:37.086 35164 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ovs_lib.py", line 311, in get_vif_port_set 2014-08-11 12:59:37.086 35164 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent port_names = self.get_port_name_list() 2014-08-11 12:59:37.086 35164 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ovs_lib.py", line 267, in get_port_name_list 2014-08-11 12:59:37.086 35164 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent res = self.run_vsctl(["list-ports", self.br_name], check_error=True) 2014-08-11 12:59:37.086 35164 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ovs_lib.py", line 74, in run_vsctl 2014-08-11 12:59:37.086 35164 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent ctxt.reraise = False 2014-08-11 12:59:37.086 35164 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent File "/usr/lib/python2.7/dist-packages/neutron/openstack/common/excutils.py", line 82, in __exit__ 2014-08-11 12:59:37.086 35164 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent six.reraise(self.type_, self.value, self.tb) 2014-08-11 12:59:37.086 35164 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/ovs_lib.py", line 67, in run_vsctl 2014-08-11 12:59:37.086 35164 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent return utils.execute(full_args, root_helper ... (more)

edit retag flag offensive close merge delete

Comments

Try to restart your openstack services.

SGPJ gravatar imageSGPJ ( 2014-08-12 02:19:50 -0500 )edit

you might need to restart openvswitch service

T u l gravatar imageT u l ( 2014-08-12 14:45:23 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-08-12 13:22:32 -0500

achutha gravatar image

delete the database what you are using in the compute node and again sync it.

edit flag offensive delete link more

Comments

These are the services I am restarting:

service openvswitch-switch restart

service nova-compute restart

service neutron-plugin-openvswitch-agent restart

murad gravatar imagemurad ( 2014-08-12 14:49:50 -0500 )edit

achutha, What database exactly? Neutron's or OVS's ? If it is OVS, how do I do that ? Thanks,

murad gravatar imagemurad ( 2014-08-12 15:53:19 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-08-11 16:32:59 -0500

Seen: 174 times

Last updated: Aug 12 '14