Blake J. Harnden
d3bd61ddcf
updates to consolidate commands that need to be defined by a new node type
2018-03-01 13:21:25 -08:00
Blake J. Harnden
0b8ee7760d
reverted refactoring method name until xen/bsd nodes are cleared out
2018-03-01 09:26:28 -08:00
Blake J. Harnden
908fb777de
updated to vnode on how commands are ran, updated all functions to capture output and raise exceptions when commands fail
2018-03-01 09:17:58 -08:00
Blake J. Harnden
719670c895
further cleanup to vnode.py and corrections to function docs
2018-02-27 16:28:28 -08:00
Blake J. Harnden
01060c50ff
Merge branch '5.1_shell_cleanup' of git-ssh.web.boeing.com:Boeing-CORE/CORE into 5.1_shell_cleanup
2018-02-27 14:56:18 -08:00
Blake J. Harnden
59f22b12cf
minor refactoring to vnode.py
2018-02-27 14:56:13 -08:00
Blake J. Harnden
78537d8e95
fixed some shell command usage in example files
2018-02-27 12:39:12 -08:00
TinCanTech
edc1a92022
Update core.conf
...
Fix typ0s
2018-02-24 18:44:44 +00:00
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
Blake J. Harnden
127d0b0666
added a shell command with result, leveraged it usage to get output for failures during addfile and mounting within nodes
2018-02-07 19:13:51 -08:00
Blake J. Harnden
e35b4a0a4b
fixed bug with loading emane models in tests, after changing how emane models are loaded
2018-02-07 16:55:53 -08:00
Blake J. Harnden
ceb2e54679
small updates after verifying vcmd return values
2018-02-27 10:55:57 -08:00
Blake J. Harnden
6b8ee13f5d
initial changes to try and cleanup shell commands used within core
2018-02-27 10:48:01 -08:00
Kevin
49a2f77f45
Added code to not query sdn information when node is offline
2018-02-26 10:52:08 -08:00
Blake J. Harnden
c4a61b269b
updates to support dynamic loading of emane models from a custom emane directory
2018-02-05 11:22:01 -08:00
Blake J. Harnden
45e82f05b2
attempt to better support dynamic emane models
2018-02-05 09:01:49 -08:00
Blake J. Harnden
6f4ef0e193
removed unused import and update sonar config to scan different components separately
2018-01-15 10:50:14 -08:00
Blake J. Harnden
f4f5c9f5d8
fix #137
2018-01-15 02:20:11 -08:00
Blake J. Harnden
17d5503fb2
removed daemon addons directory and refereces
2018-01-12 09:50:56 -08:00
Blake J. Harnden
5344d62a7a
Merge branch '5.1' of git-ssh.web.boeing.com:Boeing-CORE/CORE into 5.1
2018-01-12 09:12:55 -08:00
Blake J. Harnden
4fdae0f4b3
removed eric ide project file
2018-01-12 09:12:46 -08:00
Blake J. Harnden
0ee07f89f0
removed unused import in core-daemon
2018-01-11 16:54:12 -08:00
Blake J. Harnden
26b1b01505
updated to readme for building packages, update to makefile to install and build gui with one command
2018-01-11 11:21:56 -08:00
Blake J. Harnden
14312db02d
updated versions to 5.1
2018-01-10 15:22:54 -08:00
Blake J. Harnden
7dff4f3987
added examples and man pages to core packages
2018-01-10 11:03:20 -08:00
Blake J. Harnden
3ce416b610
updated test cases to fix old broken code
2018-01-09 15:52:29 -08:00
Blake J. Harnden
77be7f5c30
moved ns3 from under daemon to the root of the project and updated references
2018-01-04 16:34:22 -08:00
Blake J. Harnden
3da4c32825
updated rpm/deb files to be built for both sysv and systemd
2018-01-04 14:33:25 -08:00
Blake J. Harnden
d799390c4a
moved netns code from daemon/src to netns at the top level, updated files to account for location change
2018-01-04 12:03:14 -08:00
Blake J. Harnden
e4a0069bc3
updated configuration to define the core bin dir within constants, updated code to use the core bin dir for vnoded and vcmd, based on using the fpm build system
2018-01-04 10:09:35 -08:00
Blake J. Harnden
42bcb1c79d
add default node map configuration, to avoid the need to set this up every time
2018-01-04 08:19:34 -08:00
Blake J. Harnden
afb6af5f87
removed old olog format line
2018-01-03 14:40:45 -08:00
Blake J. Harnden
e4c3d9d13a
updated daemon setup.py to leverage find_packages
2018-01-03 13:45:19 -08:00
Blake J. Harnden
742ad0e3a2
removed the usage of logzero, added a formal logging configuration file using json
2018-01-03 10:53:34 -08:00
Blake J. Harnden
59e6b6630a
added initial fpm commands for building packages and minor updates to support
2017-12-21 16:19:12 -08:00
Blake J. Harnden
58c6d03bc4
updates to target building separate packages with fpm
2017-12-19 09:43:19 -08:00
Blake J. Harnden
d3210815ab
updated email in python setup.py files, shifted test dependency together
2017-12-18 15:50:28 -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