VMware: Unable to boot from ISO when a 0 GB root disk size is specified

Bug #1292633 reported by Ryan Hsu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Gary Kotton
OpenStack Dashboard (Horizon)
Invalid
Undecided
Unassigned

Bug Description

When using VC Driver, booting an ISO will fail when a flavor with a 0 GB root disk size is specified.

Traceback (most recent call last):
  File "/opt/stack/nova/nova/compute/manager.py", line 1703, in _spawn
    block_device_info)
  File "/opt/stack/nova/nova/virt/vmwareapi/driver.py", line 598, in spawn
    admin_password, network_info, block_device_info)
  File "/opt/stack/nova/nova/virt/vmwareapi/vmops.py", line 562, in spawn
    _create_virtual_disk(dest_vmdk_path, root_gb_in_kb)
  File "/opt/stack/nova/nova/virt/vmwareapi/vmops.py", line 370, in _create_virtual_disk
    self._session._wait_for_task(vmdk_create_task)
  File "/opt/stack/nova/nova/virt/vmwareapi/driver.py", line 906, in _wait_for_task
    ret_val = done.wait()
  File "/usr/local/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait
    return hubs.get_hub().switch()
  File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 187, in switch
    return self.greenlet.switch()
VMwareDriverException: A specified parameter was not correct.

The error message seen in vSphere client is "The virtual disk size is too small".

Log available here: http://paste.openstack.org/show/73516/

Tags: vmware driver
Revision history for this message
Tracy Jones (tjones-i) wrote :

ryan can you paste the command you use too?

Revision history for this message
Ryan Hsu (rhsu) wrote :

There were no special properties needed for the boot command. I used the following command: "nova boot --flavor 1 --image <iso image id> my-test-instance"

Tracy Jones (tjones-i)
Changed in horizon:
assignee: nobody → Tracy Jones (tjones-i)
Changed in nova:
assignee: nobody → Tracy Jones (tjones-i)
Ryan Hsu (rhsu)
summary: - VMware: Unable to boot from iso via Horizon
+ VMware: Unable to boot from ISO when specifying 0 GB root disk size
summary: - VMware: Unable to boot from ISO when specifying 0 GB root disk size
+ VMware: Unable to boot from ISO when a 0 GB root disk size is specified
description: updated
Revision history for this message
Tracy Jones (tjones-i) wrote :

found out it's an issue with nova only.

Changed in horizon:
status: New → Invalid
Revision history for this message
Tracy Jones (tjones-i) wrote :

Gary - perhaps we should not even create a root disk when it's an ISO? I tried to do that but ran into some config issues.

Changed in nova:
assignee: Tracy Jones (tjones-i) → Gary Kotton (garyk)
Changed in horizon:
assignee: Tracy Jones (tjones-i) → nobody
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/80835

Changed in nova:
status: New → In Progress
Revision history for this message
Gary Kotton (garyk) wrote :
Changed in nova:
milestone: none → icehouse-rc1
status: In Progress → Confirmed
importance: Undecided → High
Revision history for this message
Gary Kotton (garyk) wrote :

Tracy, in some cases we need to create the root disk. An example is an cloud provider enabling users to boot from an iso and then install their VM's. All subsequent boots will use the local disk.

Changed in nova:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/80835
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=d39442007157c3074c199aba64424b2f4b08f461
Submitter: Jenkins
Branch: master

commit d39442007157c3074c199aba64424b2f4b08f461
Author: Gary Kotton <email address hidden>
Date: Sun Mar 16 06:47:13 2014 -0700

    VMware: enable booting an ISO with root disk size 0

    There may be cases where booting from an ISO does not require
    any local disk. In this case the flavor may have the root disk
    size set at 0.

    Change-Id: Id290a0ede11c754f686d3b70322c84c03f161637
    Closes-bug: #1292633

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-rc1 → 2014.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.