Fair enough. For completeness’ sake I did find a bug in lzap’s regexp so it does indeed suffer the problem you point out. \" should have been \\". The rubular link I posted has \\" and does not have that problem.
Is there a work-around for this in 1.17.x? We’re not connected to the Internet, and my mirror isn’t updated w/ 1.18.0.
This particular foreman instance was installed at 1.17.0, and is currently on 1.17.1. We’ve done dhcp provisioning on this system before, and the leases for those systems are still configured in dhcp. I’m not sure whether the bug was introduced in 1.17.1 or if something else changed. Any advice would be appreciated, thanks!
Hey Sean! I created backport request for you, can you go ahead and apply the patch on your instance to confirm it solves the issue? Since Mark reports it does not work for him, I just want to make sure this solves the issue for you.
In general, our support policy is that only critical bug fixes are ported back to the version before latest, and considering that 1.19 is expected in under 2 weeks and 1.17.3 was released this week, I highly doubt we’ll do a 1.17.4 version before the 1.17 line is completely unsupported. Specifically in this case, @Sean, I think the best approach would be to try to manually patch your proxy with the code @lzap provided - since if i understand correctly, in any case your mirror won’t get a new version even if it is released with the fix.
Regarding the question of how to get fixes into stable releases - I think the best way is to open cherry-picks to the stable branches like you did and asking the person in charge of the specific release to consider it.
If upgrading the entire Foreman installation to 1.18 is not an option, I think that just upgrading the proxy to 1.18 and keeping Foreman at 1.17 is a good alternative. I’m not aware of any incompatibilities and generally the API between them is very stable.
I’m not totally sure I understand why, but rebooting seemed to have resolved the issue. I didn’t reboot for the purpose of fixing the problem, just installing kernel updates. but it as far as I can tell it’s not throwing the error anymore.
That said, our internal mirrors will be updated this weekend, so I will update to 1.18 next week. On a side note, I incorrectly posted that I was running 1.17.1. The RPMs installed were on 1.17.3, but the login page showed it’s version as 1.17.1.