Nicolas Arenas
70a9d4ad51
implements reconnection in ogagent for oglive
ogagent/pipeline/head This commit looks good
Details
2026-04-30 13:42:02 +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
Nicolas Arenas
e3fed976e6
refs #2659 Adds jenkins branch for testing
ogagent/pipeline/head There was a failure building this commit
Details
2025-09-02 16:22:42 +02:00
Nicolas Arenas
36748e719d
First Version of auto-package refs #2649
ogagent/pipeline/head There was a failure building this commit
Details
2025-09-02 15:03:55 +02:00
Natalia Serrano
bae6c94965
Merge pull request 'refs #2691 put InventarioHardware to work' ( #60 ) from inv-hw into main
...
Reviewed-on: #60
2025-08-29 10:32:38 +02:00
Natalia Serrano
07740884cb
refs #2691 put InventarioHardware to work
2025-08-29 10:32:06 +02:00
Vadim vtroshchinskiy
39dc6bc400
Merge pull request 'Modificacion de imagen de git y refactoring de parametros' ( #59 ) from modificar-imagen-branch into main
...
Reviewed-on: #59
2025-08-28 15:21:59 +02:00
Vadim Trochinsky
ac2ff69595
refs #2506 increase version
2025-08-28 15:20:27 +02:00
Vadim vtroshchinskiy
8ba4240fee
refs #2506 argument fixes
2025-08-28 15:20:27 +02:00
Vadim Trochinsky
fed94cab16
refs #2621 : bump package version
2025-08-28 15:20:27 +02:00
Vadim vtroshchinskiy
163c6fb4fe
refs #2506 -- Make some parameters optional
2025-08-28 15:20:27 +02:00
Vadim Trochinsky
2a2fc3b0b2
refs #2506 -- More parameter rearranging
2025-08-28 15:20:27 +02:00
Vadim Trochinsky
0bf4b53ef8
refs #2506 -- Rearrange parameters, add ability to pass branch to oggit
2025-08-28 15:20:27 +02:00
Vadim vtroshchinskiy
0cd3bf1d9d
refs #2506 update changelog
2025-08-28 15:20:27 +02:00
Vadim Trochinsky
6ecf399ffe
refs #2506 modificarimagen con branch y parametros
2025-08-28 15:20:27 +02:00
Natalia Serrano
89a2ed2f68
Merge pull request 'refs #2688 make Configurar with gen-script=true both synchronous and faster' ( #58 ) from gen-script-faster into main
...
Reviewed-on: #58
2025-08-28 12:50:06 +02:00
Natalia Serrano
c60931ed9a
refs #2688 make Configurar with gen-script=true both synchronous and faster
2025-08-28 12:48:45 +02:00