Skip to content

Commit aecd1dc

Browse files
committed
Merge remote-tracking branch 'origin/integration' into xmppmaster
2 parents 1177208 + a7cef11 commit aecd1dc

File tree

558 files changed

+52902
-37553
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

558 files changed

+52902
-37553
lines changed

ChangeLog

Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,161 @@
1+
Pulse 2 4.6.9
2+
=============
3+
* [FEATURE] Add Team support in Audit page
4+
* [FEATURE] Add new infos in the fileviewer as config ( server, port, size
5+
popup, etc.)
6+
* [FEATURE] Add link to machines in the Quick Action summary page
7+
* [FEATURE] Add a button to run the researches on computers
8+
* [FEATURE] Remove the "Restart machine agent" Quick action
9+
* [FEATURE] Optimize Comuter view display
10+
* [FEATURE] Optimize admin view display
11+
* [FEATURE] Add online/offline switch to the uninventoried page
12+
* [FEATURE] Add a @@@DEBUG@@@ option in queries to show played SQL Requests
13+
* [FEATURE] Add the possibility to add a limit number to the autoupdate feature.
14+
* [FEATURE] Change the way WOL is handled.
15+
* [BUGFIX] Fix removing packages from the database. Bug#1323
16+
* [BUGFIX] Fix deleting old users in ejabberd
17+
* [BUGFIX] Remove cdn from js files import. Use local files instead
18+
* [BUGFIX] Several SQL Optimisations
19+
* [BUGFIX] Fix shown state when starting a deployment
20+
* [BUGFIX] Fix handling some accounts creation
21+
* [BUGFIX] Fix display infos on group deployment audit
22+
* [BUGFIX] Fix creating groups based on ADs
23+
* [BUGFIX] The abort deployment button was always disabled
24+
* [BUGFIX] Fix creation of groups based on OU or AD. Bug#1238
25+
* [BUGFIX] Add carriage return on "Executed command" info in detail view
26+
* [BUGFIX] Fix detection of online machines with glpi 0.84
27+
28+
Pulse 2 4.6.8
29+
=============
30+
* [FEATURE] Disable relay list page from computers menu
31+
* [FEATURE] Add utilities to migrate to new package server
32+
* [FEATURE] Disable new sharing mode by default
33+
* [FEATURE] Update translations
34+
* [FEATURE] Rename "Localisation server" to "Share" and remove the search field
35+
* [FEATURE] Remove "add package" from menu when the user has no writing rights
36+
* [FEATURE] Update the package parser to catch more errors
37+
* [FEATURE] Enhance error messages.
38+
* [FEATURE] Fix several XSS issues.
39+
* [FEATURE] Allow to retrieve the glpi uuid if missing
40+
* [FEATURE] Convergences are now identified by their name + date
41+
* [FEATURE] Do not display old view when creating the packages.
42+
* [FEATURE] Allow to filter searches based on the relay jid
43+
* [BUGFIX] Fix backtrace during deployment
44+
* [BUGFIX] Fixes listing of packages for deployment
45+
* [BUGFIX] Add acl for relays actions
46+
* [BUGFIX] Fix rendering of accentuated letters from glpi to pulse.
47+
* [BUGFIX] Fix detection of online/offline machine in the Glpi view
48+
* [BUGFIX] Add back addMachinesToCommand function ( fixing restarting
49+
convergences)
50+
* [BUGFIX] Do not allow ; in computers descriptions
51+
* [BUGFIX] Fix the int limitation problem for quotas in sharing
52+
* [BUGFIX] Change the size of the packages size column
53+
* [BUGFIX] Fix use of older SQLAlchey
54+
* [BUGFIX] Fix registry when there no uuidsetup defined
55+
* [BUGFIX] Change glpi_description sql field to text
56+
* [BUGFIX] Fix display of active/available convergences
57+
* [BUGFIX] Fix permissions for viewing ars based on clusters
58+
* [BUGFIX] Grant Rights for Admin on the ARS Cluster.
59+
* [BUGFIX] Fix use of <br> in the description field (glpi )
60+
* [BUGFIX] Escape simple quotes in descriptions ( glpi )
61+
* [BUGFIX] Fix listing enabled plugins.
62+
* [BUGFIX] Fix crash when metagenerator is missing
63+
* [BUGFIX] Set metagenerator key to expert if missing
64+
* [BUGFIX] Fix registration when there is no entity in xmppmaster database yet
65+
* [BUGFIX] Fixes traceback when editing
66+
* [BUGFIX] Convert id from string to int for glpi 084 and 92
67+
* [BUGFIX] Use OCS inventory date if exists
68+
* [BUGFIX] All entities return all entities uuids allowed to the user
69+
* [BUGFIX] Fix search in entities
70+
* [BUGFIX] Add the entity to the search.
71+
* [BUGFIX] Fix a problem when the hostname changed.
72+
* [BUGFIX] Pkgs display on "os" definition in config.json
73+
* [BUGFIX] Fix the edition status if the metagenerator is set to manual
74+
* [BUGFIX] Remove too many arguments in the formatted filter
75+
* [BUGFIX] Set to "" the none values on sharings infos
76+
* [BUGFIX] A undefined variable were used, replaced it by the real name
77+
* [BUGFIX] Modify assert tests to conditionnal tests in the page generator
78+
* [BUGFIX] Do not look for installation command if package is larger than 500MB
79+
* [BUGFIX] Fix backtrace when no machines are associated to a relay
80+
* [BUGFIX] Fix pagination on packages list admin page
81+
* [BUGFIX] Enhance glpi 0.84 support
82+
* [BUGFIX] Remove registries from machines filters
83+
* [BUGFIX] Keep the partial count and use the total
84+
* [BUGFIX] Fixes the pagination for the computers list
85+
* [BUGFIX] Fix pagination in admin relay page
86+
* [BUGFIX] Fix traceback when a user doesn't have rights on shares for relays list in admin
87+
* [BUGFIX] Fix missing declaration for an array in glpi 0.84
88+
* [BUGFIX] Remove old parameters from the filter
89+
* [BUGFIX] Fix traceback on arraykeys when listing all computers in glpi 0.84
90+
* [BUGFIX] Fix deployment action when machine is offline
91+
* [BUGFIX] User can view only the relays allowed in pkgs_rules_local
92+
* [BUGFIX] Fix wol by correcting a wrong variable name
93+
* [BUGFIX] Fix size output to be human readable
94+
* [BUGFIX] Fix package page when there is no packages to display
95+
* [BUGFIX] Fix checking if new sharing is used, if not used the old style
96+
* [BUGFIX] Add name to csv when the group is created
97+
* [BUGFIX] Add missing parameters in pkgs.ini and initialise pkgs_rules_algo table
98+
* [BUGFIX] Fix pagination in GLPI View
99+
* [BUGFIX] Fix registering ARS
100+
* [BUGFIX] Fix displaying the relay list
101+
* [BUGFIX] Fix and add ACLs
102+
* [BUGFIX] Fix migration to new packages layout
103+
* [BUGFIX] Change hostname in cluster_resources size to 255
104+
* [BUGFIX] Remove description from csv generation
105+
* [BUGFIX] Modify concatenation of " bracket from csv generation
106+
* [BUGFIX] Fix display of dates in the audit page
107+
108+
Pulse 2 4.6.7
109+
=============
110+
* [FEATURE] Order relay list
111+
* [FEATURE] Add ACL on the package synchronisation
112+
* [FEATURE] Add ACL on the GLPI view
113+
* [FEATURE] Add ACL on package and relay view
114+
* [FEATURE] Add Quotas for relay servers
115+
* [FEATURE] New computer view
116+
* [BUGFIX] Fix deploying packages with the same name
117+
* [BUGFIX] Fix creating a package using the Zip action
118+
* [BUGFIX] Hide convergence if not available.
119+
* [BUGFIX] Export CSV
120+
121+
Pulse 2 4.6.6
122+
=============
123+
* [FEATURE] Add admin page
124+
* [FEATURE] Allow to set up the send of WOL
125+
* [FEATURE] Allow to disable the use of UUID for glpi association
126+
* [FEATURE] Show non sync relays at the top of the list ( package view )
127+
* [FEATURE] Create packages in pushrsync by default and fallback in pulldirect if pushrsync fails.
128+
* [FEATURE] Ajout du camembert intermédiaire une fois le déploiement terminé
129+
* [FEATURE] Add the percent in the Audit view
130+
* [BUGFIX] Fix packages sync when a relay is down
131+
* [BUGFIX] Fix the percentages in the deploy view
132+
* [BUGFIX] Fix the action "set_config" in packaging
133+
* [BUGFIX] Fix the dates when planning a deployment
134+
* [BUGFIX] Fix detection of the package server when using pulldirect
135+
136+
Pulse 2 4.6.5
137+
=============
138+
* [FEATURE] Add Glpi 9.5 Support
139+
* [FEATURE] Support php-fpm by default
140+
* [FEATURE] Save Online/Offline states and their duration, to be used later
141+
* [FEATURE] Add grafana support for monitoring
142+
* [FEATURE] Allow to create a reversessh tunel from a QuickAction
143+
* [FEATURE] Rename log files to have the name of the service (machine/relay)
144+
* [FEATURE] Use glpi's UUID uniq value add machines in the machines sql table
145+
* [FEATURE] Set pulldirect deployement mode by default
146+
* [FEATURE] Add support for python-ldap from version 3.2.0
147+
* [FEATURE] Notify recording ARS
148+
* [FEATURE] Allow to disable the UUID feature ( if using an old GLPI for ex.)
149+
* [BUGFIX] Update Translations
150+
* [BUGFIX] The Relay List now show the good JID
151+
* [BUGFIX] The Computer page now list the machines by name
152+
* [BUGFIX] Add the firmware column to the filter
153+
* [BUGFIX] Fix reversessh support
154+
* [BUGFIX] Fix support with MariaDB 10.3
155+
* [BUGFIX] Fix Audit page when the machines has several mac addresses
156+
* [BUGFIX] Fix registering the machines if the interface changes
157+
* [BUGFIX] Fix wording regarding source of IP address in audit view
158+
1159
Pulse 2 4.6.4
2160
=============
3161
* [FEATURE] Add quick actions to relays management

