Commit graph

806 commits

Author SHA1 Message Date
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
Blake J. Harnden
f7cb269a11 updated core-dev email to point at the proper location 2017-08-18 10:09:39 -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
340b37444b update change log for planned release 2017-08-17 14:00:36 -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
Igal
7167f841d3 broke commands to separate lines
I couldn't find a way to do it without the extra line break for the `.rst` file format.
2017-08-07 22:56:30 -04: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