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 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:51:40 UTC; 2s ago
     Docs: file:/usr/share/doc/ec2-hibinit-agent/README
 Main PID: 12828 (code=exited, status=0/SUCCESS)

Mar 12 11:51:40 ip-172-31-11-18 hibinit-agent[12804]: Allocating 4194304000 
bytes in /swap-hibinit
Mar 12 11:51:40 ip-172-31-11-18 hibinit-agent[12804]: Swap pre-heating is 
skipped, the swap blocks won't be touched
 during to ensure they are ready
Mar 12 11:51:40 ip-172-31-11-18 hibinit-agent[12804]: Running: mkswap 
/swap-hibinit
Mar 12 11:51:40 ip-172-31-11-18 hibinit-agent[12804]: Running: swapon 
/swap-hibinit
Mar 12 11:51:40 ip-172-31-11-18 hibinit-agent[12804]: Updating the kernel 
offset for the swapfile: /swap-hibinit
Mar 12 11:51:40 ip-172-31-11-18 hibinit-agent[12804]: Updating GRUB to use the 
device PARTUUID=71d081c0-01 with off
set 245760 for resume
Mar 12 11:51:40 ip-172-31-11-18 hibinit-agent[12804]: GRUB configuration is 
updated
Mar 12 11:51:40 ip-172-31-11-18 hibinit-agent[12804]: Setting swap device to 
51713 with offset 245760
Mar 12 11:51:40 ip-172-31-11-18 hibinit-agent[12804]: Done updating the swap 
offset. Turning swapoff
Mar 12 11:51:40 ip-172-31-11-18 hibinit-agent[12804]: Running: swapoff 
/swap-hibinit
+ true
...


** Tags removed: verification-needed-cosmic
** Tags added: verification-done-cosmic

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1817926

Title:
  Hibinit-agent starts even when instance hibernation is disabled

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ec2-hibinit-agent/+bug/1817926/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to