ChangeLog_fr

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
Pulse 2 4.6.9
2+
=============
3+
* [FONCTIONNALITE] Ajout du support des Equipe dans la page Audit
4+
* [FONCTIONNALITE] Ajout de nouvelles options de configuration dans le
5+
fileviewer ( Serveur, port, taille de la popup, etc.)
6+
* [FONCTIONNALITE] Ajout du lien vers les machines dans la page de sommaire
7+
des Actions rapides
8+
* [FONCTIONNALITE] Suppression de l'action rapdie "Restart machine agent"
9+
* [FONCTIONNALITE] Ajout d'un bouton de validation des recherches
10+
* [FONCTIONNALITE] Optimisation de l'affichage de la vue ordinateur
11+
* [FONCTIONNALITE] Optimisation de l'affichage de la vue admin
12+
* [FONCTIONNALITE] Ajout d'un selecteur en ligne/hors ligne pour la vue des
13+
machines non inventoriées
14+
* [FONCTIONNALITE] Ajout de l'option @@@DEBUG@@@ lors des recherches afin
15+
de montrer les Requetes SQL jouées
16+
* [CORRECTION DE BUG] Correction de la suppression de packages. Bug#1323
17+
* [CORRECTION DE BUG] Correction de la suppression d'anciens compte
18+
utilisateurs dans ejabberd
19+
* [CORRECTION DE BUG] Suppression des cdn pour l'utilisation des fichiers js.
20+
Utilisation de fichiers locaux à la place
21+
* [CORRECTION DE BUG] De nombreuses optimisations dans les requetes SQL jouées
22+
* [CORRECTION DE BUG] Correction de l'état de déployement affiché en début de
23+
déployement.
24+
* [CORRECTION DE BUG] Correction de la gestion de la creation de certains
25+
utilisateurs ( subsitutes )
26+
* [CORRECTION DE BUG] Correction de l'affichage des informations dans la page
27+
audit ( nom de la machine par exemple).
28+
* [CORRECTION DE BUG] Correction de la creation de groupes, basés sur OU de
29+
l'AD Bug#1238
30+
* [CORRECTION DE BUG] Correction de la détection des machines en ligne avec
31+
Glpi 0.84
32+
33+
34+
Pulse 2 4.6.8
35+
=============
36+
* [FONCTIONNALITE] Suppresion de la liste des relays dans la page Ordinateurs.
37+
* [FONCTIONNALITE] Ajout d'un utilitaire afin de migrer vers le nouveau systeme de
38+
packages.
39+
* [FONCTIONNALITE] Désactivation du nouveau partage par defaut.
40+
* [FONCTIONNALITE] Mise à jour de traductions.
41+
* [FONCTIONNALITE] Renommage de "Serveur de Localisation" en "Partage" et suppresion
42+
du champs de recherche
43+
* [FONCTIONNALITE] Suppression de "Ajouter un package" du menu pour les utilisateurs
44+
n'ayant pas les droits
45+
* [FONCTIONNALITE] Amélioration du "package parser" afin d'attraper plus d'erreurs.
46+
* [FONCTIONNALITE] Amélioration de messages d'erreur.
47+
* [FONCTIONNALITE] Corrections de bugs XSS
48+
* [FONCTIONNALITE] Récupération de l'UUID Glpi si manquant
49+
* [FONCTIONNALITE] Les convergences sont maintenant identifiées par leur nom + date.
50+
* [FONCTIONNALITE] Suppression de l'ancienne vue de création de packages
51+
* [FONCTIONNALITE] Ajout de la recherche de machines basé sur le JID du relay
52+
* [CORRECTION DE BUG] Correction d'un backtrace pendant le déploiement
53+
* [CORRECTION DE BUG] Correction de l'affichage des packages pendant le déploiement
54+
* [CORRECTION DE BUG] Ajout d'ACL pour les actions des relays
55+
* [CORRECTION DE BUG] Correction de l'utlisation de caractères accentués dans les
56+
descriptions Glpi
57+
* [CORRECTION DE BUG] Correction de la détection des machines en ligne/Hors ligne dans
58+
la vue Glpi
59+
* [CORRECTION DE BUG] Add back addMachinesToCommand function ( fixing restarting
60+
convergences)
61+
* [CORRECTION DE BUG] Interdiction des caractères ; dans la description des ordinateurs
62+
* [CORRECTION DE BUG] Support pour les anciennes versions de SQLAlchemy
63+
* [CORRECTION DE BUG] Correction de l'enregistrement lorsque le uuidsetup n'est pas
64+
défini
65+
* [CORRECTION DE BUG] Changement de la colonne glpi_description vers "text"
66+
* [CORRECTION DE BUG] Correction de l'affichage des convergences actives/disponibles
67+
* [CORRECTION DE BUG] Correction de la gestion des droits pour les clusters d'ARS dans
68+
la vue admin
69+
* [CORRECTION DE BUG] Correction de l'utilisation de <br> dans les descriptions glpi
70+
* [CORRECTION DE BUG] Correction de l'utilisation de ' dans les descriptions ( glpi )
71+
* [CORRECTION DE BUG] Correction du listage des plugins actifs
72+
* [CORRECTION DE BUG] Correction d'un backtrace lorsqu'un metagenerateur est manquant
73+
* [CORRECTION DE BUG] Modification de la clef du metagenerateur en expert si manquant
74+
* [CORRECTION DE BUG] Correction d'un backtrace lors de l'edition d'un package
75+
* [CORRECTION DE BUG] Utilisation des dates d'inventaire OCS si elles existent
76+
* [CORRECTION DE BUG] Correction de la recherche des entités
77+
* [CORRECTION DE BUG] Ajout des entités aux recherches
78+
* [CORRECTION DE BUG] Correction d'un bug lors du changement de nom d'hote de la machine
79+
* [CORRECTION DE BUG] Ne pas chercher la commande d'installation si le package fait plus
80+
de 500 Mo.
81+
* [CORRECTION DE BUG] Correction d'un backtrace lorsqu'aucune machine n'est associée a
82+
un relay
83+
* [CORRECTION DE BUG] Correction de la pagination dans la fenetre package de la vue admin
84+
* [CORRECTION DE BUG] Amélioration du support de Glpi 0.84
85+
* [CORRECTION DE BUG] Correction de la pagination dans la vue ordinateur
86+
* [CORRECTION DE BUG] Correction de la pagination de la page Admin
87+
* [CORRECTION DE BUG] Correction d'un backtrace lorsqu'un utilisateur n'a aucun droit
88+
sur les partages des relays.
89+
* [CORRECTION DE BUG] Correction d'un tableau manquant dans Glpi 0.84
90+
* [CORRECTION DE BUG] Suppression des anciens parametres dans les filtres.
91+
* [CORRECTION DE BUG] Correction d'un backtrace lors de l'affichage de tout les
92+
ordinateurs sous glpi 0.84
93+
* [CORRECTION DE BUG] Correction des actions de déploiement lorsqu'une machine est hors
94+
ligne.
95+
* [CORRECTION DE BUG] Les utilisateurs ne peuvent voir que les relays utilisés dans pkgs_rules_local
96+
* [CORRECTION DE BUG] Correction du WOL en corrigeant le nom d'une variable.
97+
* [CORRECTION DE BUG] Correction de l'affichage de la taille des packages pour être
98+
compréhensible.
99+
* [CORRECTION DE BUG] Correction de la page package lorsqu'il n'y a pas de packages à
100+
afficher.
101+
* [CORRECTION DE BUG] Verification du mode de partage utilisé. Utilisation de l'ancien
102+
par defaut.
103+
* [CORRECTION DE BUG] Ajout du nom du fichier csv lorsqu'un groupe est créé
104+
* [CORRECTION DE BUG] Ajout d'un parametre manquant dans pkgs.ini et initialisation de
105+
la table pkgs_rules_algo
106+
* [CORRECTION DE BUG] Correction de la pagination dans la vue GLPI
107+
* [CORRECTION DE BUG] Correction de l'enregistrement d'ARs
108+
* [CORRECTION DE BUG] Correction de l'affichage de la page des relays
109+
* [CORRECTION DE BUG] Ajout et Corrections d'ACLs
110+
* [CORRECTION DE BUG] Correction de la migration vers le nouveau style de package
111+
* [CORRECTION DE BUG] Modification du champs hostname dans cluster_resources à une
112+
taille de 255
113+
* [CORRECTION DE BUG] Suppresion du champs des description des CSV
114+
* [CORRECTION DE BUG] Modification du symbole de concaténation ( " ) lors de la
115+
génération des CSV
116+
* [CORRECTION DE BUG] Correction de l'affichage des dates dans la page Audit
117+

Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ PROJECT_NAME = "Pulse"
3939
# control system is used.
4040

4141

42-
PROJECT_NUMBER = "4.6.4"
42+
PROJECT_NUMBER = "4.6.8"
4343

4444

4545
# Using the PROJECT_BRIEF tag one can provide an optional one line description

agent/conf/plugins/services.ini.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ mail = dovecot,postfix,amavis,amavisd
99
network = isc-dhcp-server,dhcpd,bind9,named,named-sdb
1010
shorewall = shorewall
1111
squid = squid
12-
base = mmc-agent,pulse2-inventory-server,pulse2-package-server,pulse-xmpp-agent-relay,pulse2-register-pxe,pulse-xmpp-agent-log
12+
base = mmc-agent,pulse2-inventory-server,pulse2-package-server,pulse-xmpp-agent-relay,pulse2-register-pxe,pulse-xmpp-agent-log,pulse-package-watching,pulse-xmpp-master-substitute-all,pulse-xmpp-master-substitute-inventory,pulse-xmpp-master-substitute-registration,pulse-xmpp-master-substitute-assessor,pulse-xmpp-master-substitute-deployment,pulse-xmpp-master-substitute-subscription,pulse-xmpp-master-substitute-logger,pulse-xmpp-master-substitute-reconfigurator,pulse-xmpp-master-substitute-monitoring

agent/mmc/agent.py

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
import imp
4949
import logging
5050
import logging.config
51+
from logging.handlers import TimedRotatingFileHandler
5152
import xmlrpclib
5253
import os
5354
import sys
@@ -59,14 +60,67 @@
5960
import string
6061
import threading
6162
import re
63+
import zipfile
64+
from stat import ST_CTIME
65+
66+
67+
68+
69+
70+
class TimedCompressedRotatingFileHandler(TimedRotatingFileHandler):
71+
"""
72+
Extended version of TimedRotatingFileHandler that compress logs on rollover.
73+
the rotation file is compress in zip
74+
"""
75+
76+
def __init__(self, filename, when='h', interval=1, backupCount=0,
77+
encoding=None, delay=False, utc=False, compress="zip"):
78+
super(TimedCompressedRotatingFileHandler, self).__init__(filename, when,
79+
interval, backupCount, encoding,
80+
delay, utc)
81+
self.backupCountlocal= backupCount
82+
83+
def get_files_by_date(self):
84+
dir_name, base_name = os.path.split(self.baseFilename)
85+
file_names = os.listdir(dir_name)
86+
result = []
87+
result1 = []
88+
prefix = '{}'.format(base_name)
89+
for file_name in file_names:
90+
if file_name.startswith(prefix) and not file_name.endswith('.zip'):
91+
f=os.path.join(dir_name, file_name )
92+
result.append((os.stat(f).st_ctime, f) )
93+
if file_name.startswith(prefix) and file_name.endswith('.zip'):
94+
f=os.path.join(dir_name, file_name )
95+
result1.append((os.stat(f).st_ctime, f))
96+
result1.sort()
97+
result.sort()
98+
while result1 and len(result1) >= self.backupCountlocal:
99+
el = result1.pop(0)
100+
if os.path.exists(el[1]):
101+
os.remove(el[1])
102+
return result[1][1]
103+
104+
def doRollover(self):
105+
super(TimedCompressedRotatingFileHandler, self).doRollover()
106+
try:
107+
dfn = self.get_files_by_date()
108+
except:
109+
return
110+
dfn_zipped = '{}.zip'.format(dfn)
111+
if os.path.exists(dfn_zipped):
112+
os.remove(dfn_zipped)
113+
with zipfile.ZipFile(dfn_zipped, 'w') as f:
114+
f.write(dfn, dfn_zipped, zipfile.ZIP_DEFLATED)
115+
os.remove(dfn)
62116

63117
logger = logging.getLogger()
64118

65119
sys.path.append("plugins")
66120

67121
Fault = xmlrpclib.Fault
68122
ctx = None
69-
VERSION = "4.6.4"
123+
VERSION = "4.6.9"
70124

71125

72126
class IncludeStartsWithFilter(logging.Filter):
@@ -810,6 +864,7 @@ def run(self):
810864

811865
def initialize(self):
812866
# Initialize logging object
867+
logging.handlers.TimedCompressedRotatingFileHandler = TimedCompressedRotatingFileHandler
813868
logging.config.fileConfig(self.conffile)
814869

815870
# In foreground mode, log to stderr

agent/mmc/plugins/admin/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = "4.6.4"
1+
VERSION = "4.6.9"
22
APIVERSION = "0:0:0"
33
REVISION = ""
44

0 commit comments

Comments
 (0)