ubuntu ceph-osd fails to set partition guid

Bug #1312441 reported by Andrew Woodward
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Critical
Ryan Moe

Bug Description

{"build_id": "2014-04-24_19-11-02", "mirantis": "yes", "build_number": "138", "nailgun_sha": "4e231ac07474a2c01b72e0529b79bfd80809eba3", "production": "prod", "ostf_sha": "134765fcb5a07dce0cd1bb399b2290c988c3c63b", "fuelmain_sha": "a53a007a36fd0ff738fe6382bf8a9797aaebf789", "astute_sha": "6e8fa4cc12968d7b468fc590b2f06bb59bf74511", "release": "5.0", "fuellib_sha": "9c526a662d718a0225d02ff4267c132e46acba80"}

cobbler pre-seed script http://paste.openstack.org/show/77011/

regression was added by https://review.openstack.org/#/q/I43a2de132415d026a6dc096e2b25ce0ab4cce915,n,z

for device in $(lsblk -ln | awk '{if ($6 == "disk") print $1}') ; do for part in $(ls /dev/$device? | sed s/\\/dev\\/${device}//); do echo /dev/${device}${part} ; sgdisk -i ${part} /dev/${device} | grep "Partition GUID code" ; done ; done
/dev/vda1
Partition GUID code: 21686148-6449-6E6F-744E-656564454649 (BIOS boot partition)
/dev/vda2
Partition GUID code: C12A7328-F81F-11D2-BA4B-00A0C93EC93B (EFI System)
/dev/vda3
Partition GUID code: EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 (Microsoft basic data)
/dev/vda4
Partition GUID code: 0657FD6D-A4AB-43C4-84E5-0933C84B4F4F (Linux swap)
/dev/vda5
Partition GUID code: EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 (Microsoft basic data)
/dev/vdb1
Partition GUID code: 21686148-6449-6E6F-744E-656564454649 (BIOS boot partition)
/dev/vdb2
Partition GUID code: EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 (Microsoft basic data)
/dev/vdc1
Partition GUID code: 21686148-6449-6E6F-744E-656564454649 (BIOS boot partition)
/dev/vdc2
Partition GUID code: EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 (Microsoft basic data)

vdb2 and vdc2 should have 4FBD7E29-9D25-41B8-AFD0-062C0CEFF05D for ceph osd
or 45B0969E-9B03-4F30-B4C6-B4B80CEFF106 for ceph journal

Tags: ceph library
Andrew Woodward (xarses)
Changed in fuel:
milestone: none → 5.0
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix proposed to fuel-library (master)

Fix proposed to branch: master
Review: https://review.openstack.org/90257

Changed in fuel:
status: Triaged → In Progress
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix proposed to fuel-library (stable/4.1)

Fix proposed to branch: stable/4.1
Review: https://review.openstack.org/90261

Changed in fuel:
importance: High → Critical
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/90257
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=10d2775b21102b1dcda00e355cc364895d230236
Submitter: Jenkins
Branch: master

commit 10d2775b21102b1dcda00e355cc364895d230236
Author: Ryan Moe <email address hidden>
Date: Thu Apr 24 16:57:00 2014 -0700

    Mount target when setting partition GUID

    sgdisk is only installed in the target therefore when we run sgdisk
    it must be run in-target. For it to succeed the target must be mounted
    beforehand.

    Change-Id: I952b82c5dba4ab0b1cb924bb1f18f685cc96a51a
    Closes-bug: #1312441

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to fuel-library (stable/4.1)

Reviewed: https://review.openstack.org/90261
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=5e94e93035b5f2adb25487c0808c2fee606a415d
Submitter: Jenkins
Branch: stable/4.1

commit 5e94e93035b5f2adb25487c0808c2fee606a415d
Author: Ryan Moe <email address hidden>
Date: Thu Apr 24 16:57:00 2014 -0700

    Mount target when setting partition GUID

    sgdisk is only installed in the target therefore when we run sgdisk
    it must be run in-target. For it to succeed the target must be mounted
    beforehand.

    Change-Id: I952b82c5dba4ab0b1cb924bb1f18f685cc96a51a
    Closes-bug: #1312441

Changed in fuel:
status: Fix Committed → Fix Released
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.