Bug 1439621 - AttributeError: 'SwapSpace' object has no attribute 'mountpoint'
Summary: AttributeError: 'SwapSpace' object has no attribute 'mountpoint'
Keywords:
Status: CLOSED DUPLICATE of bug 1439108
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 26
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:e4ea72b352ee873876c5813e29d...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-06 10:33 UTC by Petr Schindler
Modified: 2017-04-06 10:58 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-04-06 10:58:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (348.24 KB, text/plain)
2017-04-06 10:34 UTC, Petr Schindler
no flags Details
File: environ (509 bytes, text/plain)
2017-04-06 10:34 UTC, Petr Schindler
no flags Details
File: journalctl (226.84 KB, text/plain)
2017-04-06 10:34 UTC, Petr Schindler
no flags Details
File: lsblk_output (1.52 KB, text/plain)
2017-04-06 10:34 UTC, Petr Schindler
no flags Details
File: nmcli_dev_list (2.24 KB, text/plain)
2017-04-06 10:34 UTC, Petr Schindler
no flags Details
File: os_info (518 bytes, text/plain)
2017-04-06 10:34 UTC, Petr Schindler
no flags Details

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 ***


Note You need to log in before you can comment on or make changes to this bug.