Issue link: https://read.uberflip.com/i/1334488
Chapter 13 279 Cannot ping or SSH to an instance 1. When launching instances, we specify a security group. If none is specified, a security group named default is used. These mandatory security groups ensure security is enabled by default in our cloud environment, and as such, we must explicitly state that we require the ability to ping our instances and SSH to them. For such a basic activity, it is common to add these abilities to the default security group. 2. Network issues may prevent us from accessing our cloud instances. First, check that the compute instances are able to forward packets from the public interface to the bridged interface. sysctl -A | grep ip_forward 3. net.ipv4.ip_forward should be set to 1. If it isn't, check that /etc/sysctl. conf has the following option uncommented: net.ipv4.ip_forward=1 4. Then, run the following, to pick up the change: sudo sysctl -p 5. Other network issues could be routing problems. Check that we can communicate with the OpenStack Compute nodes from our client and that any routing to get to these instances has the correct entries. 6. We may have a conflict with IPv6, if IPv6 isn't required. If this is the case, try adding --use_ipv6=false to your /etc/nova/nova.conf file, and restart the nova- compute and nova-network services. We may also need to disable IPv6 in the operating system, which can be achieved using something like the following line in / etc/modprobe.d/ipv6.conf: install ipv6 /bin/true 7. Reboot your host. Viewing the Instance Console log You can view the console information for an instance using a number of methods: f When using the command line, issue the following commands: # euca2ools euca-get-console i-00000001 # nova client nova console-log 4b8776eb-77b5-48eb-9ec4-f4b6c6e3bdaa www.it-ebooks.info

