Commit Graph

528 Commits (935561e399b9af42e626b6945967a5e01d3a244d)

Author SHA1 Message Date
Juan Manuel Bardallo 02f5d5248a Creado endpoint para mostrar logs desde disco de los distintos componentes de OG 2026-05-14 13:22:57 +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 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 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 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 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 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 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 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
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 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 9f65d0083f Added new endpoint. Disk logs 2026-05-05 18:19:31 +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 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 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 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 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
Manuel Aranda Rosales 205fc41b14 Improved status classroom 2026-04-28 08:55:29 +02:00
Manuel Aranda Rosales b114958516 Fixed remotePt. Updated logic uds-service-pool
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-04-27 17:01:08 +02:00
Manuel Aranda Rosales b7a9aec928 Fixed remotePd wrong fuction
testing/ogcore-api/pipeline/head There was a failure building this commit Details
2026-04-27 13:39:59 +02:00
Manuel Aranda Rosales 99907f4b47 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-04-27 11:26:55 +02:00
Manuel Aranda Rosales 8e83fce136 Updated remote PC and bug status classrom 2026-04-27 11:26:27 +02:00
Juan Manuel Bardallo d5abd87d52 Añadida propiedad resolution a las OU para propagar la resolucion del menu en los clientes de dicha OU
testing/ogcore-api/pipeline/head There was a failure building this commit Details
testing/ogcore-api/pipeline/pr-main Build started... Details
2026-04-24 08:52:05 +02:00
Juan Manuel Bardallo 9a819cbe51 Creacion de plantillas pxe en la propagacion de propiedades de una OU
testing/ogcore-api/pipeline/pr-main Build queued... Details
testing/ogcore-api/pipeline/head There was a failure building this commit Details
2026-04-22 10:14:50 +02:00
Juan Manuel Bardallo 8205c3dbae Merge branch 'main' of https://ognproject.evlt.uma.es/gitea/opengnsys/ogcore into multiple-ogboot 2026-04-22 09:58:27 +02:00
Manuel Aranda Rosales 798b5ab2fa Fixed create image - relation SW
testing/ogcore-api/pipeline/head Build started... Details
testing/ogcore-api/pipeline/pr-main Build started... Details
2026-04-22 08:50:34 +02:00
Juan Manuel Bardallo 60e692ba21 Gestion de múltiples OgBoot con sus plantillas pxes y oglives. Cambios en Network Settings para que relacione plantilla pxe y oglive con un servidor ogboot específico
testing/ogcore-api/pipeline/head There was a failure building this commit Details
2026-04-21 14:44:38 +02:00
Manuel Aranda Rosales dca1377a08 refs #2973. Refactor classroom status
testing/ogcore-api/pipeline/head There was a failure building this commit Details
testing/ogcore-api/pipeline/pr-main Build queued... Details
2026-04-20 18:39:31 +02:00
Manuel Aranda Rosales 0e23464524 refs #2972. Integration remove leases ogDhcp
testing/ogcore-api/pipeline/head There was a failure building this commit Details
2026-04-20 17:59:51 +02:00
Juan Manuel Bardallo 233543843a Merge branch 'main' of https://ognproject.evlt.uma.es/gitea/opengnsys/ogcore into multiple-ogdhcp 2026-04-17 08:33:12 +02:00
Manuel Aranda Rosales 8e879c54e3 Merge branch 'main' into develop 2026-04-16 16:45:41 +02:00
Manuel Aranda Rosales 4e6e57f6bc Updated UDS env
testing/ogcore-api/pipeline/head There was a failure building this commit Details
2026-04-16 16:43:03 +02:00
Juan Manuel Bardallo 3160b22c55 Implementación para poder administrar varios DHCP, se ha creado la clase padre DhpcServer y se ha creado una relacion 1-N con subnet, de manera que ahora tenemos varios dhcp y cada uno de ellos pueden tener varias subredes.
testing/ogcore-api/pipeline/head This commit looks good Details
2026-04-16 14:58:22 +02:00
Manuel Aranda Rosales 192d091e48 refs #2957. Sync repo - ogcore
testing/ogcore-api/pipeline/head There was a failure building this commit Details
2026-04-15 12:40:46 +02:00
Manuel Aranda Rosales 07101267a7 refs #2944. New datasize column in Imange entity
testing/ogcore-api/pipeline/head There was a failure building this commit Details
2026-04-15 12:13:37 +02:00
Manuel Aranda Rosales 6a9d8bf8b2 refs #2956. Added new param clientsPerPage
testing/ogcore-api/pipeline/head There was a failure building this commit Details
2026-04-14 18:18:38 +02:00