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

Zero values parameter error #51

Open
ekorian opened this issue Jul 8, 2015 · 4 comments
Open

Zero values parameter error #51

ekorian opened this issue Jul 8, 2015 · 4 comments

Comments

@ekorian
Copy link
Contributor

ekorian commented Jul 8, 2015

Setting a parameter value to zero whether it's a real, a natural or a boolean parameter always ends up with an error on the supervisor output independently of the constraint ("0 ... 255","*", "0, 1").
e.g:
Got exception in _run(), returning <Exception: e95ba946509eb2fc3318581b3db4c212 'missing parameter scamper.ping.tos'>

@britram
Copy link
Contributor

britram commented Jul 9, 2015

Would it be possible to add the full stack trace to this issue?

@ekorian
Copy link
Contributor Author

ekorian commented Jul 10, 2015

Sure

Traceback (most recent call last):
File "/usr/lib/python3.4/threading.py", line 888, in _bootstrap
self._bootstrap_inner()
File "/usr/lib/python3.4/threading.py", line 920, in _bootstrap_inner
self.run()
File "/usr/lib/python3.4/threading.py", line 868, in run
self._target(_self._args, *_self._kwargs)
File "/home/ko/Desktop/2015/Vienna/test/protocol-ri/mplane/scheduler.py", line 134, in _run
self._check_interrupt)
File "/home/ko/Desktop/2015/Vienna/test/protocol-ri/mplane/supervisor.py", line 51, in run
fwd_spec = self._client.invoke_capability(trunc_label, spec.when(), spec.parameter_values())
File "/home/ko/Desktop/2015/Vienna/test/protocol-ri/mplane/client.py", line 666, in invoke_capability
(cap, spec) = self._spec_for(cap_tol, when, params, relabel)
File "/home/ko/Desktop/2015/Vienna/test/protocol-ri/mplane/client.py", line 194, in _spec_for
raise KeyError("missing parameter "+pname)
KeyError: 'missing parameter scamper.ping.rr'

@britram britram added the bug label Jul 10, 2015
@britram britram self-assigned this Jul 10, 2015
@britram
Copy link
Contributor

britram commented Oct 10, 2015

This seems like a check against true where there should be a check against None.

@britram
Copy link
Contributor

britram commented Oct 10, 2015

Cannot reproduce with loopback test with empty string (which would also fail such a check): @ekorian, let's take a look at this in Milan next week.

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

No branches or pull requests

2 participants