View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
1709 | RackTables | 802.1Q VLANs | public | 2016-11-24 13:30 | 2016-11-29 07:11 |
Reporter | Malte Schmidt | Assigned To | infrastation | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | no change required | ||
OS | Debian | OS Version | 8 | ||
Product Version | 0.20.11 | ||||
Summary | 1709: VLAN "write memory" for FTOS-devices does not work | ||||
Description | In case of changing the VLAN configuration it is applied (as running-config) but the "write memory"-command is not being sent which leads to problems if not noticed before rebooting (or power loss) of the switches. | ||||
Steps To Reproduce | 1. have a FTOS-based device (Force10 S55 in my case) 2. change VLAN-configuration 3. sync it with the device 4. compare running-config and startup-config on the device | ||||
Additional Information | When running "write memory" manually it works. When changing the function ftos8TranslatePushQueue($dummy_object_id, $queue, $vlan_names) to return "write memory\n" in every case, it works (return $ret . "write memory\nexit\n";) | ||||
Tags | No tags attached. | ||||
The function ftos8TranslatePushQueue($dummy_object_id, $queue, $vlan_names) is to be found in /wwwroot/inc/deviceconfig.php currently. | |
Is 8021Q_WRI_AFTER_CONFT_LISTSRC set to something that matches the switch where the problem reproduces? | |
That matters because if you look into the function exportSwitch8021QConfig() in functions.php, you will see the "save configuration" pseudo-command gets on the end of the deploy job depending on the condition, then a breed-specific translator maps it to the particular language understood by the switch. In case of FTOS/S55 that indeed is ftos8TranslatePushQueue() and you can see it knows how to save configuration, it just needs to be told to issue the command. In other words, properly configured everything should just work. | |
I was rgrep-ing for the mentioned variable: rgrep "8021Q_WRI_AFTER_CONFT_LISTSRC" . | grep -v ".sql" ./wwwroot/inc/ophandlers.php: '8021Q_WRI_AFTER_CONFT_LISTSRC' => 'false', ./wwwroot/inc/install.php:('8021Q_WRI_AFTER_CONFT_LISTSRC','false','string','no','no','no','802.1Q: save device configuration after deploy (RackCode)'), ./wwwroot/inc/functions.php: if (considerConfiguredConstraint (spotEntity ('object', $vswitch['object_id']), '8021Q_WRI_AFTER_CONFT_LISTSRC')) ./wwwroot/inc/upgrade.php: $query[] = "UPDATE Config SET varname='8021Q_WRI_AFTER_CONFT_LISTSRC', varvalue='false', description='802.1Q: save device configuration after deploy (RackCode)' WHERE varname='8021Q_WRI_AFTER_CONFT'"; Since it was set to "false" in "ophandlers" I changed it to "true". That did not change the behaviour. Then I checked the database: mysql> select * from Config where varname LIKE '%8021Q_WRI_AFTER_CONFT_LISTSRC%' \G *************************** 1. row *************************** varname: 8021Q_WRI_AFTER_CONFT_LISTSRC varvalue: false vartype: string emptyok: no is_hidden: no is_userdefined: no description: 802.1Q: save device configuration after deploy (RackCode) 1 row in set (0.00 sec) Then I updated that setting: mysql> update Config set varvalue = 'true' where varname = '8021Q_WRI_AFTER_CONFT_LISTSRC'; Query OK, 1 row affected (0.00 sec) Rows matched: 1 Changed: 1 Warnings: 0 mysql> select * from Config where varname LIKE '%8021Q_WRI_AFTER_CONFT_LISTSRC%' \G *************************** 1. row *************************** varname: 8021Q_WRI_AFTER_CONFT_LISTSRC varvalue: true vartype: string emptyok: no is_hidden: no is_userdefined: no description: 802.1Q: save device configuration after deploy (RackCode) 1 row in set (0.00 sec) And et voilĂ - works. |
|
The case looks resolved then. FYI, this option can be changed more conveniently in Configuration -> User interface. | |
Date Modified | Username | Field | Change |
---|---|---|---|
2016-11-24 13:30 | Malte Schmidt | New Issue | |
2016-11-24 13:30 | Malte Schmidt | Status | new => assigned |
2016-11-24 13:30 | Malte Schmidt | Assigned To | => infrastation |
2016-11-24 13:33 | Malte Schmidt | Note Added: 0003507 | |
2016-11-24 13:37 | infrastation | Note Added: 0003509 | |
2016-11-24 13:48 | infrastation | Note Added: 0003511 | |
2016-11-28 10:45 | infrastation | Status | assigned => feedback |
2016-11-28 12:30 | Malte Schmidt | Note Added: 0003517 | |
2016-11-28 12:30 | Malte Schmidt | Status | feedback => assigned |
2016-11-28 12:43 | infrastation | Note Added: 0003519 | |
2016-11-29 07:11 | Malte Schmidt | Status | assigned => closed |
2016-11-29 07:11 | Malte Schmidt | Resolution | open => no change required |