← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1324005] [NEW] use real disk size to consider whether it's a resize down

 

Public bug reported:

I have following flavor

jichen@controller:~$ nova flavor-list
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
| ID | Name      | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
| 1  | m1.tiny   | 512       | 1    | 0         |      | 1     | 1.0         | True      |
| 11 | t.test1   | 512       | 1    | 5         |      | 1     | 1.0         | True      |
| 12 | t.test2   | 512       | 1    | 2         |      | 1     | 1.0         | True      |

I use 
nova boot --config-drive True --flavor 11 --key_name mykey --image 99ebce05-c5d2-4829-bc25-004a8d3f3efb  --nic net-id=45f1ac55-e6bc-444e-be8b-3112c84646a8  --ephemeral size=1 t9

to boot a new instance ,so the eph disk is 1 G now

if we resize to flavor 12, it will fail now, but we can compare the real
eph disk size and see whether we an resize it or not

** Affects: nova
     Importance: Undecided
     Assignee: jichenjc (jichenjc)
         Status: New

** Changed in: nova
     Assignee: (unassigned) => jichenjc (jichenjc)

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

Title:
  use real disk size to consider whether it's a resize down

Status in OpenStack Compute (Nova):
  New

Bug description:
  I have following flavor

  jichen@controller:~$ nova flavor-list
  +----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
  | ID | Name      | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
  +----+-----------+-----------+------+-----------+------+-------+-------------+-----------+
  | 1  | m1.tiny   | 512       | 1    | 0         |      | 1     | 1.0         | True      |
  | 11 | t.test1   | 512       | 1    | 5         |      | 1     | 1.0         | True      |
  | 12 | t.test2   | 512       | 1    | 2         |      | 1     | 1.0         | True      |

  I use 
  nova boot --config-drive True --flavor 11 --key_name mykey --image 99ebce05-c5d2-4829-bc25-004a8d3f3efb  --nic net-id=45f1ac55-e6bc-444e-be8b-3112c84646a8  --ephemeral size=1 t9

  to boot a new instance ,so the eph disk is 1 G now

  if we resize to flavor 12, it will fail now, but we can compare the
  real eph disk size and see whether we an resize it or not

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


Follow ups

References