Bug #4520

Disk snapshot fails (qcow2)

Added by Stefan Kooman almost 5 years ago. Updated almost 5 years ago.

Status:ClosedStart date:06/06/2016
Priority:NormalDue date:
Assignee:Javi Fontan% Done:

0%

Category:Drivers - Storage
Target version:Release 5.0
Resolution:worksforme Pull request:
Affected Versions:OpenNebula 4.14

Description

On one cloud environment we are unable to create a Disk snapshot (re-installed opennebula 4.14-2 with latest packages, fails on Trusty and Xenial hypervisors):

Most interesting part:

/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: /var/lib/one/remotes/tm/qcow2/../../datastore/xpath.rb:66:in `block in <main>': undefin
ed method `elements' for nil:NilClass (NoMethodError)
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: /var/lib/one/remotes/tm/qcow2/../../datastore/xpath.rb:66:in `block in <main>': undefin
ed method `elements' for nil:NilClass (NoMethodError)
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: from /var/lib/one/remotes/tm/qcow2/../../datastore/xpath.rb:60:in `each'
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: from /var/lib/one/remotes/tm/qcow2/../../datastore/xpath.rb:60:in `each'
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: from /var/lib/one/remotes/tm/qcow2/../../datastore/xpath.rb:60:in `<main>'
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: from /var/lib/one/remotes/tm/qcow2/../../datastore/xpath.rb:60:in `<main>'

The generated xml to create live disk snapshot:

/tmp# cat snapshot-395-1-0

<domainsnapshot>
<name>1-0</name>
<description>snap 1-0</description>
<disks>
</disks>
</domainsnapshot>

Full Logs:

/var/log/syslog.3.gz:Jun 3 08:38:02 opennebula-frontend oned1860: [VM 395][Z0][VM][I]: New state is ACTIVE
/var/log/syslog.3.gz:Jun 3 08:38:02 opennebula-frontend oned1860: [VM 395][Z0][VM][I]: New state is ACTIVE
/var/log/syslog.3.gz:Jun 3 08:38:02 opennebula-frontend oned1860: [VM 395][Z0][VM][I]: New LCM state is DISK_SNAPSHOT
/var/log/syslog.3.gz:Jun 3 08:38:02 opennebula-frontend oned1860: [VM 395][Z0][VM][I]: New LCM state is DISK_SNAPSHOT
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: Command execution fail: /var/lib/one/remotes/tm/qcow2/snap_create_live hv1.domain:/var/lib/one/datastores/100/395/disk.1 0 395 112
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: Command execution fail: /var/lib/one/remotes/tm/qcow2/snap_create_live hv1.domain:/var/lib/one/datastores/100/395/disk.1 0 395 112
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: /var/lib/one/remotes/tm/qcow2/../../datastore/xpath.rb:66:in `block in <main>': undefin
ed method `elements' for nil:NilClass (NoMethodError)
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: /var/lib/one/remotes/tm/qcow2/../../datastore/xpath.rb:66:in `block in <main>': undefin
ed method `elements' for nil:NilClass (NoMethodError)
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: from /var/lib/one/remotes/tm/qcow2/../../datastore/xpath.rb:60:in `each'
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: from /var/lib/one/remotes/tm/qcow2/../../datastore/xpath.rb:60:in `each'
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: from /var/lib/one/remotes/tm/qcow2/../../datastore/xpath.rb:60:in `<main>'
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: from /var/lib/one/remotes/tm/qcow2/../../datastore/xpath.rb:60:in `<main>'
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][E]: snap_create_live: Command "set -ex
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][E]: snap_create_live: Command "set -ex
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: mkdir -p ".snap"
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: mkdir -p ".snap"
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: PREVIOUS_SNAP=$(readlink /var/lib/one/datastores/100/395/disk.1)
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: PREVIOUS_SNAP=$(readlink /var/lib/one/datastores/100/395/disk.1)
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: # The file must be created beforehand or libvirt complains with
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: # The file must be created beforehand or libvirt complains with
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: # "permission denied"
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: # "permission denied"
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: touch .snap/1
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: touch .snap/1
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: # Temporary xml file
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: # Temporary xml file
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: FILENAME="/tmp/snapshot-395-1-0"
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: FILENAME="/tmp/snapshot-395-1-0"
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: echo "
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: echo "
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: <domainsnapshot>
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: <domainsnapshot>
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: <name>1-0</name>
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: <name>1-0</name>
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: <description>snap 1-0</description>
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: <description>snap 1-0</description>
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: <disks>
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: <disks>
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: </disks>
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: </disks>
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: </domainsnapshot>" > $FILENAME
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: </domainsnapshot>" > $FILENAME
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: if virsh -c domfsfreeze ; then
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: if virsh -c domfsfreeze ; then
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: trap "virsh -c domfsthaw " EXIT TERM INT HUP
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: trap "virsh -c domfsthaw " EXIT TERM INT HUP
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: fi
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: fi
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: virsh -c qemu:///system snapshot-create --disk-only --atomic --xmlfile $FILENAME
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: virsh -c qemu:///system snapshot-create --disk-only --atomic --xmlfile $FILENAME
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: rm ${FILENAME}
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: rm ${FILENAME}
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: qemu-img rebase -u -b "${PREVIOUS_SNAP}" ".snap/1"
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: qemu-img rebase -u -b "${PREVIOUS_SNAP}" ".snap/1"
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: ln -sf .snap/1 /var/lib/one/datastores/100/395/disk.1" failed: Failed to add the host to the list of known hosts (/var/lib/one/.ssh/known_hosts).
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: ln -sf .snap/1 /var/lib/one/datastores/100/395/disk.1" failed: Failed to add the host to the list of known hosts (/var/lib/one/.ssh/known_hosts).
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: + mkdir -p .snap
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: + mkdir -p .snap
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: + readlink /var/lib/one/datastores/100/395/disk.1
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: + readlink /var/lib/one/datastores/100/395/disk.1
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: + PREVIOUS_SNAP=/var/lib/one/datastores/112/915449036c2a2bdfe608b698a842e770.snap/0
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: + PREVIOUS_SNAP=/var/lib/one/datastores/112/915449036c2a2bdfe608b698a842e770.snap/0
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: + touch .snap/1
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: + touch .snap/1
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: + FILENAME=/tmp/snapshot-395-1-0
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: + FILENAME=/tmp/snapshot-395-1-0
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: + echo
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: + echo
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: <domainsnapshot>
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: <domainsnapshot>
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: <name>1-0</name>
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: <name>1-0</name>
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: <description>snap 1-0</description>
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: <description>snap 1-0</description>
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: <disks>
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: <disks>
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: </disks>
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: </disks>
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: </domainsnapshot>
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: </domainsnapshot>
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: + virsh -c domfsfreeze
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: + virsh -c domfsfreeze
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: error: failed to connect to the hypervisor
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: error: failed to connect to the hypervisor
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: error: no connection driver available for domfsfreeze
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: error: no connection driver available for domfsfreeze
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: + virsh -c qemu:///system snapshot-create --disk-only --atomic --xmlfile /tmp/snapshot-395-1-0
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: + virsh -c qemu:///system snapshot-create --disk-only --atomic --xmlfile /tmp/snapshot-395-1-0
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: error: command 'snapshot-create' requires <domain> option
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: error: command 'snapshot-create' requires <domain> option
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][E]: Error creating snapshot .snap/1
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][E]: Error creating snapshot .snap/1
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: ExitCode: 1
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: ExitCode: 1
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: Failed to execute transfer manager driver operation: tm_snap_create_live.
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][I]: Failed to execute transfer manager driver operation: tm_snap_create_live.
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][E]: Error creating new disk snapshot: Error creating snapshot .snap/1
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VMM][E]: Error creating new disk snapshot: Error creating snapshot .snap/1
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VM][I]: New LCM state is RUNNING
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][VM][I]: New LCM state is RUNNING
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][LCM][E]: Could not take disk snapshot.
/var/log/syslog.3.gz:Jun 3 08:38:03 opennebula-frontend oned1860: [VM 395][Z0][LCM][E]: Could not take disk snapshot.

