You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2022-07-31 00:01:46

ligenix
Member
Registered: 2021-04-13
Posts: 58

GLPI 10.0.x & RPM packages

Hi,

I made a new GLPI 10.0.x repository: `https://copr.fedorainfracloud.org/coprs/ligenix/enterprise-glpi10/` for Fedora 35, 36, CentOS Stream 8, 9 and EPEL 7 to 9 for aarch64, ppc64le, s390x, x86_64.

Activating the repository updates a previous architecture, assuming the necessary PHP RPM package dependencies are installed.

As this is a security-focused non-profit work, the new commercial marketplace has been moved to a separate glpi-marketplace package with a weak dependency.
This package contains a specific, systemd-controlled mount bind directory /var/lib/glib/marketplace for downloading plugins.

So everyone should be happy to choose to install or uninstall it, depending on community or business needs.

All previous plugins packages provided for GLPI 9.5.8 have packaged for GLPI 10.0.x when available:
appliances, Behaviors, PDF, FusionInventory, Datainjection, Genericobject, ocsinventoryng, Protocols Manager

The new GLPI Agent and Inventory plugin packages for GLPI 10.0.x are also provided for testing.

Offline

#2 2022-08-05 18:06:18

gbougard
Moderator
From: Montpellier, France
Registered: 2021-07-21
Posts: 537
Website

Re: GLPI 10.0.x & RPM packages

I see you also embedded libssh2 & perl-Net-SSH2 !
Thank you for this work.


GLPI-Agent developer from Teclib' and GLPI-Network team
Previously FusionInventory-Agent maintainer

Offline

#3 2022-08-05 18:25:19

gbougard
Moderator
From: Montpellier, France
Registered: 2021-07-21
Posts: 537
Website

Re: GLPI 10.0.x & RPM packages

I also just added an "Unofficial repositories" section in glpi-agent documentation to reference your COPR repository.


GLPI-Agent developer from Teclib' and GLPI-Network team
Previously FusionInventory-Agent maintainer

Offline

#4 2022-08-07 16:29:42

homebrewtainy
Member
Registered: 2020-04-04
Posts: 151

Re: GLPI 10.0.x & RPM packages

Thanks gbougard ..

cool


Creuser, creuser... creuser.
GLPI 10.0.16 [ Linux el 9.4 | Apache/2.4.xx | mysql 15.1 MariaDB 10.5.xx | PHP 8.3.x ] - Apache HTTPS r-proxy [ Linux el 9.4 | Apache/2.4.xx ]
GLPI Inventory 1.3.5 | Data Injection 2.13.5 | Treeview (Arborescence) 1.10.2 | Behaviors (Comportements) 2.7.3
-- Any exchange not written in French comes from an automatic translation. --

Offline

#5 2022-08-19 02:30:19

ligenix
Member
Registered: 2021-04-13
Posts: 58

Re: GLPI 10.0.x & RPM packages

Hi gbougard,

I actually added libssh2 & perl-Net-SSH2 where they were missing like in RHEL & Stream 8. At the moment I can't mysteriously build them for Stream 9, but these packages are provided in EPEL 9.

Thanks again !

Offline

#6 2022-09-14 10:25:04

ligenix
Member
Registered: 2021-04-13
Posts: 58

Re: GLPI 10.0.x & RPM packages

Hi gbougard,

As you were probably the main FusionInventory Agent developer in the past years, and considering there have been no updates since nearly two years now, I added some Obsoletes directives in GLPI Agent spec file to replace Fusion Inventory Agent during packages installation.

I'll probably do the same with GLPI Inventory plugin, if my tests go well this weekend.

Last edited by ligenix (2022-09-14 10:27:54)

Offline

#7 2022-09-14 18:43:40

gbougard
Moderator
From: Montpellier, France
Registered: 2021-07-21
Posts: 537
Website

Re: GLPI 10.0.x & RPM packages

Hi ligenix,

automatically replacing fi-agent by glpi-agent is not an official position. And honestly, the 2 agents can run together on the same computer. People may even want to be able to test the 2 agents at the same time. The only caveats is they share the same httpd port by default, but this is not a big issue.

