Deploy hdp with Openstack Sahara: Failed to set the hostname

asked 2015-10-13 07:51:39 -0600

sinan gravatar image

updated 2015-10-14 05:11:24 -0600

I'm trying to deploy an hadoop cluster with HDP (2.0.6) thanks to sahara (openstack Kilo release).

After VM are started up, instance log shows:

cloud-init[640]: 2015-10-12 18:37:11,264 -[WARNING]: Failed to set the hostname to hdp-test-namenode-001.novalocal (hdp-test-namenode-001)

and sahara logs show:

Can't login to node hdp-test-namenode-001, reason AuthenticationException: Authentication failed. _is_accessible /usr/lib/python2.7/site-packages/sahara/service/ If I set hostname manually in the vm provisionned by sahara, sahara can connect by ssh and continues to next step. So, there is a problem with cloud-init.

However, when I deploy a vm with my CentOs 7 image (handly deployement using the same image, not by sahara), cloud-init manages to set hostname. Deployment settings seem to be the same for sahara-provisionned vm and manually-created vm.

Note : I'm using neutron private network, keypair, and public floating IPs.

Any idea ? What it does not work with sahara ?

Edit : When I disable namespace in sahara conf, it works but not for each vm. If I reboot vm that failed, it works ! May first boot is too long for cloud-init ? What should I do ?

edit retag flag offensive close merge delete