Hibinit-agent starts even when instance hibernation is disabled

Bug #1817926 reported by Balint Reczey
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ec2-hibinit-agent (Ubuntu)
Fix Released
Undecided
Unassigned
Trusty
Won't Fix
Undecided
Unassigned
Xenial
Fix Released
Undecided
Unassigned
Bionic
Fix Released
Undecided
Unassigned
Cosmic
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

 * The preinstalled ec2-hibinit-agent package may prepare the instance for hibernation even when hibernation is disabled. This preparation includes setting up a swap file bigger or the same size as than the instance's RAM which is wasted if it is not used for hibernation.
 * The fix is checking urlopen()'s return value against both 'false' and b'false', not just against 'false' that worked with Python 2.

[Test Case]

 0. Start a c4 instance from a public image, e.g. ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-20180912
 1. Verify that hibernation is disabled:
   $ curl http://169.254.169.254/latest/meta-data/hibernation/configured
   false

 2. Install ec2-hibinit-agent if it is not installed already
 3. Verify that it does not start:

$ service hibinit-agent status
● hibinit-agent.service - EC2 instance hibernation setup agent
   Loaded: loaded (/lib/systemd/system/hibinit-agent.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Wed 2019-02-27 15:28:47 UTC; 54s ago
     Docs: file:/usr/share/doc/ec2-hibinit-agent/README
  Process: 26448 ExecStart=/usr/bin/hibinit-agent -c /etc/hibinit-config.cfg (code=exited, status=0/SUCCESS)
 Main PID: 25259 (code=exited, status=0/SUCCESS)

Feb 27 15:28:46 ip-172-31-3-157 systemd[1]: Starting EC2 instance hibernation setup agent...
Feb 27 15:28:47 ip-172-31-3-157 /hibinit-agent[26448]: Instance Launch has not enabled Hibernation Configured Flag. hibinit-agent exiting!!
Feb 27 15:28:47 ip-172-31-3-157 hibinit-agent[26448]: Instance Launch has not enabled Hibernation Configured Flag. hibinit-agent exiting!!
Feb 27 15:28:47 ip-172-31-3-157 systemd[1]: Started EC2 instance hibernation setup agent.

 4. Start a c4 instance from an encrypted EBS-backed AMI, with hibernation enabled.
 5. Verify that hibernation is enabled:
   $ curl http://169.254.169.254/latest/meta-data/hibernation/configured
   true

 6. Install ec2-hibinit-agent if it is not installed already
 7. Verify that it does start:

$ service hibinit-agent status
● hibinit-agent.service - EC2 instance hibernation setup agent
   Loaded: loaded (/lib/systemd/system/hibinit-agent.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Wed 2019-02-27 12:50:26 UTC; 2h 30min ago
     Docs: file:/usr/share/doc/ec2-hibinit-agent/README
 Main PID: 25259 (code=exited, status=0/SUCCESS)

Feb 27 12:50:25 ip-172-31-3-157 hibinit-agent[25241]: Allocating 4194304000 bytes in /swap-hibinit
Feb 27 12:50:25 ip-172-31-3-157 hibinit-agent[25241]: Swap pre-heating is skipped, the swap blocks won't be touched during to ensure they are ready
Feb 27 12:50:25 ip-172-31-3-157 hibinit-agent[25241]: Running: mkswap /swap-hibinit
Feb 27 12:50:25 ip-172-31-3-157 hibinit-agent[25241]: Running: swapon /swap-hibinit
Feb 27 12:50:25 ip-172-31-3-157 hibinit-agent[25241]: Updating the kernel offset for the swapfile: /swap-hibinit
Feb 27 12:50:25 ip-172-31-3-157 hibinit-agent[25241]: Updating GRUB to use the device /dev/xvda1 with offset 595968 for resume
Feb 27 12:50:25 ip-172-31-3-157 hibinit-agent[25241]: GRUB configuration is updated
Feb 27 12:50:25 ip-172-31-3-157 hibinit-agent[25241]: Setting swap device to 51713 with offset 595968
Feb 27 12:50:25 ip-172-31-3-157 hibinit-agent[25241]: Done updating the swap offset. Turning swapoff
Feb 27 12:50:25 ip-172-31-3-157 hibinit-agent[25241]: Running: swapoff /swap-hibinit

 8. Start a c4 instance from an encrypted EBS-backed AMI, with hibernation disabled.
 9. Verify that hibernation is disabled:

$ curl http://169.254.169.254/latest/meta-data/hibernation/configured
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
  <title>404 - Not Found</title>
 </head>
 <body>
  <h1>404 - Not Found</h1>
 </body>
</html>

 10. Install ec2-hibinit-agent if it is not installed already
 11. Verify that it does not start:

$ service hibinit-agent status
● hibinit-agent.service - EC2 instance hibernation setup agent
   Loaded: loaded (/lib/systemd/system/hibinit-agent.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Wed 2019-02-27 15:28:47 UTC; 54s ago
     Docs: file:/usr/share/doc/ec2-hibinit-agent/README
  Process: 26448 ExecStart=/usr/bin/hibinit-agent -c /etc/hibinit-config.cfg (code=exited, status=0/SUCCESS)
 Main PID: 25259 (code=exited, status=0/SUCCESS)

Feb 27 15:28:46 ip-172-31-3-157 systemd[1]: Starting EC2 instance hibernation setup agent...
Feb 27 15:28:47 ip-172-31-3-157 /hibinit-agent[26448]: Instance Launch has not enabled Hibernation Configured Flag. hibinit-agent exiting!!
Feb 27 15:28:47 ip-172-31-3-157 hibinit-agent[26448]: Instance Launch has not enabled Hibernation Configured Flag. hibinit-agent exiting!!
Feb 27 15:28:47 ip-172-31-3-157 systemd[1]: Started EC2 instance hibernation setup agent.

[Regression Potential]

 * As a side-effect of the fix hibinit-agent may fail to start when hibernation is enabled but the verification steps include this test case to avoid introducing the regression.

[Other Info]

* Some kernels may not resume from hibernation reliably. The Trusty AMI runs the generic kernel by default, but it could not resume from hibernation while testing the package. Please use the linux-aws kernel on Trusty when verifying this bug.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ec2-hibinit-agent - 1.0.0-0ubuntu2

---------------
ec2-hibinit-agent (1.0.0-0ubuntu2) disco; urgency=medium

  * debian/gbp.conf: Use ubuntu/ prefix for tags
  * Silence swapoff when purging the package
  * Detect disabled hibernation with Python 3's urllib, too. (LP: #1817926)

 -- Balint Reczey <email address hidden> Wed, 27 Feb 2019 17:03:37 +0100

Changed in ec2-hibinit-agent (Ubuntu):
status: New → Fix Released
Revision history for this message
Robie Basak (racb) wrote : Please test proposed package

Hello Balint, or anyone else affected,

Accepted ec2-hibinit-agent into cosmic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/ec2-hibinit-agent/1.0.0-0ubuntu1~18.10.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-cosmic to verification-done-cosmic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-cosmic. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in ec2-hibinit-agent (Ubuntu Cosmic):
status: New → Fix Committed
tags: added: verification-needed verification-needed-cosmic
Changed in ec2-hibinit-agent (Ubuntu Bionic):
status: New → Fix Committed
tags: added: verification-needed-bionic
Revision history for this message
Robie Basak (racb) wrote :

Hello Balint, or anyone else affected,

Accepted ec2-hibinit-agent into bionic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/ec2-hibinit-agent/1.0.0-0ubuntu1~18.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-bionic to verification-done-bionic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-bionic. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in ec2-hibinit-agent (Ubuntu Xenial):
status: New → Fix Committed
tags: added: verification-needed-xenial
Revision history for this message
Robie Basak (racb) wrote :

Hello Balint, or anyone else affected,

Accepted ec2-hibinit-agent into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/ec2-hibinit-agent/1.0.0-0ubuntu1~16.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-xenial to verification-done-xenial. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-xenial. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in ec2-hibinit-agent (Ubuntu Trusty):
status: New → Fix Committed
tags: added: verification-needed-trusty
Revision history for this message
Robie Basak (racb) wrote :

Hello Balint, or anyone else affected,

Accepted ec2-hibinit-agent into trusty-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/ec2-hibinit-agent/1.0.0-0ubuntu1~14.04.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-trusty to verification-done-trusty. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-trusty. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

tags: added: id-5c0aeca25b782a520d7ab037
tags: added: id-5c000da0aa62bc2994611bd2
Balint Reczey (rbalint)
description: updated
Revision history for this message
Balint Reczey (rbalint) wrote :
Revision history for this message
Brian Murray (brian-murray) wrote :

Hello Balint, or anyone else affected,

Accepted ec2-hibinit-agent into cosmic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/ec2-hibinit-agent/1.0.0-0ubuntu4~18.10.0 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-cosmic to verification-done-cosmic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-cosmic. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Revision history for this message
Brian Murray (brian-murray) wrote :

Hello Balint, or anyone else affected,

Accepted ec2-hibinit-agent into bionic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/ec2-hibinit-agent/1.0.0-0ubuntu4~18.04.0 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-bionic to verification-done-bionic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-bionic. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Revision history for this message
Brian Murray (brian-murray) wrote :

Hello Balint, or anyone else affected,

Accepted ec2-hibinit-agent into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/ec2-hibinit-agent/1.0.0-0ubuntu4~16.04.0 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-xenial to verification-done-xenial. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-xenial. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Revision history for this message
Brian Murray (brian-murray) wrote :

Hello Balint, or anyone else affected,

Accepted ec2-hibinit-agent into trusty-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/ec2-hibinit-agent/1.0.0-0ubuntu4~14.04.0 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-trusty to verification-done-trusty. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-trusty. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Revision history for this message
Balint Reczey (rbalint) wrote :
Download full text (4.4 KiB)

Verified with 1.0.0-0ubuntu4~18.10.0 on Cosmic:

...
+ sleep 3
+ curl http://169.254.169.254/latest/meta-data/hibernation/configured
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
  <title>404 - Not Found</title>
 </head>
 <body>
  <h1>404 - Not Found</h1>
 </body>
</html>
+ service hibinit-agent status
● hibinit-agent.service - EC2 instance hibernation setup agent
   Loaded: loaded (/lib/systemd/system/hibinit-agent.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Tue 2019-03-12 11:25:35 UTC; 4s ago
     Docs: file:/usr/share/doc/ec2-hibinit-agent/README

Mar 12 11:25:35 ip-172-31-9-91 systemd[1]: Starting EC2 instance hibernation setup agent...
Mar 12 11:25:35 ip-172-31-9-91 /hibinit-agent[8693]: Instance Launch has not enabled Hibernation Configured Flag. hi
binit-agent exiting!!
Mar 12 11:25:35 ip-172-31-9-91 hibinit-agent[8693]: Instance Launch has not enabled Hibernation Configured Flag. hib
init-agent exiting!!
Mar 12 11:25:35 ip-172-31-9-91 systemd[1]: Started EC2 instance hibernation setup agent.
...

...
+ sleep 3
+ curl http://169.254.169.254/latest/meta-data/hibernation/configured
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
  <title>404 - Not Found</title>
 </head>
 <body>
  <h1>404 - Not Found</h1>
 </body>
</html>
+ service hibinit-agent status
● hibinit-agent.service - EC2 instance hibernation setup agent
   Loaded: loaded (/lib/systemd/system/hibinit-agent.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Tue 2019-03-12 11:50:42 UTC; 4s ago
     Docs: file:/usr/share/doc/ec2-hibinit-agent/README

Mar 12 11:50:41 ip-172-31-8-209 systemd[1]: Starting EC2 instance hibernation setup agent...
Mar 12 11:50:42 ip-172-31-8-209 /hibinit-agent[12838]: Instance Launch has not enabled Hibernation Configured Flag.
hibinit-agent exiting!!
Mar 12 11:50:42 ip-172-31-8-209 hibinit-agent[12838]: Instance Launch has not enabled Hibernation Configured Flag. h
ibinit-agent exiting!!
Mar 12 11:50:42 ip-172-31-8-209 systemd[1]: Started EC2 instance hibernation setup agent.
+ true
...

...
+ sudo apt-get install -qq ec2-hibinit-agent
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package ec2-hibinit-agent.
(Reading database ... 66197 files and directories currently installed.)
Preparing to unpack .../ec2-hibinit-agent_1.0.0-0ubuntu4~18.10.0_all.deb ...
Unpacking ec2-hibinit-agent (1.0.0-0ubuntu4~18.10.0) ...
Setting up ec2-hibinit-agent (1.0.0-0ubuntu4~18.10.0) ...
Created symlink /etc/systemd/system/multi-user.target.wants/hibinit-agent.service → /lib/systemd/system/hibinit-agent.service.
+ sleep 3
+ curl http://169.254.169.254/latest/meta-data/hibernation/configured
true+ service hibinit-agent status
● hibinit-agent.service - EC2 instan...

Read more...

tags: added: verification-done-cosmic
removed: verification-needed-cosmic
Revision history for this message
Balint Reczey (rbalint) wrote :
Download full text (5.9 KiB)

Verified with 1.0.0-0ubuntu4~18.04.0 on Bionic:

+ sudo apt-get install -qq ec2-hibinit-agent
Selecting previously unselected package ec2-hibinit-agent.
(Reading database ... 84048 files and directories currently installed.)
Preparing to unpack .../ec2-hibinit-agent_1.0.0-0ubuntu4~18.04.0_all.deb ...
Unpacking ec2-hibinit-agent (1.0.0-0ubuntu4~18.04.0) ...
Setting up ec2-hibinit-agent (1.0.0-0ubuntu4~18.04.0) ...
Created symlink /etc/systemd/system/multi-user.target.wants/hibinit-agent.service → /lib/systemd/system/hibinit-agent.service.
+ sleep 3
+ curl http://169.254.169.254/latest/meta-data/hibernation/configured
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
  <title>404 - Not Found</title>
 </head>
 <body>
  <h1>404 - Not Found</h1>
 </body>
</html>
+ service hibinit-agent status
● hibinit-agent.service - EC2 instance hibernation setup agent
   Loaded: loaded (/lib/systemd/system/hibinit-agent.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Tue 2019-03-12 11:54:08 UTC; 4s ago
     Docs: file:/usr/share/doc/ec2-hibinit-agent/README

Mar 12 11:54:08 ip-172-31-10-41 systemd[1]: Starting EC2 instance hibernation setup agent...
Mar 12 11:54:08 ip-172-31-10-41 /hibinit-agent[1816]: Instance Launch has not enabled Hibernation Configured Flag. h
Mar 12 11:54:08 ip-172-31-10-41 hibinit-agent[1816]: Instance Launch has not enabled Hibernation Configured Flag. hi
Mar 12 11:54:08 ip-172-31-10-41 systemd[1]: Started EC2 instance hibernation setup agent.
+ true

+ sudo apt-get install -qq ec2-hibinit-agent
Selecting previously unselected package ec2-hibinit-agent.
(Reading database ... 84048 files and directories currently installed.)
Preparing to unpack .../ec2-hibinit-agent_1.0.0-0ubuntu4~18.04.0_all.deb ...
Unpacking ec2-hibinit-agent (1.0.0-0ubuntu4~18.04.0) ...
Setting up ec2-hibinit-agent (1.0.0-0ubuntu4~18.04.0) ...
Created symlink /etc/systemd/system/multi-user.target.wants/hibinit-agent.service → /lib/systemd/system/hibinit-agent.service.
+ sleep 3
+ curl http://169.254.169.254/latest/meta-data/hibernation/configured
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
  <title>404 - Not Found</title>
 </head>
 <body>
  <h1>404 - Not Found</h1>
 </body>
</html>
+ service hibinit-agent status
● hibinit-agent.service - EC2 instance hibernation setup agent
   Loaded: loaded (/lib/systemd/system/hibinit-agent.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Tue 2019-03-12 11:54:23 UTC; 4s ago
     Docs: file:/usr/share/doc/ec2-hibinit-agent/README

Mar 12 11:54:23 ip-172-31-5-191 systemd[1]: Starting EC2 instance hibernation setup agent...
Mar 12 11:54:23 ip-172-31-5-191 /hibinit-agent[28551]: Instance Launch has not enabled Hibernation Configured Flag.
Mar 12 11:54:23 ip-172-31-5-191 hibinit-agen...

Read more...

tags: added: verification-done-bionic
removed: verification-needed-bionic
Revision history for this message
Balint Reczey (rbalint) wrote :
Download full text (5.6 KiB)

Verified with 1.0.0-0ubuntu4~16.04.0 on Xenial:

+ sudo apt-get install -qq ec2-hibinit-agent
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76, <> line 1.)
debconf: falling back to frontend: Readline
Selecting previously unselected package ec2-hibinit-agent.
(Reading database ... 38529 files and directories currently installed.)
Preparing to unpack .../ec2-hibinit-agent_1.0.0-0ubuntu4~16.04.0_all.deb ...
Unpacking ec2-hibinit-agent (1.0.0-0ubuntu4~16.04.0) ...
Setting up ec2-hibinit-agent (1.0.0-0ubuntu4~16.04.0) ...
+ sleep 3
+ curl http://169.254.169.254/latest/meta-data/hibernation/configured
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
  <title>404 - Not Found</title>
 </head>
 <body>
  <h1>404 - Not Found</h1>
 </body>
</html>
+ service hibinit-agent status
● hibinit-agent.service - EC2 instance hibernation setup agent
   Loaded: loaded (/lib/systemd/system/hibinit-agent.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Tue 2019-03-12 11:53:46 UTC; 3s ago
     Docs: file:/usr/share/doc/ec2-hibinit-agent/README

Mar 12 11:53:46 ip-172-31-0-169 systemd[1]: Starting EC2 instance hibernation setup agent...
Mar 12 11:53:46 ip-172-31-0-169 /hibinit-agent[5933]: Instance Launch has not enabled Hibernation Configured Flag. h
ibinit-agent exiting!!
Mar 12 11:53:46 ip-172-31-0-169 hibinit-agent[5933]: Instance Launch has not enabled Hibernation Configured Flag. hi
binit-agent exiting!!
Mar 12 11:53:46 ip-172-31-0-169 systemd[1]: Started EC2 instance hibernation setup agent.
+ true
+ sudo apt-get install -qq screen

+ sudo apt-get install -qq ec2-hibinit-agent
+ sleep 3
+ curl http://169.254.169.254/latest/meta-data/hibernation/configured
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
  <title>404 - Not Found</title>
 </head>
 <body>
  <h1>404 - Not Found</h1>
 </body>
</html>
+ service hibinit-agent status
● hibinit-agent.service - EC2 instance hibernation setup agent
   Loaded: loaded (/lib/systemd/system/hibinit-agent.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Tue 2019-03-12 11:39:16 UTC; 15min ago
     Docs: file:/usr/share/doc/ec2-hibinit-agent/README

Mar 12 11:39:16 ip-172-31-11-52 systemd[1]: Starting EC2 instance hibernation setup agent...
Mar 12 11:39:16 ip-172-31-11-52 /hibinit-agent[1730]: Instance Launch has not enabled Hibernation Configured Flag. h
Mar 12 11:39:16 ip-172-31-11-52 hibinit-agent[1730]: Instance Launch has not enabled Hibernation Configured Flag. hi
Mar 12 11:39:16 ip-172-31-11-52 systemd[1]: Started EC2 instance hibernation setup agent.
+ true
+ sudo apt-get install -qq screen
+ screen -d -m top
ubuntu@ip-172-3...

Read more...

tags: added: verification-done-xenial
removed: verification-needed-xenial
Changed in ec2-hibinit-agent (Ubuntu Trusty):
status: Fix Committed → Won't Fix
tags: removed: verification-needed-trusty
tags: added: verification-done
removed: verification-needed
Revision history for this message
Balint Reczey (rbalint) wrote :

Trusty will not include the package.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ec2-hibinit-agent - 1.0.0-0ubuntu4~18.10.0

---------------
ec2-hibinit-agent (1.0.0-0ubuntu4~18.10.0) cosmic; urgency=medium

  * Backport to Cosmic (LP: #1812166)

ec2-hibinit-agent (1.0.0-0ubuntu4) disco; urgency=medium

  * Update grub configuration snippet even when it exists but has outdated
    content

ec2-hibinit-agent (1.0.0-0ubuntu3) disco; urgency=medium

  * Refer to root partition in resume=... the same way as GRUB2 refers to it
    (LP: #1818150)

ec2-hibinit-agent (1.0.0-0ubuntu2) disco; urgency=medium

  * debian/gbp.conf: Use ubuntu/ prefix for tags
  * Silence swapoff when purging the package
  * Detect disabled hibernation with Python 3's urllib, too. (LP: #1817926)

ec2-hibinit-agent (1.0.0-0ubuntu1) disco; urgency=medium

  * Initial release based on packaging of hibagent

 -- Balint Reczey <email address hidden> Fri, 01 Mar 2019 23:05:14 +0100

Changed in ec2-hibinit-agent (Ubuntu Cosmic):
status: Fix Committed → Fix Released
Revision history for this message
Chris Halse Rogers (raof) wrote : Update Released

The verification of the Stable Release Update for ec2-hibinit-agent has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ec2-hibinit-agent - 1.0.0-0ubuntu4~18.04.0

---------------
ec2-hibinit-agent (1.0.0-0ubuntu4~18.04.0) bionic; urgency=medium

  * Backport to Bionic (LP: #1812166)

ec2-hibinit-agent (1.0.0-0ubuntu4) disco; urgency=medium

  * Update grub configuration snippet even when it exists but has outdated
    content

ec2-hibinit-agent (1.0.0-0ubuntu3) disco; urgency=medium

  * Refer to root partition in resume=... the same way as GRUB2 refers to it
    (LP: #1818150)

ec2-hibinit-agent (1.0.0-0ubuntu2) disco; urgency=medium

  * debian/gbp.conf: Use ubuntu/ prefix for tags
  * Silence swapoff when purging the package
  * Detect disabled hibernation with Python 3's urllib, too. (LP: #1817926)

ec2-hibinit-agent (1.0.0-0ubuntu1) disco; urgency=medium

  * Initial release based on packaging of hibagent

 -- Balint Reczey <email address hidden> Fri, 01 Mar 2019 23:08:55 +0100

Changed in ec2-hibinit-agent (Ubuntu Bionic):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ec2-hibinit-agent - 1.0.0-0ubuntu4~16.04.0

---------------
ec2-hibinit-agent (1.0.0-0ubuntu4~16.04.0) xenial; urgency=medium

  * Backport to Xenial (LP: #1812166)

ec2-hibinit-agent (1.0.0-0ubuntu4) disco; urgency=medium

  * Update grub configuration snippet even when it exists but has outdated
    content

ec2-hibinit-agent (1.0.0-0ubuntu3) disco; urgency=medium

  * Refer to root partition in resume=... the same way as GRUB2 refers to it
    (LP: #1818150)

ec2-hibinit-agent (1.0.0-0ubuntu2) disco; urgency=medium

  * debian/gbp.conf: Use ubuntu/ prefix for tags
  * Silence swapoff when purging the package
  * Detect disabled hibernation with Python 3's urllib, too. (LP: #1817926)

ec2-hibinit-agent (1.0.0-0ubuntu1) disco; urgency=medium

  * Initial release based on packaging of hibagent

 -- Balint Reczey <email address hidden> Fri, 01 Mar 2019 23:16:18 +0100

Changed in ec2-hibinit-agent (Ubuntu Xenial):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.