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

TASK .. run update and reboot using.. takes forever with multiple hosts (one after the other) #12

Open
crpb opened this issue Aug 23, 2024 · 4 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request more information needed

Comments

@crpb
Copy link
Contributor

crpb commented Aug 23, 2024

I had that issues often enough now but today as i currently am updating 18 hosts to the 24.7.2 i'm annoyed again.
Did some digging and the only thing i could find and which would make sense is throttle when i'm not mistaken.

i found a few occurences of that option but not directly in either -facts or -update which are the roles i have in the playbook (and -plugpack as it seems /o). And i don't see how that should trigger here?

Does anybody else has the same wait times or might that just be because i did something wrong?

I don't wanna stop it now and probably have just to try it again when the next update comes but that couldn't take too long 😆

- name: opnsense
  hosts:
    - opnsense
    - opnsensetest
  strategy: free
  vars:
    ansible_become: false
  roles:
    - role: ansible-opnsense-facts
      tags:
        - opnsense
        - facts
    - role: ansible-opnsense-plugpack
      tags:
        - opnsense
        - plugpack
    - role: ansible-opnsense-update
      tags:
        - opnsense
        - update
          #    - role: ansible-opnsense-checkmk
          #      tags:
          #        - opnsense
          #        - checkmk
ansible-playbook -e opn_update_desired_version=24.7.2 -D update.yaml -l   631.38s user 105.27s system 18% cpu 1:07:12.23 total
@crpb crpb changed the title TASK ansible-opnsense-update .. takes forever with multiple hosts TASK .. run update and reboot using.. takes forever with multiple hosts (one after the other) Aug 23, 2024
zerwes added a commit that referenced this issue Aug 25, 2024
@zerwes zerwes self-assigned this Aug 25, 2024
@zerwes zerwes added bug Something isn't working enhancement New feature or request labels Aug 25, 2024
@zerwes
Copy link
Contributor

zerwes commented Aug 25, 2024

Hello @crpb
Sorry to hear you had troubles using the role ...
Can you remember what was the value for reboot_timeout ?
If the next update comes around, you can try the branch throttle-reboot if you like

@zerwes
Copy link
Contributor

zerwes commented Aug 25, 2024

@fnateghi ... did you encounter similar issues?

@crpb
Copy link
Contributor Author

crpb commented Aug 26, 2024

you can try the branch throttle-reboot if you like

thx, will do.

maybe it was also related to a silly problem i had when manualy updating a few other hosts. the download from the official/default mirror was like 20-50kb/s to dtag(multiple cities/towns). hetzner had no problems and nobody on irc seemed to have the same behaviours.

look at the timestamps which i added during the dots of pain.. ^_^
image

Will also try that one from now on ..

opn_general.system.system:
  - firmware/mirror: 'https://mirror.fra10.de.leaseweb.net/opnsense'

zerwes added a commit that referenced this issue Sep 5, 2024
@zerwes
Copy link
Contributor

zerwes commented Sep 5, 2024

merged the throttle stuff into main
maybe gathering more information during the next update using a log file and increasing verbosity (ansible-playbook -vv) can help to reproduce this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request more information needed
Projects
None yet
Development

No branches or pull requests

5 participants