Bug 1079035

Summary: DBusCallError: Failed to call Get method on /org/freedesktop/locale1 with ('org.freedesktop.locale1', 'VConsoleKeymap') arguments: Timeout was reached
Product: [Fedora] Fedora Reporter: David Shea <dshea>
Component: anacondaAssignee: Vratislav Podzimek <vpodzime>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: anaconda-maint-list, g.kaviyarasu, jonathan, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:6da247cc7824752dfa87f6dbe12865c709a8e86d55c4454b72cae3f0b7e0286c
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1079251 (view as bug list) Environment:
Last Closed: 2014-03-31 11:35:04 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:
Bug Depends On: 1079251    
Bug Blocks:    
Attachments:
Description Flags
File: anaconda-tb
none
File: anaconda.log
none
File: docker-test.ks
none
File: environ
none
File: journalctl
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: os_info
none
File: program.log
none
File: storage.log
none
File: ifcfg.log
none
File: packaging.log
none
output of 'ausearch -m user_avc' none

Description David Shea 2014-03-20 19:38:18 UTC
Description of problem:
Ran text-mode anaconda --dirinstall in an ssh session to a rawhide machine.

Version-Release number of selected component:
anaconda-core-21.28-1.fc21.x86_64

The following was filed automatically by anaconda:
anaconda 21.28-1 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/safe_dbus.py", line 98, in dbus_call_safe_sync
    raise DBusCallError(msg)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/safe_dbus.py", line 134, in dbus_get_property_safe_sync
    connection)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/keyboard.py", line 707, in keymap
    self._connection)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/keyboard.py", line 813, in convert_keymap
    orig_keymap = self.keymap
  File "/usr/lib64/python2.7/site-packages/pyanaconda/keyboard.py", line 159, in populate_missing_items
    c_lay_var = localed.convert_keymap(keyboard.vc_keymap)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/keyboard.py", line 177, in write_keyboard_config
    populate_missing_items(keyboard)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/kickstart.py", line 1560, in execute
    keyboard.write_keyboard_config(self, ROOT_PATH)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/install.py", line 70, in doConfiguration
    ksdata.keyboard.execute(storage, ksdata, instClass)
  File "/usr/lib64/python2.7/threading.py", line 766, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 227, in run
    threading.Thread.run(self, *args, **kwargs)
DBusCallError: Failed to call Get method on /org/freedesktop/locale1 with ('org.freedesktop.locale1', 'VConsoleKeymap') arguments: Timeout was reached

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda --dirinstall --kickstart=docker-test.ks
cmdline_file:   BOOT_IMAGE=/vmlinuz-3.14.0-0.rc6.git4.1.fc21.x86_64 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=fedora/root vconsole.keymap=us rhgb quiet LANG=en_US.UTF-8
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.14.0-0.rc6.git4.1.fc21.x86_64
other involved packages: python-libs-2.7.6-4.fc21.x86_64
product:        Fedora
release:        Fedora release 21 (Rawhide)
type:           anaconda
version:        rawhide

Comment 1 David Shea 2014-03-20 19:38:26 UTC
Created attachment 877003 [details]
File: anaconda-tb

Comment 2 David Shea 2014-03-20 19:38:28 UTC
Created attachment 877004 [details]
File: anaconda.log

Comment 3 David Shea 2014-03-20 19:38:30 UTC
Created attachment 877005 [details]
File: docker-test.ks

Comment 4 David Shea 2014-03-20 19:38:31 UTC
Created attachment 877006 [details]
File: environ

Comment 5 David Shea 2014-03-20 19:38:38 UTC
Created attachment 877007 [details]
File: journalctl

Comment 6 David Shea 2014-03-20 19:38:40 UTC
Created attachment 877008 [details]
File: lsblk_output

Comment 7 David Shea 2014-03-20 19:38:41 UTC
Created attachment 877009 [details]
File: nmcli_dev_list

