View Issue Details

IDProjectCategoryView StatusLast Update
1163RackTablesIPv4/IPv6/SLBpublic2014-02-02 07:35
Reporterossar Assigned Toandriyanov  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
PlatformRacktables 0.20.3OSDebianOS Version6
Product Version0.20.3 
Summary1163: IPv4 space page does not show all nets
DescriptionWhen expanding the network I expect to find all subnets in a tree layout. However I have found an instance where it is not listed.

mysql> select * from IPv4Network where id IN (43790, 43784);
+-------+-----------+------+-----------------------+---------+
| id | ip | mask | name | comment |
+-------+-----------+------+-----------------------+---------+
| 43784 | 168182784 | 24 | Demo DMZ | NULL |
| 43790 | 168183296 | 22 | Storage Network (NFS) | NULL |
+-------+-----------+------+-----------------------+---------+
2 rows in set (0.00 sec)

The network with mask 24 is not listed as a subnet to the network with mask 22.
Additional Information168183296/22 is assigned to vlan 270
168182784/24 is assigned to vlan 268
TagsNo tags attached.

Activities

andriyanov

andriyanov

2014-01-27 17:57

reporter   ~0002141

Last edited: 2014-01-27 17:57

May be you have some filters set.

Is the network displayed by this link (please change the URL to you servers' location):

https://racktables.somehost.net/index.php?page=ipv4space&tab=default&clear-cf=&cfe={%24ip4netid_43790}&eid=43790

ossar

ossar

2014-01-27 22:06

reporter   ~0002143

Nice tip but no filters are set.
andriyanov

andriyanov

2014-01-28 09:48

reporter   ~0002145

The IP address of the /22 network is not aligned on the mask boundary.
Here is the example code:

<?php
$script_mode = TRUE;
require 'inc/init.php';

$range22 = constructIPRange (ip4_int2bin(168183296),22);
$range24 = constructIPRange (ip4_int2bin(168182784),24);
echo $range22['ip'] . '/' . $range22['mask'] . "\n";
echo $range24['ip'] . '/' . $range24['mask'] . "\n";

Here is its output:
10.6.68.0/22
10.6.68.0/24
ossar

ossar

2014-01-28 12:50

reporter   ~0002147

That is it! Thanks!

Why would racktables not complain when you try to insert such a mis-aligned network, even though it is not entirely wrong to write it like that?
andriyanov

andriyanov

2014-01-28 13:38

reporter   ~0002149

> Why would racktables not complain when you try to insert such a mis-aligned network, even though it is not entirely wrong to write it like that?

Because RT automatically aligns IPs in such networks. You have probably created this network by direct SQL INSERT. RT does not expect somebody is corrupting its DB and thus does not check IP alignment.

Issue History

Date Modified Username Field Change
2014-01-27 16:10 ossar New Issue
2014-01-27 16:10 ossar Status new => assigned
2014-01-27 16:10 ossar Assigned To => andriyanov
2014-01-27 17:57 andriyanov Note Added: 0002141
2014-01-27 17:57 andriyanov Note Edited: 0002141
2014-01-27 22:06 ossar Note Added: 0002143
2014-01-28 09:48 andriyanov Note Added: 0002145
2014-01-28 09:49 andriyanov Status assigned => closed
2014-01-28 09:49 andriyanov Resolution open => no change required
2014-01-28 12:50 ossar Note Added: 0002147
2014-01-28 12:50 ossar Status closed => feedback
2014-01-28 12:50 ossar Resolution no change required => reopened
2014-01-28 13:38 andriyanov Note Added: 0002149
2014-02-02 07:35 andriyanov Status feedback => closed
2014-02-02 07:35 andriyanov Resolution reopened => no change required