Bug #1840

Selecting RBD as the disk type when creating datastore in Sunstone does not set the DISK_TYPE to RBD in the datastore

Added by Bill Campbell about 8 years ago. Updated about 8 years ago.

Status:ClosedStart date:03/27/2013
Priority:NormalDue date:
Assignee:Daniel Molina% Done:

100%

Category:Sunstone
Target version:Release 4.0
Resolution:fixed Pull request:
Affected Versions:OpenNebula 4.0

Description

When creating a new Ceph datastore from Sunstone and selecting the RBD disk type, the DISK_TYPE parameter in the datastore is still set to FILE. This prevents appropriate deployment file generation and then failed VM deployment.

Associated revisions

Revision 23385fd3
Added by Daniel Molina about 8 years ago

bug #1840: Fix disk_type when selecting Ceph datastore

Revision 321644b2
Added by Daniel Molina about 8 years ago

bug #1840: Add safe and restricted dirs tooltip

History

#1 Updated by Bill Campbell about 8 years ago

Think I fixed it. In the Sunstone datastores-tab.js the following change needs to be made:

Line 149 needs value=rbd in uppercase:

From

<option value="rbd">' + tr("RBD") + '</option>\

To

<option value="RBD">' + tr("RBD") + '</option>\

Line 942 has invalid disk_type selection, and the value needs to be uppercase:

From

$('select#ds_type').val('rbd');

To

$('select#disk_type').val('RBD');

This seems to fix it.

#2 Updated by Daniel Molina about 8 years ago

  • Category set to Sunstone
  • Status changed from New to Closed
  • Assignee set to Daniel Molina
  • Target version set to Release 4.0
  • % Done changed from 0 to 100
  • Resolution set to fixed

Fixed, thanks for the feedback

Also available in: Atom PDF