Project

General

Profile

Actions

Bug #1088

closed

CARP sync broken

Added by Alexander Kalashnikov over 13 years ago. Updated over 13 years ago.

Status:
Resolved
Priority:
High
Assignee:
Ermal Luçi
Category:
CARP
Target version:
Start date:
12/09/2010
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.0
Affected Architecture:
All

Description

After http://redmine.pfsense.org/projects/pfsense/repository/revisions/7380bcdbe4be18bcb007f283b71fd5f83b51fced revision carp syncronization has been broken.

It seems like Ermal Luçi misunderstood the real purpose of the pfsense.check_firmware_version XMLRPC procedure.
According to source code pfsense.check_firmware_version calls check_firmware_version function which is used to check for an updated firmware version from pfsense.org, and it does not return a current version of running pfsense.

Dear Ermal Luçi,
May be you should create and register your own XMLRPC procedure (for example pfsense.get_running_firmware_version (I'm not sure why it's prefixed with "pfsense." in pfsense.check_firmware_version)) which will use /etc/version etc. files for this purpose?
Please, look at a beginning of check_firmware_version in /etc/inc/pfsense-utils.inc:

$rawparams = array("firmware" => array("version" => trim(file_get_contents('/etc/version'))),
"kernel" => array("version" => trim(file_get_contents('/etc/version_kernel'))),
"base" => array("version" => trim(file_get_contents('/etc/version_base'))),
"platform" => trim(file_get_contents('/etc/platform')),
"config_version" => $config['version']
);

Thank you.

Actions

Also available in: Atom PDF