Incorrect disk allocation in Ubuntu

Bug #1261220 reported by Ryan Moe
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Critical
Vladimir Kozhukalov

Bug Description

Installed from ISO 139.

"release": "4.0"
"nailgun_sha": "e5c0e954d6d03ba9fd857f1f7a662a6386099232"
"ostf_sha": "c1c353909cd1a0af018bbe89fb12570db6b09969"
"astute_sha": "75aa0877cba772f409d3cef4f36ba2ec1b8b603b"
"fuellib_sha": "912a1c77d0506115452bb455b476d74b927f1153"

1. A vg is not created for the OS.

2. The OS is always installed to the first disk regardless of how it's allocated in the UI (see screenshot).

3. Not all volume groups are created. Cinder role was assigned but no volume group was created.

root@node-2:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda2 15G 1.8G 13G 13% /
udev 489M 12K 489M 1% /dev
tmpfs 199M 340K 199M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 498M 0 498M 0% /run/shm
/dev/mapper/vm-nova 63G 33M 63G 1% /var/lib/nova
cgroup 498M 0 498M 0% /sys/fs/cgroup

root@node-2:~# vgs
  VG #PV #LV #SN Attr VSize VFree
  vm 2 1 0 wz--n- 62.25g 96.00m

root@node-2:~# parted /dev/vda print
Model: Virtio Block Device (virtblk)
Disk /dev/vda: 17.2GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
 1 17.4kB 1018kB 1000kB bios_grub
 2 1018kB 16.1GB 16.1GB ext4
 3 16.1GB 17.2GB 1074MB linux-swap(v1)

root@node-2:~# parted /dev/vdb print
Error: /dev/vdb: unrecognised disk label

root@node-2:~# parted /dev/vdc print
Model: Virtio Block Device (virtblk)
Disk /dev/vdc: 68.7GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
 1 17.4kB 25.2MB 25.1MB primary bios_grub
 2 25.2MB 35.0GB 35.0GB primary
 3 35.0GB 68.2GB 33.2GB primary

root@node-2:~# parted /dev/vdd print
Model: Virtio Block Device (virtblk)
Disk /dev/vdd: 34.4GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
 1 17.4kB 25.2MB 25.1MB primary bios_grub
 2 25.2MB 33.7GB 33.7GB primary

Revision history for this message
Ryan Moe (rmoe) wrote :
Revision history for this message
Ryan Moe (rmoe) wrote :
Ryan Moe (rmoe)
description: updated
Mike Scherbakov (mihgen)
Changed in fuel:
milestone: none → 4.0
importance: Undecided → Critical
Evgeniy L (rustyrobot)
Changed in fuel:
assignee: nobody → Evgeniy L (rustyrobot)
status: New → In Progress
Revision history for this message
Evgeniy L (rustyrobot) wrote :

Vladimir, I heard that we had some problems with allocation os partition on disk which is not first for Ubuntu installation.
Do we still have such problems?
From logs I see os volume which was allocated on second disk http://paste.openstack.org/show/55045/
Volume mapping from nailgun looks good http://paste.openstack.org/show/55046/

What do you think?

Changed in fuel:
status: In Progress → Confirmed
assignee: Evgeniy L (rustyrobot) → Vladimir Kozhukalov (kozhukalov)
Revision history for this message
Vladimir Kozhukalov (kozhukalov) wrote :

OS is installed on the first disk for ubuntu. It is by design. As far as I know it is mentioned in documentation that user needs not to create OS volume on disks different from first.
Possibly lost cinder volume is connected with this limitation. Will look carefully and will write a bit later.

Revision history for this message
Mike Scherbakov (mihgen) wrote :

Vladimir - please move the status to "In progress" if you work on this.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

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

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
Vladimir Kozhukalov (kozhukalov) wrote :

The reason of error was that OS partition must be located on the first disk. By the way, I've made small improvement. Using this improvement user can locate OS volume on any of available disks, but it is still MUST be located on one disk and not distributed over two or more. That is because we do not use LVM for OS partition on Ubuntu.

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

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

commit 958eca501ce8046ef9528283185ab4d0799e7518
Author: Vladimir Kozhukalov <email address hidden>
Date: Tue Dec 17 14:43:10 2013 +0400

    Made small improvement for Ubuntu partitioning.

    Now user can locate OS partition on any of available
    disks on node. But there is still the limitation that
    OS volume group MUST be located on one disk. It is
    because we do not use LVM for OS partitioning on Ubuntu.

    Change-Id: Ieb4f115917722f39ca262c94ed1168d88e7b7a79
    Closes-bug: #1261220

Changed in fuel:
status: In Progress → Fix Committed
Dmitry Pyzhov (dpyzhov)
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.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.