Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNMP poller and persister not working after change to Django 1.8 #49

Closed
sublinhado opened this issue Apr 27, 2016 · 1 comment
Closed

Comments

@sublinhado
Copy link

sublinhado commented Apr 27, 2016

Using the development branch and the latest rpm, I'm getting error "raise AppRegistryNotReady("Models aren't loaded yet.") django.core.exceptions.AppRegistryNotReady: Models aren't loaded yet." when running espersistd, espoll, espolld and poller_test_generator.py

Searching about the issue, it seems to be introduced in Django 1.7 and must have affected Esmond since it migrated from Django 1.5 to Django 1.8 recently. Reference: https://docs.djangoproject.com/en/1.7/ref/applications/#troubleshooting

I've got this errors during the "Test the Persister" section of the Deployment Cookbook when running commands:
$ESMOND_ROOT/venv/bin/espersistd
$ESMOND_ROOT/util/poller_test_generator.py -W

And during "Testing Polling" and "Start Data Collection" from the Configuration documentation when running commands:
bin/espoll -f /path/to/esmond/conf router oidset
bin/espersistd -f /path/to/esmond.conf
bin/espolld -f /path/to/esmond.conf

Logs attatched
log.txt

@sublinhado sublinhado changed the title SNMP poller and persister not working change to Django 1.8 SNMP poller and persister not working after change to Django 1.8 Apr 27, 2016
@sublinhado
Copy link
Author

sublinhado commented Apr 27, 2016

I forgot to mention that the fixtures used in the documentation are deprecated. The test_devices.json is not available in the repository so maybe it shouldn't be mentioned. And oidsets.json should be updated to add the IfName oid and use the new correlator convention changed from IfDescrCorrelator to IfNameCorrelator.
oidsets.json.patch.txt

And the sql/testdata.sql file needs to include the mandatory aggregate field for the OID insertions.
testdata.sql.patch.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant