Jeff Ahrenholz
d0c946ff86
Merge pull request #138 from gsomlo/gls-ns-umount-v2
...
Gls ns umount v2
2018-02-22 07:57:25 -08:00
Gabriel Somlo
f8e941a2b0
daemon: add ${pyexecdir} to $PYTHONPATH in daemon/src/Makefile
...
On x86_64, the "core_python_netns" module is installed into ${pyexecdir},
a.k.a. %{python_sitearch}, a.k.a. "/usr/lib64/python2.7/site-packages".
Adding ${pyexecdir} to $PYTHONPATH will prevent the "install" target in
"daemon/src/Makefile" from failing.
Signed-off-by: Gabriel Somlo <glsomlo@cert.org>
2017-11-20 20:56:48 -05:00
Gabriel Somlo
5901f2e1de
daemon: use "require" to make eggs available for import
...
Since version 5.0, python modules (e.g. core, corens3, and netns)
are installed as .egg bundles, and are not available for importing
by default, unless explicitly we use "pkg-resources.require()".
Signed-off-by: Gabriel Somlo <glsomlo@cert.org>
2017-11-20 20:56:48 -05:00
Gabriel Somlo
6d3d17f470
SimpleLxcNode: Remove unused umount method
...
The umount method was used to remove private mount points before
tearing down a node. Since non-persistend mount namespaces are
automatically cleaned up by he kernel, this method is now unused.
Signed-off-by: Gabriel Somlo <glsomlo@cert.org>
2017-10-11 14:54:27 -04:00
Gabriel Somlo
a5ae485fa6
SimpleLxcNode: Don't umount directories before killing vnoded
...
A node's private mounts are currently removed before killing
vnoded, which makes them unavailable during container service
shutdown. Any such service accessing the filesystem for atexit()
cleanup (e.g., rsyslogd), will do so on the host filesystem
instead, very likely causing unintended damage.
For example, the default behavior of rsyslogd is to remove its
listening socket (/dev/log, or /run/systemd/journal/dev-log) at
shutdown from its atexit() handler. If the node's private '/dev'
or '/run/systemd/journal' mount has already been removed, the
host-side /dev/log or /run/systemd/journal/dev-log sockets will
be removed instead!
Since non-persistent (mount) namespaces are automatically
destroyed by the kernel when the last process referencing them
is killed, we should simply rely on that behavior instead of
explicitly (and prematurely) unmounting a node's private
directories during shutdown.
Signed-off-by: Gabriel Somlo <glsomlo@cert.org>
2017-10-09 20:53:38 -04:00
Blake J. Harnden
2c154bb255
fixed typo in bridge name for ovs
2017-10-03 11:38:58 -07:00
Blake J. Harnden
f61c07c108
removed pip check, updated make files for using DESTDIR, removed usage of pip during make install
2017-08-21 12:55:51 -07:00
Blake J. Harnden
abc9e06fe1
small doc cleanup, updated python specific docs to leverage the sphix rtd theme as well
2017-08-18 11:34:25 -07:00
Blake J. Harnden
f55d241b36
removed copyright header from all files for core-python and corens3
2017-08-18 10:38:27 -07:00
Blake J. Harnden
67501c9000
updates to set default nodes for ns3 examples
2017-08-18 08:48:33 -07:00
Blake J. Harnden
8155cdc617
documentation theme update, version bumping to 5.0, changes to cleanup pass for ns3 code
2017-08-17 15:25:12 -07:00
Blake J. Harnden
f282f4ea15
initial pass on converting corens3 to use latest code and small cleanup
2017-08-17 13:29:19 -07:00
Blake J. Harnden
fc7fb0f76c
fixed sendall in sdt, after testing core/sdt3d integration
2017-08-16 12:03:32 -07:00
Blake J. Harnden
f9847cef34
changed core_python to define version locally, instead of in another file causing import issues
2017-08-10 08:43:02 -07:00
Blake J. Harnden
463618ddf8
small refactoring on how node maps are used, added logic to switch to using a map based on bsd nodes using previous logic
2017-08-09 10:03:43 -07:00
Blake J. Harnden
eb5dd3780c
updated installation to use pip for core_python, added a pip check to configure.ac
2017-08-08 11:29:01 -07:00
Blake J. Harnden
67d451c3e9
fixed old log imports and dont bail out on tdma model exception
2017-08-08 09:17:09 -07:00
Blake J. Harnden
f3863ead73
removed service load methids, since they are no longer used, added way for custom service load code to facilitate the unique docker service case
2017-08-07 16:40:39 -07:00
Blake J. Harnden
73eea80f51
attempt to fix missing updates for sdt, moved broker specific code to broker
2017-08-07 15:37:41 -07:00
Blake J. Harnden
8612c73d49
worked through a couple todos, removed usage of eval within parsing xml files
2017-08-07 13:02:25 -07:00
Blake J. Harnden
e4b280196b
switched to making use of logzero for logging, provides nicer color output, and an easier path to switch to rotating log files
2017-08-07 11:58:51 -07:00
Blake J. Harnden
76bec9950d
more changes to support a common usage of double quotes
2017-08-04 14:51:25 -07:00
Blake J. Harnden
2281051edf
making usage of double quotes standard for emane files
2017-08-04 14:34:44 -07:00
Blake J. Harnden
850cc599c8
refactored how services are loaded to be more dynamic
2017-08-03 16:33:54 -07:00
Blake J. Harnden
35c48e67a3
modified the way custom services can be imported and added a test case to verify the import functionality
2017-08-03 14:27:39 -07:00
Blake J. Harnden
78ff7f2189
quick pass for small cleanup within bsd nodes
2017-08-03 12:44:08 -07:00
Blake J. Harnden
1f9a8879c1
quick pass at small xen code cleanup and usage of double quotes
2017-08-03 12:04:22 -07:00
Blake J. Harnden
bc1a24e880
fixed some refactoring issues with xen and bsd code
2017-08-03 09:48:26 -07:00
Blake J. Harnden
d915436c7d
added a simple test for a tunnel node, although better testing awwma to require configuration outside of core
2017-08-03 09:37:22 -07:00
Blake J. Harnden
b62076c240
added test script and test for mobility script testing
2017-08-02 16:39:38 -07:00
Blake J. Harnden
05ce19b0c0
fixed refactoring issues in mobility.py, fixed issue with parsing config files in a tuple string format
2017-08-02 14:07:56 -07:00
Blake J. Harnden
4d21314798
fixed renaming issue with sessionid to session_id
2017-08-02 12:25:57 -07:00
Blake J. Harnden
f67547faa6
small test cleanup, functioning distributed core test case, depends on an already running server
2017-08-01 09:28:11 -07:00
Blake J. Harnden
350341cda7
added various log messages to help with correcting issues, added some for adding tunnels that fixes p2p with distributed core, but teardown for p2p is still broken
2017-07-31 09:08:57 -07:00
Blake J. Harnden
e2a932698c
appear to have fixed the gui shutdown issue with messages being sent out of order, causing a node to remain with a red box
2017-07-27 16:03:27 -07:00
Blake J. Harnden
14a5d11c4e
parameterized emane tests, added tdma test, although it is currently failing
2017-07-27 14:59:40 -07:00
Blake J. Harnden
832f497d47
updated tests to leverage parameterized tests, reduces bloat and make testing the same situation differently much easier
2017-07-27 14:17:33 -07:00
Blake J. Harnden
6a875bcd8d
added vnodeclient testing, added a run tests script to make testing easier
2017-07-27 11:57:01 -07:00
Blake J. Harnden
ebe3b9e3e3
added mock for python testing, removed a couple unused methods, added some more quick tests for a variety of interface related methods
2017-07-26 16:52:17 -07:00
Blake J. Harnden
62e8ff8731
fixed one small sdt renaming issue, updated a gui test case
2017-07-26 08:48:59 -07:00
Blake J. Harnden
f767c32643
small test cleanup, can isolate to a singular core test fixture
2017-07-25 10:16:18 -07:00
Blake J. Harnden
45a11f7586
removed session from manager after from server fixes issue in gui with red shutdown box not being removed
2017-07-13 10:10:54 -07:00
Blake J. Harnden
ad179438c6
fixed issue where config messages were not being broadcasted out
2017-07-13 09:36:09 -07:00
Blake J. Harnden
3ba7e3b1a3
added broadcasting of node/link messages to multiple session client scenarios
2017-07-12 12:39:40 -07:00
Blake J. Harnden
964fdd6793
fixed issue causing service configuration loop
2017-07-12 10:35:53 -07:00
Blake J. Harnden
fe08481763
updated wlan tests to be mdr based nodes with emane services
2017-07-12 09:46:57 -07:00
Blake J. Harnden
d51e80fac8
updated emane commeffect test to turn on default connectivity, test now passes
2017-07-12 09:29:36 -07:00
Blake J. Harnden
9934ce8d3f
fixed issue with core config messages generating file messages, still seems to be an inifinite loop issue
2017-07-11 15:51:56 -07:00
Blake J. Harnden
336702a056
updated emane tests to use mdr models for the nodes, add a couple extra logs
2017-07-11 10:35:08 -07:00
Blake J. Harnden
777e19de93
initial effort to try and fix multiple clients to behave as before, includes fixes for guaranteed message ordering of nodes before links when joining a session
2017-07-11 08:55:15 -07:00