Skip to content

Commit

Permalink
Merge "Fixing default for boot from volume (from /dev/vda to vda)"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Jan 24, 2012
2 parents 9093a01 + 5e680c9 commit 97b53f5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Expand Up @@ -104,7 +104,9 @@ class LaunchForm(forms.SelfHandlingForm):
help_text=_("Volume to boot from."))
device_name = forms.CharField(label=_("Device Name"),
required=False,
initial="/dev/vda")
initial="vda",
help_text=_("Volume mount point (e.g. 'vda' "
"mounts at '/dev/vda')."))
delete_on_terminate = forms.BooleanField(
label=_("Delete on Terminate"),
initial=False,
Expand Down
Expand Up @@ -118,7 +118,7 @@ def test_launch_post(self):
SERVER_NAME = 'serverName'
USER_DATA = 'userData'
volume = self.volumes[0].id
device_name = '/dev/vda'
device_name = 'vda'
BLOCK_DEVICE_MAPPING = {device_name: "1:::0"}

form_data = {'method': 'LaunchForm',
Expand Down
2 changes: 1 addition & 1 deletion horizon/horizon/tests/api_tests/nova.py
Expand Up @@ -273,7 +273,7 @@ def test_server_create(self):
USER_DATA = {'nuts': 'berries'}
KEY = 'user'
SECGROUP = self.mox.CreateMock(api.SecurityGroup)
BLOCK_DEVICE_MAPPING = {'/dev/vda': '1:::0'}
BLOCK_DEVICE_MAPPING = {'vda': '1:::0'}

novaclient = self.stub_novaclient()
novaclient.servers = self.mox.CreateMockAnything()
Expand Down

0 comments on commit 97b53f5

Please sign in to comment.