Modify

Ticket #415 (closed defect: fixed)

Opened 15 years ago

Last modified 15 years ago

gamin fails to reload xml files created by create-debian-pkglist.py

Reported by: naapuri Owned by: desai
Priority: minor Milestone: Bcfg2 0.9.3 Release
Component: bcfg2-server Version:
Keywords: Cc:

Description

After running create-debian-pkglist.py I have to restart the bcfg2 server for the changes to become effective. This is contrary to that the server is supposed to reload all the files automatically when they change.

After adding a new version of a package to a repository and running the create-debian-pkglist.py script, I tried to run the client, but it wouldn't propose upgrading the package. After restarting bcfg2-server the client did propose the upgrade.

From daemon.log:

Mar  7 00:31:03 zoot bcfg2-server[6b649c0046395b7eb64e8e24d3433ee10dff2409] (SVN r2011): Suppressing event for file http:__security.debian.org_dists_etch_updates.xml~
Mar  7 00:31:03 zoot bcfg2-server[6b649c0046395b7eb64e8e24d3433ee10dff2409] (SVN r2011): Failed to parse file /var/lib/bcfg2/Pkgmgr/http:__security.debian.org_dists_etch_updates.xml~-deps
Mar  7 00:31:03 zoot bcfg2-server[6b649c0046395b7eb64e8e24d3433ee10dff2409] (SVN r2011): Processed 2 gamin events in 0.136 seconds. 0 collapsed
Mar  7 00:31:04 zoot bcfg2-server[6b649c0046395b7eb64e8e24d3433ee10dff2409] (SVN r2011): Suppressing event for file http:__security.debian.org_dists_etch_updates.xml~
Mar  7 00:31:04 zoot bcfg2-server[6b649c0046395b7eb64e8e24d3433ee10dff2409] (SVN r2011): Suppressing event for file http:__security.debian.org_dists_etch_updates.xml~
Mar  7 00:31:04 zoot bcfg2-server[6b649c0046395b7eb64e8e24d3433ee10dff2409] (SVN r2011): Suppressing event for file http:__ftp.fi.debian.org_debian_dists_etch.xml~
Mar  7 00:31:04 zoot bcfg2-server[6b649c0046395b7eb64e8e24d3433ee10dff2409] (SVN r2011): Failed to parse file /var/lib/bcfg2/Pkgmgr/http:__security.debian.org_dists_etch_updates.xml~-deps
Mar  7 00:31:04 zoot bcfg2-server[6b649c0046395b7eb64e8e24d3433ee10dff2409] (SVN r2011): got multiple adds for http:__security.debian.org_dists_etch_updates.xml
Mar  7 00:31:04 zoot bcfg2-server[6b649c0046395b7eb64e8e24d3433ee10dff2409] (SVN r2011): Failed to parse file /var/lib/bcfg2/Pkgmgr/http:__ftp.fi.debian.org_debian_dists_etch.xml~-deps
Mar  7 00:31:04 zoot bcfg2-server[6b649c0046395b7eb64e8e24d3433ee10dff2409] (SVN r2011): Processed 6 gamin events in 0.208 seconds. 0 collapsed
Mar  7 00:31:22 zoot bcfg2-server[6b649c0046395b7eb64e8e24d3433ee10dff2409] (SVN r2011): Suppressing event for file http:__ftp.fi.debian.org_debian_dists_etch.xml~
Mar  7 00:31:22 zoot bcfg2-server[6b649c0046395b7eb64e8e24d3433ee10dff2409] (SVN r2011): Failed to parse file /var/lib/bcfg2/Pkgmgr/http:__ftp.fi.debian.org_debian_dists_etch.xml~-deps
Mar  7 00:31:22 zoot bcfg2-server[6b649c0046395b7eb64e8e24d3433ee10dff2409] (SVN r2011): Processed 2 gamin events in 0.124 seconds. 0 collapsed
Mar  7 00:31:23 zoot bcfg2-server[6b649c0046395b7eb64e8e24d3433ee10dff2409] (SVN r2011): Suppressing event for file http:__ftp.fi.debian.org_debian_dists_etch.xml~
Mar  7 00:31:23 zoot last message repeated 2 times
Mar  7 00:31:23 zoot bcfg2-server[6b649c0046395b7eb64e8e24d3433ee10dff2409] (SVN r2011): Suppressing event for file http:__x.x.x.x_myrepo_.xml~
Mar  7 00:31:23 zoot last message repeated 2 times
Mar  7 00:31:23 zoot bcfg2-server[6b649c0046395b7eb64e8e24d3433ee10dff2409] (SVN r2011): Failed to read file /var/lib/bcfg2/Pkgmgr/http:__ftp.fi.debian.org_debian_dists_etch.xml~-deps
Mar  7 00:31:23 zoot bcfg2-server[6b649c0046395b7eb64e8e24d3433ee10dff2409] (SVN r2011): got multiple adds for http:__ftp.fi.debian.org_debian_dists_etch.xml
Mar  7 00:31:23 zoot bcfg2-server[6b649c0046395b7eb64e8e24d3433ee10dff2409] (SVN r2011): Failed to read file /var/lib/bcfg2/Pkgmgr/http:__x.x.x.x_myrepo_.xml~-deps
Mar  7 00:31:23 zoot bcfg2-server[6b649c0046395b7eb64e8e24d3433ee10dff2409] (SVN r2011): Failed to read file /var/lib/bcfg2/Pkgmgr/http:__x.x.x.x_myrepo_.xml~-deps
Mar  7 00:31:23 zoot bcfg2-server[6b649c0046395b7eb64e8e24d3433ee10dff2409] (SVN r2011): got multiple adds for http:__x.x.x.x_myrepo_.xml
Mar  7 00:31:23 zoot bcfg2-server[6b649c0046395b7eb64e8e24d3433ee10dff2409] (SVN r2011): Processed 16 gamin events in 0.236 seconds. 2 collapsed

Perhaps this bug wouldn't show up if the files where prepared elsewhere and then moved into place. (That's not the perfect fix, of course.)

Attachments

fam.diff (585 bytes) - added by desai 15 years ago.

Change History

Changed 15 years ago by desai

comment:1 Changed 15 years ago by desai

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone set to Bcfg2 0.9.3 Release

I am pretty sure that this is fixed in [a6381cba440959d546904b3c090f5b89190ef3e8] (SVN r2923). The fam state machine was wrongly discarding modification events in one case.

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.