Commit Graph

455 Commits (a149439cc2a1a517f59f9862f36c2caa8ccdc50b)

Author SHA1 Message Date
Juan Manuel Bardallo a149439cc2 fix(build): generate UI files with pyuic6 during build
ogagent/pipeline/head This commit looks good Details
2026-07-09 12:15:51 +02:00
Juan Manuel Bardallo 0db7dbce9f refactor(deps): remove obsolete dependencies and support modern Ubuntu
ogagent/pipeline/head There was a failure building this commit Details
2026-07-09 11:56:53 +02:00
Nicolas Arenas 9ffa27cd03 HANGELOG.md
ogagent/pipeline/head This commit looks good Details
2026-05-20 14:36:34 +02:00
Nicolas Arenas 25fc2cf5f8 feat(ogagent): select network interface by routing table instead of first found
ogagent/pipeline/head This commit looks good Details
On machines with multiple NICs, the agent was always registering with
ogcore using the first interface returned by the OS, which could be the
wrong one if it wasn't the interface with a route to ogcore.

_best_interface() opens a no-op UDP socket toward the ogcore host and
reads the local IP assigned by the kernel routing table, then matches it
against the available interfaces. If the routing query fails (network not
ready yet) it returns None so the detection loop keeps retrying rather
than accepting a wrong interface. Falls back to nets[0] only when the
query succeeds but no interface matches (NAT/VPN scenario).
2026-05-20 14:19:08 +02:00
Nicolas Arenas a222528d00 Add Jenkinsfile for devel
ogagent/pipeline/head This commit looks good Details
2026-05-14 18:24:05 +02:00
Nicolas Arenas 1d6b7f76e6 Merge pull request 'fix(ogagent): improve log levels in ogLive to distinguish actions from heartbeat' (#75) from fix_log into main
ogagent/pipeline/head This commit looks good Details
Reviewed-on: #75
2026-05-13 11:04:30 +02:00
Nicolas Arenas 2433fffac2 Updated CHANGELOG.md 2026-05-13 10:57:17 +02:00
Nicolas Arenas 7728831983 Update oglog levels for oglive
ogagent/pipeline/head This commit looks good Details
2026-05-13 10:04:21 +02:00
Nicolas Arenas eae734458f Merge pull request 'fix-windows-init' (#74) from fix-windows-init into main
ogagent/pipeline/head This commit looks good Details
Reviewed-on: #74
2026-05-11 19:10:03 +02:00
Nicolas Arenas 0bfd129c9e Call CoInitializer in windows at staturup thread 2026-05-11 17:34:16 +02:00
Nicolas Arenas c4ccf60bab Update debian changelog
ogagent/pipeline/head This commit looks good Details
2026-05-11 16:27:56 +02:00
Nicolas Arenas 619edaab50 Updates CHANGELOG.md
ogagent/pipeline/head This commit looks good Details
2026-05-11 16:11:16 +02:00
Nicolas Arenas c3051a75b9 Creates background thread to fix network detectino problem
ogagent/pipeline/head This commit looks good Details
2026-05-11 16:06:27 +02:00
Nicolas Arenas 4e8e26342f Merge pull request 'nofify_status_to_ping' (#73) from nofify_status_to_ping into main
ogagent/pipeline/head This commit looks good Details
Reviewed-on: #73
2026-05-07 20:45:25 +02:00
Nicolas Arenas 4fdc215b98 docs(ogagent): update CHANGELOG for 8.5.3
ogagent/pipeline/head This commit looks good Details
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-07 20:39:24 +02:00
Nicolas Arenas da50ab5e7f feat(ogagent): report busy state and os type in heartbeat ping
Add 'busy' and 'st' fields to the periodic webhook ping so ogCore can
track whether a client is executing a job without waiting for a command
response.

- oglive_worker: busy derived from thread_list running state, st='OGL'
- OpenGnSys module: busy derived from jobmgr active processes, st mapped
  from operations.os_type (LNX/WIN/OSX)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-07 20:36:45 +02:00
Nicolas Arenas f50d5a1197 Merge pull request 'fix_http_server_start' (#72) from fix_http_server_start into main
ogagent/pipeline/head This commit looks good Details
ogagent/pipeline/tag This commit looks good Details
Reviewed-on: #72
2026-04-29 13:30:06 +02:00
Nicolas Arenas fbcbbb6397 Fix do_POST sending 500 before handler runs on empty body
POST requests without a body (e.g. Reiniciar, Apagar) caused
json.loads("") to raise JSONDecodeError, which sent a 500 response
but continued executing the handler, resulting in a double response.
The client received 500 while the handler actually succeeded.

- Handle missing or zero Content-Length without attempting JSON parse
- Add return after sendJsonError to prevent calling notifyMessage after
  an error response has already been sent
2026-04-28 23:23:00 +02:00
Nicolas Arenas d585387f52 Reconnect to ogcore after connection loss
- Track registration state with _registered flag; monitoring thread
  re-sends ogagent/started when contact with ogcore is restored
- Fix AttributeError in REST client when a network-level error
  (timeout, connection refused) occurred: e.response is None for
  non-HTTP failures, so guard before accessing .status_code

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-28 21:06:40 +02:00
Nicolas Arenas e700f6c115 Merge pull request 'fix_http_server_start' (#71) from fix_http_server_start into main
ogagent/pipeline/head This commit looks good Details
Reviewed-on: #71
2026-04-28 20:14:13 +02:00
Nicolas Arenas 22a1206f06 Updated CHANGELOG.md 2026-04-28 17:59:24 +02:00
Nicolas Arenas 7086cf1467 Change http server order start 2026-04-28 17:57:41 +02:00
Nicolas Arenas ee5710fffc Add ogagent.token file in oglive mode only (#70)
ogagent/pipeline/head This commit looks good Details
## Summary

- Write the authentication token to `/tmp/ogagent.token` on oglive startup so local scripts can authenticate against the agent without needing to know the token in advance.
- Remove token file writing from OS/Windows mode (`OpenGnSys` module), where it was being written to `/opt/opengnsys/etc/ogagent.token`. The token file is now exclusive to oglive mode.

## Test plan

- [ ] Boot a machine into oglive and verify `/tmp/ogagent.token` is created with a 32-character alphanumeric token
- [ ] Verify a local script can read the token and use it to authenticate against the agent REST API
- [ ] Boot a machine into a normal OS (Windows/Linux) and verify `/opt/opengnsys/etc/ogagent.token` is **not** created
- [ ] Verify normal agent operation is not affected in OS mode (connection to ogcore, script execution, etc.)

Co-authored-by: Nicolas Arenas <nicolas.arenas@qindel.com>
Reviewed-on: #70
2026-03-23 17:38:50 +01:00
Nicolas Arenas c776f9c2ee Fix Redmine 2879 (#69)
ogagent/pipeline/head This commit looks good Details
Co-authored-by: Nicolas Arenas <nicolas.arenas@qindel.com>
Reviewed-on: #69
2026-03-18 17:35:34 +01:00
Nicolas Arenas c5325ded6a Add .venv and .vscode to .gitignore
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-16 14:46:27 +01:00
Natalia Serrano 40962bad37 Merge pull request 'fixes4' (#67) from fixes4 into main
ogagent/pipeline/tag There was a failure building this commit Details
ogagent/pipeline/head This commit looks good Details
Reviewed-on: #67
2025-10-16 14:52:45 +02:00
Natalia Serrano b922c4270c refs #2862 parches ugr 2025-10-16 14:52:04 +02:00
Natalia Serrano 9e750cef68 refs #2862 parches ugr 2025-10-16 14:49:50 +02:00
Natalia Serrano 5b93cf13ed Merge pull request 'refs #2862 parches ugr' (#66) from parches1 into main
ogagent/pipeline/tag There was a failure building this commit Details
Reviewed-on: #66
2025-10-15 10:43:00 +02:00
Natalia Serrano 150ea63764 refs #2862 parches ugr 2025-10-15 10:42:09 +02:00
Nicolas Arenas bc13b193d7 Fixing creation of missing directory
ogagent/pipeline/head This commit looks good Details
2025-10-09 16:49:13 +02:00
Nicolas Arenas bc804747c4 Fixing creation of missing directory
ogagent/pipeline/head There was a failure building this commit Details
2025-10-09 16:45:24 +02:00
Natalia Serrano 909da6732c Merge pull request 'browser-err' (#65) from browser-err into main
ogagent/pipeline/head This commit looks good Details
ogagent/pipeline/tag This commit looks good Details
Reviewed-on: #65
2025-09-29 15:42:57 +02:00
Natalia Serrano cd16f873d5 refs #2850 show a user-friendly error if the agent fails to start 2025-09-29 15:42:03 +02:00
Natalia Serrano 99d9eba0c3 refs #2850 show a user-friendly error if the agent fails to start 2025-09-29 15:40:34 +02:00
Natalia Serrano 71630387c2 Merge pull request 'refs #2840 exit from the infinite loop' (#64) from fix-wait-in-a-loop into main
ogagent/pipeline/tag There was a failure building this commit Details
ogagent/pipeline/head This commit looks good Details
Reviewed-on: #64
2025-09-23 13:46:45 +02:00
Natalia Serrano f02198405e refs #2840 exit from the infinite loop 2025-09-23 13:46:22 +02:00
Natalia Serrano 7d6de44991 Merge pull request 'refs #2822 wait() in a loop' (#63) from wait-in-loop into main
ogagent/pipeline/head This commit looks good Details
ogagent/pipeline/tag This commit looks good Details
Reviewed-on: #63
2025-09-18 11:31:09 +02:00
Natalia Serrano bbd03af7ad refs #2822 wait() in a loop 2025-09-18 11:29:29 +02:00
Natalia Serrano d945d8566e Merge pull request 'refs #2776 Fix EOF bug in interfaceAdm()' (#62) from interfaceadm into main
ogagent/pipeline/tag There was a failure building this commit Details
Reviewed-on: #62
2025-09-11 16:35:46 +02:00
Natalia Serrano cd62b779a1 refs #2776 Fix EOF bug in interfaceAdm() 2025-09-11 16:33:21 +02:00
Nicolas Arenas 8ee4afa1cb Merge pull request 'jenkins' (#61) from jenkins into main
ogagent/pipeline/head This commit looks good Details
Reviewed-on: #61
2025-09-02 16:59:57 +02:00
Nicolas Arenas e4057b4f18 refs #2659 Adds jenkins branch for testing
ogagent/pipeline/head This commit looks good Details
2025-09-02 16:50:33 +02:00
Nicolas Arenas 97a9818e15 refs #2659 Adds jenkins branch for testing
ogagent/pipeline/head There was a failure building this commit Details
2025-09-02 16:48:37 +02:00
Nicolas Arenas 9c34720d51 refs #2659 Adds jenkins branch for testing
ogagent/pipeline/head There was a failure building this commit Details
2025-09-02 16:40:01 +02:00
Nicolas Arenas 4694bf6cdd refs #2659 Adds jenkins branch for testing
ogagent/pipeline/head There was a failure building this commit Details
2025-09-02 16:39:13 +02:00
Nicolas Arenas 468d9db14f refs #2659 Adds jenkins branch for testing
ogagent/pipeline/head There was a failure building this commit Details
2025-09-02 16:38:12 +02:00
Nicolas Arenas 6875042372 refs #2659 Adds jenkins branch for testing
ogagent/pipeline/head There was a failure building this commit Details
2025-09-02 16:31:50 +02:00
Nicolas Arenas a27ed86d0d refs #2659 Adds jenkins branch for testing
ogagent/pipeline/head There was a failure building this commit Details
2025-09-02 16:30:53 +02:00
Nicolas Arenas 7599e91986 refs #2659 Adds jenkins branch for testing
ogagent/pipeline/head There was a failure building this commit Details
2025-09-02 16:25:06 +02:00