authdb Store for scripts connecting to incorrect database

Bug #464161 reported by Stuart Bishop
44
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Critical
Gary Poster

Bug Description

The OpenIDAssociationPruner step in garbo-hourly.py is attempting to update tables in a slave database:

Traceback (most recent call last):
  File "/srv/launchpad.net/production/launchpad-rev-8536/lib/canonical/launchpad/scripts/garbo.py", line 721, in main
    tunable_loop.run()
  File "/srv/launchpad.net/production/launchpad-rev-8536/lib/canonical/launchpad/scripts/garbo.py", line 66, in run
    abort_time = self.abort_time).run()
  File "/srv/launchpad.net/production/launchpad-rev-8536/lib/canonical/launchpad/utilities/looptuner.py", line 107, in run
    self.operation(chunk_size)
  File "/srv/launchpad.net/production/launchpad-rev-8536/lib/canonical/launchpad/scripts/garbo.py", line 155, in __call__
    result = self.store.execute("""
  File "/srv/launchpad.net/production/launchpad-rev-8536/eggs/storm-0.15-py2.4-linux-x86_64.egg/storm/store.py", line 104, in execute
    return self._connection.execute(statement, params, noresult)
  File "/srv/launchpad.net/production/launchpad-rev-8536/eggs/storm-0.15-py2.4-linux-x86_64.egg/storm/databases/postgres.py", line 249, in execute
    return Connection.execute(self, statement, params, noresult)
  File "/srv/launchpad.net/production/launchpad-rev-8536/eggs/storm-0.15-py2.4-linux-x86_64.egg/storm/database.py", line 217, in execute
    raw_cursor = self.raw_execute(statement, params)
  File "/srv/launchpad.net/production/launchpad-rev-8536/eggs/storm-0.15-py2.4-linux-x86_64.egg/storm/databases/postgres.py", line 259, in raw_execute
    return Connection.raw_execute(self, statement, params)
  File "/srv/launchpad.net/production/launchpad-rev-8536/eggs/storm-0.15-py2.4-linux-x86_64.egg/storm/database.py", line 299, in raw_execute
    self._check_disconnect(raw_cursor.execute, *args)
  File "/srv/launchpad.net/production/launchpad-rev-8536/eggs/storm-0.15-py2.4-linux-x86_64.egg/storm/database.py", line 342, in _check_disconnect
    return function(*args, **kwargs)
InternalError: Slony-I: Table openidassociation is replicated and cannot be modified on a subscriber node

Revision history for this message
Stuart Bishop (stub) wrote :

Setting to high as things will start to screw up if we don't keep this table trimmed.

Changed in launchpad-foundations:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Stuart Bishop (stub) wrote :

initZopeless in lib/canonical/database/sqlbase.py is connecting both the auth and main stores to the main database.

Revision history for this message
Stuart Bishop (stub) wrote :

This is affecting other scripts too

Changed in launchpad-foundations:
assignee: nobody → Stuart Bishop (stub)
milestone: none → 3.1.11
Revision history for this message
Gavin Panella (allenap) wrote :

A bug import done on Monday only half completed and cannot complete because of this issue. Because the bug importer commits after each bug, 190 bugs were imported fine, but 205 still cannot be imported. The project is thus in limbo; they cannot go back to their old bug tracker, nor can they move forward fully to Launchpad. Resolving this bug is very important!

Revision history for this message
Данило Шеган (danilo) wrote :

Similar thing happened in translations: bug 475566

Stuart Bishop (stub)
summary: - OpenIDAssociationPruner is using the wrong Store
+ authdb Store for scripts connecting to incorrect database
Revision history for this message
Julian Edwards (julian-edwards) wrote :

Also see bug 476316 and bug 475172 for Soyuz.

Revision history for this message
Julian Edwards (julian-edwards) wrote :

Upped to critical, this is breaking some Soyuz uploads.

Changed in launchpad-foundations:
importance: High → Critical
Stuart Bishop (stub)
Changed in launchpad-foundations:
assignee: Stuart Bishop (stub) → Guilherme Salgado (salgado)
Gary Poster (gary)
Changed in launchpad-foundations:
status: Confirmed → In Progress
assignee: Guilherme Salgado (salgado) → Gary Poster (gary)
Gary Poster (gary)
Changed in launchpad-foundations:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.