Commit graph

782 commits

Author SHA1 Message Date
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
a166c162f7 fixed #136, added check for sphinx-apidoc to configure.ac 2018-01-15 01:30:31 -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 Harnden
27192e1800 Update README.md 2018-01-11 13:21:08 -07:00
Blake Harnden
438204743e Update README.md 2018-01-11 13:19:57 -07:00
Blake J. Harnden
9187b50361 made readme a markdown file 2018-01-11 12:03:55 -08:00
Blake J. Harnden
5a246159f8 updates to readme to leverage code blocks markdown 2018-01-11 11:29:06 -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
3ba8371282 updates to doc regarding changes 2018-01-10 15:59:46 -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
Blake J. Harnden
7e217b4d61 updated pngmath to imgmath in the sphinx conf file, pngmath was deprecated 2017-12-18 09:29:12 -08:00
Blake J. Harnden
36fdb0c617 updated assignment of copyright file name to add to dist file 2017-12-18 09:28:41 -08:00
Gabriel Somlo
54d79270d5 packaging: update RPM spec file to match 5.0 release
Building compliant RPM packages for Fedora/RHEL/Centos requires all
dependencies to be satisfied via the distribution specific packaging
infrastructure (i.e. rpm + yum|dnf). To ensure that packages correctly
pull in their dependencies (i.e., without relying on side-loaded
software that just happens to be installed on the host where they're
being built), the best practice recommended is to build them in "mock".
E.g.,
        rpmbuild -bs core.spec
        mock -r fedora-rawhide-x86_64 core-*.src.rpm

This patch modifies the enclosed spec file to correctly list all
other RPM packages required to build and run core-* RPMs.

Note that at the time of this writing the "python-logzero" package
is pending release into the Fedora (26 and newer) repositories:

    https://bugzilla.redhat.com/show_bug.cgi?id=1514100

Signed-off-by: Gabriel Somlo <glsomlo@cert.org>
2017-11-20 20:56:48 -05: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
bharnden
06d4c4661d Merge pull request #132 from coreemu/rel/5.0
Rel/5.0
2017-10-05 14:31:11 -07:00
bharnden
fe0329da25 Merge branch 'master' into rel/5.0 2017-10-05 08:32:05 -07:00
Blake J. Harnden
2c154bb255 fixed typo in bridge name for ovs 2017-10-03 11:38:58 -07:00
Blake J. Harnden
41c7a6896c added assignment of copyright pdf 2017-09-27 11:14:49 -07:00
Blake Harnden
382950bc29 Update LICENSE 2017-09-27 11:06:17 -07:00
Blake J. Harnden
b3fb96bc6d marked 5.0 release as 09/01/2017 in changelog related files 2017-08-31 15:33:28 -07:00
Blake J. Harnden
8568f81d47 updated readme date to 2017 2017-08-28 14:06:57 -07:00
Jeff Ahrenholz
62902225a9 Merge pull request #129 from isapir/patch-2
use cflag -Wno-int-in-bool-context for gcc7 resolving #128
2017-08-28 07:51:58 -07:00
Igal
585d62ebb9 added -Wno-int-in-bool-context instead of removing -Werror 2017-08-22 23:13:54 -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
Igal
86523c75d7 removed cflag -Werror
This solves #128

gcc7 has a compatibility problem with python and issues a warning as described at https://bugzilla.redhat.com/show_bug.cgi?id=1473425  

Setting the `-Werror` flag treats all warnings as errors, which fails the build.  IMHO it is better to remove the flag from regular builds.  Advanced users can add it if they choose to.
2017-08-19 10:26:10 -07:00
Jeff Ahrenholz
18cb8c5632 Merge pull request #127 from isapir/patch-1
broke commands to separate lines
2017-08-18 17:19:43 -07:00
Blake J. Harnden
3324735a28 updated dates within changelog files, updated readme to show how to build docs, updated root makefile to build the python docs as well, update the base makefile to allow building the source rpm on systems that are not fedora and can build rpms 2017-08-18 16:35:26 -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