← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1738328] [NEW] Cannot specify "#" as name of a flavor

 

Public bug reported:

I ran following command with a master of devstack:

stack@indoh-test:~/devstack$ openstack flavor create --ram 2048 --disk 10 --vcpus 1 "#1"
+----------------------------+--------------------------------------+
| Field                      | Value                                |
+----------------------------+--------------------------------------+
| OS-FLV-DISABLED:disabled   | False                                |
| OS-FLV-EXT-DATA:ephemeral  | 0                                    |
| disk                       | 10                                   |
| id                         | 308fccc5-b8ff-4435-b022-29b3422ff5f4 |
| name                       | #1                                   |
| os-flavor-access:is_public | True                                 |
| properties                 |                                      |
| ram                        | 2048                                 |
| rxtx_factor                | 1.0                                  |
| swap                       |                                      |
| vcpus                      | 1                                    |
+----------------------------+--------------------------------------+

stack@indoh-test:~/devstack$ openstack flavor list
+--------------------------------------+-----------+-------+------+-----------+-------+-----------+
| ID                                   | Name      |   RAM | Disk | Ephemeral | VCPUs | Is Public |
+--------------------------------------+-----------+-------+------+-----------+-------+-----------+
| 1                                    | m1.tiny   |   512 |    1 |         0 |     1 | True      |
| 2                                    | m1.small  |  2048 |   20 |         0 |     1 | True      |
| 3                                    | m1.medium |  4096 |   40 |         0 |     2 | True      |
| 308fccc5-b8ff-4435-b022-29b3422ff5f4 | #1        |  2048 |   10 |         0 |     1 | True      |
| 4                                    | m1.large  |  8192 |   80 |         0 |     4 | True      |
| 5                                    | m1.xlarge | 16384 |  160 |         0 |     8 | True      |
| c1                                   | cirros256 |   256 |    0 |         0 |     1 | True      |
| d1                                   | ds512M    |   512 |    5 |         0 |     1 | True      |
| d2                                   | ds1G      |  1024 |   10 |         0 |     1 | True      |
| d3                                   | ds2G      |  2048 |   10 |         0 |     2 | True      |
| d4                                   | ds4G      |  4096 |   20 |         0 |     4 | True      |
+--------------------------------------+-----------+-------+------+-----------+-------+-----------+

However, we couldn't create the flavor which includes "#" as 'name' of
flavor.  Please refer attached an image.  I think it should be aligned
with CLI behavior.

** Affects: horizon
     Importance: Undecided
         Status: New


** Tags: nova

** Attachment added: "flavor.jpg"
   https://bugs.launchpad.net/bugs/1738328/+attachment/5022869/+files/flavor.jpg

** Tags removed: no
** Tags added: nova

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1738328

Title:
  Cannot specify "#" as name of a flavor

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  I ran following command with a master of devstack:

  stack@indoh-test:~/devstack$ openstack flavor create --ram 2048 --disk 10 --vcpus 1 "#1"
  +----------------------------+--------------------------------------+
  | Field                      | Value                                |
  +----------------------------+--------------------------------------+
  | OS-FLV-DISABLED:disabled   | False                                |
  | OS-FLV-EXT-DATA:ephemeral  | 0                                    |
  | disk                       | 10                                   |
  | id                         | 308fccc5-b8ff-4435-b022-29b3422ff5f4 |
  | name                       | #1                                   |
  | os-flavor-access:is_public | True                                 |
  | properties                 |                                      |
  | ram                        | 2048                                 |
  | rxtx_factor                | 1.0                                  |
  | swap                       |                                      |
  | vcpus                      | 1                                    |
  +----------------------------+--------------------------------------+

  stack@indoh-test:~/devstack$ openstack flavor list
  +--------------------------------------+-----------+-------+------+-----------+-------+-----------+
  | ID                                   | Name      |   RAM | Disk | Ephemeral | VCPUs | Is Public |
  +--------------------------------------+-----------+-------+------+-----------+-------+-----------+
  | 1                                    | m1.tiny   |   512 |    1 |         0 |     1 | True      |
  | 2                                    | m1.small  |  2048 |   20 |         0 |     1 | True      |
  | 3                                    | m1.medium |  4096 |   40 |         0 |     2 | True      |
  | 308fccc5-b8ff-4435-b022-29b3422ff5f4 | #1        |  2048 |   10 |         0 |     1 | True      |
  | 4                                    | m1.large  |  8192 |   80 |         0 |     4 | True      |
  | 5                                    | m1.xlarge | 16384 |  160 |         0 |     8 | True      |
  | c1                                   | cirros256 |   256 |    0 |         0 |     1 | True      |
  | d1                                   | ds512M    |   512 |    5 |         0 |     1 | True      |
  | d2                                   | ds1G      |  1024 |   10 |         0 |     1 | True      |
  | d3                                   | ds2G      |  2048 |   10 |         0 |     2 | True      |
  | d4                                   | ds4G      |  4096 |   20 |         0 |     4 | True      |
  +--------------------------------------+-----------+-------+------+-----------+-------+-----------+

  However, we couldn't create the flavor which includes "#" as 'name' of
  flavor.  Please refer attached an image.  I think it should be aligned
  with CLI behavior.

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


Follow ups