Of course most people migrating from fi-agent to glpi-agent should want to uninstall fi-agent. But you may need to migrate configuration in that case, at least the ones under /etc/fusioninventory-agent/conf.d to /etc/glpi-agent/conf.d.

Anyway, thank you to advertise us about that feature for your packages.


GLPI-Agent developer from Teclib' and GLPI-Network team
Previously FusionInventory-Agent maintainer

Offline

#8 2022-09-14 23:41:02

ligenix
Member
Registered: 2021-04-13
Posts: 58

Re: GLPI 10.0.x & RPM packages

Hi gbougard,

I surely went too fast, I just removed today's builds to provide a smoother process, including migrating /etc/{fusioninventory,glpi}-agent/conf.d

It certainly will be an additional glpi-agent-fusioninventory-migration package, which firt will copy conf.d files and Obsoletes all fusioninventory-agent-* packages after

Offline

#9 2022-09-15 08:10:25

ligenix
Member
Registered: 2021-04-13
Posts: 58

Re: GLPI 10.0.x & RPM packages

So I added a glpi-agent-fusioninventory-migration sub-package which copies the /etc/fusioninventory/conf.d/ files to the /etc/glpi-agent/conf.d repository before removing all the fusioninventory-packages agent-*.

Since the /etc/fusioninventory/conf.d/ files are not present in the rpm tree of the fusioninventory-agent package, these files and the /etc/fusioninventory/conf.d/ repository are still present after removing the packages.

A totally clean approach should be to move these files instead of copying them.

The %pre directive used should be merge in the glpi-agent package if we want a more curative treatment by deprecating all fusioninventory-agent-* packages regardless of user consent.

Last edited by ligenix (2022-09-15 08:13:32)

Offline

#10 2022-10-23 18:15:40

teguh.umar
Member
From: Indonesia
Registered: 2011-05-20
Posts: 161

Re: GLPI 10.0.x & RPM packages

Can I direct upgrade from 9.4.5 to 10?


GLPI 10.0.10
Installation mode: zip on OREL9

Offline

#11 2022-10-24 23:52:59

ligenix
Member
Registered: 2021-04-13
Posts: 58

Re: GLPI 10.0.x & RPM packages

The 9.5.x and 10.0.x rpm packages share the same dependencies and can both update a previous 9.4.5.rpm installation.

After upgrading rpm, You have to upgrade your database with:
[...]# glpi-console glpi:database:update
[...]# glpi-console glpi:migration:migrate_all

You can previously check all options with:
[...]# glpi-console

Obviously, you have to back up your installation first, in case something goes wrong in the process.

Offline

#12 2022-10-26 07:45:29

teguh.umar
Member
From: Indonesia
Registered: 2011-05-20
Posts: 161

Re: GLPI 10.0.x & RPM packages

ligenix wrote:

The 9.5.x and 10.0.x rpm packages share the same dependencies and can both update a previous 9.4.5.rpm installation.

After upgrading rpm, You have to upgrade your database with:
[...]# glpi-console glpi:database:update
[...]# glpi-console glpi:migration:migrate_all

You can previously check all options with:
[...]# glpi-console

Obviously, you have to back up your installation first, in case something goes wrong in the process.


the very first after backup is disable all plugins,, CMIIW


GLPI 10.0.10
Installation mode: zip on OREL9

Offline

#13 2022-10-26 12:00:31

ligenix
Member
Registered: 2021-04-13
Posts: 58

Re: GLPI 10.0.x & RPM packages

Anyway the plugins will be disabled after GLPI update, I provide the ones that were already in RPM format which will also be updated automatically, for the others you can choose to update them manually or use the new marketplace feature.

You can put your GLPI instance in maintenance mode :

[...]#glpi-console maintenance:enable|disable

Offline

#14 2022-10-28 11:47:51

teguh.umar
Member
From: Indonesia
Registered: 2011-05-20
Posts: 161

Re: GLPI 10.0.x & RPM packages

ligenix wrote:

Anyway the plugins will be disabled after GLPI update, I provide the ones that were already in RPM format which will also be updated automatically, for the others you can choose to update them manually or use the new marketplace feature.

You can put your GLPI instance in maintenance mode :

[...]#glpi-console maintenance:enable|disable

