Commit graph

553 commits

Author SHA1 Message Date
Jeff Ahrenholz
467d168383
Merge pull request #139 from gsomlo/gls-v5-cleanup
Cleanup for building/installing v5 (and building RPMs of v5)
2018-02-22 07:56:13 -08:00
Jeff Ahrenholz
5e56138869
Merge pull request #143 from gsomlo/gls-gui-getmyip
gui: exec.tcl: cache local IP address across calls to getMyIP
2018-02-22 07:55:27 -08:00
Gabriel Somlo
e8ad324d3a gui: exec.tcl: cache local IP address across calls to getMyIP
Modify getMyIP to cache the local machine's IP address, and
return it without further accessing of the underlying resolver
libraries during subsequent invocations.

getMyIP is called roughly once a second from within monitor_loop
when refreshing CPU utilization in the bottom-right corner of
the GUI window. Other, dedicated CPU usage windows might also
call getMyIP at regular intervals.

With systemd commit cda458a54 (between v232 and v233), the
implementation of gethostbyname4_r() was updated to a more
intransigently standard-compliant error reporting convention,
which in turn causes glibc to retry in a more labor intensive
way (see https://github.com/systemd/systemd/pull/5359).

Under certain circumstances depending on the local hostname
and IP configuration, the glibc/systemd back-end resolver
routines triggered by getMyIP's call to [socket ...] and
[fconfigure ...] end up taking long enough to noticeably slow
down refreshing the main core-gui window, to the point where
interaction with the GUI becomes difficult.

Signed-off-by: Gabriel Somlo <glsomlo@cert.org>
2018-02-12 18:16:07 -05: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
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
Blake J. Harnden
f67547faa6 small test cleanup, functioning distributed core test case, depends on an already running server 2017-08-01 09:28:11 -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
Blake J. Harnden
e2a932698c appear to have fixed the gui shutdown issue with messages being sent out of order, causing a node to remain with a red box 2017-07-27 16:03:27 -07:00