Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Overview
  2. Producer
  3. Consumer
  4. Repository
  5. Data Model
  6. Searching in NOCLook
  7. Indexed properties
  8. REST API
  9. Backup and Restore
  10. Links
  11. How to set up a NI suiteNOCLook
  12. Troubleshooting

Anchor
overview
overview

...

Anchor
datamodel
datamodel

Data model

Image Removed
Hopefully these entities and relationships are enough.

See Presentation.

 Image Removed
The data that was inserted manually in the prototype.

Anchor
search
search

Searching in NOCLook

...

NOCLook REST API is driven by django-tastypie. Authentication is set per user as an API key.

Create a new site

Code Block
$ cat site.json
{
	"node_name": "DK-AAL",
	"node_type": "/api/v1/node_type/site/",
	"node_meta_type": "Location",
	"node": {
		"address": "Selma Lagerlöfsvej 300",
		"area": "Aalborg",
		"country": "Denmark",
		"country_code": "DK",
		"latitude": "57.011944",
		"longitude": "9.990560",
		"owner_id": "AAU",
		"postarea": "Aalborg",
		"postcode": "9220"
	}
}


$ curl -i -H "Authorization: ApiKey apiuser:secret" -H "Content-Type: application/json" -X POST --data @site.json


Create a new L2VPN service

...

Code Block
# Backup the SQL database
su - postgres -c "pg_dumpalldump norduni > /var/opt/norduni/nistore/producers/noclook/sql/postgres.sql"
# Run NOCLook producer for backup purpose
cd /opt/norduni/src/scripts/
rm /opt/nistore/producers/noclook/json/*
./noclook_producer.py -O /opt/nistore/producers/noclook/json/
# Push the changes to nistore master
/usr/local/sbin/ni-push.sh -r /opt/nistore/

...

Code Block
titlerestore.conf
# All producers need to be listed here with a path data or empty
[data]
juniper_conf = 
nmap_services_py = 
alcatel_isis = 
noclook = /opt/nistore/producers/noclook/json/
nagios_checkmk = 
cfengine_report =  


Code Block
sudo -u postgres psql -f /opt/nistore/producers/noclook/sql/postgres.sql postgresnorduni
noclook_consumer.py -C restore.conf -I

...

Issue tracker: https://project.nordu.net/browse/NORDUNIDEV

Graph Gists

Version 1.0: http://gistportal.neo4jgraphgist.org/?e598ce9c6851fd803243graph_gists/bf9576c3-c7d0-450b-82fb-bd52e4038753
Version 2.0: http://gist.neo4j.org/?fe682b1dc394dd8e4421

Anchor
setup
setup

How to set up

...

NOCLook

See Setting up a NORDUni 2.0 instance.

Anchor
troubleshooting
troubleshooting

...

Starting/stopping and restarting

Code Block
$ sudo service supervisorctluwsgi start|stop|restart noclook

Internal Server Error (http 500)

Stop noclook. The directory /var/opt/norduni/dependencies/neo4jdb/ and its children is probably owned by root, it should be owned by www-data.

Code Block
$ chown -R www-data:www-data /var/opt/norduni/dependencies/neo4jdb/

Start noclook again.

 

 

...