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
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
bharnden
c3d0b01b7f
Merge branch 'rel/5.1'
2018-05-22 20:44:26 -07: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
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
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
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
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
613e550e8a
merged latest code from rodolfos merge from the latest github pull
2017-07-06 15:10:50 -07:00
Rod A Santiago
55a6e2dcef
merged cleanup branch with master
2017-06-19 18:09:28 -07:00
Blake J. Harnden
fd29b4a141
fixed documentation for mac address paramters in seen locations
2017-05-04 14:22:02 -07:00
Blake J. Harnden
2b866e1b3f
quick pass to try and provide documentation within core.netns
2017-05-03 13:20:56 -07:00
Blake J. Harnden
8f45e5c4da
core test cleanup, conslidating network creation for link modification testing
2017-04-27 14:49:51 -07:00
Blake J. Harnden
00f4ebf5a9
initial commit after bringing over cleaned up code and testing some examples
2017-04-25 08:45:34 -07:00
lbaumgaertner
e665a122b6
fix to add correct broadcast address for ipv4 interfaces with netns backend
2017-03-28 12:00:24 +02:00
Tom Goff
ef85995cc6
daemon: Explicitly close vnode clients at shutdown.
2016-03-04 16:57:17 -05:00
Tom Goff
ce0bfc88eb
daemon: Improve handling node-specific directory names.
2015-11-23 09:51:07 -05:00
tgoff0
61f1a6e72e
daemon: Represent object ids in hex when used to generate interface
...
names (to reduce length if possible).
2015-03-09 15:20:54 +00:00
ahrenholz
503713f0bc
use hex value for short session ID used in naming interfaces
...
use interface names "vethOOOOO.ii.ss" and "vethOOOOO.iipss" for veth pairs
(where OOOOO = object id, ii = interface index, ss = hex short session ID)
fixes bug #260 virtual interface names too long
(Boeing r1894)
2014-10-28 21:18:16 +00:00
ahrenholz
66ebcb5cf4
fix bug #253 "NetworkManager runs DHCP..." for Ubuntu (but not Fedora/CentOS)
...
use "vethA.B.SS" name for veth devices (A = node number, B = index, SS = short session ID)
use "tapA.B.SS" name for tap devices; use "b.A.SS" name for bridge devices
added a SESSION_SHORT environment variable to the default CORE environment
(Boeing r1867)
2014-08-04 17:28:35 +00:00
ahrenholz
102dd2aa3b
set NODE_NAME and NODE_NUMBER in default vnoded environment for SimpleLxcNodes
...
(Boeing r1788)
2013-10-28 14:33:31 +00:00
ahrenholz
51e17db093
(Boeing r1775)
...
raise exception when veth created with local name longer than 16 bytes
2013-09-25 17:34:29 +00:00
ahrenholz
f8f46d28be
initial import (Boeing r1752, NRL r878)
2013-08-29 14:21:13 +00:00