[Commotion-admin] [nm-dispatcher-olsrd] Decompose (#3)

technosopher notifications at github.com
Mon Nov 4 21:14:50 UTC 2013


This pull request overhauls nm-dispatcher-olsrd to leverage the new commotionc-based core "library", which now contains all essential functions needed to establish a commotion network.  This pull request therefore depends on https://github.com/opentechinstitute/commotion-linux-py/commit/f37ed6651e213d062a77932508cd65b1f29c1003).  For convenience and completeness, this pull request should be tested in tandem with https://github.com/opentechinstitute/commotion-mesh-applet/commit/85aaf2ea874c9f4e2bb0e66f37cc61217a781b7e (although nm-dispatcher-olsrd can theoretically function independently of the mesh-applet)

Closes issue #1 .  

To test this pull request, all of the following steps must be done for our two supported platforms (Ubuntu 12.04 or later, and Debian testing):
- Install the commotion-linux-py, olsrd, python-networkmanager, and commotion-wpasupplicant debian packages from downloads.commotionwireless.net/linux with dpkg -i
- On debian, recompile and reinstall the wpasupplicant package with CONFIG_IBSS_RSN=y set in <extracted source package>/debian/config/linux.  (To do this, apt-get source wpasupplicant, make the change, then dpkg-buildpackage -rfakeroot -uc -b in the root of the extracted source package, and the dpkg -i the newly-rebuilt package)
- Confirm that sample config files have been installed in /etc/commotion/profiles.d
- Modify or create a new profile in this directory.  Reconnect to any network, so that the dispatcher runs.  Confirm that the corresponding NetworkManager profile now exists in /etc/NetworkManager/system-connections
- Connect to a mesh network using Network Manager.  Confirm that olsrd is automatically started.
- Optimally, confirm that the client can connect to an encrypted mesh, see neighbors (iw dev <wireless interface) station dump), get routes, and actually connect over ssh/http(s).

KNOWN BUGS:
Even though olsrd is running properly, it may sometimes fail to get routes when operating in the context of an encrypted mesh.  This bug may be in upstream; in any case, it is beyond the scope of this pull request.  


You can merge this Pull Request by running:

  git pull https://github.com/opentechinstitute/nm-dispatcher-olsrd decompose

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

  https://github.com/opentechinstitute/nm-dispatcher-olsrd/pull/3

-- Commit Summary --

  * Fixed bug #568, which was caused by nm-dispatecher-olsrd creating network configuration files with incorrect permissions
  * Added necessary fields to support encrypted meshing
  * Added logic to support writing static ip back into config file, to allow for all essential connection data to be pulled from one location
  * Debugged static ip storage logic
  * Tiny bugfix
  * Rewired code to use new commotionc module functions; removed redundant functions that now live in the aforementioned module
  * Fixed a couple of lingering artifacts from before the decomposition of commotionc, and added some dev notes
  * ACTUALLY 'Fixed a couple of lingering artifacts from before the decomposition of commotionc, and added some dev notes', and fixed the .gitignore file
  * Changed config directory from /etc/nm-dispatcher-olsrd to /etc/commotion
  * Updated config file fields associated with encryption, according to the requirements of newer versions of network manager
  * Added parameter to ensure that log writes are always unbuffered
  * Refined logic that builds security-related stanzas for NetworkManager systemconnection files
  * Disabled buggy wpa_cli call; added rfkill call in the hope of addressing recurring flakiness w/ certain chipsets
  * Updated dependencies and added mesh password field to default profile
  * Overhauled logging such that all output is now routed through commotionc, and deposited in one central location
  * Fixed bug in placement of commotionc instantiation, and finished centralization of the logging functions
  * Fixed bug in naming of initialized commotionc object

-- File Changes --

    A .gitignore (8)
    M debian/control (2)
    M debian/install (4)
    M nm-dispatcher-olsrd (115)
    M profiles/commotionwireless.net.profile (1)

-- Patch Links --

https://github.com/opentechinstitute/nm-dispatcher-olsrd/pull/3.patch
https://github.com/opentechinstitute/nm-dispatcher-olsrd/pull/3.diff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.chambana.net/pipermail/commotion-admin/attachments/20131104/ab8c9fd3/attachment.html>


More information about the Commotion-admin mailing list