Bug 231256

Summary: Zen-updater's repositories are lost after boot
Product: [openSUSE] openSUSE 10.2 Reporter: Fatih Alabas <f.alabas>
Component: ZenworksAssignee: Sreehari Cheerla <scheerla>
Status: RESOLVED FIXED QA Contact: Forgotten User YrvzK78Vmi <forgotten_YrvzK78Vmi>
Severity: Critical    
Priority: P1 - Urgent CC: christian.jaeger, forgotten_zhFaldehF_, guillaume.gardet, kkaempf, rashmiranjan.mohanty
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on: 230673    
Bug Blocks:    
Attachments: zmd log files

Description Fatih Alabas 2007-01-02 11:30:19 UTC
+++ This bug was initially created as a copy of Bug #230673 +++

When shutting down the system, RANDOMLY zmd can not be shutdown by the
system. I see the red "failed" message on the shutdown screen,then after next-boot, some of the repositories are lost in the zen-updater configuration. Restaring the zmd, zen-updater and rebooting does not work, I manually need to add the lost repositories again.
Comment 1 Fatih Alabas 2007-01-07 15:09:49 UTC
I am withdrawing the word "RANDOMLY" because I have just noticed that the ZMD is failed to stop when it is sleeping. If it is already awaken or if I make it awake manually before shutting down the system, then there is no red "failed" message at the shutdown screen so no residual problem after next boot.

I checked all the log files of the system, especially zmd-backend.log and zmd-messages.log but there is no message related to "failed" message at shutdown screen. 

On the other hand, the Bug #231253 has the same origin. I mean the results seem different but the source is same. 
Comment 2 Fatih Alabas 2007-01-07 21:38:30 UTC
Created attachment 111762 [details]
zmd log files

I tried to reproduce the bug and this time, fortunately, had some error messages in the zmd log files. 

As you will note in the log files,

07 Jan 2007 17:05:52 ZMD going to sleep

then,
starting from 07 Jan 2007 17:11:51 ZMD gives some errors outputs because 17:11:51 is time I click "Turn Off Computer" from the KDE.

later, 
07 Jan 2007 22:59:22, I reboot the computer, but some of the repositories are lost forever.
Comment 3 Fatih Alabas 2007-01-22 19:01:50 UTC
I need to add one point. After the loss of repositories, I add them again. However  it takes too long restarting/refreshing the zmd ( about 7 minutes for my configured repositories ). So I delete the zmd.db file in /var/lib/zmd and then restarting/refresing time reduces dramatically ( about 2 minutes )

I mean after repo's lost, adding them again does not solve the problem completely, but the zmd.db must be cleared.
Comment 4 Christian Jäger 2007-02-09 18:08:39 UTC
I can confirm this bug; I had wanted to report it myself today but just found this report.

It certainly is dangerous because also the regular update-repository is lost without any notification. So users live on in a false feeling of security while they actually never receive a security-update.

Thus I take the liberty of changing the severity to 'Critical'. ^_-
Comment 5 Christian Jäger 2007-02-09 18:09:30 UTC
P.S.: This also happens on i386-architecture.
Comment 6 Rafał Polak 2007-02-15 04:26:12 UTC
I can confirm this bug. I tried 32bit and 64bit architectures. 
Comment 7 Rafał Miłecki 2007-03-26 19:37:56 UTC
Just wanted to report this same bug because I losted sources in zen-updater. I had to delete them and add again in YaST.
Comment 8 Rafał Miłecki 2007-04-12 16:29:24 UTC
How the hell can you leave so horrible a bug left? It is very dangerous for users, because they do not have Update repository in ZMD and they do not get security updates!
Comment 9 Forgotten User zhFaldehF_ 2007-06-10 01:56:46 UTC
Just to add I have this bug also, and have to do 

rug service-add --type=ZYPP url name

To re-add, and this has several times kept me from getting security updates that I reply on. 

I at time find it easier to go into yast, and just checking the update repository for new updates. 

Hopefully this is fixed, and released for 10.2 and not just closed and marked fixed in 10.3
Comment 10 Jinu Mathew Joy 2007-09-28 07:31:54 UTC
(ZLM) Lets try this on SLE10 SP1. 
Comment 11 Rashmi Ranjan Mohanty 2007-10-10 06:50:14 UTC
Looking at the logs in comment #2 ....
------------------------------------
07 Jan 2007 17:12:23 WARN  NetworkStatus        Network has been disconnected
process 2956: Applications must not close shared connections - see dbus_connection_close() docs. This is a bug in the application.
  D-Bus not built with -rdynamic so unable to print a backtrace
--------------------------------------
This was an issue prior to SLE10 SP1. ZMD was not handling the dbus restarts properly. Whenever NetworkManager is started, stopped or restarted dbus service also starts, stops or restarts respectively. Dbus restarts were not handled properly in ZMD. Now it has been handled in a better way in zmd of SP1.

Anyway Zenworks is no more part of OpenSuSE.....
Assuming this has been fixed for SLE10 SP1, marking this as resolved. Please re-open it if you can re-produce it on SLE10 SP1
Comment 12 Rashmi Ranjan Mohanty 2007-10-10 07:01:36 UTC
oops... forgot to change the status
Comment 13 Rashmi Ranjan Mohanty 2007-10-10 10:05:09 UTC
*** Bug 250583 has been marked as a duplicate of this bug. ***