bharnden
7aee2b2ba7
updated logging usage, to use the library directly and avoid imposing a core config by default, allowing users of the core library to configure logging as desired
2019-02-16 09:50:19 -08:00
bharnden
eb04e0a79f
cleanup for core.misc and core.netns
2018-10-11 16:01:17 -07:00
Kevin Larson
d1364c888d
Updated ip commands to use constants.IP_BIN
2018-07-26 12:25:12 -07:00
Blake J. Harnden
bfbee35a53
updates to support external transport configuration and an emane transport service to generate and run emanetransport for a configured external transport model
2018-07-11 09:19:06 -07:00
Blake J. Harnden
bf222cd5b4
fixed issue with OvsCtrlNet startup ordering and variable definition
2018-07-09 08:37:45 -07:00
Blake J. Harnden
5b0ed13e78
fixed linkconfig parameter name to match other linkconfig signatures
2018-07-06 14:40:51 -07:00
Blake J. Harnden
0efcd910db
removed node boot/validate methods, since it was using a circular reference to run a CoreService method
2018-06-22 11:59:16 -07:00
Blake J. Harnden
37517c45f4
changed some logging from info to debug, removed startindex and depends from services
2018-06-22 08:16:59 -07:00
Blake J. Harnden
3a39432fc7
refactored configs back to be able to provide instance conifgurations for sessions
2018-06-13 11:59:50 -07:00
Blake J. Harnden
52230bc026
refactored configuration managers and options into a single class, now the models that can be configured will deal with and handle configurations for nodes themselves
2018-06-11 12:26:12 -07:00
Blake J. Harnden
4b9cf996d1
updates to account for config messages in core handlers that dont contain all configuration options
2018-06-07 15:32:16 -07:00
Blake J. Harnden
7abf4bca16
updates to get all tests working with config changes
2018-06-07 12:57:32 -07:00
Blake J. Harnden
2ede43e3ae
initial commit with things working for the most part
2018-06-06 14:51:45 -07:00
bharnden
c3d0b01b7f
Merge branch 'rel/5.1'
2018-05-22 20:44:26 -07:00
stuartmarsden
aa6b83f29b
fix netem 0% loss and duplicate issue
2018-05-20 23:14:29 +04:00
Blake J. Harnden
44781d0aec
set default logging to INFO, cleaned up logging to help isolate debug type messages to DEBUG level, fixed issue with shutdown
2018-04-27 12:09:31 -07:00
Blake J. Harnden
164f02e5ac
better handling for deleting node directories
2018-04-26 15:52:34 -07:00
Blake J. Harnden
1404ca19c5
added some test cases based on future api interactions, node add/delete/update link add/delete/update
2018-04-23 15:46:08 -07:00
Blake J. Harnden
424c08c5e0
updates to drive most core logic from CoreEmu and Sessions themselves instead of outside code, updated an example to leverage new API, fixed issues testing when executing a script
2018-04-20 17:00:47 -07:00
Blake J. Harnden
44363b0500
removed daemonize code that is not needed for services, cleaned up need for logrotate, removed some logging that was not useful
2018-03-23 09:57:37 -07:00
Blake J. Harnden
188f9420ca
added a convenience target for generating all documentation based on existing google code example, fixed a few issues with doc strings
2018-03-15 14:31:07 -07:00
Blake J. Harnden
6210e70c80
initial cleanup passing over all makefiles and configure.ac
2018-03-13 16:20:50 -07:00
Blake J. Harnden
974559843a
defined custom core command error that defaults to printing command output as well
2018-03-02 16:22:20 -08:00
Blake J. Harnden
a8ee7f35d6
updates to check_cmd to just return output, as status is pointless
2018-03-02 13:57:50 -08:00
Blake J. Harnden
43554cbb62
initial effort to remove swallowing exceptions within internal code
2018-03-02 13:39:44 -08:00
Blake J. Harnden
00b3c97448
further removal and refactoring of methods used within misc/utils.py
2018-03-02 09:15:52 -08:00
Blake J. Harnden
6211b09585
further cleanup in regards the commands that are being used within core
2018-03-01 16:23:58 -08:00
Blake J. Harnden
870d87804b
updated commands that return output to strip it before returning
2018-03-01 13:46:09 -08:00
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
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
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
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
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
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
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
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
b62076c240
added test script and test for mobility script testing
2017-08-02 16:39:38 -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
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