← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1443890] Re: 'deleted' filter does not work properly for server list

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => liberty-1

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

Title:
  'deleted' filter does not work properly for server list

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  When calling server list with deleted filter set to true/false, it
  always returns deleted instances to admin.

  Steps to reproduce:

  Hit curl command with deleted='true', 'false' or any random string
  (e.g. deleted='abc')

  curl -g -i --cacert "/opt/stack/data/CA/int-ca/ca-chain.pem" -X GET
  http://10.69.4.150:8774/v2/58bad77b05ef44f8a9f5fc5089bab30e/servers/detail?deleted='true'
  -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X
  -Auth-Token: 32d57785556647d4b03e4cacf74e3aea"

  curl -g -i --cacert "/opt/stack/data/CA/int-ca/ca-chain.pem" -X GET
  http://10.69.4.150:8774/v2/58bad77b05ef44f8a9f5fc5089bab30e/servers/detail?deleted='false'
  -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X
  -Auth-Token: 32d57785556647d4b03e4cacf74e3aea"

  curl -g -i --cacert "/opt/stack/data/CA/int-ca/ca-chain.pem" -X GET
  http://10.69.4.150:8774/v2/58bad77b05ef44f8a9f5fc5089bab30e/servers/detail?deleted='abc'
  -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X
  -Auth-Token: 2c80485a73be4d439440702ae849ec61"

  
  Expected result:
  Server list should return deleted instances only when deleted filter contains any value from ('1', 't', 'true', 'on', 'y', 'yes').

  Actual result:
  All above commands returns deleted instances even deleted is passed as 'false', 'False' or 'abc'.

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


References