ephemeral volumes fail to boot

Bug #1672199 reported by Dave Walker
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kolla
Fix Released
High
Dave Walker
Mitaka
Fix Released
High
Unassigned
Newton
Fix Released
High
Unassigned
Ocata
Fix Released
High
Unassigned

Bug Description

Windows and non-declared os_type images (default to windows) attempt to format ephemeral volumes with mkfs.vfat but fail with this error:

u"Unexpected error while running command.\nCommand: mkfs -t vfat -n ephemeral0 /var/lib/nova/instances/_base/ephemeral_1_0706d66\nExit code: 1\nStdout: u''\nStderr: u'mkfs.vfat: No such file or directory\\n'", u'code': 500, u'details': u' File /var/lib/kolla/venv/lib/python2.7/site-packages/nova/compute/manager.py", line 1779, in _do_build_and_run_instance\n filter_properties)\n File "/var/lib/kolla/venv/lib/python2.7/site- packages/nova/compute/manager.py", line 2015, in _build_and_run

Revision history for this message
Satya Sanjibani Routray (satroutr) wrote : Re: [Bug 1672199] [NEW] ephemeral volumes fail to boot

Same issue seen if you put any format in the nova.conf

Ideally it should be a nova bug

Not with kolla

On 13-Mar-2017 1:00 AM, "Dave Walker" <email address hidden> wrote:

> Public bug reported:
>
> Windows and non-declared os_type images (default to windows) attempt to
> format ephemeral volumes with mkfs.vfat but fail with this error:
>
> u"Unexpected error while running command.\nCommand: mkfs -t vfat -n
> ephemeral0 /var/lib/nova/instances/_base/ephemeral_1_0706d66\nExit code:
> 1\nStdout: u''\nStderr: u'mkfs.vfat: No such file or directory\\n'",
> u'code': 500, u'details': u' File /var/lib/kolla/venv/lib/python2.7
> /site-packages/nova/compute/manager.py", line 1779, in
> _do_build_and_run_instance\n filter_properties)\n File
> "/var/lib/kolla/venv/lib/python2.7/site-
> packages/nova/compute/manager.py", line 2015, in _build_and_run
>
> ** Affects: kolla
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to kolla.
> https://bugs.launchpad.net/bugs/1672199
>
> Title:
> ephemeral volumes fail to boot
>
> Status in kolla:
> New
>
> Bug description:
> Windows and non-declared os_type images (default to windows) attempt
> to format ephemeral volumes with mkfs.vfat but fail with this error:
>
> u"Unexpected error while running command.\nCommand: mkfs -t vfat -n
> ephemeral0 /var/lib/nova/instances/_base/ephemeral_1_0706d66\nExit
> code: 1\nStdout: u''\nStderr: u'mkfs.vfat: No such file or
> directory\\n'", u'code': 500, u'details': u' File
> /var/lib/kolla/venv/lib/python2.7/site-
> packages/nova/compute/manager.py", line 1779, in
> _do_build_and_run_instance\n filter_properties)\n File
> "/var/lib/kolla/venv/lib/python2.7/site-
> packages/nova/compute/manager.py", line 2015, in _build_and_run
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/kolla/+bug/1672199/+subscriptions
>

Changed in kolla:
status: New → Invalid
Revision history for this message
Alicja Kwasniewska (alicja-kwasniewska) wrote :

Dave Walker has already submitted the patch https://review.openstack.org/#/c/444665/1

It is not the nova bug. It is the lack of certain package inside container.
Installation of 'dosfstools' resolves this issue.

Changed in kolla:
status: Invalid → In Progress
importance: Undecided → High
assignee: nobody → Dave Walker (davewalker)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (master)

Reviewed: https://review.openstack.org/444665
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=76cae7fe0bb4cfef0fbd1eb232098e7b1e6775eb
Submitter: Jenkins
Branch: master

