Searching for results...

No results

Your search did not match anything from Mirantis documentation.
Check your spelling or try different keywords.

An error occurred

An error occurred while using the search.
Try your search again or contact us to let us know about it.

Newer documentation is now live.You are currently reading an older version.

Log in to the IPA virtual console for hardware troubleshooting

MOSK uses kernel and initramfs files with the pre-installed Ironic Python Agent (IPA) for inspection of server hardware. The IPA image initramfs is based on Ubuntu Server.

If you need to troubleshoot hardware during inspection, you can use the IPA virtual console to assess hardware logs and image configuration.

To log in to the IPA virtual console of a bare metal host:

  1. Create the bare metal host object for the required bare metal host as described in Add a bare metal host using CLI and wait for inspection to complete.

    Caution

    Meantime, do not create the Machine object for the bare metal host being inspected to prevent automatic provisioning.

  2. Using the pwgen utility, recover the dynamically calculated password of the IPA image:

    kubectl --kubeconfig <pathToManagementClusterKubeconfig> \
    -n kaas get secret ironic-ssh-key \
    -o jsonpath="{.data.public}" | base64 -d > /tmp/ironic-ssh-key.pub
    pwgen -H /tmp/ironic-ssh-key.pub -1 -s 16
    rm /tmp/ironic-ssh-key.pub
    
  3. Remotely log in to the IPA console of the bare metal host using the devuser user name and the password obtained in the previous step. For example, use IPMItool, Integrated Lights-Out, or the iDRAC web UI.

Note

To assess the IPA logs, use the journalctl -u ironic-python-agent.service command.