Symptom
The following message appears in the logs, even if there are free addressess in the pool (show pool ipv4), and subscribers do not get an IP:
%L2-PPP_MA-4-ERR_DAPS_IF : TenGigE0/0/0/0.100.pppoe100: Unexpected error encountered whilst Callback obtaining address 0.0.0.0: 'ip-daps' detected the 'warning' condition 'Warning: No free addresses'
Conditions
the affected pool is locally defined on ASR9K, and the address is assigned to the subscriber by Radius or dynamic template
Steps to do repo:
1)Issue happen on only LC subscribers with morethan one LC on the box.
RP/0/0/CPU0:server#show platform
Thu Nov 22 11:09:42.300 IST
Node Type PLIM State Config State
-----------------------------------------------------------------------------
0/0/CPU0 RP N/A IOS XR RUN PWR,NSHUT,MON
0/1/CPU0 RP N/A IOS XR RUN PWR,NSHUT,MON
0/2/CPU0 LC GE IOS XR RUN PWR,NSHUT,MON
0/3/CPU0 LC GE IOS XR RUN PWR,NSHUT,MON
2)Number of free address per pool < 100 and same pool only configured under dynamic template for address allocation
Here I have configured 20 address for easy repo with less scale.
RP/0/0/CPU0:server#show running-config pool
Thu Nov 22 11:07:57.326 IST
pool vrf default ipv4 ADDRESS_POOL
address-range 10.0.0.1 10.0.0.20
3)Bring up single sessions on 0/2/CPU0 (any one of the LC, here example: 0/2/CPU0)
4)Bring up single sessions on 0/3/CPU0
5)Process restart daps location 0/3/CPU0 <<<<<<<<<< daps restart on last bringup LC