Bug 1588085 - Unable to use docker container with nvme when it is partitioned
Summary: Unable to use docker container with nvme when it is partitioned
Keywords:
Status: CLOSED DUPLICATE of bug 1541415
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Container
Version: 3.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: 3.*
Assignee: Sébastien Han
QA Contact: Harish NV Rao
URL:
Whiteboard:
Depends On:
Blocks: 1572368
TreeView+ depends on / blocked
 
Reported: 2018-06-06 15:34 UTC by Mike Hackett
Modified: 2018-06-18 14:15 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-06-18 14:15:43 UTC
Embargoed:


Attachments (Terms of Use)

Description Mike Hackett 2018-06-06 15:34:47 UTC
Description of problem:
When using an nvme for both a journal device for an OSD and an OSD for backing the index pool an issue is encountered when creating a docker container with ceph+nvme partitions, the bash scripts doing the OSD prepare inside the container fails because it expects a full drive to be provided and not a partition. Because it's code inside the container, there's no workaround, we need to fix the image and build another one. 

Version-Release number of selected component (if applicable):
RHCS 3.0

How reproducible:
Constant

Steps to Reproduce:
1. Use nvme device as journal for a ceph OSD
2. Use same nvme device as data/journal partition for an OSD. This forces us to not be able to specify the entire block device and we must create the partitions for the data and journal.
3. Deploy the container with partitons instead of the full block device. The docker image during the osd prepare phase fails because it expect a partition in a partition (nvme0n1p14 is the partition we use, it expects nvme0n1p14p1).

Actual results:
Unable to deploy the container as we expect to see full block device path

Expected results:
Should creater the container on the partitioned device.

Comment 3 Sébastien Han 2018-06-07 06:22:50 UTC
Unfortunately, this is somewhat expected. However, if you pass the full device, ceph-disk (inside the container) will find the next available partition and will create it with the proper size (if enough space).

Can you try this?
Also, can we get the log from the container prepare sequence?

Thanks.

Comment 4 Mike Hackett 2018-06-18 14:15:43 UTC
Closing this BZ as duplicate to: https://bugzilla.redhat.com/show_bug.cgi?id=1541415

*** This bug has been marked as a duplicate of bug 1541415 ***


Note You need to log in before you can comment on or make changes to this bug.