iesgn/openstack-ubuntu-ansible

Problemas al reiniciar keystone

Closed this issue · 7 comments

NOTIFIED: [keystoneserver | restart keystone] ********************************* 
failed: [controller] => {"failed": true}

FATAL: all hosts have already failed -- aborting

NOTIFIED: [keystoneserver | restart keystone] ********************************* 
FATAL: no hosts matched or all hosts have already failed -- aborting


FATAL: all hosts have already failed -- aborting

NOTIFIED: [keystoneserver | restart keystone] ********************************* 
FATAL: no hosts matched or all hosts have already failed -- aborting


FATAL: all hosts have already failed -- aborting

PLAY RECAP ******************************************************************** 
           to retry, use: --limit @/home/jose/site.retry

controller                 : ok=40   changed=31   unreachable=0    failed=1  

No se si tiene que ver con entos mensajes de syslog:

Jan  8 15:33:30 vagrant-ubuntu-trusty-64 mysqld: 160108 15:33:30 InnoDB: Could not open or create data files.
Jan  8 15:33:30 vagrant-ubuntu-trusty-64 mysqld: 160108 15:33:30 InnoDB: If you tried to add new data files, and it failed here,
Jan  8 15:33:30 vagrant-ubuntu-trusty-64 mysqld: 160108 15:33:30 InnoDB: you should now edit innodb_data_file_path in my.cnf back
Jan  8 15:33:30 vagrant-ubuntu-trusty-64 mysqld: 160108 15:33:30 InnoDB: to what it was, and remove the new ibdata files InnoDB created
Jan  8 15:33:30 vagrant-ubuntu-trusty-64 mysqld: 160108 15:33:30 InnoDB: in this failed attempt. InnoDB only wrote those files full of
Jan  8 15:33:30 vagrant-ubuntu-trusty-64 mysqld: 160108 15:33:30 InnoDB: zeros, but did not yet use them in any way. But be careful: do not
Jan  8 15:33:30 vagrant-ubuntu-trusty-64 mysqld: 160108 15:33:30 InnoDB: remove old data files which contain your precious data!
Jan  8 15:33:30 vagrant-ubuntu-trusty-64 mysqld: 160108 15:33:30 [ERROR] Plugin 'InnoDB' init function returned error.
Jan  8 15:33:30 vagrant-ubuntu-trusty-64 mysqld: 160108 15:33:30 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
Jan  8 15:33:30 vagrant-ubuntu-trusty-64 mysqld: 160108 15:33:30 [ERROR] Unknown/unsupported storage engine: innodb
Jan  8 15:33:30 vagrant-ubuntu-trusty-64 mysqld: 160108 15:33:30 [ERROR] Aborting

Cuando vuelvo a ejecutar el playbook, me da el siguiente error:

TASK: [dbserver | update mysql root password for all root accounts] *********** 
failed: [controller] => {"failed": true}
msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
FATAL: all hosts have already failed -- aborting

El error lo da en el paso:

TASK: [keystoneserver | DB sync for keystone] ********************************* 
changed: [controller]
NOTIFIED: [keystoneserver | restart keystone] ********************************* 
failed: [controller] => {"failed": true}

En al carpeta /root aparece el siguiente fichero, que es un error:

-rw-r--r--  1 root root    0 Jan  8 15:54 {failed:

A mí me funciona correctamente, no sé si estará relacionado con la versión de ansible, vagrant o virtualbox utilizadas. Yo estoy utilizando todos paquetes de jessie

Desde el controller cargando las credenciales, no puedo ver los endpoints:

# openstack endpoint list

¿No es normal? ¿no?

Sí, es normal si se utiliza fichero.

Para verificarlo prueba:

nova endpoints

Related to ansible release used