← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1320273] Re: _resize files are not cleaned when we destroy instances after failed resize because of disk space

 

no reproduce

** Changed in: nova
       Status: Incomplete => Invalid

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

Title:
  _resize files are not cleaned when we destroy instances after failed
  resize because of disk space

Status in OpenStack Compute (Nova):
  Invalid

Bug description:
  I configured my setup to work with preallocation. 
  I resized instances and they fail to resize on disk space. 
  when you destroy the instances the _resize file is not removed from the /var/lib/nova/instances dir:

  [root@orange-vdsf instances(keystone_admin)]# ls -l /var/lib/nova/instances/
  total 52
  drwxr-xr-x 2 nova nova 4096 May 16 17:34 1a98eefe-ba41-49b7-931a-ebe54796e343
  drwxr-xr-x 2 nova nova 4096 May 16 17:33 1a98eefe-ba41-49b7-931a-ebe54796e343_resize
  drwxr-xr-x 2 nova nova 4096 May 16 17:32 5f87fd7e-4f85-4c41-ab12-3bf680160281
  drwxr-xr-x 2 nova nova 4096 May 16 17:29 5f87fd7e-4f85-4c41-ab12-3bf680160281_resize
  drwxr-xr-x 2 nova nova 4096 May 16 17:39 7610109e-b631-40a5-9fa0-1bf150560503
  drwxr-xr-x 2 nova nova 4096 May 16 17:38 7610109e-b631-40a5-9fa0-1bf150560503_resize
  drwxr-xr-x 2 nova nova 4096 May 16 17:31 a4aefac9-feb8-40d7-9228-1df6a02d9e13
  drwxr-xr-x 2 nova nova 4096 May 16 17:29 a4aefac9-feb8-40d7-9228-1df6a02d9e13_resize
  drwxr-xr-x 2 nova nova 4096 May 16 13:20 _base
  -rw-r--r-- 1 nova nova    0 May 16 17:48 compute_nodes
  drwxr-xr-x 2 nova nova 4096 May 16 17:40 d1e28a92-3ba2-402e-a798-ff8ff9a6bd98
  drwxr-xr-x 2 nova nova 4096 May 16 17:38 d1e28a92-3ba2-402e-a798-ff8ff9a6bd98_resize
  drwxr-xr-x 2 nova nova 4096 May 15 11:09 locks
  drwxr-xr-x 2 nova nova 4096 May 15 18:34 snapshots
  [root@orange-vdsf instances(keystone_admin)]# 
  [root@orange-vdsf instances(keystone_admin)]# 
  [root@orange-vdsf instances(keystone_admin)]# 
  [root@orange-vdsf instances(keystone_admin)]# 
  [root@orange-vdsf instances(keystone_admin)]# 
  [root@orange-vdsf instances(keystone_admin)]# 
  [root@orange-vdsf instances(keystone_admin)]# ls -l /var/lib/nova/instances/
  total 32
  drwxr-xr-x 2 nova nova 4096 May 16 17:33 1a98eefe-ba41-49b7-931a-ebe54796e343_resize
  drwxr-xr-x 2 nova nova 4096 May 16 17:29 5f87fd7e-4f85-4c41-ab12-3bf680160281_resize
  drwxr-xr-x 2 nova nova 4096 May 16 17:38 7610109e-b631-40a5-9fa0-1bf150560503_resize
  drwxr-xr-x 2 nova nova 4096 May 16 17:29 a4aefac9-feb8-40d7-9228-1df6a02d9e13_resize
  drwxr-xr-x 2 nova nova 4096 May 16 13:20 _base
  -rw-r--r-- 1 nova nova    0 May 16 17:48 compute_nodes
  drwxr-xr-x 2 nova nova 4096 May 16 17:38 d1e28a92-3ba2-402e-a798-ff8ff9a6bd98_resize
  drwxr-xr-x 2 nova nova 4096 May 15 11:09 locks
  drwxr-xr-x 2 nova nova 4096 May 15 18:34 snapshots
  [root@orange-vdsf instances(keystone_admin)]# 

  
  running qemu-img info I can see that the disk is not deleted as well:

  [root@orange-vdsf instances(keystone_admin)]# qemu-img info /var/lib/nova/instances/1a98eefe-ba41-49b7-931a-ebe54796e343_resize/disk
  image: /var/lib/nova/instances/1a98eefe-ba41-49b7-931a-ebe54796e343_resize/disk
  file format: raw
  virtual size: 1.0G (1073741824 bytes)
  disk size: 1.0G
  [root@orange-vdsf instances(keystone_admin)]# 

  (the instances were launched with tiny flavour which is 1GB).

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


References