is this before upgrade? because after I running upgrade, I got HTTP ERROR 500 at plugins page


GLPI 10.0.10
Installation mode: zip on OREL9

Offline

#15 2022-10-28 14:09:21

ligenix
Member
Registered: 2021-04-13
Posts: 58

Re: GLPI 10.0.x & RPM packages

Error 500 could be many things, what are you getting in the apache and php logs ?

Have you already passed the commands bellow ?

[...]# glpi-console glpi:system:check_requirements
[...]# glpi-console glpi:database:check_schema_integrity
[...]# glpi-console glpi-console glpi:database:update

Which is your plugin RPM and non-RPM (with version) list ?

Offline

#16 2022-10-31 03:43:00

teguh.umar
Member
From: Indonesia
Registered: 2011-05-20
Posts: 161

Re: GLPI 10.0.x & RPM packages

ligenix wrote:

Error 500 could be many things, what are you getting in the apache and php logs ?

Have you already passed the commands bellow ?

[...]# glpi-console glpi:system:check_requirements
[...]# glpi-console glpi:database:check_schema_integrity
[...]# glpi-console glpi-console glpi:database:update

Which is your plugin RPM and non-RPM (with version) list ?

I have snapshot, I'm rolling back and trying over.

I have already passed the command you mention.
all my plugins from previous GLPI is from tarball

activity             Name: Activities                     Version: 2.5.0      State: Not activated
    actualtime           Name: ActualTime                     Version: 1.2.0      State: Not activated
    fields               Name: Additionnal fields             Version: 1.10.3     State: Enabled
    news                 Name: Alerts                         Version: 1.6.0      State: Enabled
    appliances           Name: Appliances                     Version: 2.5.1      State: Enabled
    impacts              Name: Asset impacts                  Version: 1.3.5      State: Enabled
    behaviors            Name: Behaviours                     Version: 2.2.2      State: Enabled
    dashboard            Name: Dashboard                      Version: 0.9.8      State: Enabled
    datainjection        Name: Data injection                 Version: 2.7.1      State: Enabled
    archimap             Name: Diagrams                       Version: 2.1.3      State: Enabled
    escalade             Name: Escalation                     Version: 2.4.4      State: Not activated
    formcreator          Name: Form Creator                   Version: 2.9.1      State: Not activated
    fusioninventory      Name: FusionInventory                Version: 9.4+2.4    State: Enabled
    gappessentials       Name: Gapp Essentials                Version: 1.1.0      State: Enabled
    addressing           Name: IP Adressing                   Version: 2.8.0      State: Enabled
    mreporting           Name: More Reporting                 Version: 1.6.1      State: Enabled
    moreticket           Name: More ticket                    Version: 1.5.1      State: Enabled
    mydashboard          Name: My Dashboard                   Version: 1.7.7      State: Not activated
    nebackup             Name: nebackup                       Version: 2.2.3      State: Not activated
    archires             Name: Network Architectures          Version: 2.7.0      State: Not activated
    notifications        Name: Notifications                  Version: 9.4+1.0    State: Enabled
    genericobject        Name: Objects management             Version: 2.8.0      State: Enabled
    patchpanel           Name: PatchPanel                     Version: 0.9.4.1    State: Enabled
    reports              Name: Reports                        Version: 1.13.1     State: Enabled
    reservation          Name: Reservation                    Version: 2.3.3      State: Not activated
    shellcommands        Name: Shell Commands                 Version: 2.3.0      State: Not activated
    geststock            Name: Stock gestion                  Version: 1.3.0      State: Not activated
    tasklists            Name: Tasks list                     Version: 1.5.1      State: Enabled
    telegrambot          Name: TelegramBot                    Version: 2.0.0      State: Not activated
    ticketmail           Name: Ticket Mail                    Version: 3.3.0      State: Enabled
    timelineticket       Name: Timeline of tickets            Version: 9.4+1.0    State: Not activated
    timesheet            Name: Timesheet for GLPI             Version: 1.0.0      State: Not activated
    vip                  Name: VIP                            Version: 1.3.0      State: Not activated
    webapplications      Name: Web applications               Version: 2.6.0      State: Not activated
    webservices          Name: Web Services                   Version: 2.0.0      State: Enabled
    yagp                 Name: yagp                           Version: 1.0.1      State: Enabled

