Comment 7 for bug 1850642

Revision history for this message
Scott Moser (smoser) wrote : Re: Cloud init unable to find the metadata service but can CURL it

Un-duped again.

Ryan was on the right path... this is very close to bug 1821102.
But the lease there has a "rfc3442-classless-static-routes" entry
while Harry's has a 'classless-static-routes' entry.
And they're unfortunately different formats. Fun.

Examples collected in bugs:
  rfc3442-classless-static-routes 32,169,254,169,254,130,56,248,255,0,130,56,240,1;
  option classless-static-routes 32.169.254.169.254 136.156.90.10,0 136.156.91.254;

I guess possibly the centos 7 dhclient is just formatting the response
differently.

The lease that Harry posted looks like below:

lease {
  interface "eth0";
  fixed-address 136.156.90.65;
  option subnet-mask 255.255.254.0;
  option routers 136.156.91.254;
  option dhcp-lease-time 86400;
  option dhcp-message-type 5;
  option domain-name-servers 136.156.81.192;
  option dhcp-server-identifier 136.156.90.10;
  option interface-mtu 1500;
  option dhcp-renewal-time 43200;
  option classless-static-routes 32.169.254.169.254 136.156.90.10,0 136.156.91.254;
  option broadcast-address 136.156.91.255;
  option dhcp-rebinding-time 75600;
  option host-name "host-136-156-90-65";
  option domain-name "openstacklocal";
  renew 4 2019/10/31 02:14:16;
  rebind 4 2019/10/31 12:15:38;
  expire 4 2019/10/31 15:15:38;
}