Bug #2108

LVM datastore clone script doesn't work if hostname contains a dot

Added by SZTAKI ITAK almost 6 years ago. Updated over 5 years ago.

Status:ClosedStart date:06/07/2013
Priority:NormalDue date:
Assignee:Jaime Melis% Done:

0%

Category:Drivers - Storage
Target version:Release 4.4
Resolution:fixed Pull request:
Affected Versions:OpenNebula 4.0

Description

If the hostname contains a dot (eg. the hostname is FQDN or IP address), then the following commands in the clone script doesn't work as expected:

SRC_HOST=`echo $SRC|cut -d. -f1`
SRC_PATH=`echo $SRC|cut -d. -f2`

A possible solution is to replace them to these lines:

SRC_HOST=`echo $SRC|cut -d: -f1`
SRC_PATH=`echo $SRC|awk -F. '{print $NF}'`

Associated revisions

Revision e5e5a62d
Added by Jaime Melis over 5 years ago

bug #2108: LVM datastore clone script doesn't work if hostname contains a dot

Revision ae91f028
Added by Jaime Melis over 5 years ago

bug #2108: LVM datastore clone script doesn't work if hostname contains a dot

(cherry picked from commit e5e5a62d43309603a052eb788e70b1818cf8bd73)

History

#1 Updated by Carlos Martín over 5 years ago

  • Category set to Drivers - Storage

#2 Updated by Ruben S. Montero over 5 years ago

  • Status changed from Pending to New
  • Assignee set to Jaime Melis
  • Target version set to Release 4.4

#3 Updated by Jaime Melis over 5 years ago

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

patch applied. Thanks!

Also available in: Atom PDF