ubuntu ceph journal parttion GUID isn't always set

Bug #1355342 reported by Andrew Woodward
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Vladimir Kozhukalov
5.0.x
Fix Committed
High
Sergii Golovatiuk

Bug Description

if you have 2 or more devices with ceph-disk volume and configure a single continuous range of disk as a ceph-journal then only the first journal will be assigned the Ceph journal GUID. This causes the remaining ceph-disk volumes to not be configured with the separate journal device. resulting in a configuration other than was specified by the operator.

steps to reproduce
add ceph-osd role on node with 4 disks
configure disks
  allocate disk 2 to ceph-journal (sdb)
  allocate disk 3,4 to ceph-disk
provision node

expected result

cli inspection of the machine
(given that 2, and 3 are the partition numbers of the last two partitions on the disk)

sgdisk -i 2 /dev/sdb | grep "Partition GUID code" | awk '{print $4}'
sgdisk -i 3 /dev/sdb | grep "Partition GUID code" | awk '{print $4}'

should both return '45B0969E-9B03-4F30-B4C6-B4B80CEFF106'

Revision history for this message
Miroslav Anashkin (manashkin) wrote :

Is it duplicate of
https://bugs.launchpad.net/fuel/+bug/1355390

And, looks like there is fix proposed.
https://review.openstack.org/#/c/112796/2

Revision history for this message
Dmitry Borodaenko (angdraug) wrote :
Changed in fuel:
status: Confirmed → In Progress
Changed in fuel:
assignee: Vladimir Kozhukalov (kozhukalov) → Dmitry Borodaenko (dborodaenko)
Changed in fuel:
assignee: Dmitry Borodaenko (dborodaenko) → Vladimir Kozhukalov (kozhukalov)
summary: - ubuntu ceph journal partation GUID isn't always set
+ ubuntu ceph journal parttion GUID isn't always set
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

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

commit d65ac137ae13b7d0dc53ec71135f9fdbb8ef99c4
Author: Vladimir Kozhukalov <email address hidden>
Date: Fri Aug 8 12:35:46 2014 +0400

    Fixed setting GUID on cephjournals for ubuntu

    The issue was that pmanager created ceph-journal partitions (one for
    every ceph-osd) but guid was set for only one ceph-journal partition.

    Change-Id: I50e3edc6f22310ec2ba541d677bffe1896c28fe7
    Closes-Bug: #1355342

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/5.0)

Fix proposed to branch: stable/5.0
Review: https://review.openstack.org/113901

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (stable/5.0)

Reviewed: https://review.openstack.org/113901
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=8ccecb6c90dcd8a37e519359462290a9f506aa5f
Submitter: Jenkins
Branch: stable/5.0

commit 8ccecb6c90dcd8a37e519359462290a9f506aa5f
Author: Vladimir Kozhukalov <email address hidden>
Date: Fri Aug 8 12:35:46 2014 +0400

    Fixed setting GUID on cephjournals for ubuntu

    The issue was that pmanager created ceph-journal partitions (one for
    every ceph-osd) but guid was set for only one ceph-journal partition.

    Change-Id: I50e3edc6f22310ec2ba541d677bffe1896c28fe7
    Closes-Bug: #1355342

tags: added: in-progress
Revision history for this message
Anastasia Palkina (apalkina) wrote :
Download full text (3.7 KiB)

Verified on release ISO #11

"build_id": "2014-09-17_21-40-34", "ostf_sha": "64cb59c681658a7a55cc2c09d079072a41beb346", "build_number": "11", "auth_required": true, "api": "1.0", "nailgun_sha": "eb8f2b358ea4bb7eb0b2a0075e7ad3d3a905db0d", "production": "docker", "fuelmain_sha": "8ef433e939425eabd1034c0b70e90bdf888b69fd", "astute_sha": "f5fbd89d1e0e1f22ef9ab2af26da5ffbfbf24b13", "feature_groups": ["mirantis"], "release": "5.1", "release_versions": {"2014.1.1-5.1": {"VERSION": {"build_id": "2014-09-17_21-40-34", "ostf_sha": "64cb59c681658a7a55cc2c09d079072a41beb346", "build_number": "11", "api": "1.0", "nailgun_sha": "eb8f2b358ea4bb7eb0b2a0075e7ad3d3a905db0d", "production": "docker", "fuelmain_sha": "8ef433e939425eabd1034c0b70e90bdf888b69fd", "astute_sha": "f5fbd89d1e0e1f22ef9ab2af26da5ffbfbf24b13", "feature_groups": ["mirantis"], "release": "5.1", "fuellib_sha": "d9b16846e54f76c8ebe7764d2b5b8231d6b25079"}}}, "fuellib_sha": "d9b16846e54f76c8ebe7764d2b5b8231d6b25079"

For CentOS:

[root@node-3 ~]# sgdisk -p /dev/sdb
Disk /dev/sdb: 134215680 sectors, 64.0 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 40032F03-F0D9-41F0-BF91-CF8D3306945F
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 134215646
Partitions will be aligned on 1-sector boundaries
Total free space is 91404254 sectors (43.6 GiB)

Number Start (sector) End (sector) Size Code Name
   1 34 49152 24.0 MiB EF02 primary
   2 49153 458752 200.0 MiB EF00 primary
   3 458753 868352 200.0 MiB EF00 primary
   4 868353 21839872 10.0 GiB FFFF primary
   5 21839873 42811392 10.0 GiB FFFF primary
[root@node-3 ~]# sgdisk -i 4 /dev/sdb
Partition GUID code: 45B0969E-9B03-4F30-B4C6-B4B80CEFF106 (Unknown)
Partition unique GUID: CDA0F770-CF8A-4E8F-8AD7-4473063CF204
First sector: 868353 (at 424.0 MiB)
Last sector: 21839872 (at 10.4 GiB)
Partition size: 20971520 sectors (10.0 GiB)
Attribute flags: 0000000000000000
Partition name: 'primary'
[root@node-3 ~]# sgdisk -i 5 /dev/sdb
Partition GUID code: 45B0969E-9B03-4F30-B4C6-B4B80CEFF106 (Unknown)
Partition unique GUID: 733A9D9C-A55A-495A-A853-99A2D99A8F6B
First sector: 21839873 (at 10.4 GiB)
Last sector: 42811392 (at 20.4 GiB)
Partition size: 20971520 sectors (10.0 GiB)
Attribute flags: 0000000000000000
Partition name: 'primary'

For Ubuntu:

root@node-4:~# sgdisk -p /dev/sdb
Disk /dev/sdb: 134215680 sectors, 64.0 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): EE472339-1DBC-4479-AB89-8F294B7BFA5B
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 134215646
Partitions will be aligned on 1-sector boundaries
Total free space is 92223454 sectors (44.0 GiB)

Number Start (sector) End (sector) Size Code Name
   1 34 49152 24.0 MiB EF02 primary
   2 49153 21020672 10.0 GiB FFFF primary
   3 21020673 41992192 10.0 GiB FFFF primary
root@node-4:~# sgdisk -i 2 /dev/sdb
Partition GUID code: 45B0969E-9B03-4F30-B4C6-B4B80CEFF106 (Unknown)
Partition unique GUID: 48...

Read more...

tags: removed: in-progress
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.