Skip to content

Commit

Permalink
Fix nova_ssh container shell to allow instance resizes.
Browse files Browse the repository at this point in the history
According to the configuration reference,
http://docs.openstack.org/mitaka/config-reference/compute/resize.html
When using KVM, nova utilizes SSH for instance resizing.
Kolla nova_ssh container has the nova user configured with "/sbin/nologin" shell,
which prevents nova_compute from successfully resizing instances.
Added fix to change shell from nologin to bash.

Change-Id: I46a48e242dae6ee6c9159bc30edd8b823ffbb515
Closes-Bug: 1617902
  • Loading branch information
mty22 committed Aug 31, 2016
1 parent 57d3eaf commit c4be56c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/nova/nova-ssh/Dockerfile.j2
Expand Up @@ -16,6 +16,8 @@ RUN mkdir -p /var/run/sshd \

{{ macros.install_packages(nova_ssh_packages | customizable("packages")) }}

RUN chsh -s /bin/bash nova

COPY extend_start.sh /usr/local/bin/kolla_extend_start
RUN chmod 755 /usr/local/bin/kolla_extend_start

Expand Down

0 comments on commit c4be56c

Please sign in to comment.