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

Continuous error loop after test completed #931

Open
jhughesbiot opened this issue Nov 2, 2021 · 4 comments
Open

Continuous error loop after test completed #931

jhughesbiot opened this issue Nov 2, 2021 · 4 comments

Comments

@jhughesbiot
Copy link
Collaborator

jhughesbiot commented Nov 2, 2021

Just started seeing a new issue show up. The tests run fine and the report is generated but then DAQ gets into this weird loop and never finishes.

Nov 02 19:16:17 runner   INFO    Remaining target sets: []
Nov 02 19:16:17 runner   INFO    Port 1 dpid 737894404660 learned dc:a6:32:8c:a7:3c
Nov 02 19:16:17 runner   INFO    Creating new device dc:a6:32:8c:a7:3c on None, port info True
Nov 02 19:16:17 runner   ERROR   Target device dca6328ca73c running False exception: type object 'datetime.datetime' has no                                 attribute 'fromisoformat'
Nov 02 19:16:17 runner   ERROR   type object 'datetime.datetime' has no attribute 'fromisoformat'
Traceback (most recent call last):
  File "/home/ubuntu/faucetsdn/daq/daq/runner.py", line 559, in _handle_system_idle_raw
    self.target_set_complete(device, 'target set not active')
  File "/home/ubuntu/faucetsdn/daq/daq/runner.py", line 1049, in target_set_complete
    self._target_set_finalize(device, device.host.results, reason)
  File "/home/ubuntu/faucetsdn/daq/daq/runner.py", line 1075, in _target_set_finalize
    self._handle_faucet_events()
  File "/home/ubuntu/faucetsdn/daq/daq/runner.py", line 425, in _handle_faucet_events
    self._process_faucet_event(event)
  File "/home/ubuntu/faucetsdn/daq/daq/runner.py", line 440, in _process_faucet_event
    self._handle_port_learn(dpid, port, target_mac)
  File "/home/ubuntu/faucetsdn/daq/daq/runner.py", line 497, in _handle_port_learn
    self._target_set_trigger(device)
  File "/home/ubuntu/faucetsdn/daq/daq/runner.py", line 680, in _target_set_trigger
    if not self._should_trigger_device(device, remote_trigger):
  File "/home/ubuntu/faucetsdn/daq/daq/runner.py", line 663, in _should_trigger_device
    if device.should_block():
  File "/home/ubuntu/faucetsdn/daq/daq/runner.py", line 85, in should_block
    endtime = datetime.fromisoformat(stream.read().strip())
@grafnu
Copy link
Collaborator

grafnu commented Nov 2, 2021 via email

@jhughesbiot
Copy link
Collaborator Author

jhughesbiot commented Nov 15, 2021

Python 3.6 is default of Ubuntu 18.04, which I was running. When you run the cmd/build function, it throws an error and prompts an override command to build at this version, which I did.

I upgraded python to 3.8 and rebuilt the environment and haven't seen the issue come back yet but it wasn't 100% of the time with 3.6 either so it's hard to say if it's fully resolved. Upgrading to python 3.8 on ubuntu 18.04 does break some other core packages (netifaces, netplan, pyyaml) so it's a bit of a headache to get it stable after the upgrade.

@grafnu
Copy link
Collaborator

grafnu commented Nov 15, 2021 via email

@jhughesbiot
Copy link
Collaborator Author

Base image I built when it was the latest to rebuild the OS and VM whenever I had to due to corruptions or any other catastrophic loss. Nothing specifically pinning me there. Sounds like an upgrade might be worth it.

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

2 participants