PacketFence
Bug Tracking System

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000579PacketFencecorepublic2009-02-10 12:172012-02-29 10:57
Reportermaikel 
Assigned Touser4 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Versiondevel 
Target VersionFixed in Version 
Summary0000579: configurator.pl
DescriptionNet:Mask gives back wrong values

What is its IP address? (default: <NONE>
What is its mask? (default: IP
What is my gateway? (default: NETMASK

so the correct info is parsed, and no errors, just the wrong vars in the wrong place.
TagsNo tags attached.
fixed in git revision
fixed in mtn revision
Attached Files

- Relationships
parent of 0000582closeduser4 configurator has issues with VLAN interfaces 
related to 0000580closeduser4 Starting PacketFence...Use of uninitialized value in split at /usr/local/pf/lib/pf/config.pm line 179 

-  Notes
(0001086)
user4
2009-02-10 12:25

Maikel,
I can't reproduce this issue ... here's what I get with the latest monotone version:

What is my management interface? (default: <NONE>) [eth0|?]: eth0
eth0 - ok? [y|n] y
What is its IP address? (default: 10.0.2.15 [?]):
10.0.2.15 - ok? [y|n] y
What is its mask? (default: 255.255.255.0 [?]):
255.255.255.0 - ok? [y|n] y
What is my gateway? (default: 10.0.2.2 [?]):
10.0.2.2 - ok? [y|n] y


The values saved into conf/pf.conf are also correct ...
(0001088)
maikel (reporter)
2009-02-10 12:27

Odd:

when i update the config you can see, it doesnt read it correctly


[root@phyllis pf]# ./configurator.pl
Checking existing configuration...
Existing configuration found, upgrading
Would you like to modify the existing configuration [y|n] y
Would you like to use a template configuration or custom [t|c] t
Which template would you like:
                        1) Test mode
                        2) Registration
                        3) Detection
                        4) Registration & Detection
                        5) Registration, Detection & Scanning
                        6) Session-based Authentication
                        7) Registration, Detection and VLAN isolation
                        8) PacketFence ZEN with VLAN isolation
             Answer: [1|2|3|4|5|6|7|8]: [1|2|3|4|5|6|7|8] 7
  Setting option mode to template value vlan
  Setting option dhcpdetector to template value enabled
  Setting option testing to template value disabled
  Setting option registration to template value enabled
  Setting option detection to template value enabled
  Setting option passthrough to template value proxy
  Setting option skip_mode to template value disabled
  Setting option auth to template value local
  Setting option registration to template value disabled
Loading Template: Warning PacketFence is going LIVE - WEAPONS HOT
Enabling host trapping! Please make sure to review conf/violations.conf and disable any violations that don't fit your environment

** NOTE: The configuration can be a bit tedious. If you get bored, you can always just edit /usr/local/pf/conf/pf.conf directly **

What is my management interface? (default: <NONE>) [eth0.824|eth0.823|eth0.822|eth0.821|eth0.6|?]: eth0.822
eth0.822 - ok? [y|n] y
What is its IP address? (default: <NONE> [?]):
(0001091)
user4
2009-02-10 12:30

Could you check what your entry in pf.conf is for eth0.822 ?

Maybe the entry in pf.conf is currently incorrect and this leads to this bug and 0000580
(0001092)
user4
2009-02-10 12:31

In order to check that the configurator is working ok, could you maybe even delete your eth0.822 interface from pf.conf ?
(0001093)
maikel (reporter)
2009-02-10 12:32

with an empty pf.conf:

[root@phyllis pf]# ./configurator.pl
Checking existing configuration...
No existing configuration found
Would you like to use a template configuration or custom [t|c] t
Which template would you like:
                        1) Test mode
                        2) Registration
                        3) Detection
                        4) Registration & Detection
                        5) Registration, Detection & Scanning
                        6) Session-based Authentication
                        7) Registration, Detection and VLAN isolation
                        8) PacketFence ZEN with VLAN isolation
             Answer: [1|2|3|4|5|6|7|8]: [1|2|3|4|5|6|7|8] 7
  Setting option mode to template value vlan
  Setting option dhcpdetector to template value enabled
  Setting option testing to template value disabled
  Setting option registration to template value enabled
  Setting option detection to template value enabled
  Setting option passthrough to template value proxy
  Setting option skip_mode to template value disabled
  Setting option auth to template value local
  Setting option registration to template value disabled
Loading Template: Warning PacketFence is going LIVE - WEAPONS HOT
Enabling host trapping! Please make sure to review conf/violations.conf and disable any violations that don't fit your environment

** NOTE: The configuration can be a bit tedious. If you get bored, you can always just edit /usr/local/pf/conf/pf.conf directly **

GENERAL CONFIGURATION
DNS Domain Name (default: utelisys.net [?]):
utelisys.net - ok? [y|n]
utelisys.net - ok? [y|n] y
Host Name (without DNS domain name) (default: phyllis [?]): shortstay
shortstay - ok? [y|n] y
DNS Servers (comma delimited) (default: 217.117.229.226,217.117.226.140 [?]):
217.117.229.226,217.117.226.140 - ok? [y|n] y
DHCP Servers (comma delimited) (default: 127.0.0.1 [?]):
127.0.0.1 - ok? [y|n] y
What is my management interface? (default: <NONE>) [eth0.824|eth0.823|eth0.822|eth0.821|eth0.6|?]: eth0.822
eth0.822 - ok? [y|n] y
What is its IP address? (default: <NONE> [?]):


ifcfg:

eth0.822 Link encap:Ethernet HWaddr 00:05:B7:05:D5:37
          inet addr:217.117.226.210 Bcast:217.117.226.223 Mask:255.255.255.240
          inet6 addr: fe80::205:b7ff:fe05:d537/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:28796 errors:0 dropped:0 overruns:0 frame:0
          TX packets:38415 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:18481227 (17.6 MiB) TX bytes:7931031 (7.5 MiB)

- Issue History
Date Modified Username Field Change
2009-02-10 12:17 maikel New Issue
2009-02-10 12:21 user4 Status new => assigned
2009-02-10 12:21 user4 Assigned To => user4
2009-02-10 12:25 user4 Note Added: 0001086
2009-02-10 12:25 user4 Status assigned => feedback
2009-02-10 12:27 user4 Relationship added related to 0000580
2009-02-10 12:27 maikel Note Added: 0001088
2009-02-10 12:30 user4 Note Added: 0001091
2009-02-10 12:31 user4 Note Added: 0001092
2009-02-10 12:32 maikel Note Added: 0001093
2009-02-10 13:21 user4 Relationship added parent of 0000582
2009-02-10 15:34 user4 Status feedback => closed
2009-02-10 15:34 user4 Resolution open => fixed
2010-04-15 17:53 obilodeau Category 1.8.0 => 1.8.x
2012-02-29 10:57 obilodeau Category 1.8.x => core


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker