~maas-committers/maas/1.5

« back to all changes in this revision

Viewing changes to src/maasserver/start_up.py

  • Committer: MaaS Lander
  • Author(s): Raphael Badin
  • Date: 2014-04-15 07:53:06 UTC
  • mfrom: (2246.1.1 component-bug-1307415-1.5)
  • Revision ID: maas_lander-20140415075306-piafrton8u8wswtn
[r=rvb][bug=1307415][author=rvb] Backport revision 2265: Move the registration of components errors into the critical section. This is part of the start up code and thus outside of transaction management so moving this code inside the critical section avoids race conditions between WSGI processes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
    # Regenerate MAAS's DNS configuration.  This should be reentrant, really.
87
87
    write_full_dns_config(reload_retry=True)
88
88
 
 
89
    # Check whether we have boot images yet.
 
90
    update_import_script_error()
 
91
 
89
92
 
90
93
def post_start_up():
91
94
    """Startup jobs that can run after the critical section."""
92
 
    # Check whether we have boot images yet.
93
 
    update_import_script_error()
94
 
 
95
95
    # Send secrets etc. to workers.
96
96
    NodeGroup.objects.refresh_workers()