RDFeasy icon indicating copy to clipboard operation
RDFeasy copied to clipboard

sudo busted when AMI launched in Ookaboo VPC

Open paulhoule opened this issue 11 years ago • 5 comments

The product works great in "AWS Classic" but when it is launched in a VPC the "sudo" command does not work because it can't resolve an IP address. This breaks all the scripts that use sudo.

paulhoule avatar May 21 '14 16:05 paulhoule

Ok, this problem does not look critical.

I do this sequence

ubuntu@ip-10-0-0-130:~$ sudo touch /top-of-filesystem
sudo: unable to resolve host ip-10-0-0-130

ubuntu@ip-10-0-0-130:~$ ls -l /
total 76
drwxr-xr-x   2 root root  4096 Apr 18 17:07 bin
drwxr-xr-x   3 root root  4096 Apr 28 19:08 boot
  ...
drwxrwxrwt   2 root root  4096 May 21 21:12 tmp
-rw-r--r--   1 root root     0 May 21 21:12 top-of-filesystem
drwxr-xr-x  10 root root  4096 Feb 26 03:33 usr
  ...

It looks like the touch command worked despite the error message from sudo.

paulhoule avatar May 21 '14 21:05 paulhoule

I'll see if I can reproduce the problem with the Base AMI which is ami-d7dbc7be

paulhoule avatar May 21 '14 21:05 paulhoule

It is a bug for the vendor since the problem can be reproduced with the Ubuntu AMI mentioned above. Is the problem in the current 14.04 LTS product?

ami-1d8c9574

paulhoule avatar May 21 '14 22:05 paulhoule

Yes this problem is in the 14.04 LTS product with the above id. Let's hassle the vendor.

paulhoule avatar May 21 '14 22:05 paulhoule

Vendor hassled: https://forums.aws.amazon.com/thread.jspa?threadID=152681

paulhoule avatar May 21 '14 22:05 paulhoule