Bug 1439621

Summary: AttributeError: 'SwapSpace' object has no attribute 'mountpoint'
Product: [Fedora] Fedora Reporter: Petr Schindler <pschindl>
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: 26CC: anaconda-maint-list, g.kaviyarasu, jonathan, mkolman, vanmeeuwen+fedora, vponcova, vtrefny
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:e4ea72b352ee873876c5813e29d7cbf946dec212b4635bae584027ac57e3bb92;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-06 10:58:39 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: journalctl
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: os_info none

Description Petr Schindler 2017-04-06 10:33:57 UTC
Description of problem:
Installator crashed when I tried to edit partition and set its mount point.

1. I went to installation destinastion where I selected all 3 disks
2. I chose to use blivet-gui for partitoning and clicked done
3. On sda I created 2 GiB /boot and 2 GiB swap
4. I created sda3 as raid0 using all disks. I used about half of all space, but I didn't fill mount point
5. I created sda4 as raid5 using all disks. I used the rest of the space and didn't set the mount point
6. Then I clicked on done which showed me error message that I didn't set root partition.
7. I right clicked on sda3 and chose to edit -> format.
8. I set mount point to / and clicked format.

Version-Release number of selected component:
anaconda-core-26.21.1-1.fc26.x86_64

The following was filed automatically by anaconda:
anaconda 26.21.1-1 exception report
Traceback (most recent call first):
  File "/usr/lib/python3.6/site-packages/blivetgui/dialogs/edit_dialog.py", line 205, in validate_user_input
    valid, msg = is_mountpoint_valid(self.mountpoints, selected_mnt, self.edit_device.format.mountpoint)
  File "/usr/lib/python3.6/site-packages/blivetgui/dialogs/edit_dialog.py", line 221, in run
    if not self.validate_user_input():
  File "/usr/lib/python3.6/site-packages/blivetgui/osinstall.py", line 174, in run_dialog
    response = dialog.run()
  File "/usr/lib/python3.6/site-packages/blivetgui/blivetgui.py", line 289, in format_device
    user_input = self.run_dialog(dialog)
AttributeError: 'SwapSpace' object has no attribute 'mountpoint'

Additional info:
addons:         com_redhat_kdump
cmdline:        /usr/libexec/system-python  /sbin/anaconda --liveinst --method=livecd:///dev/mapper/live-base
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         4.11.0-0.rc3.git0.2.fc26.x86_64
other involved packages: blivet-gui-2.1.1-1.fc26.noarch
product:        Fedora
release:        Fedora release 26 (Twenty Six)
type:           anaconda
version:        26

Comment 1 Petr Schindler 2017-04-06 10:34:04 UTC
Created attachment 1269316 [details]
File: anaconda-tb

Comment 2 Petr Schindler 2017-04-06 10:34:06 UTC
Created attachment 1269317 [details]
File: environ

Comment 3 Petr Schindler 2017-04-06 10:34:09 UTC
Created attachment 1269318 [details]
File: journalctl

Comment 4 Petr Schindler 2017-04-06 10:34:10 UTC
Created attachment 1269319 [details]
File: lsblk_output

Comment 5 Petr Schindler 2017-04-06 10:34:12 UTC
Created attachment 1269320 [details]
File: nmcli_dev_list

Comment 6 Petr Schindler 2017-04-06 10:34:14 UTC
Created attachment 1269321 [details]
File: os_info

Comment 7 Petr Schindler 2017-04-06 10:54:55 UTC
Ok. I played with it a bit. And the whole thing is that I didn't notice that newly added partition isn't added to the end of disk but to the beginning (as sda1). So I tried to format swap (not the raid partition).

But this is still bug. When I choose edit -> format there is ext4 set as default, so when I just change mount point it should format that partition to ext4 and mount it. Now it crashes.

Comment 8 Vojtech Trefny 2017-04-06 10:58:39 UTC

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