| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
| |
|
|
|
|
| |
partitions bigger 2Tb.
|
|
|
|
| |
in the boot menu.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
ogclient.json has the samba password in plain text. This commit changes
ownership and permissions to improve the security.
|
|
|
|
|
|
|
|
| |
"Partition and Format"/"Particionar y Formatear" command now has all
functionalities from "Partitioning Assistant"/"Asistente de
Particionado".
Add a warning message to "Partition Assistant".
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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".
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
The port value for 'faucet' is fixed, it does not depend on the ogserver configuration. Required for multicast transfer.
|
|
|
|
|
| |
The script was not detecting the Initrd compression program,
could not get the samba password and needed to ask for it.
|
|
|
|
| |
columns and row property.
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
source_json_config loads config values.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Thanks to Jorge Fernandez Marín for the solution provided.
|
|
|
|
| |
Not used, and now there is a configuration ogserver.json
|
|
|
|
| |
This patch sets the renewed api_token in the config file ogserver.json
|
|
|
|
|
| |
This commit changes legacy ogServer configuration file to new ogServer
JSON configuration file.
|
|
|
|
|
| |
This patch reads configuration from the new json file instead of using
the legacy '.cfg' file.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
This flag controls that a computer with a local session open cannot be reserved to remote access.
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Adding compatibility with Ubuntu 20.04 Initrd, which is compressed in LZ4 format.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
This API is not supported by ogClient yet and it uses the obsolete socket hydra API.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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".
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
This patch selects the machines whose modes need to be changed using the
client's IP rather than their scope names.
|
|
|
|
| |
mysql 5.7.31 compatibility (no tablespaces used).
|
| |
|
|
|
|
| |
copyServerFiles.
|
|
|
|
| |
This adapts to the ogServer.
|
|
|
|
|
|
| |
This patch removes ogAdmServerAux which is no longer needed. This script
is replaced by the modifications performed on 'setclientmode' and a call
to the ogServer API POST /modes.
|
|
|
|
|
| |
This patch fixes the call to the WOL rest function by adapting it to the
new API.
|
|
|
|
|
| |
This patch replaces a call to the 'setclientmode' script in
createBootMode() function for a REST request to the ogServer.
|
|
|
|
|
| |
This config file contains the parameters needed in order to run the
script without the need to make any queries to the database.
|
| |
|
| |
|
| |
|
| |
|