buildd-mass-retry.py has crappy error messages when the user utterly fails at command arguments

Bug #523210 reported by LaMont Jones
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

Sometime since 5 Jan, this started happening:
LPCONFIG=ftpmaster /srv/launchpad.net/codelines/soyuz-production/scripts/ftpmaster-tools/buildd-mass-retry.py -d lucid -a powerpc -C
Traceback (most recent call last):
  File "/srv/launchpad.net/codelines/soyuz-production/scripts/ftpmaster-tools/buildd-mass-retry.py", line 145, in <module>
    sys.exit(main())
  File "/srv/launchpad.net/codelines/soyuz-production/scripts/ftpmaster-tools/buildd-mass-retry.py", line 73, in main
    distribution = getUtility(IDistributionSet)[options.distribution]
  File "/srv/launchpad.net/codelines/soyuz-production-rev-8939/lib/lp/registry/model/distribution.py", line 1528, in __getitem__
    distribution = self.getByName(name)
  File "/srv/launchpad.net/codelines/soyuz-production-rev-8939/lib/lp/registry/model/distribution.py", line 1549, in getByName
    pillar = getUtility(IPillarNameSet).getByName(name)
  File "/srv/launchpad.net/codelines/soyuz-production-rev-8939/lib/lp/registry/model/pillar.py", line 123, in getByName
    return getUtility(IProductSet).get(product)
  File "/srv/launchpad.net/codelines/soyuz-production-rev-8939/lib/lp/registry/model/product.py", line 1056, in get
    return Product.get(productid)
  File "/home/pqm/for_rollouts/production/eggs/storm-0.15danilo_storm_launchpad_r342-py2.5-linux-x86_64.egg/storm/sqlobject.py", line 321, in get
  File "/home/pqm/for_rollouts/production/eggs/storm-0.15danilo_storm_launchpad_r342-py2.5-linux-x86_64.egg/storm/store.py", line 179, in get
  File "/home/pqm/for_rollouts/production/eggs/storm-0.15danilo_storm_launchpad_r342-py2.5-linux-x86_64.egg/storm/databases/postgres.py", line 249, in execute
  File "/home/pqm/for_rollouts/production/eggs/storm-0.15danilo_storm_launchpad_r342-py2.5-linux-x86_64.egg/storm/database.py", line 217, in execute
  File "/home/pqm/for_rollouts/production/eggs/storm-0.15danilo_storm_launchpad_r342-py2.5-linux-x86_64.egg/storm/databases/postgres.py", line 259, in raw_execute
  File "/home/pqm/for_rollouts/production/eggs/storm-0.15danilo_storm_launchpad_r342-py2.5-linux-x86_64.egg/storm/database.py", line 299, in raw_execute
  File "/home/pqm/for_rollouts/production/eggs/storm-0.15danilo_storm_launchpad_r342-py2.5-linux-x86_64.egg/storm/database.py", line 342, in _check_disconnect
psycopg2.ProgrammingError: permission denied for relation product

Revision history for this message
Tom Haddon (mthaddon) wrote :

As a workaround, "GRANT SELECT ON product TO fiera" was run against the DB until this is fixed properly.

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

specify -s lucid, not -d lucid

:)

Changed in launchpad:
status: New → Invalid
LaMont Jones (lamont)
summary: - buildd-mass-retry.py fails with permission errors
+ buildd-mass-retry.py has crappy error messages when the user utterly
+ fails at command arguments
Revision history for this message
Julian Edwards (julian-edwards) wrote :

Something in the registry code descends into pillar and then product for some bizarre reason.

Changed in launchpad:
status: Invalid → Triaged
affects: launchpad → soyuz
Changed in soyuz:
importance: Undecided → Low
tags: added: soyuz-build
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.