#456 F28 Atomic Beta AMIs do not connect to the network when using private IPs only
Closed: Fixed 5 years ago Opened 6 years ago by jdoss.

It seems that Fedora 28 Atomic Beta (and F28 Beta Cloud) when using private IPs only, does not connect to the network. This results in the EC2 instance failing it's connectivity test and you cannot connect to it via SSH. If you test the AMI with a Public IP however, it will work just fine.

This was tested with the Fedora-AtomicHost-28_Beta-1.3.x86_64-us-west-2-HVM-gp2-0 (ami-e5841f9d) AMI. I detached the failed EC2 instance's EBS volume and attached it to a working server to dump the cloud-init.log and the systemd journal. You can download them here.

https://www.solidadmin.com/atomic/f28atomic-cloud-init
https://www.solidadmin.com/atomic/f28atomic-journal

I have included the Fedora 28 Cloud logs as well if they will help.

https://www.solidadmin.com/atomic/f28cloud-cloud-init
https://www.solidadmin.com/atomic/f28cloud-journal


The links to the logs are throwing 403 to me.

Yes, F27 works fine. We have 50+ servers running F27 in right now and they pull an internal IP just fine.

To rule out any edge cases that maybe present from how my work sets up VPCs, I spun up a VM in us-east-1 with the default VPC and the result was the same. You can see below the instance is failing 1/2 checks and you cannot SSH to the machine over the private IP.

Screenshot_from_2018-04-18_09-54-10.png

Looks like cloud-init is setting BOOTPROTO=none for some reason.

[fedora@worker ~]# cat /mnt/f28/etc/redhat-release 
Fedora release 28 (Twenty Eight)
[fedora@worker ~]# cat /mnt/f28/etc/sysconfig/network-scripts/ifcfg-eth0
# Created by cloud-init on instance boot automatically, do not edit.
#
BOOTPROTO=none
DEVICE=eth0
HWADDR=06:83:72:56:7c:66
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
[fedora@worker ~]$ cat /etc/redhat-release 
Fedora release 27 (Twenty Seven)
[fedora@worker ~]$ cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Created by cloud-init on instance boot automatically, do not edit.
#
BOOTPROTO=dhcp
DEVICE=eth0
HWADDR=02:71:be:de:7b:e6
ONBOOT=yes
TYPE=Ethernet
USERCTL=no

interesting.. I wonder if this upstream commit (first released in cloud-init 17.2) might fix the issue?

Using the patch from the upstream commit above resulted in no change.

Reverting to cloud-init-0.7.9-9.fc27.noarch fixes the issue and allows the EC2 instance to DHCP:

[jdoss@sts71 ~]$ ssh fedora@10.0.11.156
Warning: Permanently added '10.0.11.156' (ECDSA) to the list of known hosts.
[fedora@ip-10-0-11-156 ~]$ cat /etc/redhat-release 
Fedora release 28 (Twenty Eight)
[fedora@ip-10-0-11-156 ~]$ rpm -qa |grep cloud-init
cloud-init-0.7.9-9.fc27.noarch

BZ1569321 has been resolved now and is fixed in the f28 release going out tomorrow.

Metadata Update from @dustymabe:
- Issue tagged with: bug, host

5 years ago

Metadata Update from @dustymabe:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

5 years ago

Login to comment on this ticket.

Metadata