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

Controller: increase timeout of requests for units #1050

Open
Tbaile opened this issue Jan 28, 2025 · 2 comments
Open

Controller: increase timeout of requests for units #1050

Tbaile opened this issue Jan 28, 2025 · 2 comments
Labels
controller The issue is related to the controller verified All test cases were verified successfully

Comments

@Tbaile
Copy link
Contributor

Tbaile commented Jan 28, 2025

Seems that if a unit has low connectivity, opening from the controller can be difficult due to low timeouts settings in the api server. The issue can easily be resolved by changing these values:

Refs:

@Tbaile Tbaile added the controller The issue is related to the controller label Jan 28, 2025
@Tbaile Tbaile added this to the NethSecurity 8.5 milestone Jan 28, 2025
@Tbaile Tbaile self-assigned this Jan 28, 2025
@Tbaile Tbaile moved this to ToDo 🕐 in NethSecurity Jan 28, 2025
@Tbaile Tbaile moved this from ToDo 🕐 to In Progress 🛠 in NethSecurity Jan 28, 2025
@Tbaile
Copy link
Contributor Author

Tbaile commented Jan 28, 2025

Released 1.2.4-dev.1

QA

  1. Install stable version of controller and prepare a unit connected to it
  2. Edit the /usr/libexec/rpcd/ns.controller file in the unit as follows (from line 113):
def info():
+  import time
+  time.sleep(3)
   ret = {"unit_name": "", "version": "", "subscription_type": "", "system_id": "", "ssh_port": -1, "fqdn": ""}

Now press "Open Unit" on the controller, this will cause an error.

  1. Update the controller with the version provided above
  2. Try again, the issue should be resolved.

@Tbaile Tbaile added the testing Packages are available from testing repositories label Jan 28, 2025
@Tbaile Tbaile removed their assignment Jan 28, 2025
@nethbot nethbot moved this from In Progress 🛠 to Testing in NethSecurity Jan 28, 2025
@gsanchietti gsanchietti self-assigned this Jan 29, 2025
@gsanchietti
Copy link
Member

gsanchietti commented Jan 29, 2025

Verified.

@gsanchietti gsanchietti removed their assignment Jan 29, 2025
@gsanchietti gsanchietti added verified All test cases were verified successfully and removed testing Packages are available from testing repositories labels Jan 29, 2025
@nethbot nethbot moved this from Testing to Verified in NethSecurity Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
controller The issue is related to the controller verified All test cases were verified successfully
Projects
Status: Verified
Development

No branches or pull requests

2 participants