can't login to a compute node deployed using ironic
Dear Openstack user group, I am playing with Ironic and have a very stupid question... For some reason I can't login to the server after deployment. Server status is ACTIVE and I am using the adminPass provided by openstack . The way I connect is through server console through the IPMI console (not ssh). [root@openstack-deployment ~]# openstack server create --image 760f4076-4f2d-455b-89b5-6c1248148f70 --flavor my-baremetal-flavor --network hpc demo1 +-------------------------------------+------------------------------------------------------------+ | Field | Value | +-------------------------------------+------------------------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-AZ:availability_zone | | | OS-EXT-SRV-ATTR:host | None | | OS-EXT-SRV-ATTR:hypervisor_hostname | None | | OS-EXT-SRV-ATTR:instance_name | | | OS-EXT-STS:power_state | NOSTATE | | OS-EXT-STS:task_state | scheduling | | OS-EXT-STS:vm_state | building | | OS-SRV-USG:launched_at | None | | OS-SRV-USG:terminated_at | None | | accessIPv4 | | | accessIPv6 | | | addresses | | | adminPass | t3TAUNwTbuD5 | | config_drive | | | created | 2018-12-13T05:39:11Z | | flavor | my-baremetal-flavor (84abc368-1695-4387-998c-8b47da1a3a34) | | hostId | | | id | 5231e015-73e9-472f-bb84-bde9bf7e6989 | | image | centos7.5-image (760f4076-4f2d-455b-89b5-6c1248148f70) | | key_name | None | | name | demo1 | | progress | 0 | | project_id | 0b3d8fd6015048e89f4372fb1534900b | | properties | | | security_groups | name='default' | | status | BUILD | | updated | 2018-12-13T05:39:12Z | | user_id | fd244f331bc34066b7a5fae72d518261 | | volumes_attached | | +-------------------------------------+------------------------------------------------------------+ [root@openstack-deployment ~]# openstack server list +--------------------------------------+-------+--------+-----------------+-----------------+---------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------+--------+-----------------+-----------------+---------------------+ | 5231e015-73e9-472f-bb84-bde9bf7e6989 | demo1 | ACTIVE | hpc=10.0.32.119 | centos7.5-image | my-baremetal-flavor | | 9cc2369f-1951-4bec-bc8b-863fd6cc9983 | test | ACTIVE | hpc=10.0.32.116 | cirros | m1.tiny | +--------------------------------------+-------+--------+-----------------+-----------------+---------------------+ Any thoughts? Manuel Sopena Ballesteros | Big data Engineer Garvan Institute of Medical Research The Kinghorn Cancer Centre, 370 Victoria Street, Darlinghurst, NSW 2010 T: + 61 (0)2 9355 5760 | F: +61 (0)2 9295 8507 | E: manuel.sb@garvan.org.au<mailto:manuel.sb@garvan.org.au> NOTICE Please consider the environment before printing this email. This message and any attachments are intended for the addressee named and may contain legally privileged/confidential/copyright information. If you are not the intended recipient, you should not read, use, disclose, copy or distribute this communication. If you have received this message in error please notify us at once by return email and then delete both messages. We accept no liability for the distribution of viruses or similar in electronic communications. This notice should not be removed.
On Wed, Dec 12, 2018, at 10:18 PM, Manuel Sopena Ballesteros wrote:
Dear Openstack user group,
I am playing with Ironic and have a very stupid question...
For some reason I can't login to the server after deployment. Server status is ACTIVE and I am using the adminPass provided by openstack .
The way I connect is through server console through the IPMI console (not ssh).
[root@openstack-deployment ~]# openstack server create --image 760f4076- 4f2d-455b-89b5-6c1248148f70 --flavor my-baremetal-flavor --network hpc demo1 +------------------------------------- +------------------------------------------------------------+ | Field | Value | +------------------------------------- +------------------------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-AZ:availability_zone | | | OS-EXT-SRV-ATTR:host | None | | OS-EXT-SRV-ATTR:hypervisor_hostname | None | | OS-EXT-SRV-ATTR:instance_name | | | OS-EXT-STS:power_state | NOSTATE | | OS-EXT-STS:task_state | scheduling | | OS-EXT-STS:vm_state | building | | OS-SRV-USG:launched_at | None | | OS-SRV-USG:terminated_at | None | | accessIPv4 | | | accessIPv6 | | | addresses | | | adminPass | t3TAUNwTbuD5 | | config_drive | | | created | 2018-12-13T05:39:11Z | | flavor | my-baremetal-flavor (84abc368- 1695-4387-998c-8b47da1a3a34) | | hostId | | | id | 5231e015-73e9-472f-bb84- bde9bf7e6989 | | image | centos7.5-image (760f4076- 4f2d-455b-89b5-6c1248148f70) | | key_name | None | | name | demo1 | | progress | 0 | | project_id | 0b3d8fd6015048e89f4372fb1534900b | | properties | | | security_groups | name='default' | | status | BUILD | | updated | 2018-12-13T05:39:12Z | | user_id | fd244f331bc34066b7a5fae72d518261 | | volumes_attached | | +------------------------------------- +------------------------------------------------------------+ [root@openstack-deployment ~]# openstack server list +--------------------------------------+-------+-------- +-----------------+-----------------+---------------------+ | ID | Name | Status | Networks | Image | Flavor | +--------------------------------------+-------+-------- +-----------------+-----------------+---------------------+ | 5231e015-73e9-472f-bb84-bde9bf7e6989 | demo1 | ACTIVE | hpc=10.0.32.119 | centos7.5-image | my-baremetal-flavor | | 9cc2369f-1951-4bec-bc8b-863fd6cc9983 | test | ACTIVE | hpc=10.0.32.116 | cirros | m1.tiny | +--------------------------------------+-------+-------- +-----------------+-----------------+---------------------+
Any thoughts?
I believe that the admin password must be set on first boot by a tool like cloud-init. I would double check that your image has cloud-init installed and configured to set the root user password. It is possible that it may be configuring a non root user (like 'centos') isntead of root too. If that all checks out I would look at your servers console log (hopefully that is working) as cloud-init should log the changes it is making and hopefully that give you a clue as to what is happening. Finally you could update the image to bake in a user and password or ssh key and log in that way then debug what is going on from there. Might even want to start here depending on how easy it is for you to modify the image. Clark
On 13/12/2018 06:18, Manuel Sopena Ballesteros wrote:
Dear Openstack user group,
I am playing with Ironic and have a very stupid question…
For some reason I can’t login to the server after deployment. Server status is ACTIVE and I am using the adminPass provided by openstack .
The way I connect is through server console through the IPMI console (not ssh).
The way it normally works is that cloud init copies a public key from a keypair that you specify when booting the instance to the node that your deploy. There aren't normally back door passwords in the deploy images, which is why you can't get in via the IPMI console. Try ssh :)
[root@openstack-deployment ~]# openstack server create --image 760f4076-4f2d-455b-89b5-6c1248148f70 --flavor my-baremetal-flavor --network hpc demo1
+-------------------------------------+------------------------------------------------------------+
| Field | Value |
+-------------------------------------+------------------------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | |
| OS-EXT-SRV-ATTR:host | None |
| OS-EXT-SRV-ATTR:hypervisor_hostname | None |
| OS-EXT-SRV-ATTR:instance_name | |
| OS-EXT-STS:power_state | NOSTATE |
| OS-EXT-STS:task_state | scheduling |
| OS-EXT-STS:vm_state | building |
| OS-SRV-USG:launched_at | None |
| OS-SRV-USG:terminated_at | None |
| accessIPv4 | |
| accessIPv6 | |
| addresses | |
| adminPass | t3TAUNwTbuD5 |
| config_drive | |
| created | 2018-12-13T05:39:11Z |
| flavor | my-baremetal-flavor (84abc368-1695-4387-998c-8b47da1a3a34) |
| hostId | |
| id | 5231e015-73e9-472f-bb84-bde9bf7e6989 |
| image | centos7.5-image (760f4076-4f2d-455b-89b5-6c1248148f70) |
| key_name | None |
| name | demo1 |
| progress | 0 |
| project_id | 0b3d8fd6015048e89f4372fb1534900b |
| properties | |
| security_groups | name='default' |
| status | BUILD |
| updated | 2018-12-13T05:39:12Z |
| user_id | fd244f331bc34066b7a5fae72d518261 |
| volumes_attached | |
+-------------------------------------+------------------------------------------------------------+
[root@openstack-deployment ~]# openstack server list
+--------------------------------------+-------+--------+-----------------+-----------------+---------------------+
| ID | Name | Status | Networks | Image | Flavor |
+--------------------------------------+-------+--------+-----------------+-----------------+---------------------+
| 5231e015-73e9-472f-bb84-bde9bf7e6989 | demo1 | ACTIVE | hpc=10.0.32.119 | centos7.5-image | my-baremetal-flavor |
| 9cc2369f-1951-4bec-bc8b-863fd6cc9983 | test | ACTIVE | hpc=10.0.32.116 | cirros | m1.tiny |
+--------------------------------------+-------+--------+-----------------+-----------------+---------------------+
Any thoughts?
*Manuel Sopena Ballesteros *|**Big data Engineer *Garvan Institute of Medical Research * The Kinghorn Cancer Centre,**370 Victoria Street, Darlinghurst, NSW 2010 *T:* + 61 (0)2 9355 5760 | *F:* +61 (0)2 9295 8507 | *E:* manuel.sb@garvan.org.au <mailto:manuel.sb@garvan.org.au>
NOTICE Please consider the environment before printing this email. This message and any attachments are intended for the addressee named and may contain legally privileged/confidential/copyright information. If you are not the intended recipient, you should not read, use, disclose, copy or distribute this communication. If you have received this message in error please notify us at once by return email and then delete both messages. We accept no liability for the distribution of viruses or similar in electronic communications. This notice should not be removed.
participants (3)
-
Clark Boylan
-
Doug Szumski
-
Manuel Sopena Ballesteros