| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
To help users choosing which preparation a computer needs according to
its disk type, this commit:
* Adds cloning engine support to retrieve disk type data from the
computer when refreshing disks partition schema.
* Adds WebConsole support to read disk type data from the database and
show it on partition drawing.
See also commits with #1037 in ogClient and ogServer repo.
Co-authored-by: Javier Sánchez Parra <jsanchez@soleta.eu>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This bug was found by USAL and UPV. They reported that WebConsole was
showing scripts incompletely if they contain "=".
SocketHidra stores key-value pair as "<key>=<value>" string, and the
parser splits the string on "=" characters and pick the first two
elements. Thus, if the value also contains "=", the parser splits it and
only picks the first part.
Note: keys strings never contain "=".
With "scp=this=is=a=test" as example
BEFORE this commit the parser returns
"scp" as key
"this" as value
AFTER this commit the parser returns
"spc" as key
"this=is=a=test" as value
Limit legacy SocketHidra key-value split to two elements, key and value.
This commit also removes script decoding because WebConsole stores
them decoded since v1.2.0.
|
|
|
|
|
|
|
| |
If the clients API response included speed information, show it in the
default room view.
In case link speed is less than 1000 Mbit, highlight so.
|
|
|
|
|
|
|
|
|
|
|
| |
Avoid stale commands from being executed when given a time schedule that
include past dates, ie. when they are manually scheduled.
Use create_schedule_now for immediate execution commands (no manual
schedule) that the user want to be logged (by automatic scheduling to
the right moment they are processed).
Fixes #1032 (https://opengnsys.es/trac/ticket/1032#comment:2)
|
|
|
|
|
|
|
|
|
|
|
|
| |
Webconsole is directly querying the database to build the payload for
requesting the ogServer a Wake On Lan.
ogServer is expected to query the database for the netmask and mac
parameters. Do not require the client request to have such parameters.
Adjust calls to the wol php method by other OpenGnsys components.
Fixes: a35b7c4 ("#990 Use client broadcast address on WoL")
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
This patch reads configuration from the new json file instead of using
the legacy '.cfg' file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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".
|
|
|
|
|
| |
This patch selects the machines whose modes need to be changed using the
client's IP rather than their scope names.
|
|
|
|
| |
This adapts to the ogServer.
|
|
|
|
|
| |
This patch replaces a call to the 'setclientmode' script in
createBootMode() function for a REST request to the ogServer.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Some universities have computers in a different subnet where the
ogServer is, but ogServer WoL functionality only supported to send
packet to its own subnets. This commit solves this.
Now ogServer sends two WoL packets per client, one with the broadcast
address of the interface indicated in the config file, the other with
the broadcast address calculated with the address and netmask of the
client.
To ensure that the second WoL works correctly you must configure
correctly the IP and netmask of the clients. Also, you have to configure
the network of your organization to route WoL packet to the correct
subnet.
|
|
|
|
| |
Step forward to rename all ogAdmServer references to ogServer
|
|
|
|
|
|
|
|
| |
Users can launch immediate commands on the queue to keep an history and
to watch the status and the properties.
This commit adapt this functionality to new functions and behaviour
of the ogAdmServer.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I tried to delete a cache image but the character "*" of the command
was missing so the command fails.
Command received:
"rm -r /opt/opengnsys/cache/opt/opengnsys/images/test."
Command expected:
"rm -r /opt/opengnsys/cache/opt/opengnsys/images/test.*"
This command adds a new case to the call shell/run. This new case is
needed because in the case of deleting a image from the cache the web
only has to delete the last character of the string instead of last two
characters.
|
|
|
|
| |
Run script commands should not be encoded as an URL.
|
|
|
|
| |
Web updates for #942 Add support for scheduled tasks and commands
|
| |
|
|
|
|
|
|
|
|
|
| |
We have seen that if you try to edit a task and assign it to a group of
computers the form do not work. This happens because the string
containing the name of primary key of the table gruposordenadores
(Groups of computers) has a trailing white space.
This commit fixes this bug removing the trailing whitespace.
|
|
|
|
| |
This reverts commit 46eee4148b92d3218dfe47544623018db540a77b.
|
| |
|
| |
|
|
|
|
| |
operating system is detected.
|
|
|
|
| |
system is detected.
|
|
|
|
| |
This patch renames the setup command to avoid semantic confusion.
|
| |
|
| |
|
|
|
|
|
| |
This patch fixes run script command as it now uses REST API instead of
SocketHidra.
|
|
|
|
| |
This patch removes files that are dead code and that also use SocketHidra.
|
|
|
|
|
|
| |
This patch implements run/schedule in the set of available PHP functions.
It also replaces old SocketHidra commands by run/schedule in
gestor_colasacciones.php and gestor_ejecutaracciones.php.
|
|
|
|
|
|
|
|
|
|
| |
This commit changes restfunctions.php to read the API token of
ogAmdServer from ogAdmRepo.cfg to ogAdmServer.cfg. This way it avoids
possible communication errors if ogAdmRepo.cfg and ogAdmServer.cfg are
desynced.
In order to restfuntions.php can read ogAdmServer.cfg this commit
also changes the permissions of the file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds the parameters "disk" and "partition" to
POST "software" command. This way the client can create a software
profile without failure.
New request:
POST /software
{
"clients":[
"192.168.56.12"
],
"disk":"1",
"partition":"1"
}
Reply:
200 OK
|
|
|
|
| |
SocketHidra command has been replaced by POST image/restore/incremental.
|
|
|
|
| |
SocketHidra command has been replaced by POST "image/create/incremental".
|
|
|
|
| |
SocketHidra command has been replaced by POST image/restore/basic.
|
|
|
|
| |
SocketHidra command has been replaced by POST image/create/basic.
|
|
|
|
| |
SocketHidra configurar has been replaced by POST image/setup.
|
|
|
|
|
| |
Update restore_image() in restfunctions.php to use OG_REST_PARAM_ID
constant.
|
|
|
|
| |
SocketHidra restaurar imagen has been replaced by POST image/restore.
|
|
|
|
| |
SocketHidra crear imagen has been replaced by POST /imagen/create.
|