Dev server doesn't restart when source code changes

Bug #1413125 reported by Raphaël Badin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Invalid
Medium
Unassigned

Bug Description

When running `make run+regiond` in a dev environment, the dev server doesn't restart when source code changes.

This was a very nice feature of the Django dev server (especially for those of us who do HTML development) and it seems it doesn't work anymore. I could be wrong but I suppose this has been caused by us moving to a twisted-based regiond.

Raphaël Badin (rvb)
description: updated
Revision history for this message
Gavin Panella (allenap) wrote :

This works for me; the `reloader` service watches for changes to the source code and restarts regiond (and regiond2) when it sees something. Can you specify exactly what you're changing? It may be that's it's not watching for the particular change you're making. Also, check out the log in logs/reloader/current.

Changed in maas:
status: Triaged → Incomplete
Raphaël Badin (rvb)
tags: added: regiond
Revision history for this message
Raphaël Badin (rvb) wrote :

When I change the node ordering in src/maasserver/views/nodes.py (http://paste.ubuntu.com/9804219/) and then reload the node listing page, I don't see the ordering being changed (nor any info on the console that lets me believe that the service has been restarted). When I restart `make run+regiond` I see the ordering being changed.

Revision history for this message
Gavin Panella (allenap) wrote :

Ah, right, the reloader service does not restart the regiond service when it's run in the foreground, which is what `make run+regiond` does. I guess we can move some of the reloading logic into regiond (and clusterd maybe).

Changed in maas:
status: Incomplete → Triaged
Changed in maas:
status: Triaged → Invalid
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.