I'm actually setting up a private cloud for my company with OpenStack (Stein).
I followed the tutorial from the official website and everything seems to work well... except getting metadata from cloud instance.
Let me explain how is set up my infrastructure :
All OpenStack are installed on KVM host (2xXeon 32 Core, 320Go RAM, 2To HDD, ...)
I set up VM like following :
- openstack-controller001 192.168.50.11
- openstack-compute001 192.168.50.41
- openstack-storage001 192.168.50.61 (for Cinder)
- db001 192.168.50.81 (DB is not hosted on the same server as the controller)
- ldap001 192.168.50.251 (not using LDAP yet, only DNS and NTP server)
When i launch new instance of Ubuntu or Debian created from cloud images, I'm not able to connect to thoses VM via SSH, my keypair is always refused (error: permission denied). After some investigations, I realised that VM is not uploading SSH private key from the host. It seems the VM is contacting metadata server by using DHCP server IP address of my virtual network instead of metadata proxy server which is the controller if i'm not mistaken ?
[ 15.840973] cloud-init: 2019-05-20 05:53:58,124 - url_helper.py[WARNING]: Calling 'http://172.16.10.10/latest/meta-data/instance-id ' failed [0/120s]: request error [HTTPConnectionPool(host='172.16.10.10', port=80): Max retries exceeded with url: /latest/meta-data/instance-id (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused',))]
172.16.10.10 represents the DHCP server of my Virtual Network (172.16.0.0/16, DHCP Range 172.16.10.10~172.16.20.254). I think there is something wrong with that, despite the config seems correct.
**/etc/neutron/neutron.conf (openstack-controller001)**
[DEFAULT]
# ...
nova_metadata_host = openstack-controller001
metadata_proxy_shared_secret = XXXXXXXXXXXXXXXXXX
**/etc/nova/nova.conf (openstack-compute001)**
[neutron]
# ...
service_metadata_proxy = true
metadata_proxy_shared_secret = XXXXXXXXXXXXXXXXXX
Asked by Julien Guillot
(101 rep)
May 20, 2019, 07:03 AM
Last activity: Apr 16, 2025, 12:07 PM
Last activity: Apr 16, 2025, 12:07 PM