Bug 1251718
Summary: | [Docs][Ceph] Document the need to ensure that OSD disks have a GPT label | |||
---|---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | jliberma <jliberma> | |
Component: | documentation | Assignee: | RHOS Documentation Team <rhos-docs> | |
Status: | CLOSED NOTABUG | QA Contact: | RHOS Documentation Team <rhos-docs> | |
Severity: | unspecified | Docs Contact: | Derek <dcadzow> | |
Priority: | urgent | |||
Version: | 7.0 (Kilo) | CC: | dmacpher, hbrock, jefbrown, jomurphy, lbopf, mburns, mcornea, morazi, racedoro, rhel-osp-director-maint, sasha, seb, srevivo | |
Target Milestone: | --- | |||
Target Release: | 10.0 (Newton) | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Known Issue | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1391199 (view as bug list) | Environment: | ||
Last Closed: | 2016-12-08 05:47:28 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1391199 |
Description
jliberma@redhat.com
2015-08-09 06:03:28 UTC
So I think the solution here might involve two parts: 1) Update puppet-ceph so that it supports creating the required disk labels for us. I think this probably goes into puppet-ceph... but if they aren't keen on it perhaps puppet-tripleo could contain this resource. Note: I'm thinking the parameters for the resource would be the device name. Perhaps something like ceph::create_labels? 2) We wire in our discovery data such that puppet-resources for #1 above get automatically created. This might be something like using: create_resources (ceph::create_labels, hiera('sd_devices'), {}) Where we create a hiera entry for all of the available sd_devices above dynamically (somehow) from the introspection data. If the introspection data isn't useful/or easily obtainable then just blindly looping over all the devices in puppet would also work... This bug did not make the OSP 8.0 release. It is being deferred to OSP 10. Agree with Dan, puppet-ceph should detect the partition type, if not GPT, zap the current partition (if partition name does not contain 'ceph') and create a GPT table. We can write a bit of documentation, then address this issue in puppet-ceph later. I can help with the doc. *** Bug 1253395 has been marked as a duplicate of this bug. *** Moving to 'NEW' to be triaged as resources allow. Seb, can you summarize what we need to update in the documentation? I'll update the bug summary to match. Lucy, sure. "Prior to deploy any Ceph nodes, we need to make sure that OSD disks have a GPT label. This can be tested via the following command, ie for /dev/vdb disk: $ sudo parted /dev/vdb print Valid output: Model: Virtio Block Device (virtblk) Disk /dev/vdb: 21.5GB Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags Unvalid output: Error: /dev/vdb: unrecognised disk label Model: Virtio Block Device (virtblk) Disk /dev/vdd: 21.5GB Sector size (logical/physical): 512B/512B Partition Table: unknown Disk Flags: This is the expected result, if not you can run the following command: $ sudo sgdisk --zap-all --clear --mbrtogpt -g -- /dev/vdb " Is it enough? Thanks, Seb. I think that's sufficient for now. I've updated the summary accordingly. I think we can close this BZ. Since OSP8, I included a script in the Ceph Guide that formats all OSD disks (except the root disk) to GPT immediately after the provisioning process: https://access.redhat.com/documentation/en/red-hat-openstack-platform/9/single/red-hat-ceph-storage-for-the-overcloud/#Formatting_Ceph_Storage_Nodes_Disks_to_GPT @lbopf, what do you think? IMO, we can close this BZ, but it's up to you. Thanks for reviewing, Dan. I agree that the section you've referenced covers the request outlined in this bug. I see we also have a note about OSD disks requiring GPT labels as far back as OSP 7, which is the version against which this bug is raised: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/7/html/Director_Installation_and_Usage/sect-Advanced-Scenario_3_Using_the_CLI_to_Create_an_Advanced_Overcloud_with_Ceph_Nodes.html#sect-Advanced-Configuring_Ceph_Storage Moving to CLOSED. |