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

VSS Flow Generator Script Failing - Simulated Script #781

Open
apooniajjn opened this issue Nov 8, 2018 · 1 comment
Open

VSS Flow Generator Script Failing - Simulated Script #781

apooniajjn opened this issue Nov 8, 2018 · 1 comment

Comments

@apooniajjn
Copy link

apooniajjn commented Nov 8, 2018

VSS Flow Generator Script Failing Release 5.3.3

It seems when I am running VSS flow generator script which is failing.

Error

Error attached below:

Writing flow information between PG4-VPort4 and PG5-VPort1
Traceback (most recent call last):
  File "./flowGenerator.py", line 132, in <module>
    generateFlowStats(i)
  File "./flowGenerator.py", line 96, in generateFlowStats
    writeToES(es_data)
  File "./flowGenerator.py", line 112, in writeToES
    helpers.bulk(es, iter(write_data), request_timeout=50)
  File "/usr/lib/python2.7/site-packages/elasticsearch/helpers/__init__.py", line 257, in bulk
    for ok, item in streaming_bulk(client, actions, **kwargs):
  File "/usr/lib/python2.7/site-packages/elasticsearch/helpers/__init__.py", line 192, in streaming_bulk
    raise_on_error, **kwargs)
  File "/usr/lib/python2.7/site-packages/elasticsearch/helpers/__init__.py", line 137, in _process_bulk_chunk
    raise BulkIndexError('%i document(s) failed to index.' % len(errors), errors)

Flowevent generator script works fine.

Script Location: /src/configs/nuage/scripts/vss-simulator

@apooniajjn apooniajjn changed the title VSS Flow Generator Script Failing VSS Flow Generator Script Failing - Simulated Script Nov 8, 2018
@apooniajjn
Copy link
Author

I had to add a dummy value to resolve this error: es_data['tcpstate'] = random.randint(10000, 20000) in writeToES(es_data) function of flowGenerator.py file.

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