View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
602 | RackTables | IPv4/IPv6/SLB | public | 2012-09-12 16:38 | 2012-09-28 19:10 |
Reporter | Assigned To | andriyanov | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 0.20.0 | ||||
Target Version | 0.20.1 | Fixed in Version | 0.20.1 | ||
Summary | 602: IP Network Capacity not displaying | ||||
Description | When browsing IPv4 and IPv6 spaces, the network capacity doesn't display anything, just 5 gray boxes with no indication of how full the network is. This is a fresh upgrade form 19.14 to 20 | ||||
Steps To Reproduce | View IPv4 and IPv6 space | ||||
Additional Information | Can provide screenshots and other configs as requested | ||||
Tags | No tags attached. | ||||
A screenshot would help Alexey troubleshooting, yes. | |
Does it reproduce on the demo installation? http://demo.racktables.org/index.php?page=ipv4space |
|
Yes, the demo shows the capacity. I even reset my user interface and it didn't fix it. Attached is a screenshot. |
|
2012-09-13 15:21 reporter |
|
We're having this issue with an upgrade as well. I think the previous version was 19.14. I tested the database using clean code on my local Ubuntu 12.04 machine and it shows the capacity without issue. The production Debian Squeeze machine however, has the issue reported above. We're think the issue lies in ip4_mask_size($mask) in functions.php and 64-bit vs. 32-bit machines. A bit of sample code to illustrate the problem: <?php echo 0xffffffff; echo "\n"; echo (0xffffffff >> 24); echo "\n"; echo PHP_INT_MAX; echo "\n"; ?> Running this on the affected 32-bit Debian box results in: 4294967295 -1 2147483647 On my 64-bit Ubuntu box the results are: 4294967295 255 9223372036854775807 Something like this might be the ticket: function ip4_mask_size ($mask) { return bcdiv(0xffffffff , bcpow('2', $mask)) + 1; //return (0xffffffff >> $mask) + 1; } All credit goes to my workmate - hopefully this helps out a bit. |
|
Thank you for reporting. The fix is committed to 0.20.1. dm0, thanks for your valuable help! |
|
This fix breaks my IPv4 view. I did a git clone and and I can't pull up the IPv4 view at all, it shows 1 network without any background or page layout. | |
Please examine your http server error log | |
PHP Fatal error: Call to undefined function bcsub() in racktables/inc/interface-lib.php on line 608, referer: https://MYSERVER/racktables/index.php?page=index&tab=default | |
I awas missing the php-bcmath module! My bad, this has been resolved. | |
Needed php-bcmath module | |
This should be listed in the dependencies. | |
added BC Math requirement | |
Date Modified | Username | Field | Change |
---|---|---|---|
2012-09-12 16:38 |
|
New Issue | |
2012-09-12 20:19 | infrastation | Assigned To | => andriyanov |
2012-09-12 20:19 | infrastation | Status | new => assigned |
2012-09-12 20:21 | infrastation | Note Added: 0000782 | |
2012-09-12 20:21 | infrastation | Category | default => IPv4/IPv6/SLB |
2012-09-13 11:47 | andriyanov | Note Added: 0000786 | |
2012-09-13 15:21 |
|
Note Added: 0000787 | |
2012-09-13 15:21 |
|
File Added: Capture.PNG | |
2012-09-14 04:55 | dm0 | Note Added: 0000788 | |
2012-09-15 23:23 | andriyanov | Note Added: 0000790 | |
2012-09-15 23:23 | andriyanov | Status | assigned => closed |
2012-09-15 23:23 | andriyanov | Resolution | open => fixed |
2012-09-15 23:23 | andriyanov | Fixed in Version | => 0.20.1 |
2012-09-15 23:23 | andriyanov | Target Version | => 0.20.1 |
2012-09-17 17:14 |
|
Note Added: 0000799 | |
2012-09-17 17:14 |
|
Status | closed => feedback |
2012-09-17 17:14 |
|
Resolution | fixed => reopened |
2012-09-17 17:47 | andriyanov | Note Added: 0000800 | |
2012-09-17 17:51 |
|
Note Added: 0000801 | |
2012-09-17 17:51 |
|
Status | feedback => assigned |
2012-09-18 17:43 |
|
Note Added: 0000802 | |
2012-09-18 17:43 |
|
Note Added: 0000803 | |
2012-09-18 17:43 |
|
Status | assigned => closed |
2012-09-18 17:43 |
|
Resolution | reopened => fixed |
2012-09-18 18:16 | infrastation | Note Added: 0000804 | |
2012-09-18 18:16 | infrastation | Status | closed => assigned |
2012-09-28 19:10 | andriyanov | Note Added: 0000823 | |
2012-09-28 19:10 | andriyanov | Status | assigned => closed |