Bug 865196

Summary: ValueError: format is not resizable
Product: [Fedora] Fedora Reporter: Reartes Guillermo <rtguille>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: anaconda-maint-list, g.kaviyarasu, jonathan, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:e824b3094d1cc61abab96356c4254bf690820321595014cb18f6b2e6c80e4ef9
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-07 23:44:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: anaconda-tb
none
File: product
none
File: type
none
File: ifcfg.log
none
File: storage.log
none
File: version
none
File: environ
none
File: anaconda.log
none
File: syslog
none
File: hashmarkername
none
File: packaging.log
none
File: cmdline_file
none
File: release
none
File: program.log none

Description Reartes Guillermo 2012-10-11 01:23:01 UTC
Description of problem:
tried to 'resize' an UNKNOWN partition. 

UNKNOWN partitions should be not rezisable. In this case such partition is a Solaris VTOC.
Anaconda should only offer to resize the supported cases.


Version-Release number of selected component:
anaconda-18.14

Additional info:
libreport version: 2.0.14
cmdline:        /usr/bin/python  /sbin/anaconda
kernel:         3.6.1-1.fc18.x86_64

description:
:The following was filed automatically by anaconda:
:anaconda 18.14 exception report
:Traceback (most recent call first):
:  File "/usr/lib64/python2.7/site-packages/pyanaconda/storage/deviceaction.py", line 543, in __init__
:    raise ValueError("format is not resizable")
:  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/lib/resize.py", line 223, in _scheduleActions
:    self.storage.devicetree.registerAction(ActionResizeFormat(device, device.minSize))
:ValueError: format is not resizable

Comment 1 Reartes Guillermo 2012-10-11 01:23:09 UTC
Created attachment 625274 [details]
File: anaconda-tb

Comment 2 Reartes Guillermo 2012-10-11 01:23:11 UTC
Created attachment 625275 [details]
File: product

Comment 3 Reartes Guillermo 2012-10-11 01:23:14 UTC
Created attachment 625276 [details]
File: type

Comment 4 Reartes Guillermo 2012-10-11 01:23:16 UTC
Created attachment 625277 [details]
File: ifcfg.log

Comment 5 Reartes Guillermo 2012-10-11 01:23:21 UTC
Created attachment 625278 [details]
File: storage.log

Comment 6 Reartes Guillermo 2012-10-11 01:23:23 UTC
Created attachment 625279 [details]
File: version

Comment 7 Reartes Guillermo 2012-10-11 01:23:25 UTC
Created attachment 625280 [details]
File: environ

Comment 8 Reartes Guillermo 2012-10-11 01:23:27 UTC
Created attachment 625281 [details]
File: anaconda.log

Comment 9 Reartes Guillermo 2012-10-11 01:23:32 UTC
Created attachment 625282 [details]
File: syslog

Comment 10 Reartes Guillermo 2012-10-11 01:23:35 UTC
Created attachment 625283 [details]
File: hashmarkername

Comment 11 Reartes Guillermo 2012-10-11 01:23:37 UTC
Created attachment 625284 [details]
File: packaging.log

Comment 12 Reartes Guillermo 2012-10-11 01:23:39 UTC
Created attachment 625285 [details]
File: cmdline_file

Comment 13 Reartes Guillermo 2012-10-11 01:23:42 UTC
Created attachment 625286 [details]
File: release

Comment 14 Reartes Guillermo 2012-10-11 01:23:47 UTC
Created attachment 625287 [details]
File: program.log

Comment 15 Chris Lumens 2012-10-23 18:51:59 UTC
How can I make a device of this type in order to test?

Comment 16 Reartes Guillermo 2012-10-23 19:08:24 UTC
Sadly, you must install a Solaris x86 on the disk.

# fdisk -l /dev/sda

Disk /dev/sda: 24.3 GB, 24315428864 bytes, 47491072 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *       16065    47488139    23736037+  bf  Solaris

Disk /dev/mapper/live-rw: 1073 MB, 1073741824 bytes, 2097152 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

# gdisk -l /dev/sda 

GPT fdisk (gdisk) version 0.8.4

Partition table scan:
  MBR: MBR only
  BSD: not present
  APM: not present
  GPT: not present


***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format.
***************************************************************

Disk /dev/sda: 47491072 sectors, 22.6 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): BCF9335B-8B38-4017-A150-4C53F027DC52
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 47491038
Partitions will be aligned on 1-sector boundaries
Total free space is 18930 sectors (9.2 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1           16065        47488139   22.6 GiB    BF00  Solaris root

These info might be useful:

Some info might be outdated, but check only the parts that refer to VTOC or SOLARIS PARTITION and SLICES. 

http://content.hccfl.edu/pollock/aunix1/SolarisPartitioning.htm
http://multiboot.solaris-x86.org/iv/3.html

Comment 17 Reartes Guillermo 2012-11-05 22:29:52 UTC
F18b TC7, tried to shrink the unknown partition (with solaris) and the 'reclaim space' button remains grayed out (locked). 

So it seems this avoids the issue by not unlocking the 'reclaim space' for 'unknown' partitions.

Comment 18 Chris Lumens 2012-11-06 14:58:32 UTC
If you manipulate enough other partitions, though, we will enable the button and then might still hit this issue.  That'd be worth a test.