Commit Graph

888 Commits (fb6e3c0e538cc31333d538f37fe5222297c481e1)

Author SHA1 Message Date
Nicolas Arenas fb6e3c0e53 Merge pull request 'fix(ogcore): corregido error al importar imagen desde repositorio' (#115) from import_image into main
testing/ogcore-api/pipeline/head There was a failure building this commit Details
ogcore-debian-package/pipeline/head This commit looks good Details
Reviewed-on: #115
2026-05-14 10:27:42 +02:00
Nicolas Arenas 71e7b8a129 fix(ogcore): corregido error al importar imagen desde repositorio
testing/ogcore-api/pipeline/pr-main Build started... Details
testing/ogcore-api/pipeline/head There was a failure building this commit Details
- Eliminada llamada a setRemotePc() en ImportAction, método inexistente
  desde que la propiedad remotePc fue eliminada de la entidad Image en v1.7.0
- Actualizado CHANGELOG.md con entrada 1.7.11
2026-05-14 10:26:13 +02:00
Juan Manuel Bardallo 856080083b Merge pull request 'Modificado setClientBootMode para crear una traza en caso de ejecución en modo temporal,' (#114) from setbootmode into main
testing/ogcore-api/pipeline/head There was a failure building this commit Details
ogcore-debian-package/pipeline/head This commit looks good Details
Reviewed-on: #114
2026-05-13 15:00:28 +02:00
Juan Manuel Bardallo 65bfe26833 Modificado setClientBootMode para crear una traza en caso de ejecución en modo temporal, el id de dicha traza se le pasa al comando opengnsys:pxe:sync para que pueda sincronizar el fichero PXE del cliente y finalizar la traza indicando si se ha realizado correctamente o no
testing/ogcore-api/pipeline/head There was a failure building this commit Details
testing/ogcore-api/pipeline/pr-main Build queued... Details
2026-05-13 14:51:48 +02:00
Juan Manuel Bardallo 01d39e00a5 Merge pull request 'Añadida nueva ruta para cambiar la plantilla de un cliente /clients/set-boot-mode, recibe el nombre de la plantilla, el modo 0=temporal, 1=permanente y puede enviarse mac, ip o nombre del cliente o nombre del aula.' (#113) from setbootmode into main
testing/ogcore-api/pipeline/head There was a failure building this commit Details
ogcore-debian-package/pipeline/head This commit looks good Details
Reviewed-on: #113
2026-05-12 14:57:15 +02:00
Juan Manuel Bardallo 14bfc44a38 Añadida nueva ruta para cambiar la plantilla de un cliente /clients/set-boot-mode, recibe el nombre de la plantilla, el modo 0=temporal, 1=permanente y puede enviarse mac, ip o nombre del cliente o nombre del aula.
testing/ogcore-api/pipeline/head Build started... Details
testing/ogcore-api/pipeline/pr-main Build queued... Details
2026-05-12 14:53:50 +02:00
Juan Manuel Bardallo 2d6419107a Merge pull request 'Al importar clientes se inicializan con estado off' (#112) from import-legacy into main
testing/ogcore-api/pipeline/head There was a failure building this commit Details
ogcore-debian-package/pipeline/head This commit looks good Details
Reviewed-on: #112
2026-05-11 10:32:20 +02:00
Juan Manuel Bardallo a013527f57 Al importar clientes se inicializan con estado off
testing/ogcore-api/pipeline/head Build started... Details
testing/ogcore-api/pipeline/pr-main Build queued... Details
2026-05-11 10:30:41 +02:00
Juan Manuel Bardallo 1e322a5286 Merge pull request 'Mejorado comando ImportLegacy y creada ruta api para invocarlo desde la consola web, controla errores e informa de cambios a través de mercure' (#111) from import-legacy into main
testing/ogcore-api/pipeline/head There was a failure building this commit Details
ogcore-debian-package/pipeline/head This commit looks good Details
Reviewed-on: #111
2026-05-08 15:40:20 +02:00
Juan Manuel Bardallo a0c871add5 Mejorado comando ImportLegacy y creada ruta api para invocarlo desde la consola web, controla errores e informa de cambios a través de mercure
testing/ogcore-api/pipeline/head There was a failure building this commit Details
testing/ogcore-api/pipeline/pr-main Build queued... Details
2026-05-08 15:36:57 +02:00
Juan Manuel Bardallo 7baacb820f Merge pull request 'import-legacy' (#110) from import-legacy into main
testing/ogcore-api/pipeline/head There was a failure building this commit Details
ogcore-debian-package/pipeline/head This commit looks good Details
Reviewed-on: #110
2026-05-08 10:39:34 +02:00
Juan Manuel Bardallo 53f22f3b21 eliminada relación de los perfiles software y los softwares con las OU, en la nueva version no existe dicha relacion
testing/ogcore-api/pipeline/head There was a failure building this commit Details
testing/ogcore-api/pipeline/pr-main Build queued... Details
2026-05-08 10:37:41 +02:00
Juan Manuel Bardallo 1dca0f0194 Creado importador completo de la base de datos Og 1.1 a Og 3.0, usa los comandos migrate ya creados anteriormente
testing/ogcore-api/pipeline/head There was a failure building this commit Details
2026-05-08 10:17:51 +02:00
Nicolas Arenas dbf54ed81a Merge pull request 'feat(ogcore): update client status from agent heartbeat busy field' (#109) from notify_ogagent_status into main
testing/ogcore-api/pipeline/head There was a failure building this commit Details
ogcore-debian-package/pipeline/head This commit looks good Details
Reviewed-on: #109
2026-05-08 07:10:05 +02:00
Nicolas Arenas 90f06de0a0 feat(ogcore): update client status from agent heartbeat busy field
testing/ogcore-api/pipeline/head There was a failure building this commit Details
testing/ogcore-api/pipeline/pr-main There was a failure building this commit Details
- StatusController: process 'busy' and 'st' fields from agent heartbeat
  to keep client status in sync without waiting for a command response.
  busy:true sets BUSY; busy:false reverts to og-live/linux/windows/macos
  based on the 'st' field sent by the agent
- StatusController: add detailed logging for all status transitions
  (heartbeat and REBOOT/POWEROFF) visible via journalctl -t ogcore
- PowerOffAction, RebootAction: distinguish HTTP 409 (agent busy) from
  500 (agent error) and enqueue the command in both cases
2026-05-08 07:03:08 +02:00
Manuel Aranda Rosales c846a7b824 Merge pull request 'Updated changelog' (#108) from develop into main
testing/ogcore-api/pipeline/head There was a failure building this commit Details
ogcore-debian-package/pipeline/head This commit looks good Details
Reviewed-on: #108
2026-05-07 22:29:04 +02:00
Manuel Aranda Rosales e2fedd38a9 Merge branch 'main' into develop
testing/ogcore-api/pipeline/head There was a failure building this commit Details
testing/ogcore-api/pipeline/pr-main Build queued... Details
2026-05-07 22:26:59 +02:00
Manuel Aranda Rosales 0225e9c0e7 updated changelog
testing/ogcore-api/pipeline/head There was a failure building this commit Details
2026-05-07 22:24:58 +02:00
Manuel Aranda Rosales 15e9fa796d Merge pull request 'Fixed typo disk logs. Fixed scope in task.' (#107) from develop into main
testing/ogcore-api/pipeline/head There was a failure building this commit Details
ogcore-debian-package/pipeline/head This commit looks good Details
Reviewed-on: #107
2026-05-06 17:35:25 +02:00
Manuel Aranda Rosales 99e4c02411 Fixed OU scope task
testing/ogcore-api/pipeline/head There was a failure building this commit Details
testing/ogcore-api/pipeline/pr-main There was a failure building this commit Details
2026-05-06 17:34:21 +02:00
Manuel Aranda Rosales 4a97bc8aff Merge branch 'main' into develop
testing/ogcore-api/pipeline/head There was a failure building this commit Details
2026-05-06 17:28:29 +02:00
Manuel Aranda Rosales 1915649d17 Fixed typo disk logs 2026-05-06 17:28:11 +02:00
Manuel Aranda Rosales c1da9387da Merge pull request 'fix(ogcore): fix scheduled task execution and UTC timezone handling' (#106) from fix_scheduled_tasks into main
testing/ogcore-api/pipeline/head There was a failure building this commit Details
ogcore-debian-package/pipeline/head This commit looks good Details
Reviewed-on: #106
2026-05-06 17:26:56 +02:00
Nicolas Arenas a8cdae154b fix(ogcore): fix scheduled task execution and UTC timezone handling
testing/ogcore-api/pipeline/head There was a failure building this commit Details
testing/ogcore-api/pipeline/pr-main There was a failure building this commit Details
- Fix executeReboot response check: use getStatusCode() instead of
  json_decode(body)['status'], which never matched the Client entity body
- Fix executeRunScript: same check fix; remove duplicate trace status
  update since RunScriptAction already handles it via updateExistingTrace
- Normalize executionDate/executionTime to UTC at API boundary in
  CommandTaskScheduleInput to prevent client/server timezone drift
- Use UTC consistently in calculateNextExecutionDate and
  RunScheduledCommandTasksCommand for all datetime comparisons
- Replace 30-second execution window (abs(difference) < 30) with
  isDue && notYetExecuted logic so tasks missed by the cron are
  recovered in the next cycle instead of being skipped forever
- Skip one-time (none) tasks with a past executionDate in
  calculateNextExecutionDate so nextExecution is set to null after
  execution and the task no longer appears in cron logs
2026-05-06 15:30:37 +02:00
Juan Manuel Bardallo 7fc2a10ff6 Merge pull request 'Modificada funcion para borrar imagen de cache, no se usa la partición que contenga una imagen desplegada, se usa directamente el nombre del fichero contenido en cache' (#105) from delete-cache-image into main
testing/ogcore-api/pipeline/head There was a failure building this commit Details
ogcore-debian-package/pipeline/head This commit looks good Details
Reviewed-on: #105
2026-05-06 12:40:40 +02:00
Juan Manuel Bardallo cd7a2484c5 Modificada funcion para borrar imagen de cache, no se usa la partición que contenga una imagen desplegada, se usa directamente el nombre del fichero contenido en cache
testing/ogcore-api/pipeline/head There was a failure building this commit Details
testing/ogcore-api/pipeline/pr-main There was a failure building this commit Details
2026-05-06 12:28:28 +02:00
Manuel Aranda Rosales 2860161d93 Merge pull request 'New endpoint. Disk logs.' (#104) from develop into main
testing/ogcore-api/pipeline/head There was a failure building this commit Details
ogcore-debian-package/pipeline/head This commit looks good Details
Reviewed-on: #104
2026-05-05 18:22:18 +02:00
Manuel Aranda Rosales 08aeb3b84d Merge branch 'main' into develop
testing/ogcore-api/pipeline/pr-main Build queued... Details
testing/ogcore-api/pipeline/head There was a failure building this commit Details
2026-05-05 18:19:34 +02:00
Manuel Aranda Rosales 9f65d0083f Added new endpoint. Disk logs 2026-05-05 18:19:31 +02:00
Manuel Aranda Rosales e1f7bcec80 Merge pull request 'Removed status disconnecteed from "status" endpoint.' (#103) from develop into main
testing/ogcore-api/pipeline/head There was a failure building this commit Details
ogcore-debian-package/pipeline/head This commit looks good Details
Reviewed-on: #103
2026-05-05 10:15:28 +02:00
Manuel Aranda Rosales 4aa57fa984 Merge branch 'main' into develop
testing/ogcore-api/pipeline/pr-main Build queued... Details
testing/ogcore-api/pipeline/head There was a failure building this commit Details
2026-05-05 10:14:08 +02:00
Manuel Aranda Rosales eaaba07f16 Removed disconnected from status 2026-05-05 10:13:51 +02:00
Manuel Aranda Rosales 9feca13722 Merge pull request 'investigar_uds' (#102) from investigar_uds into main
testing/ogcore-api/pipeline/head There was a failure building this commit Details
ogcore-debian-package/pipeline/head This commit looks good Details
Reviewed-on: #102
2026-05-04 20:16:46 +02:00
Manuel Aranda Rosales fec16cd660 Merge branch 'main' into investigar_uds
testing/ogcore-api/pipeline/pr-main Build queued... Details
testing/ogcore-api/pipeline/head There was a failure building this commit Details
2026-05-04 20:16:24 +02:00
Manuel Aranda Rosales 7a9e133a92 Updated rempte Pc sync
testing/ogcore-api/pipeline/head There was a failure building this commit Details
2026-05-04 16:59:57 +02:00
Juan Manuel Bardallo e7e095b8ef Merge pull request 'Corregida llamada a instalar/desinstalar oglives en servidores ogboot' (#101) from manage-ogboot-oglives into main
testing/ogcore-api/pipeline/head There was a failure building this commit Details
ogcore-debian-package/pipeline/head This commit looks good Details
Reviewed-on: #101
2026-05-04 14:18:00 +02:00
Juan Manuel Bardallo ec4dcbd000 Corregida llamada a instalar/desinstalar oglives en servidores ogboot
testing/ogcore-api/pipeline/head There was a failure building this commit Details
testing/ogcore-api/pipeline/pr-main Build queued... Details
2026-05-04 14:15:18 +02:00
Juan Manuel Bardallo b295f7672e Merge pull request 'Corregida la propagación de parametros de OUs' (#100) from propagate-network-settings into main
ogcore-debian-package/pipeline/head This commit looks good Details
testing/ogcore-api/pipeline/head There was a failure building this commit Details
Reviewed-on: #100
2026-05-04 09:17:23 +02:00
Juan Manuel Bardallo 997ef40f0a Corregida la propagación de parametros de OUs
testing/ogcore-api/pipeline/head Build started... Details
testing/ogcore-api/pipeline/pr-main Build queued... Details
2026-05-04 09:15:52 +02:00
Manuel Aranda Rosales 279e65e92b Fixed image name sync
testing/ogcore-api/pipeline/head There was a failure building this commit Details
2026-04-30 16:05:43 +02:00
Manuel Aranda Rosales 42257cf51c Fixed image name sync
testing/ogcore-api/pipeline/head There was a failure building this commit Details
2026-04-30 15:41:53 +02:00
Manuel Aranda Rosales 80948dda38 Fixed image name sync
testing/ogcore-api/pipeline/head There was a failure building this commit Details
2026-04-30 14:38:25 +02:00
Manuel Aranda Rosales 2b3e0a8350 Fixed urlLogin sync
testing/ogcore-api/pipeline/head There was a failure building this commit Details
2026-04-30 13:41:43 +02:00
Manuel Aranda Rosales 869b630bdb Fixed urlLogin sync
testing/ogcore-api/pipeline/head There was a failure building this commit Details
2026-04-30 13:04:44 +02:00
Manuel Aranda Rosales 6fec472091 Fixed sync error
testing/ogcore-api/pipeline/head There was a failure building this commit Details
2026-04-29 13:00:46 +02:00
Manuel Aranda Rosales f6e4234150 Fixed sync error
testing/ogcore-api/pipeline/head There was a failure building this commit Details
2026-04-29 12:40:38 +02:00
Manuel Aranda Rosales 40be572cfc Fixed sync error
testing/ogcore-api/pipeline/head There was a failure building this commit Details
2026-04-29 11:38:37 +02:00
Nicolas Arenas a5a0f60c59 Investigar 2
testing/ogcore-api/pipeline/head There was a failure building this commit Details
2026-04-29 11:00:49 +02:00
Nicolas Arenas 8569e73fea investigar
testing/ogcore-api/pipeline/head There was a failure building this commit Details
2026-04-29 10:54:52 +02:00
Manuel Aranda Rosales 269ed2202e Updated agent endpoint
testing/ogcore-api/pipeline/head There was a failure building this commit Details
ogcore-debian-package/pipeline/head This commit looks good Details
2026-04-28 10:50:03 +02:00