← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1664135] [NEW] Got none with improper name when querying resource provider list

 

Public bug reported:

Description
===========
I created one resource provider with name that included some special symbols,
like '$', '@' at etc. Then i queried RP list with the name for filtering,
and it returned none.

Steps to reproduce
==================
* POST http://**IP**/placement/resource_classes
{
    "name": "RP_test-dks?#¥@!##"
}
* GET http://172.23.28.30/placement/resource_providers?name=RP_test-dks?#¥@!##
{
  "resource_providers": []
}

Expected result
===============
Validate 'name' when creating RP with strict rules.

Actual result
=============
Only check if string.
        "name": {
            "type": "string",
            "maxLength": 200
        },

Environment
===========
1. nova version
[root@controller nova]# git log
commit 50d402821be7476eb58ccd791c50d8ed801e85eb
Author: Matt Riedemann <mriedem@xxxxxxxxxx>
Date: Wed Feb 8 10:23:14 2017 -0500

    Consider startup scenario in _get_compute_nodes_in_db

2. Which hypervisor did you use?
devstack + libvirt + kvm

** Affects: nova
     Importance: Undecided
         Status: New


** Tags: placement

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

Title:
  Got none with improper name when querying resource provider list

Status in OpenStack Compute (nova):
  New

Bug description:
  Description
  ===========
  I created one resource provider with name that included some special symbols,
  like '$', '@' at etc. Then i queried RP list with the name for filtering,
  and it returned none.

  Steps to reproduce
  ==================
  * POST http://**IP**/placement/resource_classes
  {
      "name": "RP_test-dks?#¥@!##"
  }
  * GET http://172.23.28.30/placement/resource_providers?name=RP_test-dks?#¥@!##
  {
    "resource_providers": []
  }

  Expected result
  ===============
  Validate 'name' when creating RP with strict rules.

  Actual result
  =============
  Only check if string.
          "name": {
              "type": "string",
              "maxLength": 200
          },

  Environment
  ===========
  1. nova version
  [root@controller nova]# git log
  commit 50d402821be7476eb58ccd791c50d8ed801e85eb
  Author: Matt Riedemann <mriedem@xxxxxxxxxx>
  Date: Wed Feb 8 10:23:14 2017 -0500

      Consider startup scenario in _get_compute_nodes_in_db

  2. Which hypervisor did you use?
  devstack + libvirt + kvm

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


Follow ups