[Commotion-admin] [commotion-feed] Commotion service manager (#34)

Dan Staples notifications at github.com
Tue Nov 19 20:41:27 UTC 2013


This will take some more extensive testing to ensure stability and functionality. I am fully available to help with the testing.

**Setup:**
1. Flash 2 nodes with the pull request dependencies, and at least one node with the regular nightly build.
2. record the memory usage of commotion-service-manager (CSM) upon boot.
3. Set the default app lifetime on the nodes to 1 hour (in the apps portal settings page).
4. Add 5-10 unique applications on each node (including the node(s) without CSM), meanwhile monitoring for any crashes of CSM or unusually high memory usage.

**Expected results:**
1. CSM should not crash
2. CSM should not use abnormally large amounts of memory or lead to node crashes.
3. Apps added to a node with CSM should appear almost instantly on the other node with CSM.
4. Apps on nodes with CSM should **not** show up on nodes without CSM, and vice versa.
5. Apps should properly expire after one hour, both on the node they were added on, as well as nodes that picked up their announcements.
6. Expired apps should no longer appear in `/etc/config/applications`, and their Avahi service file should have been removed from `/etc/avahi/services`.
7. Running `kill -s USR1 $(pgrep commotion-service-manager)` should result in a `;`-delimited dump of service announcements in the file `/tmp/local-services.out`.

If you run into problems right from the beginning, be sure that `servald` is running on each node and that `servald id self` returns a valid SID. If not, restart `servald`.
You can merge this Pull Request by running:

  git pull https://github.com/opentechinstitute/commotion-feed commotion-service-manager

Or you can view, comment on it, or merge it online at:

  https://github.com/opentechinstitute/commotion-feed/pull/34

-- Commit Summary --

  * added commotion-service-manager
  * fix to luci-commotion-apps openwrt makefile
  * fix to luci-commotion-apps openwrt makefile
  * removed avahi-client

-- File Changes --

    D packages/avahi-client/Makefile (48)
    A packages/commotion-service-manager/Makefile (48)
    A packages/commotion-service-manager/etc/init.d/commotion-service-manager (15)
    M packages/luci-commotion-apps/Makefile (16)

-- Patch Links --

https://github.com/opentechinstitute/commotion-feed/pull/34.patch
https://github.com/opentechinstitute/commotion-feed/pull/34.diff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.chambana.net/pipermail/commotion-admin/attachments/20131119/7738a865/attachment.html>


More information about the Commotion-admin mailing list