Re: [one-users] Source image stuck in state CLONE and target image stuck in state LOCKED

2015-02-04 Thread Gerry O'Brien
Hi,

What needs to be set in the image_pool table body column to turn
state CLONE and LOCKED off?

Regards,
Gerry



On 03/02/2015 18:17, Gerry O'Brien wrote:
 Hi,

 Below is the XML of the source image database entry. If I change
 STATE to 1, CLONING_OPS to 0 and set CLONES/, will this fix the
 problem? If so, is there any utility that will allow me edit the XML and
 then update the database or will I have to update the database manually?

 Gerry



 IMAGE
   ID446/ID
   UID0/UID
   GID0/GID
   UNAMEoneadmin/UNAME
   GNAMEoneadmin/GNAME
   NAMEW7-VLab-BASE [No 3DSmax]/NAME
   PERMISSIONS
 OWNER_U1/OWNER_U
 OWNER_M1/OWNER_M
 OWNER_A0/OWNER_A
 GROUP_U0/GROUP_U
 GROUP_M0/GROUP_M
 GROUP_A0/GROUP_A
 OTHER_U0/OTHER_U
 OTHER_M0/OTHER_M
 OTHER_A0/OTHER_A
   /PERMISSIONS
   TYPE0/TYPE
   DISK_TYPE0/DISK_TYPE
   PERSISTENT1/PERSISTENT
   REGTIME1411742280/REGTIME
  
 SOURCE![CDATA[/var/lib/one/datastores/1/1bec29452ead3d88c626f9c66aa849e1]]/SOURCE
  
 PATH![CDATA[/var/lib/one/datastores/1/a1637afc98e4be57bb30fa87e6ee5694]]/PATH
   FSTYPE![CDATA[]]/FSTYPE
   SIZE1/SIZE
   STATE6/STATE
   RUNNING_VMS0/RUNNING_VMS
   CLONING_OPS1/CLONING_OPS
   CLONING_ID-1/CLONING_ID
   DATASTORE_ID1/DATASTORE_ID
   DATASTOREdefault/DATASTORE
   VMS/
   CLONES
 ID756/ID
   /CLONES
   TEMPLATE
 DEV_PREFIX![CDATA[hd]]/DEV_PREFIX
 DRIVER![CDATA[qcow2]]/DRIVER
 FSTYPE![CDATA[]]/FSTYPE
   /TEMPLATE
 /IMAGE




 On 03/02/2015 15:45, Gerry O'Brien wrote:
 Hi,

 The oned (4.6.2) daemon was restarted during a clone and now the
 source image is stuck in state CLONE and target image is stuck in state
 LOCKED. The actual Linux copy completed so both images are OK.

 How to I reset them to the READY state? Is there an oneimage command
 or does the database have to be modified. If the database has to be
 modified are there maintenance commands to do this?

 I could recreate the image form the Linux file but there are
 template references to the existing OpenNebula image. Also the image is
 100GB (Windows!).

 Any help would be appreciated.

 Regards,
 Gerry




-- 
Gerry O'Brien

Systems Manager
School of Computer Science and Statistics
Trinity College Dublin
Dublin 2
IRELAND

00 353 1 896 1341

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Source image stuck in state CLONE and target image stuck in state LOCKED

2015-02-03 Thread Daniel Dehennin
Gerry O'Brien ge...@scss.tcd.ie writes:

 Hi,

Hello,

 The oned (4.6.2) daemon was restarted during a clone and now the
 source image is stuck in state CLONE and target image is stuck in state
 LOCKED. The actual Linux copy completed so both images are OK.

 How to I reset them to the READY state? Is there an oneimage command
 or does the database have to be modified. If the database has to be
 modified are there maintenance commands to do this?

I got this one time, I tried to disable then enable the images and then
everything was OK.

Regards.
-- 
Daniel Dehennin
Récupérer ma clef GPG: gpg --recv-keys 0xCC1E9E5B7A6FE2DF
Fingerprint: 3E69 014E 5C23 50E8 9ED6  2AAD CC1E 9E5B 7A6F E2DF


signature.asc
Description: PGP signature
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Source image stuck in state CLONE and target image stuck in state LOCKED

2015-02-03 Thread Gerry O'Brien
Hi Daniel,

  Thanks for the reply. Sorry, but that didn't work. It won't let me
change state while an IMAGE is in CLONE or LOCKED.

  I have an image which is unusable because I cannot change its state.

Regards,
Gerry

