cloud init falha na instância

2

Eu configurei o Ubuntu Openstack usando o Autopilot Installer / MAAS. Quando eu tento inicializar a VM, o cloud-init não consegue obter metadados. Aqui está o log da instância (parcial)

cloud-init-nonet[25.04]: static networking is now up
 * Starting configure network device[74G[ OK ]
Cloud-init v. 0.7.5 running 'init' at Fri, 20 Mar 2015 16:43:33 +0000. Up 25.26 seconds.
ci-info: ++++++++++++++++++++++++++Net device info+++++++++++++++++++++++++++
ci-info: +--------+------+--------------+---------------+-------------------+
ci-info: | Device |  Up  |   Address    |      Mask     |     Hw-Address    |
ci-info: +--------+------+--------------+---------------+-------------------+
ci-info: |   lo   | True |  127.0.0.1   |   255.0.0.0   |         .         |
ci-info: |  eth0  | True | 192.168.1.21 | 255.255.255.0 | fa:16:3e:ab:ac:16 |
ci-info: +--------+------+--------------+---------------+-------------------+
ci-info: +++++++++++++++++++++++++++++Route info++++++++++++++++++++++++++++++
ci-info: +-------+-------------+---------+---------------+-----------+-------+
ci-info: | Route | Destination | Gateway |    Genmask    | Interface | Flags |
ci-info: +-------+-------------+---------+---------------+-----------+-------+
ci-info: |   0   | 192.168.1.0 | 0.0.0.0 | 255.255.255.0 |    eth0   |   U   |
ci-info: +-------+-------------+---------+---------------+-----------+-------+
2015-03-20 16:43:33,409 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [0/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by : [Errno 101] Network is unreachable)]
2015-03-20 16:43:34,422 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [1/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by : [Errno 101] Network is unreachable)]
2015-03-20 16:43:35,431 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [2/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by : [Errno 101] Network is unreachable)]
2015-03-20 16:43:36,435 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [3/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by : [Errno 101] Network is unreachable)]
2015-03-20 16:43:37,440 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [4/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by : [Errno 101] Network is unreachable)]
2015-03-20 16:43:38,444 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [5/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by : [Errno 101] Network is unreachable)]
2015-03-20 16:43:40,449 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [7/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by : [Errno 101] Network is unreachable)]
2015-03-20 16:43:42,455 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [9/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by : [Errno 101] Network is unreachable)]
2015-03-20 16:43:44,460 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [11/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by : [Errno 101] Network is unreachable)]
2015-03-20 16:43:46,466 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [13/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by : [Errno 101] Network is unreachable)]
2015-03-20 16:43:48,472 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [15/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by : [Errno 101] Network is unreachable)]
2015-03-20 16:43:51,484 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [18/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by : [Errno 101] Network is unreachable)]
2015-03-20 16:43:54,491 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [21/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by : [Errno 101] Network is unreachable)]
2015-03-20 16:43:57,503 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [24/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by : [Errno 101] Network is unreachable)]
2015-03-20 16:44:00,520 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [27/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by : [Errno 101] Network is unreachable)]
2015-03-20 16:44:03,541 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [30/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by : [Errno 101] Network is unreachable)]
2015-03-20 16:44:07,556 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [34/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by : [Errno 101] Network is unreachable)]
2015-03-20 16:44:11,569 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [38/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by : [Errno 101] Network is unreachable)]
2015-03-20 16:44:15,580 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [42/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by : [Errno 101] Network is unreachable)]
2015-03-20 16:44:19,594 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [46/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by : [Errno 101] Network is unreachable)]
2015-03-20 16:44:23,607 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [50/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by : [Errno 101] Network is unreachable)]
2015-03-20 16:44:28,622 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [55/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by : [Errno 101] Network is unreachable)]
2015-03-20 16:44:33,641 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [60/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by : [Errno 101] Network is unreachable)]
2015-03-20 16:44:38,670 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [65/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by : [Errno 101] Network is unreachable)]
2015-03-20 16:44:43,690 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [70/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by : [Errno 101] Network is unreachable)]
2015-03-20 16:44:48,710 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [75/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by : [Errno 101] Network is unreachable)]
2015-03-20 16:44:54,726 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [81/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by : [Errno 101] Network is unreachable)]
2015-03-20 16:45:00,741 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [87/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by : [Errno 101] Network is unreachable)]
2015-03-20 16:45:06,757 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [93/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by : [Errno 101] Network is unreachable)]
2015-03-20 16:45:12,770 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [99/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by : [Errno 101] Network is unreachable)]
2015-03-20 16:45:18,790 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [105/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by : [Errno 101] Network is unreachable)]
2015-03-20 16:45:25,805 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [112/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by : [Errno 101] Network is unreachable)]
2015-03-20 16:45:32,830 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [119/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by : [Errno 101] Network is unreachable)]
2015-03-20 16:45:39,843 - DataSourceEc2.py[CRITICAL]: Giving up on md from ['http://169.254.169.254/2009-04-04/meta-data/instance-id'] after 126 seconds
2015-03-20 16:45:39,855 - url_helper.py[WARNING]: Calling 'http://192.168.1.20//latest/meta-data/instance-id' failed [0/120s]: request error [HTTPConnectionPool(host='192.168.1.20', port=80): Max retries exceeded with url: //latest/meta-data/instance-id (Caused by : [Errno 111] Connection refused)]
2015-03-20 16:45:40,865 - url_helper.py[WARNING]: Calling 'http://192.168.1.20//latest/meta-data/instance-id' failed [1/120s]: request error [HTTPConnectionPool(host='192.168.1.20', port=80): Max retries exceeded with url: //latest/meta-data/instance-id (Caused by : [Errno 111] Connection refused)]
2015-03-20 16:45:41,879 - url_helper.py[WARNING]: Calling 'http://192.168.1.20//latest/meta-data/instance-id' failed [2/120s]: request error [HTTPConnectionPool(host='192.168.1.20', port=80): Max retries exceeded with url: //latest/meta-data/instance-id (Caused by : [Errno 111] Connection refused)]
2015-03-20 16:45:42,884 - url_helper.py[WARNING]: Calling 'http://192.168.1.20//latest/meta-data/instance-id' failed [3/120s]: request error [HTTPConnectionPool(host='192.168.1.20', port=80): Max retries exceeded with url: //latest/meta-data/instance-id (Caused by : [Errno 111] Connection refused)]
2015-03-20 16:45:43,889 - url_helper.py[WARNING]: Calling 'http://192.168.1.20//latest/meta-data/instance-id' failed [4/120s]: request error [HTTPConnectionPool(host='192.168.1.20', port=80): Max retries exceeded with url: //latest/meta-data/instance-id (Caused by : [Errno 111] Connection refused)]
2015-03-20 16:45:44,894 - url_helper.py[WARNING]: Calling 'http://192.168.1.20//latest/meta-data/instance-id' failed [5/120s]: request error [HTTPConnectionPool(host='192.168.1.20', port=80): Max retries exceeded with url: //latest/meta-data/instance-id (Caused by : [Errno 111] Connection refused)]
2015-03-20 16:45:46,900 - url_helper.py[WARNING]: Calling 'http://192.168.1.20//latest/meta-data/instance-id' failed [7/120s]: request error [HTTPConnectionPool(host='192.168.1.20', port=80): Max retries exceeded with url: //latest/meta-data/instance-id (Caused by : [Errno 111] Connection refused)]
2015-03-20 16:45:48,912 - url_helper.py[WARNING]: Calling 'http://192.168.1.20//latest/meta-data/instance-id' failed [9/120s]: request error [HTTPConnectionPool(host='192.168.1.20', port=80): Max retries exceeded with url: //latest/meta-data/instance-id (Caused by : [Errno 111] Connection refused)]
2015-03-20 16:45:50,918 - url_helper.py[WARNING]: Calling 'http://192.168.1.20//latest/meta-data/instance-id' failed [11/120s]: request error [HTTPConnectionPool(host='192.168.1.20', port=80): Max retries exceeded with url: //latest/meta-data/instance-id (Caused by : [Errno 111] Connection refused)]
2015-03-20 16:45:52,924 - url_helper.py[WARNING]: Calling 'http://192.168.1.20//latest/meta-data/instance-id' failed [13/120s]: request error [HTTPConnectionPool(host='192.168.1.20', port=80): Max retries exceeded with url: //latest/meta-data/instance-id (Caused by : [Errno 111] Connection refused)]
2015-03-20 16:45:54,930 - url_helper.py[WARNING]: Calling 'http://192.168.1.20//latest/meta-data/instance-id' failed [15/120s]: request error [HTTPConnectionPool(host='192.168.1.20', port=80): Max retries exceeded with url: //latest/meta-data/instance-id (Caused by : [Errno 111] Connection refused)]
2015-03-20 16:45:57,943 - url_helper.py[WARNING]: Calling 'http://192.168.1.20//latest/meta-data/instance-id' failed [18/120s]: request error [HTTPConnectionPool(host='192.168.1.20', port=80): Max retries exceeded with url: //latest/meta-data/instance-id (Caused by : [Errno 111] Connection refused)]
2015-03-20 16:46:00,956 - url_helper.py[WARNING]: Calling 'http://192.168.1.20//latest/meta-data/instance-id' failed [21/120s]: request error [HTTPConnectionPool(host='192.168.1.20', port=80): Max retries exceeded with url: //latest/meta-data/instance-id (Caused by : [Errno 111] Connection refused)]
2015-03-20 16:46:03,970 - url_helper.py[WARNING]: Calling 'http://192.168.1.20//latest/meta-data/instance-id' failed [24/120s]: request error [HTTPConnectionPool(host='192.168.1.20', port=80): Max retries exceeded with url: //latest/meta-data/instance-id (Caused by : [Errno 111] Connection refused)]

é também interessante notar que o IP passou de 169.254.169.254 para 192.168.1.20 (192.x é o IP do agente DHCP).

Alguma ideia de onde posso começar?

    
por Chirayu Patel 20.03.2015 / 17:51

3 respostas

1

Você precisa verificar se o controlador de cluster está configurado corretamente para que a máquina possa realmente acessar o servidor de metadados do controlador de região. Você pode fazer isso com:

sudo dpkg-reconfigure maas-cluster-controller

E você precisa inserir o endereço IP do controlador de região na forma de:

http://<ip-address>/MAAS
    
por Andres Rodriguez 09.07.2015 / 03:15
1

No meu caso (nova instalação usando o Ubuntu Juju) o problema era que o nêutron era configurado incorretamente com o endereço IP incorreto para o servidor de metadados.

Isso é bom: link

Isso me indicou:

root@neutron:/etc/neutron# cat metadata_agent.ini 
...
nova_metadata_ip = 192.168.100.151
nova_metadata_port = 8775
...

Eu consertei o nova_metadata_ip e reiniciei o serviço de metadados de nêutrons e resolvi o problema.

    
por bladedoyle 08.09.2016 / 20:39
0

Eu tive um problema semelhante com uma implantação de 8 nós (3 controladores, 1 log, 4 cálculos) em que as instâncias criadas na rede inquilino não puderam ser conectadas em b / c, elas não tinham a chave SSH necessária instalada o serviço do agente de metadados. O nova console-log mostrou tentativas malsucedidas de tentar alcançar o serviço do agente de metadados no gateway do roteador de nêutrons da rede de locatários (192.168.227.1). Se eu logasse no roteador de nêutrons e arpejasse a instância, ela começaria a funcionar.

Realizando uma captura de pacotes no nó de cálculo, encontrei a instância enviando solicitações ARP para o seu gateway Neutron 192.168.227.1. O MAC retornado não era um MAC de nêutrons, mas sim um Cisco. Como o tráfego está sendo roteado para esse dispositivo Cisco (onde não existe serviço de metadados), as solicitações para o endereço de metadados falharam.

A solução proposta era confirmar a possível existência de um SVI com 192.168.227.1 configurado nele e removê-lo, já que o endereço deve ser configurado no roteador Neutron.

Embora a edição do arquivo metadata_agent.ini seja uma solução alternativa, é altamente recomendável usar isso como uma 'correção', já que esses valores são extraídos do arquivo openstack_user_config.yml. Se definido corretamente, deverá funcionar conforme configurado e com os valores padrão no arquivo .ini. Alterei os valores em meu arquivo .ini para testar o terminal externo, o que resultou em instâncias nas quais eu poderia efetuar login, mas isso não resolveu o problema raiz de um IP de gateway de locatário duplicado e o que precisava ser corrigido de forma definitiva.

    
por Thomas 25.01.2017 / 18:53