Bug #2587

Generated CONTEXT/TARGET ignores the DEFAULT_DEVICE_PREFIX option from oned.conf

Added by Boris Parak over 7 years ago. Updated over 7 years ago.

Status:ClosedStart date:12/20/2013
Priority:NormalDue date:
Assignee:Ruben S. Montero% Done:

0%

Category:Core & System
Target version:Release 4.6
Resolution:fixed Pull request:
Affected Versions:OpenNebula 4.4

Description

When DEV_PREFIX and TARGET are not specified in VMTEMPLATE/CONTEXT, generated TARGET ignores DEFAULT_DEVICE_PREFIX option from oned.conf:

oned.conf:
DEFAULT_DEVICE_PREFIX = "xvd"

VM template:
CONTEXT=[
HOSTNAME="1.example.org"
]

VM instance:
CONTEXT=[
HOSTNAME="1.example.org"
TARGET="hda"
]

This breaks contextualization on some hypervisors (e.g. XEN).

Associated revisions

Revision d1a2b207
Added by Ruben S. Montero over 7 years ago

feature #2587: Added a DEFAULT_DEV_PREFIX for CD-ROM devices

History

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

  • Category changed from Context to Core & System
  • Status changed from Pending to New
  • Target version changed from Release 4.4.1 to Release 4.6

#3 Updated by Ruben S. Montero over 7 years ago

Boris Parak wrote:

Traced this issue to:

https://github.com/OpenNebula/one/blob/one-4.4/src/vm/VirtualMachine.cc#L1677
https://github.com/OpenNebula/one/blob/one-4.4/src/image/ImagePool.cc#L50

Is there a way to set 'default_cdrom_dev_prefix' in configuration?

No there is no such configuration option. If other than "hd" is needed try to use "DEV_PREFIX" in context.

This issue will be for adding a configuration option in oned.conf for CD's

#4 Updated by Jaime Melis over 7 years ago

  • Assignee set to Ruben S. Montero

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

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

Implemented and ready in master, documentation also updated

Also available in: Atom PDF