Bug 1300073
Summary: | OverflowError: can't convert negative int to unsigned | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | robert <reswatson> | ||||||||||||||||||||||
Component: | pyparted | Assignee: | Brian Lane <bcl> | ||||||||||||||||||||||
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||||||||||||||
Severity: | unspecified | Docs Contact: | |||||||||||||||||||||||
Priority: | unspecified | ||||||||||||||||||||||||
Version: | 23 | CC: | anaconda-maint-list, bcl, dcantrell, dlehman, g.kaviyarasu, jonathan, reswatson, vanmeeuwen+fedora | ||||||||||||||||||||||
Target Milestone: | --- | ||||||||||||||||||||||||
Target Release: | --- | ||||||||||||||||||||||||
Hardware: | i686 | ||||||||||||||||||||||||
OS: | Unspecified | ||||||||||||||||||||||||
Whiteboard: | abrt_hash:69aaaeed42ef8b760334ad641c83c1e648ee16d505cb4b4c7dce9ad718105927;VARIANT_ID=workstation; | ||||||||||||||||||||||||
Fixed In Version: | pyparted-3.10.8-1 | Doc Type: | Bug Fix | ||||||||||||||||||||||
Doc Text: | Story Points: | --- | |||||||||||||||||||||||
Clone Of: | Environment: | ||||||||||||||||||||||||
Last Closed: | 2016-06-16 00:16:41 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
robert
2016-01-19 21:44:12 UTC
Created attachment 1116386 [details]
File: anaconda-tb
Created attachment 1116387 [details]
File: anaconda.log
Created attachment 1116388 [details]
File: environ
Created attachment 1116389 [details]
File: journalctl
Created attachment 1116390 [details]
File: lsblk_output
Created attachment 1116391 [details]
File: nmcli_dev_list
Created attachment 1116392 [details]
File: os_info
Created attachment 1116393 [details]
File: program.log
Created attachment 1116394 [details]
File: storage.log
Created attachment 1116395 [details]
File: ifcfg.log
The reporter has a 2.73 TiB drive sda with 1.14 TiB partition sda2. pyparted is reporting a negative size for sda2. More details follow. In the constructor for PartitionDevice, we update the size from /sys: 16:34:49,366 DEBUG blivet: updated sda2 size to 1.14 TiB (1.14 TiB) Then we look up the parted.Partition using pyparted: 16:34:49,366 DEBUG blivet: looking up parted Partition: /dev/sda2 ... Then we update the size again, but this time we ask the parted.Partition since we have one: 16:34:49,374 DEBUG blivet: PartitionDevice.readCurrentSize: exists: True ; path: /dev/sda2 ; sysfsPath: /sys/devices/pci0000:00/0000:00:11.0/ata1/host0/target0:0:0/0:0:0:0/block/sda/sda2 ; 16:34:49,375 DEBUG blivet: updated sda2 size to -875.97 GiB (1.14 TiB) I also notice the length and end attributes of the parted.Geometry have the same thing going on: 16:34:49,375 INFO blivet: added partition sda2 (id 13) to device tree 16:34:49,375 INFO blivet: got device: PartitionDevice instance (0xae76be0c) -- name = sda2 status = True kids = 0 id = 13 parents = ['existing 2.73 TiB disk sda (1) with existing gpt disklabel'] uuid = None size = -875.97 GiB ... disk = existing 2.73 TiB disk sda (1) with existing gpt disklabel start = 4096 end = -1837029377 length = -1837033472 What does the output of 'parted -s /dev/sda u s p free' show? Also, what do 'start' and 'size' under /sys/devices/pci0000:00/0000:00:11.0/ata1/host0/target0:0:0/0:0:0:0/block/sda/sda2/ show? (sorry for delay, being new I first responded to bugzilla rather than logging in) sudo parted -s /dev/sda u s p free > partedout ..... Model: ATA ST3000DM001-1CH1 (scsi) Disk /dev/sda: 5860533168s Sector size (logical/physical): 512B/4096B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 34s 2047s 2014s Free Space 1 2048s 4095s 2048s bios_grub 2 4096s 2457937919s 2457933824s ext4 2457937920s 5852227583s 3394289664s Free Space 3 5852227584s 5860532223s 8304640s linux-swap(v1) 5860532224s 5860533134s 911s Free Space [liveuser@localhost sda2]$ more size 2457933824 [liveuser@localhost sda2]$ more stat 221 0 20832 401 0 0 0 0 0 346 401 [liveuser@localhost sda2]$ more start 4096 [liveuser@localhost sda2]$ I think pyparted commit 6e62a95b5878be041152c6877c93cf9672dbda4c broke this. It changed PyLong_AsLongLong(value) to PyLong_AsLong(value) which works on 64bit systems but not on 32bit. Give this updates image a try: https://bcl.fedorapeople.org/updates/1300073.img add updates=https://bcl.fedorapeople.org/updates/1300073.img to the kernel cmdline when booting. Awesome. Now the proud owner of a Mint/Fedora dual boot. Thanks for both the solution and a learning opportunity. This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions |