I now converted the controller node to a switch and ping works now. I am still unable to comprehend why the controller was not forwarding the ICMP packets between its interfaces to reach the host2 when it was not a switch. It still has IPv4 forwarding enabled.