nova resize does not work after a foreman install

Solution In Progress - Updated -

Issue

  • After installing openstack with Foreman, the nova resize command resulted in an error.

Resolution

  • There is an RFE open to have this taken care of automatically by Foreman at install BZ 1114722.

  • The workaround is to set this up manually setup passwordless ssh for the nova user between all nodes.

1) Allow the login of nova user

 # usermod -s /bin/bash nova
 # su - nova
 $ chcon -u system_u -r object_r -t user_home_t .
 $ mkdir -p -m 700 --context=system_u:object_r:ssh_home_t:s0 .ssh && cd .ssh

2) Disable host identity checking by adding this to ssh config

 $ cat > config <<EOF
 Host * 
   StrictHostKeyChecking no 
   UserKnownHostsFile=/dev/null 
 EOF

3) Generate and distribute ssh key

 $ ssh-keygen -f id_rsa -b 1024 -P ""
 $ scp /var/lib/nova/.ssh/id_rsa.pub root@otherHost:/var/lib/nova/.ssh/authorized_keys
 # chown nova:nova /var/lib/nova/.ssh/authorized_keys

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments