Bug 623285

Summary: Yast hangs when accessing network or ntp configuration
Product: [openSUSE] openSUSE 11.3 Reporter: Forgotten User CxVz4LpaB5 <forgotten_CxVz4LpaB5>
Component: YaST2Assignee: Peter Varkoly <varkoly>
Status: VERIFIED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Major    
Priority: P5 - None CC: jfehlig
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Yast logs
Debug yast log
udevadm command output

Description Forgotten User CxVz4LpaB5 2010-07-18 17:16:47 UTC
Created attachment 376630 [details]
Yast logs

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.2.6) Gecko/20100628 Ubuntu/10.04 (lucid) Firefox/3.6.6

I have made an upgrade of my 11.2 to 11.3 using zypper dup.
My network configutation is like this:

Xen
eth0 <- vlan2 <- br2

When I try to configure ntp or network using yast, the blue interface disapear, and I need to do a ctrl-c to be back in yast again. Strangly I can access ldap server configuration in yast.

Reproducible: Always

Steps to Reproduce:
1. upgrade from 11.2 to 11.3 using zypper dup
2. have the same network config and use xen
3. try configure network or ntp in yast
Actual Results:  
unable to configure some items in yast

Expected Results:  
yast should display my current settings
Comment 1 Michal Zugec 2010-07-19 09:26:08 UTC
I'll try to reproduce
Comment 2 Forgotten User CxVz4LpaB5 2010-07-20 01:34:06 UTC
I tried to configure ntp in yast.
I have remove old settings there and configure a new ntp server.
As soon as want to save I've got a message saying:
"Unable to update dynamic configuration policy" (something like this, sorry it's in french)
Comment 3 Michal Zugec 2010-07-20 07:24:27 UTC
Please do following:
- backup old log file "mv /var/log/YaST2/y2log /var/log/YaST2/y2log.old"
- execute as root "Y2DEBUG=1 yast2 lan"
- if it hangs, attach here /var/log/YaST2/y2log file
Comment 4 Forgotten User CxVz4LpaB5 2010-07-21 02:48:34 UTC
Created attachment 377337 [details]
Debug yast log
Comment 5 Forgotten User CxVz4LpaB5 2010-07-21 02:49:24 UTC
Created attachment 377338 [details]
udevadm command output
Comment 6 Forgotten User CxVz4LpaB5 2010-07-21 02:51:45 UTC
I have executed the debug command as described above. 

As I have executed the command I have openned another shel to see what process could hang at this point and found:

/sbin/udevadm info -e

I have tried to execute the command by end and redirect the output to a file (as attachment) and found that It hangs at this point:

...
P: /devices/xen-backend/vif-1-0

There definitively something related with the bug I have openned #623286
Comment 7 Michal Zugec 2010-07-21 07:33:40 UTC
Reassigned to udev maintainer (I'm not expert in this area).
Kay, if there's problem in any other component (triggered by udev), please reassign
Comment 8 Kay Sievers 2010-07-21 08:03:54 UTC
Hmm, I don't know where or what to look for. Seems like a yast problem, or a hanging network service. Udev does not touch any network service or yast configuration. Someone should probably find out where and why yast is hanging, or is waiting for. I doubt it's hotplug related.
Comment 9 Kay Sievers 2010-07-21 08:07:52 UTC
What I meant, is that, 'udevadm info -e' can't really hang, as it's a simple database dump reading-in and printing-out plain files from tmpfs.

The only reason that comes to mind, if it's really hanging, is that it might 'hang' when the caller does not read the printed information.
Comment 10 Kay Sievers 2010-07-21 08:31:58 UTC
Another guess by looking at bnc#623286, which looks suspiciously like a XEN or XEN related bug:

It might be, that access to /sys hangs -- which could make any other system-service/management-tool hang.

If you can reproduce the hang, can you check the hanging process, and look in /proc/<pid>/fd/* which files are open?

If that does not show anything interesting, possibly attach:
  gdb -p <pid>
to the process and type:
  bt

If any of this shows pending operations in '/sys', XEN should be checked what's going on, as no common tool would be able to cope with that.
Comment 11 James Fehlig 2010-07-21 14:43:12 UTC
(In reply to comment #10)
> If any of this shows pending operations in '/sys', XEN should be checked what's
> going on, as no common tool would be able to cope with that.

As I mentioned in https://bugzilla.novell.com/show_bug.cgi?id=623286#c12, the netback module in 11.3 final has a deadlock bug.  Kay's suspicion is correct IMO - the deadlock is causing this issue.  Please try 11.3 KOTD.
Comment 12 Forgotten User CxVz4LpaB5 2010-07-22 01:24:58 UTC
Kernel-xen-2.6.34-12.3.x86_64

Linux edvac 2.6.34-12-xen #1 SMP 2010-06-29 02:39:08 +0200 x86_64 x86_64 x86_64 GNU/Linux

edvac:~ # rpm -Uvh kernel-xen-2.6.34.1-0.0.14.85ddc1a.x86_64.rpm
Préparation...              ########################################### [100%]
   1:kernel-xen             ########################################### [100%]

Kernel image:   /boot/vmlinuz-2.6.34.1-0.0.14.85ddc1a-xen
Initrd image:   /boot/initrd-2.6.34.1-0.0.14.85ddc1a-xen
KMS drivers:    intel-agp i915
Root device:    /dev/VG0/LV0_ROOT (mounted on / as ext4)
Resume device:  /dev/VG0/LV0_SWAP
modprobe: Module piix not found.
WARNING: no dependencies for kernel module 'piix' found.
Kernel Modules: hwmon thermal_sys thermal scsi_mod libata sata_sil pata_acpi processor fan xennet cdrom xenblk dm-mod dm-snapshot crc16 jbd2 ext4 agpgart intel-agp output video i2c-core button i2c-algo-bit drm drm_kms_helper i915 sata_uli pata_serverworks pata_jmicron pata_sil680 pata_sis ata_piix pata_artop pata_triflex sata_vsc pdc_adma pcmcia_core pcmcia pata_pcmcia pata_cs5530 pata_cs5520 pata_opti pata_hpt3x2n sata_sil24 pata_optidma pata_pdc2027x pata_netcell sata_via pata_cypress pata_ns87410 pata_it8213 pata_cmd64x pata_atp867x pata_radisys pata_oldpiix pata_sl82c105 sata_mv sata_sis pata_via pata_ns87415 sata_svw pata_hpt366 pata_efar pata_sc1200 pata_ali pata_hpt37x pata_rdc ahci pata_cmd640 pata_sch pata_pdc202xx_old pata_hpt3x3 pata_atiixp ata_generic sata_promise sata_sx4 pata_mpiix pata_amd pata_ninja32 pata_piccolo sata_qstor sata_nv pata_rz1000 sata_inic162x pata_marvell pata_it821x sd_mod usbcore ohci-hcd ehci-hcd uhci-hcd hid usbhid linear 
Features:       dm kms block usb lvm2 resume.userspace resume.kernel
Bootsplash:     openSUSE (1024x768)
45817 blocs


Linux edvac 2.6.34.1-0.0.14.85ddc1a-xen #1 SMP 2010-07-21 12:56:48 +0200 x86_64 x86_64 x86_64 GNU/Linux

After the reboot yast/network works so one issue solve.

Still ntp config have an error described above
Comment 13 Forgotten User CxVz4LpaB5 2010-08-05 03:09:03 UTC
Any news on your side? Please let me know if you want me to close this one and create another for ntp.
Thanks
Comment 14 Forgotten User CxVz4LpaB5 2010-10-15 16:10:17 UTC
Can you tell me if I need to open another ticket for the ntp with yast or still use this one?
Thanks
Comment 15 Xin Li Niu 2010-11-26 07:20:33 UTC
(In reply to comment #14)
> Can you tell me if I need to open another ticket for the ntp with yast or still
> use this one?
> Thanks

Hi, Romain ! Since there is no response, I think you may as well open a new one for the ntp and close this one. In that case there may be someone interested.