Last edited by teguh.umar (2022-10-31 03:47:10)


GLPI 10.0.10
Installation mode: zip on OREL9

Offline

#17 2022-10-31 04:27:00

teguh.umar
Member
From: Indonesia
Registered: 2011-05-20
Posts: 161

Re: GLPI 10.0.x & RPM packages

ligenix wrote:

Hi,

I made a new GLPI 10.0.x repository: `https://copr.fedorainfracloud.org/coprs/ligenix/enterprise-glpi10/` for Fedora 35, 36, CentOS Stream 8, 9 and EPEL 7 to 9 for aarch64, ppc64le, s390x, x86_64.

Activating the repository updates a previous architecture, assuming the necessary PHP RPM package dependencies are installed.

As this is a security-focused non-profit work, the new commercial marketplace has been moved to a separate glpi-marketplace package with a weak dependency.
This package contains a specific, systemd-controlled mount bind directory /var/lib/glib/marketplace for downloading plugins.

So everyone should be happy to choose to install or uninstall it, depending on community or business needs.

All previous plugins packages provided for GLPI 9.5.8 have packaged for GLPI 10.0.x when available:
appliances, Behaviors, PDF, FusionInventory, Datainjection, Genericobject, ocsinventoryng, Protocols Manager

The new GLPI Agent and Inventory plugin packages for GLPI 10.0.x are also provided for testing.

Today I got this notice

https://download.copr.fedorainfracloud. … repomd.xml: [Errno 14] curl#60 - "Peer's Certificate has expired."


GLPI 10.0.10
Installation mode: zip on OREL9

Offline

#18 2022-10-31 21:49:26

ligenix
Member
Registered: 2021-04-13
Posts: 58

Re: GLPI 10.0.x & RPM packages

teguh.umar wrote:

Today I got this notice

`https://download.copr.fedorainfracloud.org/results/ligenix/enterprise-glpi/epel-7-x86_64/repodata/repomd.xml`: [Errno 14] curl#60 - "Peer's Certificate has expired."

Yes it was a schedule Outage by Fedora COPR Team :

`https://lists.fedorahosted.org/archives/list/copr-devel@lists.fedorahosted.org/thread/TRNW5JVCFIQJDUCND4KZWZVM7XVCYLVL/`

Offline

#19 2022-10-31 22:49:31

ligenix
Member
Registered: 2021-04-13
Posts: 58

Re: GLPI 10.0.x & RPM packages

teguh.umar wrote:

I have snapshot, I'm rolling back and trying over.

I have already passed the command you mention.
all my plugins from previous GLPI is from tarball
...

It is more a plugin issue than a rpm one. As your plugins were downloaded manually, you should check for each of them if a new version is available for GLPI 9.5.x or 10.0.x, and also read the doc to determine if a migration process is purposely required.

For example archire and webservices were not maintained after GLPI 9.4.x.

So, after identifying all the plugins that you will not be able to update with GLPI 9.5.x or 10.0.x, you must mitigate between getting an updated version of GLPI version and removing some unmaintained services to get your instance available again.

Offline

#20 2022-11-10 11:00:09

teguh.umar
Member
From: Indonesia
Registered: 2011-05-20
Posts: 161

Re: GLPI 10.0.x & RPM packages

ligenix wrote:
teguh.umar wrote:

I have snapshot, I'm rolling back and trying over.

I have already passed the command you mention.
all my plugins from previous GLPI is from tarball
...

It is more a plugin issue than a rpm one. As your plugins were downloaded manually, you should check for each of them if a new version is available for GLPI 9.5.x or 10.0.x, and also read the doc to determine if a migration process is purposely required.

For example archire and webservices were not maintained after GLPI 9.4.x.

So, after identifying all the plugins that you will not be able to update with GLPI 9.5.x or 10.0.x, you must mitigate between getting an updated version of GLPI version and removing some unmaintained services to get your instance available again.

Yes it was plugins issue, can anyone point me how to clean installed plugins, I have tried remove several plugins, 2 of them can only disabled.


GLPI 10.0.10
Installation mode: zip on OREL9

Offline

Board footer

Powered by FluxBB