Unable to ssh login to baremetal node [closed]

asked 2020-06-16 20:59:49 -0500

soga gravatar image

I have built a train version of openstack.
I specified the key pair when starting the instance, but I am prompted to enter the password.
What are the items to check?

[root@cwo51 ~]# openstack server list
+--------------------------------------+------+--------+---------------------------+---------+---------------------+
| ID                                   | Name | Status | Networks                  | Image   | Flavor              |
+--------------------------------------+------+--------+---------------------------+---------+---------------------+
| 915413ec-695b-4602-8693-2fdf47089963 | bm1  | ACTIVE | admin_network=10.33.30.84 | CentOS7 | my-baremetal-flavor |
+--------------------------------------+------+--------+---------------------------+---------+---------------------+
[root@cwo51 ~]# ssh -i ~/.ssh/id_rsa centos@10.33.30.84
centos@10.33.30.84's password: 
Permission denied, please try again.
centos@10.33.30.84's password: 
Permission denied, please try again.
centos@10.33.30.84's password: 

[root@cwo51 ~]#
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by soga
close date 2020-06-18 18:33:30.402307

Comments

Items to check: Metadata service running and accessible from instance; cloud-init deployed on instance; any errors reported when running cloud-init.

You could try the config drive instead of the metadata service.

Bernd Bausch gravatar imageBernd Bausch ( 2020-06-16 22:27:12 -0500 )edit

Thank you for your comment. Apparently cloud-init does not start in the instance. Try config drive.

soga gravatar imagesoga ( 2020-06-17 00:00:27 -0500 )edit

I don't think that will help, because something must process config drive. And that something is normally cloud-init.

The image that provisions the instance with must include cloud-init. The big name cloud images including Centos have cloud-init built in.

Bernd Bausch gravatar imageBernd Bausch ( 2020-06-17 00:40:37 -0500 )edit

Cloud init is running without my knowledge and I set the config drive to true and it works. Thank you.

soga gravatar imagesoga ( 2020-06-18 18:33:06 -0500 )edit