Note I had to put in a sleep before the call to "neutron agent-list" in order to wait for the DHCP agent to become available, then when
neutron dhcp-agent-network-add 679d2a45-c48b-4a5d-9e5d-652114b48f0d ctlplane
ran it failed with the error
409-{u'NeutronError': {u'message': u'The network 9257ab5f-a3dd-47d9-abc9-c1970d485eb6 has been already hosted by the DHCP Agent 679d2a45-c48b-4a5d-9e5d-652114b48f0d.', u'type': u'NetworkHostedByDHCPAgent', u'detail': u''}}
Finally when the overcloud booted up it couldn't connect to a PXE server.
I've tried the attached patch
Note I had to put in a sleep before the call to "neutron agent-list" in order to wait for the DHCP agent to become available, then when network- add 679d2a45- c48b-4a5d- 9e5d-652114b48f 0d ctlplane
neutron dhcp-agent-
ran it failed with the error NeutronError' : {u'message': u'The network 9257ab5f- a3dd-47d9- abc9-c1970d485e b6 has been already hosted by the DHCP Agent 679d2a45- c48b-4a5d- 9e5d-652114b48f 0d.', u'type': u'NetworkHosted ByDHCPAgent' , u'detail': u''}}
409-{u'
Finally when the overcloud booted up it couldn't connect to a PXE server.