yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #68319
[Bug 1710994] Re: Openstack Pike + LXD with ZFS - cannot convert image to raw
Snippet from qemu:
static void raw_parse_flags(int bdrv_flags, int *open_flags)
{
assert(open_flags != NULL);
*open_flags |= O_BINARY;
*open_flags &= ~O_ACCMODE;
if (bdrv_flags & BDRV_O_RDWR) {
*open_flags |= O_RDWR;
} else {
*open_flags |= O_RDONLY;
}
/* Use O_DSYNC for write-through caching, no flags for write-back caching,
* and O_DIRECT for no caching. */
if ((bdrv_flags & BDRV_O_NOCACHE)) {
*open_flags |= O_DIRECT;
}
}
no-cache == use O_DIRECT.
** Project changed: nova => charm-test-infra
** Changed in: charm-test-infra
Importance: Undecided => Low
** Changed in: charm-test-infra
Status: Confirmed => Triaged
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1710994
Title:
Openstack Pike + LXD with ZFS - cannot convert image to raw
Status in OpenStack Charm Test Infra:
Triaged
Bug description:
Deploying Pike on arm64 - during instance creation nova reports the
following error:
fault | {"message": "Build of instance 3460a1bc-72ac-4d43-a232-d150161c2447 aborted: Image b81b08c8-2487-4fea-b39a-d9b07b75b2f0 is unacceptable: Unable to convert image to raw: Image /var/lib/nova/instances/_base/43dbc7beed2459ae424c6b889caf7854f26321e5.part is unacceptable: ", "code": 500, "details": " File \"/usr/lib/python2.7/dist-packages/nova/compute/manager.py\", line 1785, in _do_build_and_run_instance |
| | filter_properties) |
| | File \"/usr/lib/python2.7/dist-packages/nova/compute/manager.py\", line 2007, in _build_and_run_instance |
Further investigation of nova-compute logs reveals:
Unable to convert image to raw: Unexpected error while running command.
Command: qemu-img convert -t none -O raw -f qcow2 /var/lib/nova/instances/_base/f8488b6e96eb7e752a6d2aa046a8de693c06a5fd.part /var/lib/nova/instances/_base/f8488b6e96eb7e752a6d2aa046a8de693c06a5fd.converted
Exit code: 1
Stdout: u''
Stderr: u"qemu-img: file system may not support O_DIRECT\nqemu-img: Could not open '/var/lib/nova/instances/_base/f8488b6e96eb7e752a6d2aa046a8de693c06a5fd.converted': Could not open '/var/lib/nova/instances/_base/f8488b6e96eb7e752a6d2aa046a8de693c06a5fd.converted': Invalid argument\n"
Full log:
https://pastebin.canonical.com/195965/
To manage notifications about this bug go to:
https://bugs.launchpad.net/charm-test-infra/+bug/1710994/+subscriptions
References