Hi there,<div><br></div><div>After I updated my 3.2 to 3.4 I followed a guide from the wiki to set up the correct datastores and images.</div><div>At one point I should use the following command </div><div><br></div><div>"oneimage create ubuntuvmdk.img --datastore production"</div>
<div><br></div><div>but I get an error and the oned.log shows this:</div><div><br></div><div>###################################</div><div><div>Wed Sep 26 15:14:14 2012 [ImM][I]: Command execution fail: /srv/cloud/one/var/remotes/datastore/fs/cp PERTX0RSSVZFUl9BQ1RJT05fREFUQT48SU1BR0U+PElEPjU8L0lEPjxVSUQ+MDwvVUlEPjxHSUQ+MDwvR0lEPjxVTkFNRT5vbmVhZG1pbjwvVU5BTUU+PEdOQU1FPm9uZWFkbWluPC9HTkFNRT48TkFNRT5VYnVudHVfMTFfdm1kazwvTkFNRT48UEVSTUlTU0lPTlM+PE9XTkVSX1U+MTwvT1dORVJfVT48T1dORVJfTT4xPC9PV05FUl9NPjxPV05FUl9BPjA8L09XTkVSX0E+PEdST1VQX1U+MDwvR1JPVVBfVT48R1JPVVBfTT4wPC9HUk9VUF9NPjxHUk9VUF9BPjA8L0dST1VQX0E+PE9USEVSX1U+MDwvT1RIRVJfVT48T1RIRVJfTT4wPC9PVEhFUl9NPjxPVEhFUl9BPjA8L09USEVSX0E+PC9QRVJNSVNTSU9OUz48VFlQRT4wPC9UWVBFPjxQRVJTSVNURU5UPjA8L1BFUlNJU1RFTlQ+PFJFR1RJTUU+MTM0ODY0MDA1MzwvUkVHVElNRT48U09VUkNFPjwvU09VUkNFPjxQQVRIPi92YXIvaW1hZ2VzPC9QQVRIPjxGU1RZUEU+PC9GU1RZUEU+PFNJWkU+MDwvU0laRT48U1RBVEU+NDwvU1RBVEU+PFJVTk5JTkdfVk1TPjA8L1JVTk5JTkdfVk1TPjxEQVRBU1RPUkVfSUQ+MTAwPC9EQVRBU1RPUkVfSUQ+PERBVEFTVE9SRT4yPC9EQVRBU1RPUkU+PFRFTVBMQVRFPjxERVZfUFJFRklYPjwhW0NEQVRBW2hkXV0+PC9ERVZfUFJFRklYPjwvVEVNUExBVEU+PC9JTUFHRT48REFUQVNUT1JFPjxJRD4xMDA8L0lEPjxVSUQ+MDwvVUlEPjxHSUQ+MDwvR0lEPjxVTkFNRT5vbmVhZG1pbjwvVU5BTUU+PEdOQU1FPm9uZWFkbWluPC9HTkFNRT48TkFNRT4yPC9OQU1FPjxQRVJNSVNTSU9OUz48T1dORVJfVT4xPC9PV05FUl9VPjxPV05FUl9NPjE8L09XTkVSX00+PE9XTkVSX0E+MDwvT1dORVJfQT48R1JPVVBfVT4xPC9HUk9VUF9VPjxHUk9VUF9NPjA8L0dST1VQX00+PEdST1VQX0E+MDwvR1JPVVBfQT48T1RIRVJfVT4xPC9PVEhFUl9VPjxPVEhFUl9NPjA8L09USEVSX00+PE9USEVSX0E+MDwvT1RIRVJfQT48L1BFUk1JU1NJT05TPjxEU19NQUQ+ZnM8L0RTX01BRD48VE1fTUFEPnNoYXJlZDwvVE1fTUFEPjxCQVNFX1BBVEg+L3Nydi9jbG91ZC9vbmUvdmFyL2RhdGFzdG9yZXMvMTAwPC9CQVNFX1BBVEg+PENMVVNURVJfSUQ+LTE8L0NMVVNURVJfSUQ+PENMVVNURVI+PC9DTFVTVEVSPjxJTUFHRVM+PC9JTUFHRVM+PFRFTVBMQVRFPjxEU19NQUQ+PCFbQ0RBVEFbZnNdXT48L0RTX01BRD48VE1fTUFEPjwhW0NEQVRBW3NoYXJlZF1dPjwvVE1fTUFEPjwvVEVNUExBVEU+PC9EQVRBU1RPUkU+PC9EU19EUklWRVJfQUNUSU9OX0RBVEE+ 5</div>
<div>Wed Sep 26 15:14:14 2012 [ImG][D]: Message received: LOG I 5 cp: Copying local image /var/images to the image repository</div><div><br></div><div>Wed Sep 26 15:14:14 2012 [ImM][I]: cp: Copying local image /var/images to the image repository</div>
<div>Wed Sep 26 15:14:14 2012 [ImG][D]: Message received: LOG E 5 cp: Command "cp -f /var/images /srv/cloud/one/var/datastores/100/5a5968e0f7c969a3df30042c3b38330a" failed: cp: omitting directory `/var/images'</div>
<div><br></div><div>Wed Sep 26 15:14:14 2012 [ImM][E]: cp: Command "cp -f /var/images /srv/cloud/one/var/datastores/100/5a5968e0f7c969a3df30042c3b38330a" failed: cp: omitting directory `/var/images'</div><div>
Wed Sep 26 15:14:14 2012 [ImG][D]: Message received: LOG E 5 Error copying /var/images to /srv/cloud/one/var/datastores/100/5a5968e0f7c969a3df30042c3b38330a</div><div><br></div><div>Wed Sep 26 15:14:14 2012 [ImM][E]: Error copying /var/images to /srv/cloud/one/var/datastores/100/5a5968e0f7c969a3df30042c3b38330a</div>
<div>Wed Sep 26 15:14:14 2012 [ImG][D]: Message received: LOG I 5 ExitCode: 1</div><div><br></div><div>Wed Sep 26 15:14:14 2012 [ImM][I]: ExitCode: 1</div><div>Wed Sep 26 15:14:14 2012 [ImG][D]: Message received: CP FAILURE 5 Error copying /var/images to /srv/cloud/one/var/datastores/100/5a5968e0f7c969a3df30042c3b38330a</div>
<div><br></div><div>Wed Sep 26 15:14:14 2012 [ImM][E]: Error copying image in the repository: Error copying /var/images to /srv/cloud/one/var/datastores/100/5a5968e0f7c969a3df30042c3b38330a</div></div><div>############################</div>
<div><br></div><div>So I tried to figure out why it is not working and I think there is a mistake with the parameter of the copy command.</div><div>The script uses "cp -f" to copy the content of /var/images, but as an directory, shouldn't it be "cp -r" the get the content recursively?</div>
<div>The "-f" parameter is to force the copy if the destination exists, or am I wrong?</div><div><br></div><div>I would love to hear some other opinions on this and maybe some idea how I can create the image without error.</div>
<div><br></div><div>Thanks so far, Ingo</div><div><br></div><div><br></div><div><br></div>