Comment 1 for bug 1773197

Revision history for this message
Yuvaraja Mariappan (ymariappan) wrote :

nameservers should be in /etc/resolv.conf is 1.1.1.1 2.2.2.2
since control node is not sending in the proper format[when more than dns servers are configured] ,agent discards it and uses ipams dnsservers info.

agent dhcp discard message:

018-07-18 07:41:35.786 DhcpError: VM 192.168.1.3 : Invalid DHCP option 6 data : 1.1.1.12.2.2.2is invalid controller/src/vnsw/agent/services/dhcp_handler.cc 1169

agent ifmaptable info:

type:virtual-network-network-ipam name:attr(default-domain:admin:myipam,default-domain:admin:mynet) value ipam-subnets subnet ip-prefix:192.168.1.0 ip-prefix-len:24 default-gateway:192.168.1.1 dns-server-address:192.168.1.2 subnet-uuid:de31d280-5d3d-4c1a-8bf8-489b7a110cec enable-dhcp:true addr_from_start:true dhcp-option-list dhcp-option dhcp-option-name:6 dhcp-option-value:1.1.1.12.2.2.2 subnet-name:de31d280-5d3d-4c1a-8bf8-489b7a110cec alloc-unit:1 created:1970-01-01T00:00:00 last-modified:1970-01-01T00:00:00 Adjacencies: virtual-network default-domain:admin:mynet network-ipam default-domain:admin:myipam

control node ifmaptable info:

<iq>
 <value>
  <ipam-subnets>
   <subnet>
    <ip-prefix>192.168.1.0</ip-prefix>
    <ip-prefix-len>24</ip-prefix-len>
   </subnet>
   <default-gateway>192.168.1.1</default-gateway>
   <dns-server-address>192.168.1.2</dns-server-address>
   <subnet-uuid>de31d280-5d3d-4c1a-8bf8-489b7a110cec</subnet-uuid>
   <enable-dhcp>true</enable-dhcp>
   <addr_from_start>true</addr_from_start>
   <dhcp-option-list>
    <dhcp-option>
     <dhcp-option-name>6</dhcp-option-name>
     <dhcp-option-value>1.1.1.12.2.2.2</dhcp-option-value>
     <dhcp-option-value-bytes></dhcp-option-value-bytes>
    </dhcp-option>
   </dhcp-option-list>
   <host-routes />
   <subnet-name>de31d280-5d3d-4c1a-8bf8-489b7a110cec</subnet-name>
   <alloc-unit>1</alloc-unit>
   <created>1970-01-01T00:00:00</created>
   <last-modified>1970-01-01T00:00:00</last-modified>
   <subscriber-tag></subscriber-tag>
  </ipam-subnets>
  <host-routes />
 </value>
</iq>

space should be there between dns-servers in dhcp-option-value