On 04/02/2015 06:56, Daniel Dehennin wrote:
 Gerry O'Brien ge...@scss.tcd.ie writes:

 Hi,
 Hello,

 The oned (4.6.2) daemon was restarted during a clone and now the
 source image is stuck in state CLONE and target image is stuck in state
 LOCKED. The actual Linux copy completed so both images are OK.

 How to I reset them to the READY state? Is there an oneimage command
 or does the database have to be modified. If the database has to be
 modified are there maintenance commands to do this?
 I got this one time, I tried to disable then enable the images and then
 everything was OK.

 Regards.


 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


-- 
Gerry O'Brien

Systems Manager
School of Computer Science and Statistics
Trinity College Dublin
Dublin 2
IRELAND

00 353 1 896 1341

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Source image stuck in state CLONE and target image stuck in state LOCKED

2015-02-03 Thread Gerry O'Brien
Hi,

The oned (4.6.2) daemon was restarted during a clone and now the
source image is stuck in state CLONE and target image is stuck in state
LOCKED. The actual Linux copy completed so both images are OK.

How to I reset them to the READY state? Is there an oneimage command
or does the database have to be modified. If the database has to be
modified are there maintenance commands to do this?

I could recreate the image form the Linux file but there are
template references to the existing OpenNebula image. Also the image is
100GB (Windows!).

Any help would be appreciated.

Regards,
Gerry

-- 
Gerry O'Brien

Systems Manager
School of Computer Science and Statistics
Trinity College Dublin
Dublin 2
IRELAND

00 353 1 896 1341

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Source image stuck in state CLONE and target image stuck in state LOCKED

2015-02-03 Thread Gerry O'Brien
Hi,

Below is the XML of the source image database entry. If I change
STATE to 1, CLONING_OPS to 0 and set CLONES/, will this fix the
problem? If so, is there any utility that will allow me edit the XML and
then update the database or will I have to update the database manually?

Gerry



IMAGE
  ID446/ID
  UID0/UID
  GID0/GID
  UNAMEoneadmin/UNAME
  GNAMEoneadmin/GNAME
  NAMEW7-VLab-BASE [No 3DSmax]/NAME
  PERMISSIONS
OWNER_U1/OWNER_U
OWNER_M1/OWNER_M
OWNER_A0/OWNER_A
GROUP_U0/GROUP_U
GROUP_M0/GROUP_M
GROUP_A0/GROUP_A
OTHER_U0/OTHER_U
OTHER_M0/OTHER_M
OTHER_A0/OTHER_A
  /PERMISSIONS
  TYPE0/TYPE
  DISK_TYPE0/DISK_TYPE
  PERSISTENT1/PERSISTENT
  REGTIME1411742280/REGTIME
 
SOURCE![CDATA[/var/lib/one/datastores/1/1bec29452ead3d88c626f9c66aa849e1]]/SOURCE
 
PATH![CDATA[/var/lib/one/datastores/1/a1637afc98e4be57bb30fa87e6ee5694]]/PATH
  FSTYPE![CDATA[]]/FSTYPE
  SIZE1/SIZE
  STATE6/STATE
  RUNNING_VMS0/RUNNING_VMS
  CLONING_OPS1/CLONING_OPS
  CLONING_ID-1/CLONING_ID
  DATASTORE_ID1/DATASTORE_ID
  DATASTOREdefault/DATASTORE
  VMS/
  CLONES
ID756/ID
  /CLONES
  TEMPLATE
DEV_PREFIX![CDATA[hd]]/DEV_PREFIX
DRIVER![CDATA[qcow2]]/DRIVER
FSTYPE![CDATA[]]/FSTYPE
  /TEMPLATE
/IMAGE




On 03/02/2015 15:45, Gerry O'Brien wrote:
 Hi,

 The oned (4.6.2) daemon was restarted during a clone and now the
 source image is stuck in state CLONE and target image is stuck in state
 LOCKED. The actual Linux copy completed so both images are OK.

 How to I reset them to the READY state? Is there an oneimage command
 or does the database have to be modified. If the database has to be
 modified are there maintenance commands to do this?

 I could recreate the image form the Linux file but there are
 template references to the existing OpenNebula image. Also the image is
 100GB (Windows!).

 Any help would be appreciated.

 Regards,
 Gerry



-- 
Gerry O'Brien

Systems Manager
School of Computer Science and Statistics
Trinity College Dublin
Dublin 2
IRELAND

00 353 1 896 1341

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org