commit 76cae7fe0bb4cfef0fbd1eb232098e7b1e6775eb
Author: Dave Walker (Daviey) <email address hidden>
Date: Sun Mar 12 19:25:18 2017 +0000

    Add mkfs.vfat to nova-compute source images

    Currently Windows and non-declared os_type images (defaults
    to Windows) attempt to format ephemeral volumes with
    mkfs.vfat but fail as this tool is not available in the
    container.

    This is resolved by installing dosfstools on the Source
    builds (as I believe this is handled in binary builds
    through dependencies).

    Change-Id: Iefa5fb0a16eed30aea935268f2a9becb1481b018
    Closes-bug: #1672199
    Signed-off-by: Dave Walker (Daviey) <email address hidden>

Changed in kolla:
status: In Progress → Fix Released
Changed in kolla:
milestone: none → pike-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (stable/mitaka)

Reviewed: https://review.openstack.org/445696
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=79fd649114acecaa2c6159ff43b6dd428df425db
Submitter: Jenkins
Branch: stable/mitaka

commit 79fd649114acecaa2c6159ff43b6dd428df425db
Author: Dave Walker (Daviey) <email address hidden>
Date: Sun Mar 12 19:25:18 2017 +0000

    Add mkfs.vfat to nova-compute source images

    Currently Windows and non-declared os_type images (defaults
    to Windows) attempt to format ephemeral volumes with
    mkfs.vfat but fail as this tool is not available in the
    container.

    This is resolved by installing dosfstools on the Source
    builds (as I believe this is handled in binary builds
    through dependencies).

    Change-Id: Iefa5fb0a16eed30aea935268f2a9becb1481b018
    Closes-bug: #1672199
    Signed-off-by: Dave Walker (Daviey) <email address hidden>
    (cherry picked from commit 76cae7fe0bb4cfef0fbd1eb232098e7b1e6775eb)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (stable/newton)

Reviewed: https://review.openstack.org/445695
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=1e548fd464c78d38b67e0715765a31ac5197c6b3
Submitter: Jenkins
Branch: stable/newton

commit 1e548fd464c78d38b67e0715765a31ac5197c6b3
Author: Dave Walker (Daviey) <email address hidden>
Date: Sun Mar 12 19:25:18 2017 +0000

    Add mkfs.vfat to nova-compute source images

    Currently Windows and non-declared os_type images (defaults
    to Windows) attempt to format ephemeral volumes with
    mkfs.vfat but fail as this tool is not available in the
    container.

    This is resolved by installing dosfstools on the Source
    builds (as I believe this is handled in binary builds
    through dependencies).

    Change-Id: Iefa5fb0a16eed30aea935268f2a9becb1481b018
    Closes-bug: #1672199
    Signed-off-by: Dave Walker (Daviey) <email address hidden>
    (cherry picked from commit 76cae7fe0bb4cfef0fbd1eb232098e7b1e6775eb)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (stable/ocata)

Reviewed: https://review.openstack.org/445694
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=82eb7461a3f28da9591e2a936c000bf2bded1f09
Submitter: Jenkins
Branch: stable/ocata

commit 82eb7461a3f28da9591e2a936c000bf2bded1f09
Author: Dave Walker (Daviey) <email address hidden>
Date: Sun Mar 12 19:25:18 2017 +0000

    Add mkfs.vfat to nova-compute source images

    Currently Windows and non-declared os_type images (defaults
    to Windows) attempt to format ephemeral volumes with
    mkfs.vfat but fail as this tool is not available in the
    container.

    This is resolved by installing dosfstools on the Source
    builds (as I believe this is handled in binary builds
    through dependencies).

    Change-Id: Iefa5fb0a16eed30aea935268f2a9becb1481b018
    Closes-bug: #1672199
    Signed-off-by: Dave Walker (Daviey) <email address hidden>
    (cherry picked from commit 76cae7fe0bb4cfef0fbd1eb232098e7b1e6775eb)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 2.0.3

This issue was fixed in the openstack/kolla 2.0.3 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 3.0.3

This issue was fixed in the openstack/kolla 3.0.3 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 4.0.1

This issue was fixed in the openstack/kolla 4.0.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 5.0.0.0b2

This issue was fixed in the openstack/kolla 5.0.0.0b2 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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