Comment 8 David Shea 2014-03-20 19:38:42 UTC
Created attachment 877010 [details]
File: os_info

Comment 9 David Shea 2014-03-20 19:38:44 UTC
Created attachment 877011 [details]
File: program.log

Comment 10 David Shea 2014-03-20 19:38:46 UTC
Created attachment 877012 [details]
File: storage.log

Comment 11 David Shea 2014-03-20 19:38:47 UTC
Created attachment 877013 [details]
File: ifcfg.log

Comment 12 David Shea 2014-03-20 19:38:49 UTC
Created attachment 877014 [details]
File: packaging.log

Comment 13 David Shea 2014-03-20 19:40:20 UTC
Maybe just the exceptions need to be changed? Either handling DBusCallError in keyboard.py or having dbus_get_property_safe_sync convert errors to DBusPropertyError?

Comment 14 David Shea 2014-03-20 20:09:52 UTC
Same thing at the SetVConsoleKeyboard call

anaconda 21.28-1 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/safe_dbus.py", line 98, in dbus_call_safe_sync
    raise DBusCallError(msg)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/keyboard.py", line 796, in set_keymap
    "SetVConsoleKeyboard", args, self._connection)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/keyboard.py", line 830, in set_and_convert_keymap
    self.set_keymap(keymap, convert=True)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/keyboard.py", line 814, in convert_keymap
    ret = self.set_and_convert_keymap(keymap)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/keyboard.py", line 159, in populate_missing_items
    c_lay_var = localed.convert_keymap(keyboard.vc_keymap)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/keyboard.py", line 177, in write_keyboard_config
    populate_missing_items(keyboard)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/kickstart.py", line 1560, in execute
    keyboard.write_keyboard_config(self, ROOT_PATH)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/install.py", line 70, in doConfiguration
    ksdata.keyboard.execute(storage, ksdata, instClass)
  File "/usr/lib64/python2.7/threading.py", line 766, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 227, in run
    threading.Thread.run(self, *args, **kwargs)
DBusCallError: Failed to call SetVConsoleKeyboard method on /org/freedesktop/locale1 with ('us', '', true, false) arguments: Timeout was reached

Comment 15 David Shea 2014-03-20 20:20:48 UTC
And one more. It worked after I shoved my way past this last one.

anaconda 21.28-1 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/safe_dbus.py", line 98, in dbus_call_safe_sync
    raise DBusCallError(msg)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/keyboard.py", line 876, in set_layouts
    "SetX11Keyboard", args, self._connection)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/keyboard.py", line 207, in write_keyboard_config
    keyboard.switch_options)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/kickstart.py", line 1560, in execute
    keyboard.write_keyboard_config(self, ROOT_PATH)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/install.py", line 70, in doConfiguration
    ksdata.keyboard.execute(storage, ksdata, instClass)
  File "/usr/lib64/python2.7/threading.py", line 766, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 227, in run
    threading.Thread.run(self, *args, **kwargs)
DBusCallError: Failed to call SetX11Keyboard method on /org/freedesktop/locale1 with ('', '', '', '', false, false) arguments: Timeout was reached

Comment 16 Vratislav Podzimek 2014-03-21 07:10:33 UTC
Seems like systemd-localed doesn't work. I'll try to figure out if it is a problem on our side or systemd's side.

Comment 17 Vratislav Podzimek 2014-03-21 09:45:32 UTC
Created attachment 877185 [details]
output of 'ausearch -m user_avc'

Comment 18 Vratislav Podzimek 2014-03-21 10:03:53 UTC
Running 'setenforce 0' before running anaconda fixes the issue. Thus we need to fix the SELinux policy. Bug #1079251 filed for the issue.

Comment 19 Vratislav Podzimek 2014-03-31 11:35:04 UTC
Seems to be working fine now with anaconda-21.29-1 and selinux-policy-targeted-3.13.1-41.