Bug 1331054

Summary: traceback on invalid netmask in TUI: Error: g-io-error-quark: GDBus.Error:org.freedesktop.NetworkManager.Settings.Connection.MissingProperty: ipv4.addresses: this property cannot be empty for 'method=manual' (36)
Product: Red Hat Enterprise Linux 7 Reporter: Jiri Konecny <jkonecny>
Component: anacondaAssignee: Radek Vykydal <rvykydal>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3CC: jstodola, mkovarik, rvykydal
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:7bbd7ec634b36db61ee69516f176ab692ec0c4c62a4b88a923d4c63a5f3dc162
Fixed In Version: anaconda-21.48.22.70-1 Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-03 23:24:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: anaconda-tb
none
File: anaconda.log
none
File: environ
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: os_info
none
File: program.log
none
File: storage.log
none
File: syslog
none
File: ifcfg.log
none
File: packaging.log none

Description Jiri Konecny 2016-04-27 14:52:00 UTC
Description of problem:
In TUI go to Network spoke and set-up address, netmask, gateway for IPv4. I used invalid values. When I went back by 'c'ontinue I got this exception.

My use-case:
address 10.1.1.1
netmask 1.2.3.4
gateway 2.3.4.5

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

The following was filed automatically by anaconda:
anaconda 21.48.22.63-1 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/nm.py", line 1002, in _update_settings
    None)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/nm.py", line 962, in nm_update_settings_of_device
    return _update_settings(settings_path, new_values)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/network.py", line 452, in update_settings_with_ksdata
    nm.nm_update_settings_of_device(devname, new_values)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/tui/spokes/network.py", line 229, in input
    network.update_settings_with_ksdata(devname, ndata)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/tui/simpleline/base.py", line 441, in input
    key = self._screens[-1][0].input(args, key)
Error: g-io-error-quark: GDBus.Error:org.freedesktop.NetworkManager.Settings.Connection.MissingProperty: ipv4.addresses: this property cannot be empty for 'method=manual' (36)

Additional info:
addons:         org_fedora_oscap, com_redhat_kdump
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   initrd=/test/rhel7/initrd.img resolution=1024x768 nokill inst.repo=http://cobra02/trees/rhel7 inst.text BOOT_IMAGE=/test/rhel7/vmlinuz 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.10.0-373.el7.x86_64
product:        Red Hat Enterprise Linux 7
release:        Red Hat Enterprise Linux Client release 7.3 Beta (Maipo)
release_type:   pre-release
type:           anaconda
uid:            0
version:        7.3

Comment 1 Jiri Konecny 2016-04-27 14:52:04 UTC
Created attachment 1151426 [details]
File: anaconda-tb

Comment 2 Jiri Konecny 2016-04-27 14:52:06 UTC
Created attachment 1151427 [details]
File: anaconda.log

Comment 3 Jiri Konecny 2016-04-27 14:52:07 UTC
Created attachment 1151428 [details]
File: environ

Comment 4 Jiri Konecny 2016-04-27 14:52:08 UTC
Created attachment 1151429 [details]
File: lsblk_output

Comment 5 Jiri Konecny 2016-04-27 14:52:10 UTC
Created attachment 1151430 [details]
File: nmcli_dev_list

Comment 6 Jiri Konecny 2016-04-27 14:52:11 UTC
Created attachment 1151431 [details]
File: os_info

Comment 7 Jiri Konecny 2016-04-27 14:52:13 UTC
Created attachment 1151432 [details]
File: program.log

Comment 8 Jiri Konecny 2016-04-27 14:52:15 UTC
Created attachment 1151433 [details]
File: storage.log

Comment 9 Jiri Konecny 2016-04-27 14:52:17 UTC
Created attachment 1151434 [details]
File: syslog

Comment 10 Jiri Konecny 2016-04-27 14:52:18 UTC
Created attachment 1151435 [details]
File: ifcfg.log

Comment 11 Jiri Konecny 2016-04-27 14:52:20 UTC
Created attachment 1151436 [details]
File: packaging.log

Comment 13 Radek Vykydal 2016-04-28 07:54:59 UTC
Good catch, we need to add validation of netmask value in TUI so we don't pass incorrect value to NM in settings.

Comment 14 Jiri Konecny 2016-04-28 15:11:00 UTC
It's happening on rawhide too. So I think it will be on F24 also.

Comment 18 errata-xmlrpc 2016-11-03 23:24:29 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2016-2158.html