[SOLVED] wapt agent and repo_rules

Share your tips or issues concerning the WAPT Console or WAPT Agent here
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
User avatar
guigeek
Messages: 147
Registration: Nov 21, 2017 - 9:21 p.m.

March 2, 2023 - 4:58 PM

Hello,
I'm setting up secondary repositories on all sites.
Everything works with the secondary repositories themselves.
However, in the agent configuration, `use_repo_rules` is always set to `false`.

I've regenerated the agent several times, checking the "Use repository access rules" option, but it doesn't change anything.

Have I missed something?

Thanks!

PS: I'm on version 2.3 on a Debian Buster server.
jdziadek
Messages: 47
Registration: January 23, 2023 - 4:10 PM

March 3, 2023 - 09:11

Hello, if I'm not mistaken, the agent configuration will only apply to future installations. If you want to modify existing installations, you need to edit the wapt-conf-policy package.
Debian 11
WAPT Version: 2.4.0.14143
User avatar
guigeek
Messages: 147
Registration: Nov 21, 2017 - 9:21 p.m.

March 3, 2023 - 09:16

Yes, but I pushed the waptupgrade package to all machines and it didn't change the use_repo_rules variable :(
jdziadek
Messages: 47
Registration: January 23, 2023 - 4:10 PM

March 3, 2023 - 09:18

guigeek wrote: March 3, 2023 - 9:16 AM Yes, but I pushed the waptupgrade package to all machines and it didn't change the use_repo_rules variable. :(
It's not the waptupgrade, it's the "tis-wapt-conf-policy" package
Debian 11
WAPT Version: 2.4.0.14143
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

March 3, 2023 - 11:46

Hello,

could you please specify whether you are using the enterprise version of wapt (licensed version), or the discovery version?
User avatar
guigeek
Messages: 147
Registration: Nov 21, 2017 - 9:21 p.m.

March 3, 2023 - 2:44 PM

In the enterprise version, but indeed, by retrieving the wapt-conf-policy package and adapting it for my needs, I was able to set the use_repo_rules variable to False everywhere.

Now I don't understand why my agents are finding 0 available packages on the remote repositories even though the rules are configured and synchronization is complete. ;)
jdziadek
Messages: 47
Registration: January 23, 2023 - 4:10 PM

March 6, 2023 - 12:48

guigeek wrote: March 3, 2023 - 2:44 PM in the enterprise version, but indeed, by retrieving the wapt-conf-policy package and adapting it for my needs, I was able to set the use_repo_rules variable to False everywhere.

Now I don't understand why my agents are finding 0 available packages on the remote repositories even though the rules are configured and the synchronization is also in place. ;)
I don't know if this will help, but I had a problem with my rules.
For example, if I used the IP address 192.168.0.1/13 to retrieve all IP addresses in the 192.168.XX range, it didn't work, but using 192.168.0.0/13 worked immediately.
Debian 11
WAPT Version: 2.4.0.14143
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

March 6, 2023 - 12:52

jdziadek wrote: March 6, 2023 - 12:48
guigeek wrote: March 3, 2023 - 2:44 PM in the enterprise version, but indeed, by retrieving the wapt-conf-policy package and adapting it for my needs, I was able to set the use_repo_rules variable to False everywhere.

Now I don't understand why my agents are finding 0 available packages on the remote repositories even though the rules are configured and the synchronization is also in place. ;)
I don't know if this will help, but I had a problem with my rules.
For example, if I used the IP address 192.168.0.1/13 to retrieve all IP addresses in the 192.168.XX range, it didn't work, but using 192.168.0.0/13 worked immediately.
That's normal then: https://mxtoolbox.com/subnetcalculator.aspx

for 192.168.0.1/13 192.168.0.1 is not valid
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

March 6, 2023 - 12:56

guigeek wrote: March 3, 2023 - 2:44 PM in the enterprise version, but indeed, by retrieving the wapt-conf-policy package and adapting it for my needs, I was able to set the use_repo_rules variable to False everywhere.

Now I don't understand why my agents are finding 0 available packages on the remote repositories even though the rules are configured and the synchronization is also in place. ;)
In the agent's repository tab, is the correct repository appearing?
User avatar
guigeek
Messages: 147
Registration: Nov 21, 2017 - 9:21 p.m.

March 6, 2023 - 8:27 PM

Yes, it's definitely the right repo!
And in the tasks, we can clearly see that it's searching the correct repo and finding a significant number of packages to examine... but it doesn't see any packages to update, even though there are some!
Locked