Skip to content

Commit

Permalink
Fix apt-get/dpkg lock/unattended-upgrades issue in sanity test teleme…
Browse files Browse the repository at this point in the history
…try (#3599)

* Potential fix for apt-get/dpkg lock/unattended-upgrades issue

* test config

* test config

* revert test config

---------

Co-authored-by: Sai Parthasarathy Miduthuri <[email protected]>
  • Loading branch information
sallyseok and saimidu authored Jan 13, 2024
1 parent 6b7cb15 commit 039e6f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/dlc_tests/sanity/test_telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def _run_tag_failure_IMDSv1_disabled(image_uri, ec2_client, ec2_instance, ec2_co
ec2_client.delete_tags(Resources=[ec2_instance_id], Tags=[{"Key": expected_tag_key}])

# Disable access to EC2 instance metadata
ec2_connection.run(f"sudo apt-get update -y")
ec2_utils.kill_background_processes_and_run_apt_get_update(ec2_connection)
ec2_connection.run(f"sudo apt-get install -y apt-transport-https")
ec2_connection.run(f"sudo apt-get install -y net-tools")
ec2_connection.run(f"sudo route add -host 169.254.169.254 reject")
Expand Down

0 comments on commit 039e6f6

Please sign in to comment.