Activity log for bug #1941785

Date Who What changed Old value New value Message
2021-08-26 17:46:15 Tim Gardner bug added bug
2021-08-26 17:47:01 Tim Gardner affects linux (Ubuntu) ec2-hibinit-agent (Ubuntu)
2021-08-26 17:47:12 Tim Gardner nominated for series Ubuntu Impish
2021-08-26 17:47:12 Tim Gardner bug task added ec2-hibinit-agent (Ubuntu Impish)
2021-08-26 17:48:23 Tim Gardner description [Impact] Current ec2 hibernation init agents do not have support for IMDSv2. [Fix] Backport a portion of https://github.com/aws/amazon-ec2-hibinit-agent.git commit 9d9bca5c61fa9256289e68c88bd3747af2f62e28 ("Add IMDSv2 support") [Test Case] Initiate hibernation in an AWS AMI configured for hibernation. Test an AMI not configured for hibernation. [Where problems could occur] Hibernation may stop functioning. [Impact] Amazon has requested support for IMDSv2 support in ec2-hibinit-agent. [Fix] Backport a portion of https://github.com/aws/amazon-ec2-hibinit-agent.git commit 9d9bca5c61fa9256289e68c88bd3747af2f62e28 ("Add IMDSv2 support") [Test Case] Initiate hibernation in an AWS AMI configured for hibernation. Test an AMI not configured for hibernation. [Where problems could occur] Hibernation may stop functioning.
2022-04-07 11:52:50 Éric St-Jean bug task added cloud-images
2022-07-18 23:00:11 Brian Murray ec2-hibinit-agent (Ubuntu Impish): status New Won't Fix
2023-05-16 22:09:59 Launchpad Janitor merge proposal linked https://code.launchpad.net/~mitchdz/ubuntu/+source/ec2-hibinit-agent/+git/ec2-hibinit-agent/+merge/443022
2023-05-16 22:35:47 Mitchell Dzurick description [Impact] Amazon has requested support for IMDSv2 support in ec2-hibinit-agent. [Fix] Backport a portion of https://github.com/aws/amazon-ec2-hibinit-agent.git commit 9d9bca5c61fa9256289e68c88bd3747af2f62e28 ("Add IMDSv2 support") [Test Case] Initiate hibernation in an AWS AMI configured for hibernation. Test an AMI not configured for hibernation. [Where problems could occur] Hibernation may stop functioning. [Impact] If an Amazon Instance is set to require IMDSv2 and enable hibernation, the instance will get stuck in a "stopping" state when hibernation is triggered, and no VM state is preserved. Changes to support IMDSv2 in ec2-hibinit-agent are needed to prevent this behavior when only using IMDSv2. [Fix] Backport a portion of https://github.com/aws/amazon-ec2-hibinit-agent.git commit 9d9bca5c61fa9256289e68c88bd3747af2f62e28 ("Add IMDSv2 support") [Test Case] # To test the failure # This test case is written for Mantic but will apply to all distributions 1. Create an amazon EC2 instance with the following properties - AMI - ami-0c2d04617e311f0d0 (For Mantic) - t3.micro - encrypted 8GB EBS volume with default key - Stop - Hibernate behavior: Enable - Metadata accessible : Enable - Metadata version Info : V2 only (token required) 2. Wait for instance to say "Running" 3. Initiate Hibernation # At this point the machine will stay stuck in the "Stopping" State and you will have to force stop the machine. # To test the fix 1. Create an amazon EC2 instance with the following properties - AMI - ami-0c2d04617e311f0d0 (For Mantic) - t3.micro - encrypted 8GB EBS volume with default key - Stop - Hibernate behavior: Enable - Metadata accessible : Enable - Metadata version Info : V2 only (token required) 2. Wait for instance to say "Running" 3. ssh into your instance 5. Create a test program ``` /bin/cat <<EOM >~/allocate_mem.py #!/usr/bin/python3 import time # Allocate 200MB chunk of memory size = 200 * 1024 * 1024 # 200MB memory_chunk = bytearray(size) print("Allocated 200MB of memory.") # Enter indefinite loop while True: time.sleep(1) # Wait for 1 second # The script will never reach this point EOM ``` 6. Run a background process ``` python3 ~/allocate_mem.py & ``` 7. Hibernate the instance 8. Wait for Instance to be in "Stopped" State 9. Start the intsance 10. ssh into instance 11. Check that the process is running $ ps aux | grep allocate_mem ubuntu 2532 1.1 23.0 221948 213248 pts/0 S 13:43 0:00 python3 /home/ubuntu/allocate_mem.py [Where problems could occur] Hibernation may not properly occur which would result in a loss of VM state and the end user needing to force stop the instance.
2023-05-17 18:03:21 Athos Ribeiro tags server-todo
2023-05-17 18:05:08 Athos Ribeiro bug added subscriber Ubuntu Server
2023-05-17 20:13:01 Robby Pocase ec2-hibinit-agent (Ubuntu): status New In Progress
2023-05-17 20:22:59 Lena Voytek nominated for series Ubuntu Lunar
2023-05-17 20:22:59 Lena Voytek bug task added ec2-hibinit-agent (Ubuntu Lunar)
2023-05-17 20:22:59 Lena Voytek nominated for series Ubuntu Focal
2023-05-17 20:22:59 Lena Voytek bug task added ec2-hibinit-agent (Ubuntu Focal)
2023-05-17 20:22:59 Lena Voytek nominated for series Ubuntu Jammy
2023-05-17 20:22:59 Lena Voytek bug task added ec2-hibinit-agent (Ubuntu Jammy)
2023-05-17 20:22:59 Lena Voytek nominated for series Ubuntu Kinetic
2023-05-17 20:22:59 Lena Voytek bug task added ec2-hibinit-agent (Ubuntu Kinetic)
2023-05-17 20:23:33 Lena Voytek nominated for series Ubuntu Mantic
2023-05-17 20:23:33 Lena Voytek bug task added ec2-hibinit-agent (Ubuntu Mantic)
2023-05-17 20:24:04 Mitchell Dzurick ec2-hibinit-agent (Ubuntu Focal): assignee Mitchell Dzurick (mitchdz)
2023-05-17 20:24:07 Mitchell Dzurick ec2-hibinit-agent (Ubuntu Jammy): assignee Mitchell Dzurick (mitchdz)
2023-05-17 20:24:08 Mitchell Dzurick ec2-hibinit-agent (Ubuntu Kinetic): assignee Mitchell Dzurick (mitchdz)
2023-05-17 20:24:10 Mitchell Dzurick ec2-hibinit-agent (Ubuntu Lunar): assignee Mitchell Dzurick (mitchdz)
2023-05-17 20:24:11 Mitchell Dzurick ec2-hibinit-agent (Ubuntu Mantic): assignee Mitchell Dzurick (mitchdz)
2023-05-17 20:24:25 Mitchell Dzurick ec2-hibinit-agent (Ubuntu Focal): status New In Progress
2023-05-17 20:24:27 Mitchell Dzurick ec2-hibinit-agent (Ubuntu Jammy): status New In Progress
2023-05-17 20:24:29 Mitchell Dzurick ec2-hibinit-agent (Ubuntu Lunar): status New In Progress
2023-05-17 20:24:31 Mitchell Dzurick ec2-hibinit-agent (Ubuntu Kinetic): status New In Progress
2023-05-17 21:47:43 Launchpad Janitor merge proposal linked https://code.launchpad.net/~mitchdz/ubuntu/+source/ec2-hibinit-agent/+git/ec2-hibinit-agent/+merge/443145
2023-05-17 21:51:56 Launchpad Janitor merge proposal linked https://code.launchpad.net/~mitchdz/ubuntu/+source/ec2-hibinit-agent/+git/ec2-hibinit-agent/+merge/443146
2023-05-17 21:54:51 Launchpad Janitor merge proposal linked https://code.launchpad.net/~mitchdz/ubuntu/+source/ec2-hibinit-agent/+git/ec2-hibinit-agent/+merge/443147
2023-05-17 21:57:11 Launchpad Janitor merge proposal linked https://code.launchpad.net/~mitchdz/ubuntu/+source/ec2-hibinit-agent/+git/ec2-hibinit-agent/+merge/443148
2023-05-23 13:55:20 Mitchell Dzurick description [Impact] If an Amazon Instance is set to require IMDSv2 and enable hibernation, the instance will get stuck in a "stopping" state when hibernation is triggered, and no VM state is preserved. Changes to support IMDSv2 in ec2-hibinit-agent are needed to prevent this behavior when only using IMDSv2. [Fix] Backport a portion of https://github.com/aws/amazon-ec2-hibinit-agent.git commit 9d9bca5c61fa9256289e68c88bd3747af2f62e28 ("Add IMDSv2 support") [Test Case] # To test the failure # This test case is written for Mantic but will apply to all distributions 1. Create an amazon EC2 instance with the following properties - AMI - ami-0c2d04617e311f0d0 (For Mantic) - t3.micro - encrypted 8GB EBS volume with default key - Stop - Hibernate behavior: Enable - Metadata accessible : Enable - Metadata version Info : V2 only (token required) 2. Wait for instance to say "Running" 3. Initiate Hibernation # At this point the machine will stay stuck in the "Stopping" State and you will have to force stop the machine. # To test the fix 1. Create an amazon EC2 instance with the following properties - AMI - ami-0c2d04617e311f0d0 (For Mantic) - t3.micro - encrypted 8GB EBS volume with default key - Stop - Hibernate behavior: Enable - Metadata accessible : Enable - Metadata version Info : V2 only (token required) 2. Wait for instance to say "Running" 3. ssh into your instance 5. Create a test program ``` /bin/cat <<EOM >~/allocate_mem.py #!/usr/bin/python3 import time # Allocate 200MB chunk of memory size = 200 * 1024 * 1024 # 200MB memory_chunk = bytearray(size) print("Allocated 200MB of memory.") # Enter indefinite loop while True: time.sleep(1) # Wait for 1 second # The script will never reach this point EOM ``` 6. Run a background process ``` python3 ~/allocate_mem.py & ``` 7. Hibernate the instance 8. Wait for Instance to be in "Stopped" State 9. Start the intsance 10. ssh into instance 11. Check that the process is running $ ps aux | grep allocate_mem ubuntu 2532 1.1 23.0 221948 213248 pts/0 S 13:43 0:00 python3 /home/ubuntu/allocate_mem.py [Where problems could occur] Hibernation may not properly occur which would result in a loss of VM state and the end user needing to force stop the instance. [Impact] If an Amazon Instance is set to require IMDSv2 and enable hibernation, the instance will get stuck in a "stopping" state when hibernation is triggered, and no VM state is preserved. Changes to support IMDSv2 in ec2-hibinit-agent are needed to prevent this behavior when only using IMDSv2. [Fix] Backport a portion of https://github.com/aws/amazon-ec2-hibinit-agent.git commit 9d9bca5c61fa9256289e68c88bd3747af2f62e28 ("Add IMDSv2 support") [Test Case] # To test the failure # This test case is written for Mantic but will apply to all distributions 1. Create an amazon EC2 instance with the following properties    - AMI - ami-0c2d04617e311f0d0 (For Mantic)    - t3.micro    - encrypted 8GB EBS volume with default key    - Stop - Hibernate behavior: Enable    - Metadata accessible : Enable    - Metadata version Info : V2 only (token required) 2. Wait for instance to say "Running" 3. Initiate Hibernation # At this point the machine will stay stuck in the "Stopping" State and you will have to force stop the machine. # To test the fix 1. Create an amazon EC2 instance with the following properties    - AMI - ami-0c2d04617e311f0d0 (For Mantic)    - t3.micro    - encrypted 8GB EBS volume with default key    - Stop - Hibernate behavior: Enable    - Metadata accessible : Enable    - Metadata version Info : V2 only (token required) 2. Wait for instance to say "Running" 3. ssh into your instance 4. (Before Change is Merged) add PPA for updated package 5. Create a test program ``` /bin/cat <<EOM >~/allocate_mem.py #!/usr/bin/python3 import time # Allocate 200MB chunk of memory size = 200 * 1024 * 1024 # 200MB memory_chunk = bytearray(size) print("Allocated 200MB of memory.") # Enter indefinite loop while True:     time.sleep(1) # Wait for 1 second # The script will never reach this point EOM ``` 6. Run a background process ``` python3 ~/allocate_mem.py & ``` 7. Hibernate the instance 8. Wait for Instance to be in "Stopped" State 9. Start the intsance 10. ssh into instance 11. Check that the process is running $ ps aux | grep allocate_mem ubuntu 2532 1.1 23.0 221948 213248 pts/0 S 13:43 0:00 python3 /home/ubuntu/allocate_mem.py [Where problems could occur] Hibernation may not properly occur which would result in a loss of VM state and the end user needing to force stop the instance.
2023-05-23 13:56:56 Mitchell Dzurick description [Impact] If an Amazon Instance is set to require IMDSv2 and enable hibernation, the instance will get stuck in a "stopping" state when hibernation is triggered, and no VM state is preserved. Changes to support IMDSv2 in ec2-hibinit-agent are needed to prevent this behavior when only using IMDSv2. [Fix] Backport a portion of https://github.com/aws/amazon-ec2-hibinit-agent.git commit 9d9bca5c61fa9256289e68c88bd3747af2f62e28 ("Add IMDSv2 support") [Test Case] # To test the failure # This test case is written for Mantic but will apply to all distributions 1. Create an amazon EC2 instance with the following properties    - AMI - ami-0c2d04617e311f0d0 (For Mantic)    - t3.micro    - encrypted 8GB EBS volume with default key    - Stop - Hibernate behavior: Enable    - Metadata accessible : Enable    - Metadata version Info : V2 only (token required) 2. Wait for instance to say "Running" 3. Initiate Hibernation # At this point the machine will stay stuck in the "Stopping" State and you will have to force stop the machine. # To test the fix 1. Create an amazon EC2 instance with the following properties    - AMI - ami-0c2d04617e311f0d0 (For Mantic)    - t3.micro    - encrypted 8GB EBS volume with default key    - Stop - Hibernate behavior: Enable    - Metadata accessible : Enable    - Metadata version Info : V2 only (token required) 2. Wait for instance to say "Running" 3. ssh into your instance 4. (Before Change is Merged) add PPA for updated package 5. Create a test program ``` /bin/cat <<EOM >~/allocate_mem.py #!/usr/bin/python3 import time # Allocate 200MB chunk of memory size = 200 * 1024 * 1024 # 200MB memory_chunk = bytearray(size) print("Allocated 200MB of memory.") # Enter indefinite loop while True:     time.sleep(1) # Wait for 1 second # The script will never reach this point EOM ``` 6. Run a background process ``` python3 ~/allocate_mem.py & ``` 7. Hibernate the instance 8. Wait for Instance to be in "Stopped" State 9. Start the intsance 10. ssh into instance 11. Check that the process is running $ ps aux | grep allocate_mem ubuntu 2532 1.1 23.0 221948 213248 pts/0 S 13:43 0:00 python3 /home/ubuntu/allocate_mem.py [Where problems could occur] Hibernation may not properly occur which would result in a loss of VM state and the end user needing to force stop the instance. [Impact] If an Amazon Instance is set to require IMDSv2 and enable hibernation, the instance will get stuck in a "stopping" state when hibernation is triggered, and no VM state is preserved. Changes to support IMDSv2 in ec2-hibinit-agent are needed to prevent this behavior when only using IMDSv2. [Fix] Backport a portion of https://github.com/aws/amazon-ec2-hibinit-agent.git commit 9d9bca5c61fa9256289e68c88bd3747af2f62e28 ("Add IMDSv2 support") [Test Case] # To test the failure # This test case is written for Mantic but will apply to all distributions 1. Create an amazon EC2 instance with the following properties    - AMI - ami-0c2d04617e311f0d0 (For Mantic)    - t3.micro    - encrypted 8GB EBS volume with default key    - Stop - Hibernate behavior: Enable    - Metadata accessible : Enable    - Metadata version Info : V2 only (token required) 2. Wait for instance to say "Running" 3. Initiate Hibernation # At this point the machine will stay stuck in the "Stopping" State and you will have to force stop the machine. # To test the fix 1. Create an amazon EC2 instance with the following properties    - AMI - ami-0c2d04617e311f0d0 (For Mantic)    - t3.micro    - encrypted 8GB EBS volume with default key    - Stop - Hibernate behavior: Enable    - Metadata accessible : Enable    - Metadata version Info : V2 only (token required) 2. Wait for instance to say "Running" 3. ssh into your instance 4. (Before Change is Merged) add PPA for updated package; apt update && apt upgrade 5. Create a test program ``` /bin/cat <<EOM >~/allocate_mem.py #!/usr/bin/python3 import time # Allocate 200MB chunk of memory size = 200 * 1024 * 1024 # 200MB memory_chunk = bytearray(size) print("Allocated 200MB of memory.") # Enter indefinite loop while True:     time.sleep(1) # Wait for 1 second # The script will never reach this point EOM ``` 6. Run a background process ``` python3 ~/allocate_mem.py & ``` 7. Hibernate the instance 8. Wait for Instance to be in "Stopped" State 9. Start the intsance 10. ssh into instance 11. Check that the process is running $ ps aux | grep allocate_mem ubuntu 2532 1.1 23.0 221948 213248 pts/0 S 13:43 0:00 python3 /home/ubuntu/allocate_mem.py [Where problems could occur] Hibernation may not properly occur which would result in a loss of VM state and the end user needing to force stop the instance.
2023-05-23 16:30:44 Launchpad Janitor ec2-hibinit-agent (Ubuntu Mantic): status In Progress Fix Released
2023-05-31 13:54:39 Robie Basak ec2-hibinit-agent (Ubuntu Lunar): status In Progress Fix Committed
2023-05-31 13:54:40 Robie Basak bug added subscriber Ubuntu Stable Release Updates Team
2023-05-31 13:54:42 Robie Basak bug added subscriber SRU Verification
2023-05-31 13:54:44 Robie Basak tags server-todo server-todo verification-needed verification-needed-lunar
2023-05-31 13:54:51 Robie Basak ec2-hibinit-agent (Ubuntu Kinetic): status In Progress Fix Committed
2023-05-31 13:54:54 Robie Basak tags server-todo verification-needed verification-needed-lunar server-todo verification-needed verification-needed-kinetic verification-needed-lunar
2023-05-31 13:55:01 Robie Basak ec2-hibinit-agent (Ubuntu Jammy): status In Progress Fix Committed
2023-05-31 13:55:04 Robie Basak tags server-todo verification-needed verification-needed-kinetic verification-needed-lunar server-todo verification-needed verification-needed-jammy verification-needed-kinetic verification-needed-lunar
2023-05-31 13:55:10 Robie Basak ec2-hibinit-agent (Ubuntu Focal): status In Progress Fix Committed
2023-05-31 13:55:14 Robie Basak tags server-todo verification-needed verification-needed-jammy verification-needed-kinetic verification-needed-lunar server-todo verification-needed verification-needed-focal verification-needed-jammy verification-needed-kinetic verification-needed-lunar
2023-06-06 22:27:27 Mitchell Dzurick tags server-todo verification-needed verification-needed-focal verification-needed-jammy verification-needed-kinetic verification-needed-lunar server-todo verification-done-focal verification-done-jammy verification-done-kinetic verification-done-lunar verification-needed
2023-06-12 11:49:46 Launchpad Janitor ec2-hibinit-agent (Ubuntu Lunar): status Fix Committed Fix Released
2023-06-12 11:49:49 Łukasz Zemczak removed subscriber Ubuntu Stable Release Updates Team
2023-06-12 11:54:10 Launchpad Janitor ec2-hibinit-agent (Ubuntu Kinetic): status Fix Committed Fix Released
2023-06-12 12:01:49 Launchpad Janitor ec2-hibinit-agent (Ubuntu Jammy): status Fix Committed Fix Released
2023-06-12 12:07:51 Launchpad Janitor ec2-hibinit-agent (Ubuntu Focal): status Fix Committed Fix Released
2023-06-21 02:21:31 Launchpad Janitor merge proposal linked https://code.launchpad.net/~mitchdz/ubuntu/+source/ec2-hibinit-agent/+git/ec2-hibinit-agent/+merge/445089
2023-11-21 22:26:57 Athos Ribeiro nominated for series Ubuntu Bionic
2023-11-21 22:26:57 Athos Ribeiro bug task added ec2-hibinit-agent (Ubuntu Bionic)
2023-11-21 22:26:57 Athos Ribeiro nominated for series Ubuntu Xenial
2023-11-21 22:26:57 Athos Ribeiro bug task added ec2-hibinit-agent (Ubuntu Xenial)
2023-11-21 23:06:33 Mitchell Dzurick merge proposal linked https://code.launchpad.net/~mitchdz/ubuntu/+source/ec2-hibinit-agent/+git/ec2-hibinit-agent/+merge/456027
2023-11-21 23:06:42 Mitchell Dzurick merge proposal linked https://code.launchpad.net/~mitchdz/ubuntu/+source/ec2-hibinit-agent/+git/ec2-hibinit-agent/+merge/456028
2023-11-22 17:38:31 Mitchell Dzurick tags server-todo verification-done-focal verification-done-jammy verification-done-kinetic verification-done-lunar verification-needed verification-done-focal verification-done-jammy verification-done-kinetic verification-done-lunar verification-needed
2023-11-28 23:02:50 Mitchell Dzurick ec2-hibinit-agent (Ubuntu Xenial): assignee Mitchell Dzurick (mitchdz)
2023-11-28 23:02:59 Mitchell Dzurick ec2-hibinit-agent (Ubuntu Bionic): assignee Mitchell Dzurick (mitchdz)
2023-11-30 00:24:00 Mitchell Dzurick ec2-hibinit-agent (Ubuntu Xenial): status New Fix Released
2023-11-30 00:24:12 Mitchell Dzurick ec2-hibinit-agent (Ubuntu Bionic): status New Fix Released