Bug #1083

Image with no PATH ends in inconsistency between cache and DB

Added by Carlos Martín about 8 years ago. Updated about 8 years ago.

Status:ClosedStart date:01/23/2012
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:Release 3.2.1
Resolution:fixed Pull request:
Affected Versions:OpenNebula 3.2

Description

The following template will create an image that can't be correctly deleted:

NAME = test
SOURCE = /path/to/something

This is the console output:

$ oneimage list
  ID USER     GROUP    NAME            SIZE TYPE          REGTIME PER STAT  RVMS
   1 oneadmin oneadmin test              0M   OS   01/23 09:27:59  No  rdy     0

$ oneimage delete 1

$ oneimage list
  ID USER     GROUP    NAME            SIZE TYPE          REGTIME PER STAT  RVMS
   1 oneadmin oneadmin test              0M   OS   01/23 09:27:59  No  err     0

$ oneimage show 1
[ImageInfo] Error getting image [1].

$ oneimage list
  ID USER     GROUP    NAME            SIZE TYPE          REGTIME PER STAT  RVMS
   1 oneadmin oneadmin test              0M   OS   01/23 09:27:59  No  err     0

And oned.log:

Mon Jan 23 09:28:19 2012 [ReM][D]: ImageDelete method invoked
Mon Jan 23 09:28:19 2012 [ImG][D]: Message received: LOG I 1 Command execution fail: /var/lib/one/remotes/image/fs/rm /boot/initrd.img-2.6.32-34-generic 1 1

Mon Jan 23 09:28:19 2012 [ImM][I]: Command execution fail: /var/lib/one/remotes/image/fs/rm /boot/initrd.img-2.6.32-34-generic 1 1
Mon Jan 23 09:28:19 2012 [ImG][D]: Message received: LOG I 1 rm: Removing /boot/initrd.img-2.6.32-34-generic from the image repository

Mon Jan 23 09:28:19 2012 [ImM][I]: rm: Removing /boot/initrd.img-2.6.32-34-generic from the image repository
Mon Jan 23 09:28:19 2012 [ImG][D]: Message received: LOG E 1 rm: Command "rm -r /boot/initrd.img-2.6.32-34-generic" failed.

Mon Jan 23 09:28:19 2012 [ImM][E]: rm: Command "rm -r /boot/initrd.img-2.6.32-34-generic" failed.
Mon Jan 23 09:28:19 2012 [ImG][D]: Message received: LOG E 1 rm: rm: cannot remove `/boot/initrd.img-2.6.32-34-generic': Permission denied

Mon Jan 23 09:28:19 2012 [ImM][E]: rm: rm: cannot remove `/boot/initrd.img-2.6.32-34-generic': Permission denied
Mon Jan 23 09:28:19 2012 [ImG][D]: Message received: LOG E 1 Error deleting /boot/initrd.img-2.6.32-34-generic

Mon Jan 23 09:28:19 2012 [ImM][E]: Error deleting /boot/initrd.img-2.6.32-34-generic
Mon Jan 23 09:28:19 2012 [ImG][D]: Message received: LOG I 1 ExitCode: 1

Mon Jan 23 09:28:19 2012 [ImM][I]: ExitCode: 1
Mon Jan 23 09:28:19 2012 [ImG][D]: Message received: RM FAILURE 1 Error deleting /boot/initrd.img-2.6.32-34-generic

Mon Jan 23 09:28:19 2012 [ImM][E]: Error removing image from repository. Remove file   to completely delete image.: Error deleting /boot/initrd.img-2.6.32-34-generic
Mon Jan 23 09:28:22 2012 [ReM][D]: ImagePoolInfo method invoked
Mon Jan 23 09:28:27 2012 [ReM][D]: ImageInfo method invoked
Mon Jan 23 09:28:27 2012 [ReM][E]: [ImageInfo] Error getting image [1].
Mon Jan 23 09:28:36 2012 [ReM][D]: ImagePoolInfo method invoked

Associated revisions

Revision 8c348ca2
Added by Carlos Martín about 8 years ago

Bug #1083: Better handling of RM FAILURE in ImageManagerDriver

Revision 5a67956e
Added by Carlos Martín about 8 years ago

Bug #1083: Better handling of RM FAILURE in ImageManagerDriver
(cherry picked from commit 8c348ca259e90c953e07a5101c499e6c1b1ea98e)

History

#1 Updated by Carlos Martín about 8 years ago

  • Status changed from New to Closed
  • Target version set to Release 3.2.1
  • Resolution set to fixed

Also available in: Atom PDF