[Kea-users] Config-write hook is not writing all info

s k sat98 at hotmail.com
Thu Apr 14 00:51:40 UTC 2022


Hi Wlodek
     I am using version 2.1.1 . Could this be an version issue ? And also could you share the steps that you did to verify if i am missing anything ?

    Thanks for your help
Sk
________________________________
From: s k <sat98 at hotmail.com>
Sent: Tuesday, April 12, 2022 9:46 AM
To: Wlodek Wencel <wlodek at isc.org>; Francis Dupont <fdupont at isc.org>
Subject: Re: [Kea-users] Config-write hook is not writing all info

+Francis also

I did one more command , it shows those 2 subnets added dynamically after restart but not those static ones  from config file .
 I would like to see config write

[cid:7e2c52b3-1774-4234-86e1-b879c2df0019]
________________________________
From: s k <sat98 at hotmail.com>
Sent: Tuesday, April 12, 2022 9:35 AM
To: Wlodek Wencel <wlodek at isc.org>
Subject: Re: [Kea-users] Config-write hook is not writing all info

[cid:3caa11f3-07c6-454f-af73-116112981638]
[cid:eb951d6e-73ca-4863-9576-880b23a11e77]


pls find the attached steps using postman . and also attached the Config write file . can you point me what am i missing ?


Thanks
sk















________________________________
From: Kea-users <kea-users-bounces at lists.isc.org> on behalf of s k <sat98 at hotmail.com>
Sent: Tuesday, April 12, 2022 6:16 AM
To: Wlodek Wencel <wlodek at isc.org>; kea-users at lists.isc.org <kea-users at lists.isc.org>
Subject: Re: [Kea-users] Config-write hook is not writing all info

Wencel

    Thanks for the quick reply . I just opened the .json file to check manually. I dont see the subnet under subnet6 section .

________________________________
From: Kea-users <kea-users-bounces at lists.isc.org> on behalf of Wlodek Wencel <wlodek at isc.org>
Sent: Tuesday, April 12, 2022 4:15 AM
To: kea-users at lists.isc.org <kea-users at lists.isc.org>
Subject: Re: [Kea-users] Config-write hook is not writing all info


Hi,


I just checked our system tests and looks like this feature is working. You are writing kea config file to /tmp/config-modified-2022-04-11.json when you restart kea are you pointing it to new config file location? or replacing old config file with a new one? Could you check content of /tmp/config-modified-2022-04-11.json?

Thanks for using Kea,
Wlodek Wencel
QA Engineer,
ISC


On 12/04/2022 06:29, s k wrote:
Hi

  I tried following steps to add new subnet6 using subnet6-add Hook


  1.  Add subnet6-add command to add new subnet6 dynamically using control agent
  2.     Message says "[ { "arguments": { "subnets": [ { "id": 1, "subnet": "fda4:110:0:10::8053:370/64" } ] }, "result": 0, "text": "IPv6 subnet added" } ] "

       2. To confirm added the same subnet again
               Message Says "[ { "result": 1, "text": "subnet with the prefix of 'fda4:110:0:10::8053:370/64' already exists" } ]"
       3. Now Try to write the config from memory to file using config_cmds hook

{
    "service": ["dhcp6"],
    "command": "config-write",
    "arguments": {
        "filename": "/tmp/config-modified-2022-04-11.json"
    }
}
Expectation is the newly added subnet should exists in the file "/tmp/config-modified-2022-04-11.json"  But it does not . am i missing any steps ?

    4. Now restart Kes-dhcp6 service
    5. Repeat step 1
         Message says  "[ { "arguments": { "subnets": [ { "id": 1, "subnet": "fda4:110:0:10::8053:370/64" } ] }, "result": 0, "text": "IPv6 subnet added" } ] "
   Meaning the new subnet only exists only in memory.

How do i correct this ?



Thanks for all your help





  1.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20220414/80b2755e/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 36706 bytes
Desc: image.png
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20220414/80b2755e/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 37255 bytes
Desc: image.png
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20220414/80b2755e/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 35933 bytes
Desc: image.png
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20220414/80b2755e/attachment-0005.png>


More information about the Kea-users mailing list