Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

debian 9 cannot access metatadata server

Hi,

We are using a debian 9 cloud image from the official debian images (https://cdimage.debian.org/cdimage/openstack/) on a Mirantis Openstack (Mitaka).

In the cloud init log, we got an error that the server cannot access metadata server: 2017-10-27 12:09:55,580 - url_helper.py[WARNING]: Calling 'http://192.168.111.6/latest/meta-data/instance-id' failed [0/120s]: request error [HTTPConnectionPool(host='192.168.111.6', port=80): Max retries exceeded with url: /latest/meta-data/instance-id (Caused by NewConnectionError('<requests.packages.urllib3.connection.httpconnection object="" at="" 0x7f9ed17f60f0="">: Failed to establish a new connection: [Errno 111] Connection refused',))] 2017-10-27 12:09:56,587 - url_helper.py[WARNING]: Calling 'http://192.168.111.6/latest/meta-data/instance-id' failed [1/120s]: request error [HTTPConnectionPool(host='192.168.111.6', port=80): Max retries exceeded with url: /latest/meta-data/instance-id (Caused by NewConnectionError('<requests.packages.urllib3.connection.httpconnection object="" at="" 0x7f9ed17f69b0="">: Failed to establish a new connection: [Errno 111] Connection refused',))]

The VM is not using the usual 169.254.169.254 address but the IP from the DHCP server. The VM is correctly getting an IP address and SSH keys.

With other images (Debian 8, Ubuntu,..), we don't have this kind of error.

Does anyone has got this error with debian 9 ?

debian 9 cannot access metatadata server

Hi,

We are using a debian 9 cloud image from the official debian images (https://cdimage.debian.org/cdimage/openstack/) on a Mirantis Openstack (Mitaka).

In the cloud init log, we got an error that the server cannot access metadata server:
2017-10-27 12:09:55,580 - url_helper.py[WARNING]: Calling 'http://192.168.111.6/latest/meta-data/instance-id' failed [0/120s]: request error [HTTPConnectionPool(host='192.168.111.6', port=80): Max retries exceeded with url: /latest/meta-data/instance-id (Caused by NewConnectionError('<requests.packages.urllib3.connection.httpconnection object="" at="" 0x7f9ed17f60f0="">: NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f9ed17f60f0>: Failed to establish a new connection: [Errno 111] Connection refused',))]
2017-10-27 12:09:56,587 - url_helper.py[WARNING]: Calling 'http://192.168.111.6/latest/meta-data/instance-id' failed [1/120s]: request error [HTTPConnectionPool(host='192.168.111.6', port=80): Max retries exceeded with url: /latest/meta-data/instance-id (Caused by NewConnectionError('<requests.packages.urllib3.connection.httpconnection object="" at="" 0x7f9ed17f69b0="">: NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f9ed17f69b0>: Failed to establish a new connection: [Errno 111] Connection refused',))]

refused',))]

The VM is not using the usual 169.254.169.254 address but the IP from the DHCP server. The VM is correctly getting an IP address and SSH keys.

With other images (Debian 8, Ubuntu,..), we don't have this kind of error.

Does anyone has got this error with debian 9 ?