Skip to content
New issue

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

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

Already on GitHub? # to your account

tree mode: fix error with intermediate gateways (#471) #472

Merged
merged 1 commit into from
Jun 18, 2022

Conversation

thiell
Copy link
Collaborator

@thiell thiell commented Mar 20, 2022

Intermediate gateways create a TreeWorker with a topology passed by
the parent node and a new root node, and instantiate their own
PropagationNodeRouter object.

When such TreeWorker is scheduled, we should set the task's default
router from it properly.

The error seen was:
...
File "ClusterShell/Propagation.py", line 411, in ev_close
self.task.router.mark_unreachable(gateway)
AttributeError: 'NoneType' object has no attribute 'mark_unreachable'

Fixes #471

Intermediate gateways create a TreeWorker with a topology passed by
the parent node and a new root node, and instantiate their own
PropagationNodeRouter object.

When such TreeWorker is scheduled, we should set the task's default
router from it properly.

The error seen was:
...
File "ClusterShell/Propagation.py", line 411, in ev_close
    self.task.router.mark_unreachable(gateway)
    AttributeError: 'NoneType' object has no attribute 'mark_unreachable'

Fixes cea-hpc#471
@thiell thiell self-assigned this Mar 20, 2022
@thiell thiell added this to the 1.8.5 milestone Jun 18, 2022
@thiell thiell merged commit b0b76fb into cea-hpc:master Jun 18, 2022
@thiell thiell modified the milestones: 1.8.5, 1.9 Jun 26, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

problems on using a topology
1 participant