Opened 8 months ago

Last modified 7 months ago

#5176 new defect

kea is unable to start with CA defined in configuration file.

Reported by: wlodekwencel Owned by:
Priority: low Milestone: Outstanding Tasks
Component: agent Version: git
Keywords: Cc:
CVSS Scoring: Parent Tickets:
Sensitive: no Defect Severity: N/A
Sub-Project: DHCP Feature Depending on Ticket:
Estimated Difficulty: 0 Add Hours to Ticket: 0
Total Hours: 0 Internal?: no

Description

Starting kea with configuration file (as far as I know that is valid configuration file):

{
    "Dhcp6":
    {
        "renew-timer":1000,
        "rebind-timer":2000,
        "preferred-lifetime":3000,
        "valid-lifetime":4000,
        "interfaces-config":
        {
            "interfaces":["eth2"]
        }
        ,
        "subnet6":[
        {
            "subnet":"3000::/64",
            "interface":"eth2",
            "pools":[
            {
                "pool":"3000::1-3000::f"
            }
            ]
        }
        ],
        "lease-database":
        {
            "type":"memfile"
        }
        
    },
    "Control-agent":
    {
        "http-host":"192.168.0.1",
        "http-port":8000,
        "control-sockets":
        {
            "dhcp6-server":
            {
                "socket-type":"UNIX",
                "socket-name":"/home/test/installed/git/var/kea/control_socket"
            }
            
        }
        
    },
    "Logging":
    {
        "loggers":[
        {
            "name":"kea-dhcp6",
            "output_options":[
            {
                "output":"/home/test/installed/git/var/kea/kea.log"
            }
            ],
            "debuglevel":99,
            "severity":"DEBUG"
        }
        ]
    }
}

ends with error:

ERROR [kea-dhcp6.dhcp6/23686] DHCP6_INIT_FAIL failed to initialize Kea server: configuration error using file '/home/test/installed/git/etc/kea/kea.conf': /home/test/installed/git/etc/kea/kea.conf:32.5-19: got unexpected keyword "Control-agent" in toplevel map.

But when I comment whole section about Control-agent, start kea (it starting properly), then uncomment CA section and use keactrl to reload config. Kea again starts fine but without CA, no error during reconfiguration and nothing logged about Control Agent (socket is not created and I'm unable to use CA). Looks like kea omit that part of config file.

Subtickets

Change History (3)

comment:1 Changed 8 months ago by hschempf

  • Milestone changed from Kea-proposed to Kea1.2-final

Per Kea team meeting Mar 20, accept 1.2-final

comment:2 Changed 7 months ago by hschempf

  • Priority changed from high to low

comment:3 Changed 7 months ago by tomek

  • Milestone changed from Kea1.2-final to Outstanding Tasks

As discussed on 2017-04-13 call, moving to outstanding.

Note: See TracTickets for help on using tickets.