Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 366051 - Add ebuild for NOC, Operation Support System (OSS) and Enterprise Network Operation Centers.
Summary: Add ebuild for NOC, Operation Support System (OSS) and Enterprise Network Ope...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: Normal normal with 2 votes (vote)
Assignee: Default Assignee for New Packages
URL: http://nocproject.org/
Whiteboard:
Keywords: EBUILD, InOverlay
Depends on:
Blocks:
 
Reported: 2011-05-05 06:18 UTC by noc
Modified: 2016-02-05 09:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
new ebuild for resent noc-0.7(2) (portage-noc.tar.bz2,15.43 KB, application/x-bzip)
2012-01-31 10:26 UTC, noc
Details
NOC overlay whith noc-0.7(4).ebuild (portage.tar.bz2,18.48 KB, application/octet-stream)
2012-07-01 11:51 UTC, noc
Details
emerge -etpv noc (emerge-etpv_noc,141.01 KB, text/plain)
2012-07-01 12:10 UTC, noc
Details
NOC-0.7(4) overlay (portage.tar.bz2,27.73 KB, application/x-bzip)
2012-07-08 07:32 UTC, noc
Details
NOC-0.7(4) overlay with ALL deps (portage_all.tar.bz2,50.60 KB, application/x-bzip)
2012-07-23 06:37 UTC, noc
Details
NOC-0.7(4) overlay with ALL deps (portage_all.tar.bz2,51.46 KB, application/x-bzip)
2012-09-01 12:24 UTC, noc
Details
Gentoo NOC overlay (portage.tar.bz2,105.71 KB, application/octet-stream)
2014-06-03 08:43 UTC, noc
Details
NOC overlay (portage.tar.bz2,91.99 KB, application/x-bzip2)
2014-09-10 12:24 UTC, noc
Details
New NOC overlay (portage.tar.bz2,88.91 KB, application/x-bzip2)
2014-10-20 06:58 UTC, noc
Details
NOC overlay. Add pkg_config() to net-analyzer/noc ebuild! (NOC_portage_overlay.tar.bz2,88.87 KB, application/x-bzip2)
2014-12-05 13:26 UTC, noc
Details
NOC portage overlay with all dependency ebuild (NOC_portage_overlay.tar.bz2,89.95 KB, application/x-bzip2)
2014-12-25 12:52 UTC, noc
Details
NOC portage overlay with all dependency neded 20141224 (NOC_portage_overlay-20141224.tar.bz2,52.87 KB, application/x-bzip2)
2014-12-25 13:07 UTC, noc
Details
NOC portage overlay with all dependency ebuild (NOC_portage_overlay.tar.bz2,97.24 KB, application/x-bzip2)
2015-01-16 09:58 UTC, noc
Details
How to install NOC in Gentoo (Gentoo installation,1.48 KB, text/plain)
2015-01-23 10:36 UTC, noc
Details
NOC portage overlay with all dependency ebuild (NOC_portage_overlay.tar.bz2,97.17 KB, application/x-bzip2)
2015-02-10 12:56 UTC, noc
Details
NOC portage overlay with all dependency ebuild (NOC_portage_overlay.tar.bz2,106.64 KB, application/x-bzip2)
2015-04-24 10:29 UTC, noc
Details
NOC 15.05 release. NOC portage overlay with all dependency ebuilds. (NOC_portage_overlay.tar.bz2,109.20 KB, application/x-bzip2)
2015-05-07 11:20 UTC, noc
Details
HowTo install and upgrade NOC in Gentoo. (README,1.62 KB, text/plain)
2015-05-07 12:01 UTC, noc
Details
NOC portage overlay with all dependency ebuilds. (NOC_portage_overlay.tar.bz2,110.88 KB, application/x-bzip2)
2015-05-08 08:03 UTC, noc
Details
NOC portage overlay with all dependency ebuilds. (NOC_portage_overlay.tar.bz2,110.68 KB, application/x-bzip2)
2015-05-21 12:30 UTC, noc
Details
NOC portage overlay with all dependency ebuilds. (NOC_portage_overlay.tar.bz2,110.68 KB, application/x-bzip2)
2015-05-21 12:35 UTC, noc
Details
NOC portage overlay with all dependency ebuilds. (NOC_portage_overlay.tar.bz2,121.96 KB, application/x-bzip2)
2015-06-25 10:36 UTC, noc
Details
NOC portage overlay with all dependency ebuilds. (NOC_portage_overlay.tar.bz2,121.94 KB, application/x-bzip2)
2015-07-15 07:44 UTC, noc
Details
NOC portage overlay with all dependency ebuilds. (NOC_portage_overlay.tar.bz2,124.38 KB, application/x-bzip2)
2015-08-11 11:47 UTC, noc
Details
NOC portage overlay with all dependency ebuilds. (NOC_portage_overlay.tar.bz2,124.38 KB, application/x-bzip2)
2015-08-11 11:50 UTC, noc
Details
NOC portage overlay with all dependency ebuilds. (NOC.tar.bz2,190.75 KB, application/x-bzip)
2015-10-29 10:37 UTC, noc
Details
HowTo install and upgrade NOC in Gentoo. (README,1.78 KB, text/plain)
2015-10-29 11:10 UTC, noc
Details
NOC portage overlay with all dependency ebuilds. (NOC.tar.bz2,257.60 KB, application/x-bzip)
2015-11-06 13:04 UTC, noc
Details
NOC portage overlay with all dependency ebuilds. (NOC-overlay.tar.bz2,299.72 KB, application/x-bzip)
2016-02-05 09:59 UTC, noc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description noc 2011-05-05 06:18:15 UTC
Add ebuild:
dev-python/django-tagging
dev-python/python-creole
net-misc/noc

NOC is an Operation Support System (OSS) and Enterprise Network Operation Centers (NOC).
NOC is excellent open source tool for manage network on L2 level, manly switches.

Reproducible: Always

Steps to Reproduce:
emerge net-misc/noc
Actual Results:  
Install NOC.

Expected Results:  
I wont add new packege - NOC, to Gentoo
net-misc/noc
dev-python/django-tagging
dev-python/python-creole

All ebuild are redy :)

noc-0.6.3
http://redmine.nocproject.org/attachments/112/my-noc-portage.tar.bz2
http://redmine.nocproject.org/attachments/118/noc

noc-0.6.4
http://redmine.nocproject.org/attachments/143/my-noc-portage.tar.bz2

noc-0.6.4 has instalation bag:
"error: can't copy 'contrib/src/Sphinx/sphinx/builder.py': doesn't exist or not a regular file
 * ERROR: net-misc/noc-0.6.4 failed (install phase):
 *   Installation failed with CPython 2.7 in distutils_installation() function
"
which will be fixed soon ;)
Comment 1 noc 2012-01-31 10:26:04 UTC
Created attachment 300517 [details]
new ebuild for resent noc-0.7(2)

Version bump to resent version.

Dependensies:
dev-python/django-tagging
dev-python/mongoengine
dev-python/python-creole
dev-python/python-cjson

Main ebuild:
net-misc/noc

Add USE: apache2 ownmaps staticvlan lighttpd nginx
Comment 2 noc 2012-07-01 11:51:05 UTC
Created attachment 316853 [details]
NOC overlay whith noc-0.7(4).ebuild

Bugfix:
Fix USE staticvlan
Fix dev-libs/protobuf[python]
Fix APACHE2_MODULES "proxy proxy_http"  - not good way.
Fix docs in elog.
Comment 3 noc 2012-07-01 11:59:07 UTC
I found that ebuild has mising dependies! All direct dependies are set propely? but indirect not all!
So in some gentoo instalation NOC work? bud in some, faild becouse of dependies.
May be global USE="python" fix it.
Comment 4 noc 2012-07-01 12:10:25 UTC
Created attachment 316855 [details]
emerge -etpv noc

File contents output of "emerge -etpv noc" on gentoo instaletion running NOC with out dependies problems.
It still exist bug in indirect dependies like "dev-libs/protobuf[python]" so we must found them. May be mising needed USE in dev-python/pymongo dependies...
Comment 5 noc 2012-07-08 07:32:30 UTC
Created attachment 317554 [details]
NOC-0.7(4) overlay

1. Fix dependency bug? now all dependensy resolved!
2. Fix einfo help/
3. Move apache virteal host from http to https.

One minor bug may exist: resolver dependency of apache2 modules, may be exist bater way..
Comment 6 noc 2012-07-23 06:37:49 UTC
Created attachment 318950 [details]
NOC-0.7(4) overlay with ALL deps