History

#1 Updated by Ruben S. Montero almost 5 years ago

  • Category set to Drivers - Storage
  • Target version set to Release 5.0

#2 Updated by Javi Fontan almost 5 years ago

It seems that the VM lacks some information. Can you send the output of onevm show -x 395?

#3 Updated by Stefan Kooman almost 5 years ago

Hi Javier, here the output of onevm show -x 395:

<VM>
<ID>395</ID>
<UID>0</UID>
<GID>100</GID>
<UNAME>oneadmin</UNAME>
<GNAME>BARNY</GNAME>
<NAME>name-of-vm.</NAME>
<PERMISSIONS>
<OWNER_U>1</OWNER_U>
<OWNER_M>1</OWNER_M>
<OWNER_A>0</OWNER_A>
<GROUP_U>0</GROUP_U>
<GROUP_M>0</GROUP_M>
<GROUP_A>0</GROUP_A>
<OTHER_U>0</OTHER_U>
<OTHER_M>0</OTHER_M>
<OTHER_A>0</OTHER_A>
</PERMISSIONS>
<LAST_POLL>1465211696</LAST_POLL>
<STATE>3</STATE>
<LCM_STATE>3</LCM_STATE>
<PREV_STATE>3</PREV_STATE>
<PREV_LCM_STATE>3</PREV_LCM_STATE>
<RESCHED>0</RESCHED>
<STIME>1464793698</STIME>
<ETIME>0</ETIME>
<DEPLOY_ID>one-395</DEPLOY_ID>
<MONITORING>
<CPU><![CDATA[0.5]]></CPU>
<DISK_SIZE>
<ID><![CDATA0]></ID>
<SIZE><![CDATA15818]></SIZE>
</DISK_SIZE>
<DISK_SIZE>
<ID><![CDATA1]></ID>
<SIZE><![CDATA28831]></SIZE>
</DISK_SIZE>
<MEMORY><![CDATA2097152]></MEMORY>
<NETRX><![CDATA40882302]></NETRX>
<NETTX><![CDATA601811]></NETTX>
</MONITORING>
<TEMPLATE>
<AUTOMATIC_REQUIREMENTS><![CDATA[CLUSTER_ID = 100 & !(PUBLIC_CLOUD = YES)]]></AUTOMATIC_REQUIREMENTS>
<CPU><![CDATA[0.1]]></CPU>
<DISK>
<CLONE><![CDATA[NO]]></CLONE>
<CLONE_TARGET><![CDATA[SYSTEM]]></CLONE_TARGET>
<CLUSTER_ID><![CDATA100]></CLUSTER_ID>
<DATASTORE><![CDATA[BARNY_5_images_ds]]></DATASTORE>
<DATASTORE_ID><![CDATA112]></DATASTORE_ID>
<DEV_PREFIX><![CDATA[vd]]></DEV_PREFIX>
<DISK_ID><![CDATA0]></DISK_ID>
<DISK_SNAPSHOT_TOTAL_SIZE><![CDATA0]></DISK_SNAPSHOT_TOTAL_SIZE>
<DRIVER><![CDATA[qcow2]]></DRIVER>
<IMAGE><![CDATA[name-of-vm]]></IMAGE>
<IMAGE_ID><![CDATA240]></IMAGE_ID>
<IMAGE_UNAME><![CDATA[oneadmin]]></IMAGE_UNAME>
<LN_TARGET><![CDATA[NONE]]></LN_TARGET>
<PERSISTENT><![CDATA[YES]]></PERSISTENT>
<READONLY><![CDATA[NO]]></READONLY>
<SAVE><![CDATA[YES]]></SAVE>
<SIZE><![CDATA16384]></SIZE>
<SOURCE><![CDATA[/var/lib/one//datastores/112/fb32fb512ce78804ec161dca3f163a97]]></SOURCE>
<TARGET><![CDATA[vda]]></TARGET>
<TM_MAD><![CDATA[qcow2]]></TM_MAD>
<TYPE><![CDATA[FILE]]></TYPE>
</DISK>
<DISK>
<CLONE><![CDATA[NO]]></CLONE>
<CLONE_TARGET><![CDATA[SYSTEM]]></CLONE_TARGET>
<CLUSTER_ID><![CDATA100]></CLUSTER_ID>
<DATASTORE><![CDATA[BARNY_5_images_ds]]></DATASTORE>
<DATASTORE_ID><![CDATA112]></DATASTORE_ID>
<DEV_PREFIX><![CDATA[vd]]></DEV_PREFIX>
<DISK_ID><![CDATA1]></DISK_ID>
<DISK_SNAPSHOT_TOTAL_SIZE><![CDATA0]></DISK_SNAPSHOT_TOTAL_SIZE>
<DRIVER><![CDATA[qcow2]]></DRIVER>
<IMAGE><![CDATA[name-of-vm-disk2]]></IMAGE>
<IMAGE_ID><![CDATA241]></IMAGE_ID>
<IMAGE_UNAME><![CDATA[oneadmin]]></IMAGE_UNAME>
<LN_TARGET><![CDATA[NONE]]></LN_TARGET>
<PERSISTENT><![CDATA[YES]]></PERSISTENT>
<READONLY><![CDATA[NO]]></READONLY>
<SAVE><![CDATA[YES]]></SAVE>
<SIZE><![CDATA30720]></SIZE>
<SOURCE><![CDATA[/var/lib/one//datastores/112/915449036c2a2bdfe608b698a842e770]]></SOURCE>
<TARGET><![CDATA[vdb]]></TARGET>
<TM_MAD><![CDATA[qcow2]]></TM_MAD>
<TYPE><![CDATA[FILE]]></TYPE>
</DISK>
<FEATURES>
<ACPI><![CDATA[yes]]></ACPI>
<PAE><![CDATA[no]]></PAE>
</FEATURES>
<GRAPHICS>
<LISTEN><![CDATA[0.0.0.0]]></LISTEN>
<PORT><![CDATA6395]></PORT>
<TYPE><![CDATA[VNC]]></TYPE>
</GRAPHICS>
<MEMORY><![CDATA2048]></MEMORY>
<NIC>
<AR_ID><![CDATA6]></AR_ID>
<BRIDGE><![CDATA[uplink]]></BRIDGE>
<CLUSTER_ID><![CDATA100]></CLUSTER_ID>
<IP><![CDATA[172.17.140.100]]></IP>
<MAC><![CDATA[02:01:ac:11:8c:64]]></MAC>
<NETWORK><![CDATA[v-dmz-admin2]]></NETWORK>
<NETWORK_ID><![CDATA5]></NETWORK_ID>
<NETWORK_UNAME><![CDATA[oneadmin]]></NETWORK_UNAME>
<NIC_ID><![CDATA0]></NIC_ID>
<SECURITY_GROUPS><![CDATA0]></SECURITY_GROUPS>
<VLAN><![CDATA[YES]]></VLAN>
<VLAN_ID><![CDATA140]></VLAN_ID>
</NIC>
<OS>
<ARCH><![CDATA[x86_64]]></ARCH>
<BOOT><![CDATA[hd]]></BOOT>
</OS>
<SECURITY_GROUP_RULE>
<PROTOCOL><![CDATA[ALL]]></PROTOCOL>
<RULE_TYPE><![CDATA[OUTBOUND]]></RULE_TYPE>
<SECURITY_GROUP_ID><![CDATA0]></SECURITY_GROUP_ID>
<SECURITY_GROUP_NAME><![CDATA[default]]></SECURITY_GROUP_NAME>
</SECURITY_GROUP_RULE>
<SECURITY_GROUP_RULE>
<PROTOCOL><![CDATA[ALL]]></PROTOCOL>
<RULE_TYPE><![CDATA[INBOUND]]></RULE_TYPE>
<SECURITY_GROUP_ID><![CDATA0]></SECURITY_GROUP_ID>
<SECURITY_GROUP_NAME><![CDATA[default]]></SECURITY_GROUP_NAME>
</SECURITY_GROUP_RULE>
<TEMPLATE_ID><![CDATA94]></TEMPLATE_ID>
<VCPU><![CDATA2]></VCPU>
<VMID><![CDATA395]></VMID>
</TEMPLATE>
<USER_TEMPLATE>
<ERROR><![CDATA[Fri Jun 3 11:57:36 2016 : Error creating new disk snapshot: Error creating snapshot .snap/1]]></ERROR>
<SCHED_DS_REQUIREMENTS><![CDATA[NAME=BARNY_1_system_ds]]></SCHED_DS_REQUIREMENTS>
<SCHED_REQUIREMENTS><![CDATA[PLATFORM="PRODUCTIE"]]></SCHED_REQUIREMENTS>
</USER_TEMPLATE>
<HISTORY_RECORDS>
<HISTORY>
<OID>395</OID>
<SEQ>0</SEQ>
<HOSTNAMEhv1.domain</HOSTNAME>
<HID>1</HID>
<CID>100</CID>
<STIME>1464793719</STIME>
<ETIME>1464794339</ETIME>
<VMMMAD>kvm</VMMMAD>
<VNMMAD>ovswitch</VNMMAD>
<TMMAD>shared</TMMAD>
<DS_LOCATION>/var/lib/one/datastores</DS_LOCATION>
<DS_ID>100</DS_ID>
<PSTIME>1464793719</PSTIME>
<PETIME>1464793720</PETIME>
<RSTIME>1464793720</RSTIME>
<RETIME>1464794339</RETIME>
<ESTIME>0</ESTIME>
<EETIME>0</EETIME>
<REASON>2</REASON>
<ACTION>25</ACTION>
</HISTORY>
<HISTORY>
<OID>395</OID>
<SEQ>1</SEQ>
<HOSTNAMEhv1.domain</HOSTNAME>
<HID>1</HID>
<CID>100</CID>
<STIME>1464794339</STIME>
<ETIME>1464852839</ETIME>
<VMMMAD>kvm</VMMMAD>
<VNMMAD>ovswitch</VNMMAD>
<TMMAD>shared</TMMAD>
<DS_LOCATION>/var/lib/one/datastores</DS_LOCATION>
<DS_ID>100</DS_ID>
<PSTIME>0</PSTIME>
<PETIME>0</PETIME>
<RSTIME>1464794339</RSTIME>
<RETIME>1464852839</RETIME>
<ESTIME>0</ESTIME>
<EETIME>0</EETIME>
<REASON>2</REASON>
<ACTION>25</ACTION>
</HISTORY>
<HISTORY>
<OID>395</OID>
<SEQ>2</SEQ>
<HOSTNAMEhv1.domain</HOSTNAME>
<HID>1</HID>
<CID>100</CID>
<STIME>1464852839</STIME>
<ETIME>1464853029</ETIME>
<VMMMAD>kvm</VMMMAD>
<VNMMAD>ovswitch</VNMMAD>
<TMMAD>shared</TMMAD>
<DS_LOCATION>/var/lib/one/datastores</DS_LOCATION>
<DS_ID>100</DS_ID>
<PSTIME>0</PSTIME>
<PETIME>0</PETIME>
<RSTIME>1464852839</RSTIME>
<RETIME>1464853029</RETIME>
<ESTIME>0</ESTIME>
<EETIME>0</EETIME>
<REASON>2</REASON>
<ACTION>2</ACTION>
</HISTORY>
<HISTORY>
<OID>395</OID>
<SEQ>3</SEQ>
<HOSTNAME>bit-host2.bit-cloud.dmz.bit.nl</HOSTNAME>
<HID>2</HID>
<CID>100</CID>
<STIME>1464853018</STIME>
<ETIME>1464853113</ETIME>
<VMMMAD>kvm</VMMMAD>
<VNMMAD>ovswitch</VNMMAD>
<TMMAD>shared</TMMAD>
<DS_LOCATION>/var/lib/one/datastores</DS_LOCATION>
<DS_ID>100</DS_ID>
<PSTIME>0</PSTIME>
<PETIME>0</PETIME>
<RSTIME>1464853029</RSTIME>
<RETIME>1464853113</RETIME>
<ESTIME>0</ESTIME>
<EETIME>0</EETIME>
<REASON>2</REASON>
<ACTION>25</ACTION>
</HISTORY>
<HISTORY>
<OID>395</OID>
<SEQ>4</SEQ>
<HOSTNAME>bit-host2.bit-cloud.dmz.bit.nl</HOSTNAME>
<HID>2</HID>
<CID>100</CID>
<STIME>1464853113</STIME>
<ETIME>1464873317</ETIME>
<VMMMAD>kvm</VMMMAD>
<VNMMAD>ovswitch</VNMMAD>
<TMMAD>shared</TMMAD>
<DS_LOCATION>/var/lib/one/datastores</DS_LOCATION>
<DS_ID>100</DS_ID>
<PSTIME>0</PSTIME>
<PETIME>0</PETIME>
<RSTIME>1464853113</RSTIME>
<RETIME>1464873317</RETIME>
<ESTIME>0</ESTIME>
<EETIME>0</EETIME>
<REASON>2</REASON>
<ACTION>2</ACTION>
</HISTORY>
<HISTORY>
<OID>395</OID>
<SEQ>5</SEQ>
<HOSTNAMEhv1.domain</HOSTNAME>
<HID>1</HID>
<CID>100</CID>
<STIME>1464873301</STIME>
<ETIME>1464873317</ETIME>
<VMMMAD>kvm</VMMMAD>
<VNMMAD>ovswitch</VNMMAD>
<TMMAD>shared</TMMAD>
<DS_LOCATION>/var/lib/one/datastores</DS_LOCATION>
<DS_ID>100</DS_ID>
<PSTIME>0</PSTIME>
<PETIME>0</PETIME>
<RSTIME>0</RSTIME>
<RETIME>0</RETIME>
<ESTIME>0</ESTIME>
<EETIME>0</EETIME>
<REASON>1</REASON>
<ACTION>0</ACTION>
</HISTORY>
<HISTORY>
<OID>395</OID>
<SEQ>6</SEQ>
<HOSTNAME>bit-host2.bit-cloud.dmz.bit.nl</HOSTNAME>
<HID>2</HID>
<CID>100</CID>
<STIME>1464873317</STIME>
<ETIME>1464873449</ETIME>
<VMMMAD>kvm</VMMMAD>
<VNMMAD>ovswitch</VNMMAD>
<TMMAD>shared</TMMAD>
<DS_LOCATION>/var/lib/one/datastores</DS_LOCATION>
<DS_ID>100</DS_ID>
<PSTIME>0</PSTIME>
<PETIME>0</PETIME>
<RSTIME>1464873317</RSTIME>
<RETIME>1464873449</RETIME>
<ESTIME>0</ESTIME>
<EETIME>0</EETIME>
<REASON>2</REASON>
<ACTION>2</ACTION>
</HISTORY>
<HISTORY>
<OID>395</OID>
<SEQ>7</SEQ>
<HOSTNAMEhv1.domain</HOSTNAME>
<HID>1</HID>
<CID>100</CID>
<STIME>1464873448</STIME>
<ETIME>1464873449</ETIME>
<VMMMAD>kvm</VMMMAD>
<VNMMAD>ovswitch</VNMMAD>
<TMMAD>shared</TMMAD>
<DS_LOCATION>/var/lib/one/datastores</DS_LOCATION>
<DS_ID>100</DS_ID>
<PSTIME>0</PSTIME>
<PETIME>0</PETIME>
<RSTIME>0</RSTIME>
<RETIME>0</RETIME>
<ESTIME>0</ESTIME>
<EETIME>0</EETIME>
<REASON>1</REASON>
<ACTION>0</ACTION>
</HISTORY>
<HISTORY>
<OID>395</OID>
<SEQ>8</SEQ>
<HOSTNAME>bit-host2.bit-cloud.dmz.bit.nl</HOSTNAME>
<HID>2</HID>
<CID>100</CID>
<STIME>1464873449</STIME>
<ETIME>1464873841</ETIME>
<VMMMAD>kvm</VMMMAD>
<VNMMAD>ovswitch</VNMMAD>
<TMMAD>shared</TMMAD>
<DS_LOCATION>/var/lib/one/datastores</DS_LOCATION>
<DS_ID>100</DS_ID>
<PSTIME>0</PSTIME>
<PETIME>0</PETIME>
<RSTIME>1464873449</RSTIME>
<RETIME>1464873841</RETIME>
<ESTIME>0</ESTIME>
<EETIME>0</EETIME>
<REASON>2</REASON>
<ACTION>2</ACTION>
</HISTORY>
<HISTORY>
<OID>395</OID>
<SEQ>9</SEQ>
<HOSTNAMEhv1.domain</HOSTNAME>
<HID>1</HID>
<CID>100</CID>
<STIME>1464873840</STIME>
<ETIME>1464873841</ETIME>
<VMMMAD>kvm</VMMMAD>
<VNMMAD>ovswitch</VNMMAD>
<TMMAD>shared</TMMAD>
<DS_LOCATION>/var/lib/one/datastores</DS_LOCATION>
<DS_ID>100</DS_ID>
<PSTIME>0</PSTIME>
<PETIME>0</PETIME>
<RSTIME>0</RSTIME>
<RETIME>0</RETIME>
<ESTIME>0</ESTIME>
<EETIME>0</EETIME>
<REASON>1</REASON>
<ACTION>0</ACTION>
</HISTORY>
<HISTORY>
<OID>395</OID>
<SEQ>10</SEQ>
<HOSTNAME>bit-host2.bit-cloud.dmz.bit.nl</HOSTNAME>
<HID>2</HID>
<CID>100</CID>
<STIME>1464873841</STIME>
<ETIME>1464874290</ETIME>
<VMMMAD>kvm</VMMMAD>
<VNMMAD>ovswitch</VNMMAD>
<TMMAD>shared</TMMAD>
<DS_LOCATION>/var/lib/one/datastores</DS_LOCATION>
<DS_ID>100</DS_ID>
<PSTIME>0</PSTIME>
<PETIME>0</PETIME>
<RSTIME>1464873841</RSTIME>
<RETIME>1464874290</RETIME>
<ESTIME>0</ESTIME>
<EETIME>0</EETIME>
<REASON>2</REASON>
<ACTION>2</ACTION>
</HISTORY>
<HISTORY>
<OID>395</OID>
<SEQ>11</SEQ>
<HOSTNAMEhv1.domain</HOSTNAME>
<HID>1</HID>
<CID>100</CID>
<STIME>1464874263</STIME>
<ETIME>1464875785</ETIME>
<VMMMAD>kvm</VMMMAD>
<VNMMAD>ovswitch</VNMMAD>
<TMMAD>shared</TMMAD>
<DS_LOCATION>/var/lib/one/datastores</DS_LOCATION>
<DS_ID>100</DS_ID>
<PSTIME>0</PSTIME>
<PETIME>0</PETIME>
<RSTIME>1464874290</RSTIME>
<RETIME>1464875785</RETIME>
<ESTIME>0</ESTIME>
<EETIME>0</EETIME>
<REASON>2</REASON>
<ACTION>25</ACTION>
</HISTORY>
<HISTORY>
<OID>395</OID>
<SEQ>12</SEQ>
<HOSTNAMEhv1.domain</HOSTNAME>
<HID>1</HID>
<CID>100</CID>
<STIME>1464875785</STIME>
<ETIME>1464935882</ETIME>
<VMMMAD>kvm</VMMMAD>
<VNMMAD>ovswitch</VNMMAD>
<TMMAD>shared</TMMAD>
<DS_LOCATION>/var/lib/one/datastores</DS_LOCATION>
<DS_ID>100</DS_ID>
<PSTIME>0</PSTIME>
<PETIME>0</PETIME>
<RSTIME>1464875785</RSTIME>
<RETIME>1464935882</RETIME>
<ESTIME>0</ESTIME>
<EETIME>0</EETIME>
<REASON>2</REASON>
<ACTION>25</ACTION>
</HISTORY>
<HISTORY>
<OID>395</OID>
<SEQ>13</SEQ>
<HOSTNAMEhv1.domain</HOSTNAME>
<HID>1</HID>
<CID>100</CID>
<STIME>1464935882</STIME>
<ETIME>1464947854</ETIME>
<VMMMAD>kvm</VMMMAD>
<VNMMAD>ovswitch</VNMMAD>
<TMMAD>shared</TMMAD>
<DS_LOCATION>/var/lib/one/datastores</DS_LOCATION>
<DS_ID>100</DS_ID>
<PSTIME>0</PSTIME>
<PETIME>0</PETIME>
<RSTIME>1464935882</RSTIME>
<RETIME>1464947854</RETIME>
<ESTIME>0</ESTIME>
<EETIME>0</EETIME>
<REASON>2</REASON>
<ACTION>25</ACTION>
</HISTORY>
<HISTORY>
<OID>395</OID>
<SEQ>14</SEQ>
<HOSTNAME>hv1.domain</HOSTNAME>
<HID>1</HID>
<CID>100</CID>
<STIME>1464947854</STIME>
<ETIME>0</ETIME>
<VMMMAD>kvm</VMMMAD>
<VNMMAD>ovswitch</VNMMAD>
<TMMAD>shared</TMMAD>
<DS_LOCATION>/var/lib/one/datastores</DS_LOCATION>
<DS_ID>100</DS_ID>
<PSTIME>0</PSTIME>
<PETIME>0</PETIME>
<RSTIME>1464947854</RSTIME>
<RETIME>0</RETIME>
<ESTIME>0</ESTIME>
<EETIME>0</EETIME>
<REASON>0</REASON>
<ACTION>0</ACTION>
</HISTORY>
</HISTORY_RECORDS>
</VM>

#4 Updated by Ruben S. Montero almost 5 years ago

  • Assignee set to Javi Fontan

#5 Updated by Javi Fontan almost 5 years ago

It seems that the VM has all the information needed by the driver. Somehow the driver is not able to get it.

This script executes "onevm show -x $VMID" to get the xml that is then parsed by xpath.rb. The error is given by xpath.rb. Is it possible that the frontend does not have the credentials correctly set for oneadmin user?

#6 Updated by Ruben S. Montero almost 5 years ago

  • Status changed from Pending to Closed
  • Resolution set to worksforme

Moving this as worksforme. If the issue happens again we'll reopen

Also available in: Atom PDF