Bug #120

Wrong varable in tm_clone.sh for http image transport.

Added by Chris Usher over 10 years ago. Updated about 8 years ago.

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

0%

Category:Drivers - Auth
Target version:Release 1.4
Resolution:fixed Pull request:
Affected Versions:

Description

Getting a VM image from an http server fails with the following error in the VM's log

Thu Jun 25 10:47:07 2009 [TM][I]: tm_clone.sh: Downloading http://server.web/sl53base.img
Thu Jun 25 10:47:07 2009 [TM][I]: tm_clone.sh: ERROR: Command "ssh host wget -O /usr/local/one/var//23/images/disk.0 //server.web/sl53base.img" failed.
Thu Jun 25 10:47:07 2009 [TM][I]: tm_clone.sh: ERROR: //server.web/sl53base.img: Unsupported scheme.
Thu Jun 25 10:47:07 2009 [TM][E]: Error excuting image transfer script: //server.web/sl53base.img: Unsupported scheme.
Thu Jun 25 10:47:07 2009 [DiM][I]: New VM state is FAILED

tm_clone.sh splits the source location ($SRC) at the colon into two parts, $SRC_HOST and $SRC_PATH. ($SRC=http://server.web/file -> $SRC_HOST=http $SRC_PATH=//server.web/file) For a scp transfer this is valid but for a http transfer it breaks the url into two invalid pieces. Since wget receives an invalid url starting with // the transfer fails.

Line 49 of $ONE_LOCATION/lib/tm_commands/ssh/tm_clone.sh should read
exec_and_log "ssh $DST_HOST wget -O $DST_PATH $SRC"
rather than
exec_and_log "ssh $DST_HOST wget -O $DST_PATH $SRC_PATH"

While this is not a key feature of OpenNebula it is a very simple fix.

Associated revisions

Revision 080a528c
Added by Javi Fontan over 10 years ago

Fix for #120 (http urls in tm ssh failing)

git-svn-id: http://svn.opennebula.org/one/branches/one-1.2@648 3034c82b-c49b-4eb3-8279-a7acafdc01c0

Revision 42ce8f2e
Added by Tino Vázquez about 3 years ago

Merge pull request #120 from n40lab/F4584

F #4584: Add support for SDRS clustered vCenter datastores

History

#1 Updated by Ruben S. Montero over 10 years ago

  • Category set to Drivers - Auth
  • Assignee set to Javi Fontan
  • Target version set to Release 1.4

#2 Updated by Javi Fontan over 10 years ago

  • Status changed from New to 3
  • Resolution set to fixed

#3 Updated by Ruben S. Montero about 8 years ago

  • Status changed from 3 to Closed

Also available in: Atom PDF