This overlay include latest NOC ebuild with all dependences wich exectly match version from original NOC contrib/src/* packages.

After instalation you should correct /opt/noc/etc/noc.conf:

# Path to VCS CLI utility
-vcs_path = /usr/local/bin/hg
+vcs_path = /usr/bin/hg
Comment 7 noc 2012-09-01 12:24:51 UTC
Created attachment 322723 [details]
NOC-0.7(4) overlay with ALL deps

Overlay with all deps with exectly versions.
Comment 8 noc 2014-06-03 08:43:46 UTC
Created attachment 378160 [details]
Gentoo NOC overlay

New ebuild for current development version.
Comment 9 noc 2014-06-03 09:07:31 UTC
Update NOC ebuild & dependencies to current develop version.

NOC in Gentoo use system packages instead of virtual environment.

To use current ebuild you must:

Get and pack latest NOC:

hg clone http://bitbucket.org/nocproject/noc noc
cd noc
hg pull
hg update develop
cd ..
tar -cjf noc.tar.bz2 noc
mv noc.tar.bz2 /usr/portage/distfile

And update manifests:

ebuild noc-0.8.ebuild digest

Then install NOC with emerge 

After installation NOC correct:

1. ecdsa:
mv /usr/lib64/python2.7/site-packages/ecdsa-0.0.0-py2.7.egg-info /usr/lib64/python2.7/site-packages/ecdsa-0.11-py2.7.egg-info
and change version in it from 0.0.0 to 0.11

2. geos:
sed -i 's/ver = geos_version()/ver = geos_version().split(" ")[0]/' /usr/lib/python2.7/site-packages/django/contrib/gis/geos/libgeos.py

Read elog instruction for NOC setup.
Comment 10 Sergey Popov gentoo-dev Security 2014-07-29 08:17:35 UTC
Do NOT CC arch teams yourself, this is not stabilization request!

Also, please attach ebuilds and patches separately
Comment 11 noc 2014-09-10 12:24:30 UTC
Created attachment 384520 [details]
NOC overlay

To get current version:

hg clone https://bitbucket.org/nocproject/noc noc && hg update develop
or
hg clone https://bitbucket.org/nocproject/noc noc && hg update feature/graphite

From resived noc directory you must make archive for instalation! Copy it to distfiles folder and rebuild manifest for noc ebuild...

Current ebuild work for branch "feature/graphite" release 10019
Comment 12 noc 2014-10-20 06:58:00 UTC
Created attachment 387020 [details]
New NOC overlay

Overlay for noc branch "feature/graphite" release 10225

Resive NOC:
 hg clone https://bitbucket.org/nocproject/noc noc
 cd noc
 hg update feature/graphite
 hg update -r 10225
 cd ../
 tar -cjf noc.tar.bz2 noc
Then copy archive to youre distfiles and build manifest for noc ebuild.

Now you redy to run:
 emerge noc
Comment 13 noc 2014-12-05 13:26:28 UTC
Created attachment 390996 [details]
NOC overlay. Add pkg_config() to net-analyzer/noc ebuild!

Overlay for noc branch "develop"

Resive NOC:
 hg clone https://bitbucket.org/nocproject/noc noc
 cd noc
 hg update develop
 cd ../
 tar -cjf noc.tar.bz2 noc
Then copy archive to your distfiles and build manifest for noc ebuild.

Now you redy to run:
 emerge net-analyzer/noc
 emerge --config net-analyzer/noc

If you have python trace during running try:
 /etc/init.d/noc stop
 /etc/init.d/mongodb restart
 /etc/init.d/postgresql-9.3 restart
 cd /opt/noc
 ./scripts/upgrade
 /etc/init.d/noc start

Do not run 'emerge --config net-analyzer/noc' twice! Or 'rm -rf /opt/noc' then remege net-analyzer/noc and drop it databace and user from postgres and mongo!
Comment 14 noc 2014-12-25 12:52:53 UTC
Created attachment 392364 [details]
NOC portage overlay with all dependency ebuild
Comment 15 noc 2014-12-25 13:07:09 UTC
Created attachment 392366 [details]
NOC portage overlay with all dependency neded 20141224

Currently 20141224 we need add following 9 new packages: 

dev-python/cachetools
dev-python/dbf
dev-python/db-sqlite3
dev-python/manhole
dev-python/python-cjson
dev-python/python-creole
dev-python/sleekxmpp
dev-python/vectorformats
net-analyzer/noc

and add ebuild of special version to following 7 exists packages: 

dev-python/docutils
dev-python/geopy
dev-python/mongoengine
dev-python/pygments
dev-python/requests
dev-python/south
dev-python/whoosh

all in NOC_portage_overlay-20141224.tar.bz2
Comment 16 noc 2015-01-16 09:58:10 UTC
Created attachment 394080 [details]
NOC portage overlay with all dependency ebuild

Version bump and installation flexibility improvements.

noc-0.9_rc0.ebuild - don't install virtualenv, pip and hg. Need manual download noc from repository and create noc.tar.bz2 package. Can't be upgraded by general noc utils. For production use.

noc-9999.ebuild - suggested for testing. Can upgrade installation from noc repository. NOC developers wont this ebuild.
Comment 17 noc 2015-01-23 10:36:40 UTC
Created attachment 394700 [details]
How to install NOC in Gentoo

README file with instalation instruction.
Comment 18 noc 2015-02-10 12:56:32 UTC
Created attachment 396076 [details]
NOC portage overlay with all dependency ebuild

Update ebuilds.

NOC developers wont support only noc-9999 installation!

'emerge =noc-9999' if you need support!!!
Comment 19 noc 2015-04-24 10:29:36 UTC
Created attachment 401900 [details]
NOC portage overlay with all dependency ebuild

Update ebuilds versions.
Comment 20 noc 2015-05-07 11:20:26 UTC
Created attachment 402812 [details]
NOC 15.05 release. NOC portage overlay with all dependency ebuilds.

NOC 15.05 release. Dependency fix.

For NOC update:
 # /etc/init.d/noc stop
 # emerge net-analyzer/noc
Also remember after every NOC updates run as root:
 # cd /opt/noc
 # ./scripts/upgrade
If every think is OK start NOC:
 # /etc/init.d/noc start
Comment 21 noc 2015-05-07 12:01:31 UTC
Created attachment 402818 [details]
HowTo install and upgrade NOC in Gentoo.

Update mini HowTo "install and upgrade NOC in Gentoo".
Comment 22 noc 2015-05-08 08:03:26 UTC
Created attachment 402852 [details]
NOC portage overlay with all dependency ebuilds.

Update django to 1.4.20 and mongoengine patch.
Comment 23 noc 2015-05-21 12:30:11 UTC
Created attachment 403716 [details]
NOC portage overlay with all dependency ebuilds.

NOC 15.05.1 release!
Comment 24 noc 2015-05-21 12:35:06 UTC
Created attachment 403718 [details]
NOC portage overlay with all dependency ebuilds.

NOC 15.05.1 release!
Comment 25 noc 2015-06-25 10:36:00 UTC
Created attachment 405712 [details]
NOC portage overlay with all dependency ebuilds.

Add new dependencies:
noc-pkg-jointjs
dev-python/networkx
dev-python/numpy
dev-python/pyrad
to net-analyzer/noc/noc-9999.ebuild
Comment 26 noc 2015-07-15 07:44:36 UTC
Created attachment 406832 [details]
NOC portage overlay with all dependency ebuilds.

Change version in dependencies:
noc-pkg-jointjs-0.9.3

Remove dependencies:
noc-pkg-mxgraph
noc-pkg-mxgraph-debug
Comment 27 noc 2015-08-11 11:47:56 UTC
Created attachment 408788 [details]
NOC portage overlay with all dependency ebuilds.

Updates django-1.4.21 and minor fixes.
Comment 28 noc 2015-08-11 11:50:52 UTC
Created attachment 408790 [details]
NOC portage overlay with all dependency ebuilds.

Change version in dependencies:
django-1.4.21

Remove dependencies:
lxml
Comment 29 noc 2015-10-29 10:37:45 UTC
Created attachment 415690 [details]
NOC portage overlay with all dependency ebuilds.

Many changes in dependencies ebuilds

Update all ebuild to EAPI=5

New NOC ebuild with many patches: noc-15.05.1-r1.ebuild
Comment 30 noc 2015-10-29 11:10:33 UTC
Created attachment 415692 [details]
HowTo install and upgrade NOC in Gentoo.
Comment 31 noc 2015-11-06 13:04:21 UTC
Created attachment 416158 [details]
NOC portage overlay with all dependency ebuilds.

New NOC ebuild, sync with "develop" 2015.11.06: noc-15.05.1-r2.ebuild
Comment 32 noc 2016-02-05 09:56:11 UTC
Comment on attachment 415692 [details]
HowTo install and upgrade NOC in Gentoo.

Installing NOC.

Look for NOC overlay in: https://bugs.gentoo.org/show_bug.cgi?id=366051 Install resent NOC overlay. Choice ebuild: stable release noc-15.05.1-r1ebuild or from repository noc-9999.ebuild. Stable release can be installed and used completely ofline, and you need to be online during installation when you choice install from repository.
                                                                                                                                                                                                                                             
If you choice installation from repository (noc-9999.ebuild) you need add                                                                                                                                                                    
                                                                                                                                                                                                                                             
 net-analyzer/noc **                                                                                                                                                                                                                         
                                                                                                                                                                                                                                             
to your keywords file, general in /etc/portage/package.keywords                                                                                                                                                                              
                                                                                                                                                                                                                                             
Now you are ready to run:                                                                                                                                                                                                                    
                                                                                                                                                                                                                                             
 # emerge -a net-analyzer/noc                                                                                                                                                                                                                
                                                                                                                                                                                                                                             
NOC comes with his own small overlay with dependencies. Some dependencies may be older then portage has, use /etc/portage/package.mask to block newer version from Gentoo portage packages. Also use /etc/portage/package.keywords to unmask not stable packages...                                                                                                                                                                                                                       
                                                                                                                                                                                                                                             
After installation complete, start mongo and postgresql:                                                                                                                                                                                     
                                                                                                                                                                                                                                             
 # /etc/init.d/mongodb start                                                                                                                                                                                                                 
 # /etc/init.d/postgresql-9.4 start                                                                                                                                                                                                          
                                                                                                                                                                                                                                             
                                                                                                                                                                                                                                             
Take a look in /opt/noc/etc/upgrade.conf (don't worry emerge --config will do all you need)                                                                                                                                                  
                                                                                                                                                                                                                                             
If you choice noc-9999.ebuild you may want comment out:                                                                                                                                                                                      
                                                                                                                                                                                                                                             
#PIP_FIND_LINKS=https://cdn.nocproject.org/pkg/simple/                                                                                                                                                                                       
                                                                                                                                                                                                                                             
And uncomment:

PIP_FIND_LINKS=file:///usr/portage/distfiles/


Then configure NOC by running:

 # emerge --config net-analyzer/noc

You will be prompted for device or IP addres (eth0 or 1.2.3.4), on which NOC will listen for Syslog messages and SNMP traps. Also for password for administrative account.

Now you can start NOC:

 # /etc/init.d/noc start


Go in you web browser to 'https://127.0.0.1' accept certificate and enable java scripts. You may edit web server configuration file for listening other interface...

Add one or more Managed Object (Service Activation > Managed Objects). You will get your network database initialized and device configuration grabbed in 5-15 minutes.
Upgrading NOC.

Upgrade resent NOC overlay from https://bugs.gentoo.org/show_bug.cgi?id=366051

You can always switch to ebuild or from repository noc-9999.ebuild when doing upgrade.

Do not return back from noc-9999.ebuild to stable release noc-15.05.1-r1ebuild!!! If you wont change back to stable release from develop you must wate for new stable release and switch to it when it newer then develop.

For NOC update:

 # /etc/init.d/noc stop
 # emerge -a net-analyzer/noc

Also, remember, after every NOC updates run as root:

 # cd /opt/noc
 # ./scripts/upgrade

If every think is OK start NOC:

 # /etc/init.d/noc start

Upgrading NOC from repository with out new ebuild.

Alternatively if you install NOC using noc-9999.ebuild you can update:

 # /etc/init.d/noc stop
 # cd /opt/noc
 # hg pull -u
 # ./scripts/upgrade
 # /etc/init.d/noc start
Comment 33 noc 2016-02-05 09:59:01 UTC
Created attachment 424660 [details]
NOC portage overlay with all dependency ebuilds.

New NOC ebuild, sync with "develop" 2016.02.05: noc-15.05.1-r3.ebuild

YOU MUST SWITCH TO PYTHON 2 BEFORE RUN EMERGE!!!

# eselect python list
# eselect python set 1