What are the initial steps that I need to take to get gallera installed on EC2?
Hi there,
I get this error:
Adding hosts to known hosts, pinging them and checking sudo/visudo exists
trying to ping 10.44.4.142trying to ssh_keyscan 10.44.4.142: [ok]
On 10.44.4.142: Install sudo: apt-get install sudo
And make sure you add, using visudo, ubuntu to /etc/sudoers
Why is it that I need to add ubuntu as a sudoer to the server when I place the key to log in to the server?
What exactly do I need to do on every ec2 server to make sure this happens cleanly? Is their a laundry list?
-
Hi
I believe we resolved your issue in the support forum. The main issue was that the owner of the ssh key was root while you were running the script as the ubuntu user.
In general for AWS you should check the following.
- If the OS user is ‘ubuntu’ or ‘ec2-user’ then generate our DB deployment package (http://www.severalnines.com/New-Galera-Configurator/index.html) with that user
These users are also already in the sudoers list and have passwordless sudo already enabled which is required.- If you want to use the ‘root’ user then make sure you can ssh into the other hosts without being prompted that you should login as for example ‘ubuntu’.
You need to remove the ‘command=..’ string in /root/.ssh/authorized_keys to disable that prompt.
- Generate a new private ssh key to be used for ClusterControl rather than using/copying over your private AWS ssh key to the ClusterControl host.- Copy the private ssh key to $HOME/.ssh/id_rsa on the ClusterControl host and make sure that you can ssh into the other hosts with that key
- Check that you can do ssh <db ip1> “sudo ls” without being prompted for a password or any other issues and check that you meet these server requirements, http://support.severalnines.com/entries/20614858-Server-Requirements-on-premise-AMIs-other-images-
- Check the security group and that you are not blocking required ports listed here, http://support.severalnines.com/entries/22654676-Firewall-ports-
- Generate the DB deployment package with the ssh key file path as /home/<your OS user>/.ssh/id_rsa or if you use the root user /root/.ssh/id_rsa
Best Regards
Alex
Please sign in to leave a comment.
Comments
1 comment