vmware VC driver doesn't attach swap storage

Bug #1257683 reported by cristi1979 on 2013-12-04
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Medium
Thang Pham

Bug Description

With a vmware compute node (vcenter with 3 esxi in my case), no ephemeral storage is attache to the instance: swap or ephemeral disks.

I didn't find any errors/warnings when creating instances.

Let me know ig you need other information.

Shawn Hartsock (hartsock) wrote :

Could you give us details about flavor and image? Can you spawn m1.tiny (the most minimal flavor) properly? How about the devstack image we currently ship, can you spawn that?

Changed in nova:
status: New → Incomplete
cristi1979 (cristi-falcas) wrote :

I can launch VMs, this is not the problem. The problem is that if I set on a flavor swap or ephemeral storage, nothing changes: there are no additional disks attached to the instance.

Currently I use the debian image from the vmware docs and also a custom image with oracle linux. Both boot fine, but there is only /dev/sda on theme.

The flavor used:

Flavor Name VCPUs RAM Root Disk Ephemeral Disk Swap Disk ID Public
m1.tiny 1 512MB 10 20 2000MB 1 Yes

cristi1979 (cristi-falcas) wrote :

Just wondering if this is supposed to work with the vmware driver?

Maithem (maithem) wrote :

ephemeral storage is part of the primary disk, so you won't see any extra disks attached. What's happening is, after the creation of the primary disk, it is extended by #of Gigs you specified in ephemeral (from the flavor). This means you have to log in to your guest os and partition that space. Although, it is not working consistently for me, sometimes i get this error "The capacity of the parent virtual disk and the capacity of the child disk are different" and sometimes it works. Need to investigate further.

cristi1979 (cristi-falcas) wrote :

Hi Maithem,

Is this something that only vmware does? I thought that for each flavor you have the root disk size, an ephemeral disk and a swap disk.

Maithem (maithem) wrote :

Hello cristi,

It seems like it is indeed a bug. I have tried this with the libvirt driver and it does create 3 disks. We will need to fix that.

Changed in nova:
status: Incomplete → Confirmed
assignee: nobody → Maithem (maithem)
importance: Undecided → High
Maithem (maithem) on 2014-01-22
Changed in nova:
milestone: none → icehouse-3
Maithem (maithem) on 2014-01-23
summary: - vmware doesn't attach any ephemeral storage
+ vmware doesn't attach any ephemeral and storage
summary: - vmware doesn't attach any ephemeral and storage
+ vmware VC driver doesn't attach any ephemeral and storage
Maithem (maithem) on 2014-01-24
summary: - vmware VC driver doesn't attach any ephemeral and storage
+ vmware VC driver doesn't attach any ephemeral and swap storage
Maithem (maithem) wrote :

There is a patch for the ephemeral storage : https://review.openstack.org/#/c/51793/

summary: - vmware VC driver doesn't attach any ephemeral and swap storage
+ vmware VC driver doesn't attach swap storage

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

Changed in nova:
status: Confirmed → In Progress
Thierry Carrez (ttx) on 2014-03-05
Changed in nova:
milestone: icehouse-3 → icehouse-rc1
Tracy Jones (tjones-i) wrote :

It does not seem likely that this can make icehouse as it has a dependency on a BP which was not merged in time. I recommend we remove this from the RC list

Tracy Jones (tjones-i) on 2014-03-13
Changed in nova:
milestone: icehouse-rc1 → next
Joe Gordon (jogo) on 2014-06-19
Changed in nova:
importance: High → Medium
status: In Progress → Confirmed
Tracy Jones (tjones-i) on 2014-11-07
Changed in nova:
assignee: Maithem (maithem) → nobody
Thang Pham (thang-pham) wrote :

This was fixed with the following patch - https://review.openstack.org/#/c/109432/.

Changed in nova:
status: Confirmed → Fix Released
status: Fix Released → Fix Committed
Thang Pham (thang-pham) wrote :

Actually, the patch above only added ephemeral disk support. Swap has to be added.

Changed in nova:
status: Fix Committed → Confirmed
assignee: nobody → Thang Pham (thang-pham)

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

Changed in nova:
status: Confirmed → In Progress

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

commit 5e5ef99e9c5ef98aef2fa19326154bceb338fc29
Author: Thang Pham <email address hidden>
Date: Tue Dec 16 00:10:45 2014 -0500

    VMware: Add support for swap disk

    Added support for specifying swap device in flavor
    definition or block device mappings. The swap disk
    will be of a 'thin' disk type.

    Implements: blueprint vmware-swap-support
    Closes-Bug: #1257683
    DocImpact: Swap disks are supported by VMware driver.

    Change-Id: I9139f1d912861baff497b1a1297389fb8bb16b90

Changed in nova:
status: In Progress → Fix Committed
Changed in nova:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers