Check parameters before doing boot with eph disk format

Bug #1293880 reported by jichenjc
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
jichenjc

Bug Description

apparently dummy should not be allowed for eph disk
instead of let boot process check it ,API layer may do a better check on it

[root@controller ~]# nova boot --flavor 21 --key_name mykey --image 43ca519b-979b-4803-95ad-b9f160f1a337 --security_group default --ephemeral size=1,format=dummy test13
+--------------------------------------+--------------------------------------+
| Property | Value |
+--------------------------------------+--------------------------------------+
| OS-EXT-STS:task_state | scheduling |
| image | CirrOS 0.3.1 golden |
| OS-EXT-STS:vm_state | building |
| OS-EXT-SRV-ATTR:instance_name | instance-00000047 |
| OS-SRV-USG:launched_at | None |

Tags: api
jichenjc (jichenjc)
Changed in nova:
assignee: nobody → jichencom (jichenjc)
Tracy Jones (tjones-i)
tags: added: api
Revision history for this message
Christopher Yeoh (cyeoh-0) wrote :

Hrm aren't the valid values going to be rather dependent on the backend implementation?

Changed in nova:
status: New → Incomplete
Revision history for this message
jichenjc (jichenjc) wrote :

it might be dependant on the backend (not sure about others, but at least libvirt should only support ext family now)

we might add a definition list to check whether input belongs to the list or not to avoid additional work for low layer check

Revision history for this message
jichenjc (jichenjc) wrote :

according to review comments, this defect is correctly described

it should be checked at virt layer instead of API layer

so will going to do the check at virt layer

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to nova (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/99880

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/100451

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

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

commit 89cd2f9a4dc4c12aaf0ce2ed2c492ad60fd1f6d7
Author: jichenjc <email address hidden>
Date: Mon Jun 9 04:13:18 2014 +0800

    Add supported file system type check at virt layer

    Currently nova doesn't check whether the file system type is supported
    by virt layer(hypervisor) before use it. This patch adds current
    support file system type definition then create a default check
    function at virt layer. Following patches will do the real check
    in different driver such as libvirt.

    Change-Id: Ie4d876a48b36c1a53b171dd521bdeef868a31486
    Partial-Bug: #1293880

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

commit b1cde33175bc555e1af822894e8c3f981fbb8ef6
Author: jichenjc <email address hidden>
Date: Thu Jun 19 17:44:31 2014 +0800

    check ephemeral disk format at libvirt before use

    Add ephemeral disk format at libvirt. There is no check before
    so it will be used directly. This patch adds valid check function
    and validate it before eph disk was used in virt layer.

    Change-Id: I1934573e79f126e725cef4848b15c11a595161c9
    Closes-Bug: #1293880

Changed in nova:
status: In Progress → Fix Committed
Changed in nova:
milestone: none → juno-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: juno-2 → 2014.2
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.