← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1188358] Re: "nova delete" exception when "filters_path" directory doesn't exist

 

*** This bug is a duplicate of bug 970893 ***
    https://bugs.launchpad.net/bugs/970893

** This bug has been marked a duplicate of bug 970893
   nova: dhcp_release command not found on RHEL6

-- 
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/1188358

Title:
  "nova delete" exception when "filters_path" directory doesn't exist

Status in OpenStack Compute (Nova):
  New

Bug description:
  Platform
  ========

  - OS::

        [root ~]# uname -a
        Linux XXX.YYY.ZZZ 2.6.32-358.6.1.el6.x86_64 #1 SMP Fri Mar 29 16:51:51 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux
        [root ~]# cat /etc/redhat-release 
        Red Hat Enterprise Linux Server release 6.4 (Santiago)

  
  - OpenStack::

        [root ~]# rpm -qa 'openstack*'
        openstack-nova-scheduler-2012.2.3-1.el6.noarch
        openstack-nova-network-2012.2.3-1.el6.noarch
        openstack-nova-2012.2.3-1.el6.noarch
        openstack-utils-2013.1-1.el6.noarch
        openstack-nova-common-2012.2.3-1.el6.noarch
        openstack-nova-volume-2012.2.3-1.el6.noarch
        openstack-nova-console-2012.2.3-1.el6.noarch
        openstack-nova-cert-2012.2.3-1.el6.noarch
        openstack-nova-api-2012.2.3-1.el6.noarch
        openstack-cinder-2012.2.3-1.el6.noarch
        openstack-keystone-2012.2.3-4.el6.noarch
        openstack-dashboard-2012.2.3-1.el6.noarch
        openstack-nova-compute-2012.2.3-1.el6.noarch
        openstack-nova-objectstore-2012.2.3-1.el6.noarch
        openstack-quantum-2012.2.3-2.el6.noarch
        openstack-glance-2012.2.3-1.el6.noarch
      

  
  Steps to reproduce
  ==================

  #. If running a different os/platform add an inexistent directory to 
     */etc/nova/rootwrap.conf*.

  #. Create an instance.

  #. Attempt delete using ``nova delete``.

  #. Check */var/log/nova/compute.log*::

        2013-06-06 12:56:23 10745 TRACE nova.openstack.common.rpc.amqp Stderr: 
        'Traceback (most recent call last):\n  File "/usr/bin/nova-rootwrap", 
        line 89, in <module>\n    env=filtermatch.get_environment(userargs))\n  
        File "/usr/lib64/python2
        .6/subprocess.py", line 639, in __init__\n    errread, errwrite)\n  File 
        "/usr/lib64/python2.6/subprocess.py", line 1228, in _execute_child\n    
        raise child_exception\nOSError: [Errno 2] No such file or directory\n'
        2013-06-06 12:56:23 10745 TRACE nova.openstack.common.rpc.amqp Traceback 
        (most recent call last):

  #. ``nova list`` shows the "deleted" instance as "ACTIVE".


  Solution
  ========

  #. Remove the missing directory from */etc/nova/rootwrap.conf*::

        < filters_path=/etc/nova/rootwrap.d,/usr/share/nova/rootwrap
        ---
        > filters_path=/usr/share/nova/rootwrap 

  #. Attempt to delete.

  #. Check log::

        2013-06-06 13:03:37 AUDIT nova.compute.manager 
        [req-3d584705-a6e2-45a6-99d8-2c244548f63a 
        507c88590f1346f38004fba8c6a99f01 d104a47607bb4a7c9db341650d32fab5] 
        [instance: 8384fbf9-353b-4819-9d61-bc80da532915] Terminating instance

        2013-06-06 13:03:37 4411 INFO nova.openstack.common.rpc.impl_qpid [-] 
        Connected to AMQP server on localhost:5672

        2013-06-06 13:03:39 4411 INFO nova.virt.libvirt.driver [-] [instance: 
        8384fbf9-353b-4819-9d61-bc80da532915] Instance destroyed successfully.

        2013-06-06 13:03:40 INFO nova.virt.libvirt.driver 
        [req-3d584705-a6e2-45a6-99d8-2c244548f63a 
        507c88590f1346f38004fba8c6a99f01 d104a47607bb4a7c9db341650d32fab5] 
        [instance: 8384fbf9-353b-4819-9d61-bc80da532915] Deleting instance files 
        /var/lib/nova/instances/instance-00000026

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1188358/+subscriptions