Ask Your Question

How to nova user shell from /sbin/nologin to /bin/bash

asked 2015-05-07 02:32:59 -0600

Aman gravatar image

updated 2015-05-07 04:10:00 -0600

SGPJ gravatar image

I have juno multinode setup with 1 controller, 2 compute and a network node. While trying to migrate a VM from one compute instance to another the VM instance goes to error state with a SSH error "

{"message": "Unexpected error while running command.                                                   |

|                                      | Command: ssh 10.x.x.x mkdir -p /var/lib/nova/instances/c97c5b3d-fb91-4e7f-

8981-61d1743a0edb        |

|                                      | Exit code: 1                                                                                           |

|                                      | Stdout: u'This account is currently not available.\                                                    |

|                                      | '                                                                                                      |

|                                      | Stderr: u'******************************************", "code": 500, "created": 

I searched for a fix and one of the options was to change nova user shell from /sbin/nologin to /bin/bash.

What do we mean by changing nova user shell and how and where to do it? Also is this a valid option to fix this problem?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-05-07 04:29:00 -0600

uts9 gravatar image

updated 2015-05-07 04:44:41 -0600

Type finger <username> to get the user info. If the shell is /sbin/nologin then user does not have a default shell and he cannot login and execute anything. In order to use SSH command, shell should be configured for the user.

VM migration requires SSH + public key authentication. So that remote commands can be executed without password.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-05-07 02:32:59 -0600

Seen: 781 times

Last updated: May 07 '15