[SRU] eic_harvest_hostkeys fails in local zones
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ec2 Instance Connect |
New
|
Unknown
|
|||
ec2-instance-connect (Ubuntu) |
Fix Released
|
Undecided
|
Balint Reczey | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned | ||
Groovy |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* ec2-instance-
[Test Plan]
* Start a system with the the fixed ec2-instance-
[Where problems could occur]
* The fix is ignoring the eic_harvest_
[Original Bug Text]
ec2-instance-
$ systemctl is-system-running
degraded
$ systemctl list-units --failed
UNIT LOAD ACTIVE SUB DESCRIPTION
● ec2-instance-
$ journalctl --unit ec2-instance-
-- Logs begin at Wed 2021-02-10 22:47:47 UTC, end at Wed 2021-02-10 22:55:46 UTC. --
Feb 10 22:48:16 ip-172-31-51-82 systemd[1]: Starting EC2 Instance Connect Host Key Harvesting...
Feb 10 22:48:16 ip-172-31-51-82 systemd[1]: ec2-instance-
Feb 10 22:48:16 ip-172-31-51-82 systemd[1]: ec2-instance-
Feb 10 22:48:16 ip-172-31-51-82 systemd[1]: Failed to start EC2 Instance Connect Host Key Harvesting.
$ dpkg-query -l ec2-instance-
ii ec2-instance-
$ lsb_release -c
Codename: hirsute
$ cat /etc/cloud/
build_name: server
serial: 20210208
$ ec2metadata --availability-zone --ami-id
us-west-2-lax-1a
ami-098f71a7a25
$ bash -x /usr/share/
...
++ /usr/bin/curl -s -f -m 1 -H 'X-aws-
+ zone=us-
+ zone_exit=0
+ '[' 0 -ne 0 ']'
+ /bin/echo us-west-2-lax-1a
+ /bin/grep -Eq '^([a-z]
+ /usr/bin/head -n 1
+ exit 255
[1] https:/
tags: | added: fr-1126 |
Changed in ec2-instance-connect: | |
status: | Unknown → New |
Changed in ec2-instance-connect (Ubuntu): | |
assignee: | nobody → Balint Reczey (rbalint) |
status: | New → In Progress |
summary: |
- eic_harvest_hostkeys fails in local zones + [SRU] eic_harvest_hostkeys fails in local zones |
description: | updated |
tags: |
added: verification-failed verification-failed-focal verification-failed-groovy verification-failed-xenial removed: verification-needed verification-needed-focal verification-needed-groovy verification-needed-xenial |
This is a problem with "# Validate the zone" logic @ https:/ /git.launchpad. net/ubuntu/ +source/ ec2-instance- connect/ tree/src/ bin/eic_ harvest_ hostkeys? h=applied/ ubuntu/ hirsute# n92