Bug 1442020

Summary: _ped.PartitionException: Can't add a logical partition to /dev/sda, because there is no extended partition.
Product: [Fedora] Fedora Reporter: Pavel Grunt <pgrunt>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: anaconda-maint-list, g.kaviyarasu, jonathan, mkolman, vanmeeuwen+fedora, vponcova, vtrefny
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:b0e41a0637b22cd0722b92ec2b40fb9760381db922407cada3b9b338423fcc1d;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-13 11:11:00 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: environ
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: os_info none

Description Pavel Grunt 2017-04-13 10:35:37 UTC
Description of problem:
Used a blived-gui to create partions. Disk already has 2 ntfs partitions. I wanted to create 3rd extended partition and logical partition in it. It crashes on clicking on 'done'

Version-Release number of selected component:
anaconda-27.3-1

The following was filed automatically by anaconda:
anaconda 27.3-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python3.6/site-packages/blivetgui/blivetgui.py", line 211, in _reraise_exception
    raise type(exception)(str(exception) + "\n" + traceback)
  File "/usr/lib/python3.6/site-packages/blivetgui/blivetgui.py", line 440, in add_device
    self._reraise_exception(result.exception, result.traceback)
_ped.PartitionException: Can't add a logical partition to /dev/sda, because there is no extended partition.
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/blivetgui/blivet_utils.py", line 1067, in add_device
    blivet.partitioning.do_partitioning(self.storage)
  File "/usr/lib/python3.6/site-packages/blivet/partitioning.py", line 582, in do_partitioning
    allocate_partitions(storage, disks, partitions, free)
  File "/usr/lib/python3.6/site-packages/blivet/partitioning.py", line 961, in allocate_partitions
    _part.req_start_sector, _part.req_end_sector)
  File "/usr/lib/python3.6/site-packages/blivet/partitioning.py", line 446, in add_partition
    constraint=constraint)
  File "/usr/lib64/python3.6/site-packages/parted/decorators.py", line 42, in new
    ret = fn(*args, **kwds)
  File "/usr/lib64/python3.6/site-packages/parted/disk.py", line 245, in addPartition
    constraint.getPedConstraint())
_ped.PartitionException: Can't add a logical partition to /dev/sda, because there is no extended partition.


Additional info:
addons:         com_redhat_docker, com_redhat_kdump
cmdline:        /usr/libexec/system-python  /sbin/anaconda
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         4.11.0-0.rc5.git2.1.fc27.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        rawhide

Comment 1 Pavel Grunt 2017-04-13 10:35:46 UTC
Created attachment 1271404 [details]
File: anaconda-tb

Comment 2 Pavel Grunt 2017-04-13 10:35:47 UTC
Created attachment 1271405 [details]
File: environ

Comment 3 Pavel Grunt 2017-04-13 10:35:49 UTC
Created attachment 1271406 [details]
File: lsblk_output

Comment 4 Pavel Grunt 2017-04-13 10:35:51 UTC
Created attachment 1271407 [details]
File: nmcli_dev_list

Comment 5 Pavel Grunt 2017-04-13 10:35:52 UTC
Created attachment 1271408 [details]
File: os_info

Comment 6 Vojtech Trefny 2017-04-13 11:11:00 UTC

*** This bug has been marked as a duplicate of bug 1440150 ***