| Summary: | AttributeError: '_ped.Partition' object has no attribute 'setName' | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Adam Williamson <awilliam> | ||||||||||||||||||||||||||||
| Component: | anaconda | Assignee: | Anaconda Maintenance Team <anaconda-maint-list> | ||||||||||||||||||||||||||||
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||||||||||||||||||||
| Severity: | unspecified | Docs Contact: | |||||||||||||||||||||||||||||
| Priority: | unspecified | ||||||||||||||||||||||||||||||
| Version: | rawhide | CC: | alciregi, anaconda-maint-list, blivet-maint-list, dlehman, g.kaviyarasu, jonathan, kellin, robatino, satellitgo, sbueno, vanmeeuwen+fedora, vpodzime, vponcova, wwoods | ||||||||||||||||||||||||||||
| Target Milestone: | --- | Keywords: | Reopened | ||||||||||||||||||||||||||||
| Target Release: | --- | ||||||||||||||||||||||||||||||
| Hardware: | x86_64 | ||||||||||||||||||||||||||||||
| OS: | Unspecified | ||||||||||||||||||||||||||||||
| Whiteboard: | abrt_hash:418d2f3166bd9131d33bb3a87605789dba45808c956bb0f9044c2b2cd0f72211; | ||||||||||||||||||||||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||||||||||||||||||||||
| Doc Text: | Story Points: | --- | |||||||||||||||||||||||||||||
| Clone Of: | Environment: | ||||||||||||||||||||||||||||||
| Last Closed: | 2018-01-08 17:19:25 UTC | Type: | --- | ||||||||||||||||||||||||||||
| Regression: | --- | Mount Type: | --- | ||||||||||||||||||||||||||||
| Documentation: | --- | CRM: | |||||||||||||||||||||||||||||
| Verified Versions: | Category: | --- | |||||||||||||||||||||||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||||||||||||||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||||||||||||||||||||||
| Bug Depends On: | |||||||||||||||||||||||||||||||
| Bug Blocks: | 1469204 | ||||||||||||||||||||||||||||||
| Attachments: |
|
||||||||||||||||||||||||||||||
|
Description
Adam Williamson
2016-04-01 00:23:43 UTC
Created attachment 1142421 [details]
File: anaconda-tb
Created attachment 1142422 [details]
File: anaconda.log
Created attachment 1142423 [details]
File: dnf.log
Created attachment 1142424 [details]
File: environ
Created attachment 1142425 [details]
File: lsblk_output
Created attachment 1142426 [details]
File: lvm.log
Created attachment 1142427 [details]
File: nmcli_dev_list
Created attachment 1142428 [details]
File: os_info
Created attachment 1142429 [details]
File: storage.log
Created attachment 1142430 [details]
File: syslog
Created attachment 1142431 [details]
File: ifcfg.log
Created attachment 1142432 [details]
File: packaging.log
Created attachment 1142434 [details]
File: program.log
See e.g. https://openqa.happyassassin.net/tests/2524 . I ran into this while testing the new feature I'm writing for the openQA scheduler to let you run the openQA test set with an arbitrary updates.img applied for all tests... Introduced by the PEP8 commit (4e8f941b). Should have only changed blivet names, not pyparted. openQA UEFI tests were working fine for a while till https://bugzilla.redhat.com/show_bug.cgi?id=1352680 appeared, so I think we can safely say this one's fixed. This one seems to have come back in current Rawhide. Here's a traceback from a failed test with Fedora-Rawhide-20171213.n.0:
anaconda 28.13-1 exception report
Traceback (most recent call first):
File "/usr/lib64/python3.6/site-packages/pyanaconda/storage/osinstall.py", line 1250, in do_it
ped_partition.setName(dev.format.name)
File "/usr/lib/python3.6/site-packages/blivet/threads.py", line 53, in run_with_lock
return m(*args, **kwargs)
File "/usr/lib64/python3.6/site-packages/pyanaconda/storage/osinstall.py", line 2096, in turn_on_filesystems
storage.do_it(callbacks)
File "/usr/lib64/python3.6/site-packages/pyanaconda/installation_tasks.py", line 438, in run_task
self._task(*self._task_args, **self._task_kwargs)
File "/usr/lib64/python3.6/site-packages/pyanaconda/installation_tasks.py", line 472, in start
self.run_task()
File "/usr/lib64/python3.6/site-packages/pyanaconda/installation_tasks.py", line 304, in start
item.start()
File "/usr/lib64/python3.6/site-packages/pyanaconda/installation_tasks.py", line 304, in start
item.start()
File "/usr/lib64/python3.6/site-packages/pyanaconda/installation.py", line 366, in doInstall
installation_queue.start()
File "/usr/lib64/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib64/python3.6/site-packages/pyanaconda/threading.py", line 288, in run
threading.Thread.run(self)
AttributeError: '_ped.Partition' object has no attribute 'setName'
Once again, this only happens to UEFI installs, so is related to the EFI boot partitions somehow.
Proposing as an F28 Beta blocker: this appears to prevent all UEFI installs, and thus clearly violates "When using a dedicated installer image, the installer must be able to complete an installation using the text, graphical and VNC installation interfaces" (which we use as the showstopper catch-all for 'showstoppers' like this) in the case of UEFI installs. The relevant code has moved (back?) to anaconda since this bug was originally filed...still trying to figure out what changed here. OK, I think I see what happened here. After this was initially fixed in blivet by https://github.com/rhinstaller/blivet/pull/354 , a commit which moved that code somewhere else: https://github.com/storaged-project/blivet/commit/d3ac10d835e75f15629b26e1f8de743844523843 re-introduced the bug; I guess Samantha was working on it *before* PR #354 landed, so it got left out of that move. The commit does this in blivet/blivet.py: - if dev.parted_partition.disk.supportsFeature(parted.DISK_TYPE_PARTITION_NAME): - ped_partition = dev.parted_partition.getPedPartition() - ped_partition.set_name(dev.format.name) - log.info("Setting label on %s to '%s'", dev, dev.format.name) but this in blivet/osinstall.py: + if dev.parted_partition.disk.supportsFeature(parted.DISK_TYPE_PARTITION_NAME): + ped_partition = dev.parted_partition.getPedPartition() + ped_partition.setName(dev.format.name) + log.info("Setting label on %s to '%s'", dev, dev.format.name) note the change back from 'set_name' to 'setName'. That commit only landed on the 3.x track, though - it was not landed into the 2.1-devel or 2.2-devel branches. So Fedora 27, which had blivet 2.x, didn't get the bug. Then the code was moved *again*, from blivet to anaconda, and it was the incorrect 'setName' version that got landed into anaconda, not the correct 'set_name' version. The only thing I don't understand now is why this was apparently working for some weeks while python-blivet-3.0.0-0.1.b1.fc28 was in Rawhide, but never mind. I have also applied this as a downstream patch and done a Rawhide build which should fix the bug: https://koji.fedoraproject.org/koji/taskinfo?taskID=23800415 however, this is just a temporary measure because all the anaconda devs seem to be away and I'd like to try and beat Rawhide into some kind of shape; it should really be merged upstream and a new version released. The downstream patch could disappear if a new version of anaconda is released without this fix included. So I'll leave the bug open until this is merged upstream, to be sure. The fix has been merged and is in current anaconda package build, and UEFI installs on openQA are passing, so let's close this. *** Bug 1525712 has been marked as a duplicate of this bug. *** |