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

routes lpm fails with "Error running command: 'hostname' #26

Closed
jopietsch opened this issue Feb 4, 2020 · 0 comments
Closed

routes lpm fails with "Error running command: 'hostname' #26

jopietsch opened this issue Feb 4, 2020 · 0 comments

Comments

@jopietsch
Copy link
Member

jpiet> routes lpm address='10.0.0.1'
Error running command: 'hostname'

Traceback (most recent call last):
File "/home/jpiet/.local/share/virtualenvs/suzieq-zI29E9ll/lib/python3.7/site-packages/nubia/internal/cmdbase.py", line 374, in run_interactive
ret = fn(**args_dict)
File "/tmp/pycharm_project_1000/suzieq/suzieq/cli/sqcmds/RoutesCmd.py", line 127, in lpm
datacenter=self.datacenter,
File "/home/jpiet/suzieq/suzieq/sqobjects/routes.py", line 31, in lpm
return self.engine_obj.lpm(**kwargs)
File "/home/jpiet/suzieq/suzieq/engines/pandas/routes.py", line 81, in lpm
df = self.get_valid_df(self.iobj._table, sort_fields, **kwargs)
File "/home/jpiet/suzieq/suzieq/engines/pandas/engineobj.py", line 126, in get_valid_df
**kwargs
File "/home/jpiet/suzieq/suzieq/engines/pandas/engine.py", line 185, in get_table_df
return final_df[fields].sort_values(by=sort_fields)
File "/home/jpiet/.local/share/virtualenvs/suzieq-zI29E9ll/lib/python3.7/site-packages/pandas/core/frame.py", line 5001, in sort_values
keys = [self._get_label_or_level_values(x, axis=axis) for x in by]
File "/home/jpiet/.local/share/virtualenvs/suzieq-zI29E9ll/lib/python3.7/site-packages/pandas/core/frame.py", line 5001, in
keys = [self._get_label_or_level_values(x, axis=axis) for x in by]
File "/home/jpiet/.local/share/virtualenvs/suzieq-zI29E9ll/lib/python3.7/site-packages/pandas/core/generic.py", line 1774, in _get_label_or_level_values
raise KeyError(key)
KeyError: 'hostname'

jpiet>

@ddutt ddutt closed this as completed in b4085af Feb 6, 2020
LucaNicosia pushed a commit that referenced this issue Apr 20, 2022
* Update dependencies

Signed-off-by: Claudio Usai <claudio.usai@stardustsystems.net>

* Add hypothesis column tests for sqobj

Signed-off-by: Claudio Usai <claudio.usai@stardustsystems.net>

* Add test for custom assert

Signed-off-by: Claudio Usai <claudio.usai@stardustsystems.net>

* Mark hypothesis tests as slow

Signed-off-by: Claudio Usai <claudio.usai@stardustsystems.net>

* Update with suggestions

Signed-off-by: Claudio Usai <claudio.usai@stardustsystems.net>
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