summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* #1024 disable option to move a single computerID-1020_logrotateBugantoniodoblas2021-02-091-6/+6
|
* #1020 logrotate ignore non-existent logs with missingokantoniodoblas2021-02-092-1/+2
| | | | | | | If the logrotate files for opengnsys indicate to rotate files that do not exist, the process ignores them and continues with the next one. The missingok clause is added to the logrotate configuration files.
* #1019 Fix decoding of shell command parameters in queue modeJavier Sánchez Parra2021-02-081-1/+14
| | | | | | | | | | UMA report that "delete cached image" and "partition asistant" commands in queue mode do not work (non-queue mode works fine). WebConsole decodes and handles quirks of shell command parameters only when it is not queued. See shell() at restfunctions.php. Add shell command parameters decoding and handling when queued.
* #1021 remove LOG_INFO syslogJavier Sánchez Parra2021-02-041-2/+0
| | | | | | | Some distros enable *.* in syslog.conf to add all logging information to /var/log/syslog. The existing LOG_INFO syslog() entry that WebConsole generates fill up the log files very quickly. It writes every time WebConsole calls ogServer. Remove the LOG_INFO syslog() call.
* #997 Updating release in Vagrantfile and VERSION.json.Irina Gómez2021-01-214-5/+178
|
* #839 Fixes problem of expulsion of the user from the session at 15min.Irina Gómez2021-01-201-1/+2
|
* #997 CHANGELOG.es.txt: Updating list of closed tickets 1.2.Irina Gómez2021-01-201-0/+39
|
* #1008 Remove unused variableJavier Sánchez Parra2021-01-121-2/+0
| | | | | | | | | | | Apache reports: [Tue Dec 22 12:07:01.664403 2020] [proxy_fcgi:error] [pid 1386] [client 10.1.12.17:46950] AH01071: Got error 'PHP message: PHP Notice: Undefined variable: cadenaid in /opt/opengnsys/www/comandos/Configurar.php on line 158\nPHP message: PHP Notice: Undefined variable: mindisks in /opt/opengnsys/www/comandos/Configurar.php on line 201\n'
* #1008 Restore support for >4 partitionsJavier Sánchez Parra2021-01-122-15/+30
| | | | | | | | | | | | | WebConsole "Partition and Format"/"Particionar y Formatear" supported more than 4 partitions when it used SocketHidra. When we changed it to use HTTP requests we introduced a limit of 4 partitions. This commit: * Restores "Partition and Format" support for more than 4 partitions. * Adapts client-side checks (JavaScript) for more than 4 partitions and GPT.
* #1015 Fix updateBootMode and use it when updating computer infoJose M. Guisado2020-12-173-2/+4
| | | | | | | | | | | | | | | | | | | When a computer info is updated sometimes their related pxe files need to be updated accordingly. In order to recreate the file the function createBootMode was being used inside gestor_ordenadores. Eg: createBootMode ($cmd, $arranque, $ip, $idioma) This had some problems because the POST message to gestor_ordenadores was sometimes lacking the ip field. This field is not necessary because updateBootMode takes the id of the computer and queries the database for the ip of the computer associated with it. Use updateBootMode ($cmd, "idordenador", $idordenador, $idioma) instead. Fixes related mass updater and "moving pc to another classroom" issues.
* #997 Installer and updater download the latest versions of OGAgent and ogLive.Irina Gómez2020-12-173-5/+4
|
* #1014 ogGetImageInfo: Support Windows update october 2020.Irina Gómez2020-12-161-1/+1
|
* #1012 Change database field type of the partition size to support disk and ↵Irina Gómez2020-12-102-1/+5
| | | | partitions bigger 2Tb.
* #1011 Fix the error when Windows is hibernated. "Error code 6" was displayed ↵Irina Gómez2020-12-091-1/+18
| | | | in the boot menu.
* #1009 Add ogclient.json update to setsmbpassJavier Sánchez Parra2020-12-011-0/+3
| | | | | | | | | ogclient.json has samba user and pass because ogVDI needs them to upload qcow2 images to the repository. setsmbpass sets user and pass and updates ogLives to match. If a user executes setsmbpass, then ogclient.json samba info becomes outdated. Add ogclient.json samba user and pass update to setsmbpass script.
* #1009 Fix ogclient.json ownership and permissionsJavier Sánchez Parra2020-11-301-0/+2
| | | | | ogclient.json has the samba password in plain text. This commit changes ownership and permissions to improve the security.
* #1008 Deprecate "Partitioning Assistant"Javier Sánchez Parra2020-11-301-0/+1
| | | | | | | | "Partition and Format"/"Particionar y Formatear" command now has all functionalities from "Partitioning Assistant"/"Asistente de Particionado". Add a warning message to "Partition Assistant".
* #1008 Add support to work with GPT tablesJavier Sánchez Parra2020-11-274-12/+36
| | | | | | | | | | | | | | | | | | WebConsole needs to rely on /shell/run to work with GPT tables. Because "Partition and Format"/"Particionar y Formatear" form always supposes that the partition table is MBR/MSDOS. "Setup"/"Configurar" script from "Cloning Engine" also supposes that the partition table is MBR/MSDOS. But it uses "Boot.lib" library, that can create MBR and GTP partitions. This commit: * Adds WebConsole support to work with GPT tables. - Adds input field where the user can select between MSDOS and GPT table types. * Adds "Setup" support to work with GPT tables. - Adds script parameter that expects a string with "MSDOS" or "GPT".
* #1008 Add support for partitioning several disksJavier Sánchez Parra2020-11-258-15/+65
| | | | | | | WebConsole only supports for partitioning and formatting the first disk of the client. POST /setup calls in ogserver and ogclient support for multiple disks. Update WebConsole to allow to choose which disk do you want to partition and format.
* #988 checkperms sets permissions on ogserver.jsonIrina Gómez2020-11-171-2/+2
|
* #988 Fix opengnsys startup script.Irina Gómez2020-11-091-12/+13
| | | | The port value for 'faucet' is fixed, it does not depend on the ogserver configuration. Required for multicast transfer.
* #997: Fix oglivecli.Irina Gómez2020-11-051-1/+1
| | | | | The script was not detecting the Initrd compression program, could not get the samba password and needed to ask for it.
* #944 Fix status in console, when there is only one computer in lab without ↵OpenGnsys2020-11-051-1/+1
| | | | columns and row property.
* #988 Add ogserver.json creation when running opengnsys_update.shJavier Sánchez Parra2020-11-031-3/+24
| | | | | | | | | | This patch enables the creation of a default json config for the ogserver when running opengnsys_update.sh, if no prior json config is detected. Eg. when updating from 1.1.1c to 1.2.0 Reviewed-by: Jose M. Guisado <jguisado@soleta.eu>
* #804 Fix updater php package retrievingJavier Sánchez Parra2020-10-301-1/+1
| | | | | | | | Updater script retrieves php7.1-mapi package instead of php7.2 metapackage. Otherwise, updating from 1.1.1c to 1.2.0 fails. This commit changes "apt-cache" search for the "php7.2" specific package dependency which is available in Ubuntu 18.04.
* #988 Fix settoken json handlingIrina Gómez2020-10-291-0/+1
| | | | source_json_config loads config values.
* #988 Fix setserveraddr json handlingJavier Sánchez Parra2020-10-241-3/+13
| | | | | | | | setserveraddr script modified ogserver.json values with "sed". This caused unwanted changes in database.ip. This commit replaces "sed" with "jq" for modifying ogserver.json, ensuring only rest.ip and wol.interface values change.
* #988 Read json config file in scriptsRoberto Hueso Gómez2020-10-2215-30/+50
| | | | | | | | This patch implements the function source_json_config() that is used to read the new ogserver.json config file in the scripts. This replaces the old 'source .../ogserver.cfg'. Co-authored-by: Javier Sánchez Parra <jsanchez@soleta.eu>
* #992: Expand URL fields to support long hostnames.Ramón M. Gómez2020-10-212-6/+7
| | | | Thanks to Jorge Fernandez Marín for the solution provided.
* #988 remove reference to ogserver.cfg setclientmodeOpenGnSys Support Team2020-10-161-1/+0
| | | | Not used, and now there is a configuration ogserver.json
* #988 Adapt settoken to the new json config fileRoberto Hueso Gómez2020-10-161-3/+2
| | | | This patch sets the renewed api_token in the config file ogserver.json
* #988 Add ogServer JSON config to installerJavier Sánchez Parra2020-10-161-6/+18
| | | | | This commit changes legacy ogServer configuration file to new ogServer JSON configuration file.
* #988 Read API token from new json configRoberto Hueso Gómez2020-10-061-2/+2
| | | | | This patch reads configuration from the new json file instead of using the legacy '.cfg' file.
* #993 Fix oglivedir parse in setclientmode scriptRoberto Hueso Gómez2020-10-021-3/+3
| | | | | | | This awk expressions is parsing a key1=value1 key2=value2... expression. For example one of the 'awk' in this patch looks for the key "oglivedir" and parses the value of that key correctly.
* #1006 Fix RemotePC IP retrieving on running clientsIsaac Vidal Daza2020-09-281-2/+2
| | | | | | | | | | | Error in the REST API response of /ous/:id1/labs/:id2/clients/status that returns the status of the computers in a classroom. It returns running PCs with an X.X.X.1 and X.X.X.2 IP address instead of those that are actually running, which are X.X.X.15 and X.X.X.16. The error cause is, when constructing the JSON response, a foreach that ignores the "keys" of the response array. This commit adds the "keys" to the foreach to iterate also through them.
* #1005 Add support for computer groups in RemotePCJosé Alberto Royo Ratia2020-09-281-0/+4
| | | | | | | | | | | When OpenGnsys is used via RemotePC, a failure occurs when classrooms with groups of computers are included because the processing and recursion is not controlled correctly because attempts are made to add objects to a null array. This commit adds and populates an array with the computers in the group. Reviewed-by: Javier Sánchez Parra <jsanchez@soleta.eu>
* #992: New REST route `/ous/:ouid/labs/:labid/clients/:clntid/init`Ramón M. Gómez2020-09-111-26/+172
| | | | New route to boot up a computer and init session on the operating systems where the image was restored. UDS will request this route when it detects that a reserved computer is turned off.
* #992: Set local session flag on user login or logout.Ramón M. Gómez2020-09-111-7/+10
|
* #992: Add field to indicate if a local session is open.Ramón M. Gómez2020-09-112-9/+18
| | | | This flag controls that a computer with a local session open cannot be reserved to remote access.
* #1004 Add new fields to imagenes tableJavier Sánchez Parra2020-09-103-0/+14
| | | | | | | Extend database to store new fields that contain information about "clonator", "compressor", "filesystem" and "datasize". This patch also creates a /tmp/image.info file that is consumed by ogClient.
* #997: Fix variable name in commit `0e3e167`.Ramón M. Gómez2020-09-031-2/+2
|
* #997: Support for Initrd compressed in several formats.Ramón M. Gómez2020-09-036-12/+19
| | | | Adding compatibility with Ubuntu 20.04 Initrd, which is compressed in LZ4 format.
* #1003 Fix ogClient updateJavier Sánchez Parra2020-08-281-1/+1
| | | | | | | | ogClient is not updated when the update script runs. The update script is using "mv", which can not merge folders and is putting the update inside a folder. This patch updates the script to use "rsync", which can merge folders.
* #1002 Fix update script to not remove ogAdmRepo.cfgJavier Sánchez Parra2020-08-281-1/+4
| | | | | | | The ogAdmRepo config file is removed on update. Update script deletes ogAdmRepo.cfg file as it was deprecated, but it is still in use. This patch updates the script to not remove ogAdmRepo config file.
* #998 disable incremental imageIsabel Arrans2020-08-262-26/+0
| | | | This API is not supported by ogClient yet and it uses the obsolete socket hydra API.
* #1001 Remove trailing \r and \n in some scriptsJavier Sánchez Parra2020-08-253-8/+3
| | | | | | | | | | | | | | | | | | | | | | | | We find that scripts sent by "Assistants"/"Asistentes" are losing the last character and scripts send by "Run Script"/"Ejecutar Script" have a trailing line feed (\n). This is happening because shell() function, which calls "/shell/run" of ogServer REST API, expects scripts send by "Asistentes" and "Run Script" to have two trailing characters and removes them. But "Assistants" only put one trailing char (\r) and "Run Script" put three trailing chars (\n\n\r). To avoid problems when running scripts without the last char or with trailing line feed this patch updates WebConsole to: 1) "Assistants" no longer put one trailing character at the end of the script 2) "Run Script" no longer puts three trailing characters at the end of the script 3) shell() expects no trailing chars in scripts sent by "Assistants" and "Run Script".
* #999 Fix ogClient session commandJavier Sánchez Parra2020-08-211-4/+4
| | | | | | | | | | | | | | | | | | | | Irina reports that booting an OS from ogLive is not working. This is happening because the bootOS shell script kills ogClient before invoking kexec to start the OS. However, ogClient runs this shell script that initiates the boot process, so it is also stopping the boot process. The ogClient needs to close the connection with ogServer before kexec, otherwise ogServer keeps reporting via REST API that the client is in ogLive state / busy state. Because after kexec everything is gone basically. This patch updates the script to: 1) spawn a process to kill the ogClient in 2 seconds, so the ogClient has time to reply to the ogServer and to close the connection gracefully. 2) spawn a process to invoke kexec in 3 seconds to boot the OS. [1] 2ead1639fd54bcf92d56cf7bf89b8d9cf4d6d24e
* #980 Update POST /mode to the new ogServer APIRoberto Hueso Gómez2020-08-147-16/+16
| | | | | This patch selects the machines whose modes need to be changed using the client's IP rather than their scope names.
* #997 #755 opengnsys_export: database dump does not export tablespaces due to ↵Irina Gómez2020-08-101-1/+3
| | | | mysql 5.7.31 compatibility (no tablespaces used).
* #991: Fixs error in line order that caused blank page.Irina Gómez2020-08-051-1/+1
|