Bug 2322884 - ec2-hibinit-agent
Summary: ec2-hibinit-agent
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: ec2-hibinit-agent
Version: epel8
Hardware: other
OS: All
unspecified
high
Target Milestone: ---
Assignee: Dominik Wombacher
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-31 03:55 UTC by Mathew Nobel Mammen
Modified: 2024-11-18 03:13 UTC (History)
4 users (show)

Fixed In Version: ec2-hibinit-agent-1.0.9-4.fc42 ec2-hibinit-agent-1.0.9-4.el9 ec2-hibinit-agent-1.0.9-4.fc40 ec2-hibinit-agent-1.0.9-4.el8 ec2-hibinit-agent-1.0.9-4.fc41
Clone Of:
Environment:
Last Closed: 2024-11-08 13:29:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Mathew Nobel Mammen 2024-10-31 03:55:16 UTC
Description of problem:
Hibernation on RHEL8/RHEL9 with OS swapfile using ec2-hibinit-agent from EPEL does not hibernate.

Version-Release number of selected component (if applicable):
Latest

How reproducible: All the time

Steps to Reproduce:
1.   Update all packages and install ec2-hibinit-agent
~~~
    # yum update -y
 RHEL8   # yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y
 RHEL9: # sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
    # yum install ec2-hibinit-agent -y
    # systemctl enable hibinit-agent.service
    # reboot
~~~

2.    Activate swapfile
~~~
    # dd if=/dev/zero of=/swapfile_01 bs=100M count=20
    # chmod 600 /swapfile_01
    # mkswap /swapfile_01
    # swapon /swapfile_01
    # swapon -s
~~~

3.    Check last reboot
~~~
    # last reboot

    Hibernate and restart
    # aws ec2 stop-instances --instance-ids (instance ID) --hibernate
    # aws ec2 start-instances --instance-ids (instance ID)
~~~

4.    Check last reboot
~~~
    # last reboot
~~~


Actual results:

On creating a swap file on RHEl8 or RHEL9 it takes default priority(-2) and the /swap controlled by "hibinit-agent" takes a lower priority.

# systemctl restart hibinit-agent
# swapon -s
Filename                                Type            Size            Used            Priority
/swapfile_01                            file            2047996         0               -2
/swap                                   file            4095996         0               -3

Hence on hibernation, the system by defaults uses a swapfile of highest priority which in this case is /swapfile_01 and hence fails hibernation

Here, we seem to be missing this commit:
https://github.com/aws/amazon-ec2-hibinit-agent/commit/a2303d269610a6e7415c5045766da605eaa7e30f

Expected results:
/swap should by default have highest priority of 32767
~~
# swapon -s
Filename                                Type            Size    Used    Priority
/swapfile_01                            file            2047996 0       -2
/swap                                   file            4095996 0       32767
~~

Additional info:
I request pushing a version of "ec2-hibinit-agent" that includes all the fixes.

Comment 1 Dominik Wombacher 2024-11-07 13:52:31 UTC
# Summary

https://src.fedoraproject.org/rpms/ec2-hibinit-agent/blob/rawhide/f/ec2-hibinit-agent.spec#_70

Spec files uses `acpid.sleep.sh` under /packaging/rhel/ (https://github.com/aws/amazon-ec2-hibinit-agent/blob/v1.0.9/packaging/rhel/acpid.sleep.sh), which differs from `acpid.sleep.sh` in the project root folder (https://github.com/aws/amazon-ec2-hibinit-agent/blob/v1.0.9/acpid.sleep.sh) and doesn't have the necessary adjustments to set the swap priority to the highest value that are applied to `acpid.sleep.sh` as it was introduced with commit https://github.com/aws/amazon-ec2-hibinit-agent/commit/a2303d269610a6e7415c5045766da605eaa7e30f#diff-944fff7f78459a66dd86d8eb3e793f7b44d4fd6de337250102e9df8d88483559R13.

# Solution

1/ Create upstream PR to apply swapon related changes from `/acpid.sleep.sh` in `/packaging/rhel/acpid.sleep.sh`. Using `/acpid.sleep.sh` directly doesn't work because RHEL we have to run `systemctl hibernate` and not `/usr/sbin/pm-hibernate`.

2/ Include patch from upstream PR in Fedora package (https://src.fedoraproject.org/rpms/ec2-hibinit-agent) and release `1.0.9-4`.

# Troubleshooting details

## RHEL 8

### ec2 instance

sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm -y

sudo yum info ec2-hibinit-agent
```
Available Packages
Name         : ec2-hibinit-agent
Version      : 1.0.9
Release      : 1.el9
Architecture : noarch
Size         : 29 k
Source       : ec2-hibinit-agent-1.0.9-1.el9.src.rpm
Repository   : epel
Summary      : Hibernation setup utility for Amazon EC2
URL          : https://github.com/aws/amazon-ec2-hibinit-agent
License      : Apache-2.0
Description  : An EC2 agent that creates a setup for instance hibernation
```

sudo yum install ec2-hibinit-agent -y

sudo systemctl status acpid
```
○ acpid.service - ACPI Event Daemon
     Loaded: loaded (/usr/lib/systemd/system/acpid.service; disabled; preset: disabled)
     Active: inactive (dead)
TriggeredBy: ○ acpid.socket
       Docs: man:acpid(8)
```

sudo systemctl enable --now hibinit-agent.service

sudo systemctl status acpid
```
● acpid.service - ACPI Event Daemon
     Loaded: loaded (/usr/lib/systemd/system/acpid.service; disabled; preset: disabled)
     Active: active (running) since Thu 2024-11-07 12:55:15 UTC; 4s ago
TriggeredBy: ● acpid.socket
       Docs: man:acpid(8)
   Main PID: 14908 (acpid)
      Tasks: 1 (limit: 22412)
     Memory: 220.0K
        CPU: 2ms
     CGroup: /system.slice/acpid.service
             └─14908 /usr/sbin/acpid -f

Nov 07 12:55:15 ip-172-31-32-231.ec2.internal systemd[1]: Started ACPI Event Daemon.
```

sudo systemctl status hibinit-agent
```
● hibinit-agent.service - Initial hibernation setup job
     Loaded: loaded (/usr/lib/systemd/system/hibinit-agent.service; enabled; preset: disabled)
     Active: active (running) since Thu 2024-11-07 12:55:15 UTC; 24s ago
   Main PID: 14909 (hibinit-agent)
      Tasks: 5 (limit: 22412)
     Memory: 80.7M
        CPU: 10.561s
     CGroup: /system.slice/hibinit-agent.service
             ├─14909 /usr/bin/python3 -s /usr/bin/hibinit-agent -c /etc/hibinit-config.cfg
             ├─15730 /bin/sh -c "trap '' HUP INT QUIT TERM && dracut -a resume -f"
             ├─15731 /usr/bin/bash -p /usr/bin/dracut -a resume -f
             ├─15763 /bin/cat
             └─16423 /usr/lib/dracut/dracut-install -D /var/tmp/dracut.pul5Bg/initramfs --kerneldir /lib/modules/5.14.0-427.20.1.el9_4.x86_64/ -o -m =arch/x86/crypto =drivers/crypto

Nov 07 12:55:26 ip-172-31-32-231.ec2.internal dracut[15763]: *** Including module: network-manager ***
Nov 07 12:55:27 ip-172-31-32-231.ec2.internal dracut[15763]: *** Including module: network ***
Nov 07 12:55:27 ip-172-31-32-231.ec2.internal dracut[15763]: *** Including module: ifcfg ***
Nov 07 12:55:27 ip-172-31-32-231.ec2.internal dracut[15763]: *** Including module: prefixdevname ***
Nov 07 12:55:27 ip-172-31-32-231.ec2.internal dracut[15763]: *** Including module: crypt ***
Nov 07 12:55:27 ip-172-31-32-231.ec2.internal dracut[15763]: *** Including module: dm ***
Nov 07 12:55:27 ip-172-31-32-231.ec2.internal dracut[15763]: Skipping udev rule: 64-device-mapper.rules
Nov 07 12:55:27 ip-172-31-32-231.ec2.internal dracut[15763]: Skipping udev rule: 60-persistent-storage-dm.rules
Nov 07 12:55:27 ip-172-31-32-231.ec2.internal dracut[15763]: Skipping udev rule: 55-dm.rules
Nov 07 12:55:27 ip-172-31-32-231.ec2.internal dracut[15763]: *** Including module: kernel-modules ***
```

swapon -s 
> No output

sudo reboot

### local machine

aws ec2 stop-instances --instance-ids i-06d725fd0d8f31c09 --hibernate
```
{
    "StoppingInstances": [
        {
            "CurrentState": {
                "Code": 64,
                "Name": "stopping"
            },
            "InstanceId": "i-06d725fd0d8f31c09",
            "PreviousState": {
                "Code": 16,
                "Name": "running"
            }
        }
    ]
}
```

### ec2 instance

```
[ec2-user@ip-172-31-32-231 ~]$ 
Broadcast message from root.internal (Thu 2024-11-07 13:00:00 UTC):

The system will hibernate now!
```

### local machine

aws ec2 start-instances --instance-ids i-06d725fd0d8f31c09
```
{
    "StartingInstances": [
        {
            "CurrentState": {
                "Code": 0,
                "Name": "pending"
            },
            "InstanceId": "i-06d725fd0d8f31c09",
            "PreviousState": {
                "Code": 80,
                "Name": "stopped"
            }
        }
    ]
}
```

### ec2 instance

last reboot
```
reboot   system boot  5.14.0-427.20.1. Thu Nov  7 12:57   still running
reboot   system boot  5.14.0-427.20.1. Thu Nov  7 12:46 - 12:57  (00:10)
```

swapon -s 
> No output

sudo dd if=/dev/zero of=/swapfile_01 bs=100M count=20
sudo chmod 600 /swapfile_01
sudo mkswap /swapfile_01
sudo swapon /swapfile_01
sudo swapon -s
```
20+0 records in
20+0 records out
2097152000 bytes (2.1 GB, 2.0 GiB) copied, 9.60532 s, 218 MB/s
Setting up swapspace version 1, size = 2 GiB (2097147904 bytes)
no label, UUID=6f4ecb68-44f7-4715-9d16-989d86c96a32
Filename				Type		Size		Used		Priority
/swapfile_01                            file		2047996		0		-2
```

sudo systemctl restart hibinit-agent

sudo swapon -s
```
Filename				Type		Size		Used		Priority
/swapfile_01                            file		2047996		0		-2
/swap                                   file		4095996		0		-3
```

### local machine

aws ec2 stop-instances --instance-ids i-06d725fd0d8f31c09 --hibernate
```
{
    "StoppingInstances": [
        {
            "CurrentState": {
                "Code": 64,
                "Name": "stopping"
            },
            "InstanceId": "i-06d725fd0d8f31c09",
            "PreviousState": {
                "Code": 16,
                "Name": "running"
            }
        }
    ]
}
```

### ec2 instance

```
[ec2-user@ip-172-31-32-231 ~]$ 
Broadcast message from root.internal (Thu 2024-11-07 13:09:03 UTC):

The system will hibernate now!
```

### local machine

aws ec2 start-instances --instance-ids i-06d725fd0d8f31c09
```
{
    "StartingInstances": [
        {
            "CurrentState": {
                "Code": 0,
                "Name": "pending"
            },
            "InstanceId": "i-06d725fd0d8f31c09",
            "PreviousState": {
                "Code": 80,
                "Name": "stopped"
            }
        }
    ]
}
```

### ec2 instance

last reboot
```
reboot   system boot  5.14.0-427.20.1. Thu Nov  7 12:57   still running
reboot   system boot  5.14.0-427.20.1. Thu Nov  7 12:46 - 12:57  (00:10)
```
> Output identical to before

swapon -s 
```
Filename				Type		Size		Used		Priority
/swapfile_01                            file		2047996		5044		-2
```

dmesg -H -e  | grep hibernation
```
[  +0.000030] PM: hibernation: Registered nosave memory: [mem 0x00000000-0x00000fff]
[  +0.000003] PM: hibernation: Registered nosave memory: [mem 0x000a0000-0x000fffff]
[  +0.000122] PM: hibernation: Registered nosave memory: [mem 0xb9ebf000-0xb9ebffff]
[  +0.000002] PM: hibernation: Registered nosave memory: [mem 0xb9ec7000-0xb9ec7fff]
[  +0.000003] PM: hibernation: Registered nosave memory: [mem 0xb9f3f000-0xb9f5afff]
[  +0.000002] PM: hibernation: Registered nosave memory: [mem 0xbbcce000-0xbbf4dfff]
[  +0.000001] PM: hibernation: Registered nosave memory: [mem 0xbbf4e000-0xbbf5dfff]
[  +0.000001] PM: hibernation: Registered nosave memory: [mem 0xbbf5e000-0xbbfddfff]
[  +0.000002] PM: hibernation: Registered nosave memory: [mem 0xbff7c000-0xbfffffff]
[  +0.000001] PM: hibernation: Registered nosave memory: [mem 0xc0000000-0xffffffff]
[  +0.195167] PM: hibernation: hibernation entry
[  +0.000107] PM: hibernation: Marking nosave pages: [mem 0x00000000-0x00000fff]
[  +0.000003] PM: hibernation: Marking nosave pages: [mem 0x000a0000-0x000fffff]
[  +0.000048] PM: hibernation: Marking nosave pages: [mem 0xb9ebf000-0xb9ebffff]
[  +0.000002] PM: hibernation: Marking nosave pages: [mem 0xb9ec7000-0xb9ec7fff]
[  +0.000002] PM: hibernation: Marking nosave pages: [mem 0xb9f3f000-0xb9f5afff]
[  +0.000001] PM: hibernation: Marking nosave pages: [mem 0xbbcce000-0xbbfddfff]
[  +0.000017] PM: hibernation: Marking nosave pages: [mem 0xbff7c000-0xffffffff]
[  +0.002574] PM: hibernation: Basic memory bitmaps created
[  +0.000036] PM: hibernation: Preallocating image memory
[  +0.284465] PM: hibernation: Allocated 232651 pages for snapshot
[  +0.000004] PM: hibernation: Allocated 930604 kbytes in 0.28 seconds (3323.58 MB/s)
[  +0.007394] PM: hibernation: Creating image:
[  +0.128159] PM: hibernation: Need to copy 227951 pages
[  +0.000498] PM: hibernation: Normal pages needed: 227951 + 1024, available pages: 799544
[  +0.002036] PM: hibernation: Basic memory bitmaps freed
[  +0.000841] PM: hibernation: hibernation exit
[  +0.358881] PM: hibernation: hibernation entry
[  +0.000109] PM: hibernation: Marking nosave pages: [mem 0x00000000-0x00000fff]
[  +0.000003] PM: hibernation: Marking nosave pages: [mem 0x000a0000-0x000fffff]
[  +0.000004] PM: hibernation: Marking nosave pages: [mem 0xb9ebf000-0xb9ebffff]
[  +0.000001] PM: hibernation: Marking nosave pages: [mem 0xb9ec7000-0xb9ec7fff]
[  +0.000002] PM: hibernation: Marking nosave pages: [mem 0xb9f3f000-0xb9f5afff]
[  +0.000001] PM: hibernation: Marking nosave pages: [mem 0xbbcce000-0xbbfddfff]
[  +0.000017] PM: hibernation: Marking nosave pages: [mem 0xbff7c000-0xffffffff]
[  +0.009604] PM: hibernation: Basic memory bitmaps created
[  +0.000046] PM: hibernation: Preallocating image memory
[  +1.931191] PM: hibernation: Allocated 354549 pages for snapshot
[  +0.000003] PM: hibernation: Allocated 1418196 kbytes in 1.93 seconds (734.81 MB/s)
[  +0.005952] PM: hibernation: Creating image:
[Nov 7 13:11] PM: hibernation: Need to copy 347372 pages
[  +0.002153] PM: hibernation: Normal pages needed: 347372 + 1024, available pages: 680161
[  +0.002395] PM: hibernation: Basic memory bitmaps freed
[  +0.000021] PM: hibernation: hibernation exit
```

sudo find / -name sleep.sh
```
/etc/acpi/actions/sleep.sh
```

curl https://raw.githubusercontent.com/aws/amazon-ec2-hibinit-agent/refs/tags/v1.0.9/acpid.sleep.sh -o acpid.sleep.sh

diff -u /etc/acpi/actions/sleep.sh acpid.sleep.sh
```
--- /etc/acpi/actions/sleep.sh	2024-05-30 23:08:10.000000000 +0000
+++ acpid.sleep.sh	2024-11-07 13:21:39.762557150 +0000
@@ -1,13 +1,16 @@
-#!/usr/bin/sh
+#!/bin/sh
 
 PATH=/sbin:/bin:/usr/bin
 failed='false'
 
+# Hibernation selects the swapfile with highest priority. Since there may be
+# other swapfiles configured, ensure /swap is selected as hibernation
+# target by setting to maximum priority.
+swap_priority=32767
+
 hibernate()
 {
-        swapon /swap
-        systemctl hibernate
-
+        swapon --priority=$swap_priority /swap && /usr/sbin/pm-hibernate
         if [ $? -ne 0 ]
         then
             logger "Hibernation failed, Sleeping 2 mins before retry"
@@ -15,6 +18,7 @@
         else
             failed='false'
         fi
+        swapoff /swap
 }
 
 case "$2" in
@@ -26,6 +30,7 @@
           hibernate
           if [ $failed == 'true' ];
           then
+            swapoff /swap
             sleep 2m
           else
            break
```

sudo yum whatprovides "/etc/acpi/actions/sleep.sh"
```
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use "rhc" or "subscription-manager" to register.

Last metadata expiration check: 0:34:42 ago on Thu 07 Nov 2024 12:49:26 PM UTC.
ec2-hibinit-agent-1.0.9-1.el9.noarch : Hibernation setup utility for Amazon EC2
Repo        : @System
Matched from:
Filename    : /etc/acpi/actions/sleep.sh

ec2-hibinit-agent-1.0.9-1.el9.noarch : Hibernation setup utility for Amazon EC2
Repo        : epel
Matched from:
Filename    : /etc/acpi/actions/sleep.sh
```

### Research

The sleep.sh file is coming from the hibinit package but differs from https://github.com/aws/amazon-ec2-hibinit-agent/blob/v1.0.9/acpid.sleep.sh.

https://github.com/aws/amazon-ec2-hibinit-agent/commit/a2303d269610a6e7415c5045766da605eaa7e30f#diff-944fff7f78459a66dd86d8eb3e793f7b44d4fd6de337250102e9df8d88483559R13
> Change applied to acpid.sleep.sh, located in project root folder.

https://src.fedoraproject.org/rpms/ec2-hibinit-agent/blob/rawhide/f/ec2-hibinit-agent.spec#_70
> Spec files uses the files under /packaging/rhel/, which has its own version of acpid.sleep.sh (https://github.com/aws/amazon-ec2-hibinit-agent/blob/v1.0.9/packaging/rhel/acpid.sleep.sh) without the necessary adjustments to set the swap priority to the highest value

That the `swapon -s` output never shows the higher priority is expected, because not the hibinit-agent changes the swap priority. It's done by acpid when the hibernation is triggered.

Comment 2 Dominik Wombacher 2024-11-07 16:03:25 UTC
# Test after applying patch

Successful, RHEL 8 systems applies highest priority to /swap when hibernation is triggered.

Upstream PR: https://github.com/aws/amazon-ec2-hibinit-agent/pull/49
Patch: https://patch-diff.githubusercontent.com/raw/aws/amazon-ec2-hibinit-agent/pull/49.patch

Next Step:
- Release updated Fedora and EPEL package that includes this patch

## RHEL 8

### local machine

aws ec2 stop-instances --instance-ids i-06d725fd0d8f31c09 --hibernate 

aws ec2 start-instances --instance-ids i-06d725fd0d8f31c09

### ec2 instance

last reboot
```
reboot   system boot  5.14.0-427.20.1. Thu Nov  7 12:57   still running
reboot   system boot  5.14.0-427.20.1. Thu Nov  7 12:46 - 12:57  (00:10)

wtmp begins Thu Nov  7 12:46:50 2024
```

swapon -s
```
Filename				Type		Size		Used		Priority
/swapfile_01                            file		2047996		4128		-2
```

sudo reboot

last reboot
```
reboot   system boot  5.14.0-427.20.1. Thu Nov  7 15:37   still running
reboot   system boot  5.14.0-427.20.1. Thu Nov  7 12:57 - 15:36  (02:39)
reboot   system boot  5.14.0-427.20.1. Thu Nov  7 12:46 - 12:57  (00:10)

wtmp begins Thu Nov  7 12:46:50 2024
```

sudo grep 32767 /var/log/messages
```
Nov  7 15:32:28 ip-172-31-32-231 kernel: Adding 4095996k swap on /swap.  Priority:32767 extents:31 across:11497624k SSFS
```

date
```
Thu Nov  7 03:44:57 PM UTC 2024
```

### local machine

aws ec2 stop-instances --instance-ids i-06d725fd0d8f31c09 --hibernate 

### ec2 instance

```
[ec2-user@ip-172-31-32-231 ~]$
Broadcast message from root.internal (Thu 2024-11-07 15:45:59 UTC):

The system will hibernate now!
```

### local machine

aws ec2 start-instances --instance-ids i-06d725fd0d8f31c09

### ec2 instance

last reboot
```
reboot   system boot  5.14.0-427.20.1. Thu Nov  7 15:37   still running
reboot   system boot  5.14.0-427.20.1. Thu Nov  7 12:57 - 15:36  (02:39)
reboot   system boot  5.14.0-427.20.1. Thu Nov  7 12:46 - 12:57  (00:10)

wtmp begins Thu Nov  7 12:46:50 2024
```

sudo grep 32767 /var/log/messages
```
Nov  7 15:32:28 ip-172-31-32-231 kernel: Adding 4095996k swap on /swap.  Priority:32767 extents:31 across:11497624k SSFS
Nov  7 15:45:59 ip-172-31-32-231 kernel: Adding 4095996k swap on /swap.  Priority:32767 extents:31 across:11497624k SSFS
```

sudo grep "15:45" /var/log/messages
```
Nov  7 15:45:59 ip-172-31-32-231 systemd-logind[658]: Suspend key pressed short.
Nov  7 15:45:59 ip-172-31-32-231 kernel: Adding 4095996k swap on /swap.  Priority:32767 extents:31 across:11497624k SSFS
Nov  7 15:45:59 ip-172-31-32-231 systemd-logind[658]: The system will hibernate now!
Nov  7 15:45:59 ip-172-31-32-231 NetworkManager[683]: <info>  [1730994359.5918] manager: sleep: sleep requested (sleeping: no  enabled: yes)
Nov  7 15:45:59 ip-172-31-32-231 NetworkManager[683]: <info>  [1730994359.5926] manager: NetworkManager state is now ASLEEP
Nov  7 15:45:59 ip-172-31-32-231 NetworkManager[683]: <info>  [1730994359.5929] device (eth0): state change: activated -> deactivating (reason 'sleeping', sys-iface-state: 'managed')
Nov  7 15:45:59 ip-172-31-32-231 root[10408]: ACPI action undefined: LNXSLPBN:00
Nov  7 15:45:59 ip-172-31-32-231 systemd[1]: Starting Network Manager Script Dispatcher Service...
Nov  7 15:45:59 ip-172-31-32-231 systemd[1]: Started Network Manager Script Dispatcher Service.
Nov  7 15:45:59 ip-172-31-32-231 NetworkManager[683]: <info>  [1730994359.6209] device (eth0): state change: deactivating -> disconnected (reason 'sleeping', sys-iface-state: 'managed')
Nov  7 15:45:59 ip-172-31-32-231 NetworkManager[683]: <info>  [1730994359.6214] dhcp4 (eth0): canceled DHCP transaction
Nov  7 15:45:59 ip-172-31-32-231 NetworkManager[683]: <info>  [1730994359.6214] dhcp4 (eth0): activation: beginning transaction (timeout in 45 seconds)
Nov  7 15:45:59 ip-172-31-32-231 NetworkManager[683]: <info>  [1730994359.6214] dhcp4 (eth0): state changed no lease
Nov  7 15:45:59 ip-172-31-32-231 NetworkManager[683]: <info>  [1730994359.6342] device (eth0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Nov  7 15:45:59 ip-172-31-32-231 systemd[1]: Reached target Sleep.
Nov  7 15:45:59 ip-172-31-32-231 chronyd[661]: Can't synchronise: no selectable sources
Nov  7 15:45:59 ip-172-31-32-231 chronyd[661]: Source 169.254.169.123 offline
Nov  7 15:45:59 ip-172-31-32-231 systemd[1]: Starting Hibernate...
Nov  7 15:45:59 ip-172-31-32-231 systemd-sleep[10420]: Entering sleep state 'hibernate'...
Nov  7 15:45:59 ip-172-31-32-231 kernel: PM: hibernation: hibernation entry
```

sudo grep "15:47:" /var/log/messages
```
Nov  7 15:47:38 ip-172-31-32-231 kernel: Filesystems sync: 0.002 seconds
Nov  7 15:47:38 ip-172-31-32-231 kernel: Freezing user space processes ... (elapsed 0.001 seconds) done.
Nov  7 15:47:38 ip-172-31-32-231 kernel: OOM killer disabled.
Nov  7 15:47:38 ip-172-31-32-231 kernel: PM: hibernation: Preallocating image memory
Nov  7 15:47:38 ip-172-31-32-231 kernel: PM: hibernation: Allocated 233319 pages for snapshot
Nov  7 15:47:38 ip-172-31-32-231 kernel: PM: hibernation: Allocated 933276 kbytes in 0.17 seconds (5489.85 MB/s)
Nov  7 15:47:38 ip-172-31-32-231 kernel: Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Nov  7 15:47:38 ip-172-31-32-231 kernel: ACPI: PM: Preparing to enter system sleep state S4
Nov  7 15:47:38 ip-172-31-32-231 kernel: ACPI: PM: Saving platform NVS memory
Nov  7 15:47:38 ip-172-31-32-231 kernel: Disabling non-boot CPUs ...
Nov  7 15:47:38 ip-172-31-32-231 kernel: smpboot: CPU 1 is now offline
Nov  7 15:47:38 ip-172-31-32-231 kernel: PM: hibernation: Creating image:
Nov  7 15:47:38 ip-172-31-32-231 kernel: PM: hibernation: Need to copy 228386 pages
Nov  7 15:47:38 ip-172-31-32-231 kernel: ACPI: PM: Restoring platform NVS memory
Nov  7 15:47:38 ip-172-31-32-231 kernel: Enabling non-boot CPUs ...
Nov  7 15:47:38 ip-172-31-32-231 kernel: x86: Booting SMP configuration:
Nov  7 15:47:38 ip-172-31-32-231 kernel: smpboot: Booting Node 0 Processor 1 APIC 0x1
Nov  7 15:47:38 ip-172-31-32-231 kernel: CPU1 is up
Nov  7 15:47:38 ip-172-31-32-231 kernel: ACPI: PM: Waking up from system sleep state S4
Nov  7 15:47:38 ip-172-31-32-231 kernel: ena 0000:00:05.0: ENA device version: 0.10
Nov  7 15:47:38 ip-172-31-32-231 kernel: ena 0000:00:05.0: ENA controller version: 0.0.1 implementation version 1
Nov  7 15:47:38 ip-172-31-32-231 kernel: ena 0000:00:05.0: LLQ is not supported Fallback to host mode policy.
Nov  7 15:47:38 ip-172-31-32-231 kernel: OOM killer enabled.
Nov  7 15:47:38 ip-172-31-32-231 kernel: Restarting tasks ... 
Nov  7 15:47:38 ip-172-31-32-231 kernel: nvme nvme0: 2/0/0 default/read/poll queues
Nov  7 15:47:38 ip-172-31-32-231 kernel: done.
Nov  7 15:47:38 ip-172-31-32-231 systemd-sleep[10420]: System returned from sleep state.
Nov  7 15:47:38 ip-172-31-32-231 kernel: PM: hibernation: hibernation exit
Nov  7 15:47:38 ip-172-31-32-231 root[10436]: Resuming from sleep to swapoff
Nov  7 15:47:38 ip-172-31-32-231 systemd[1]: swap.swap: Deactivated successfully.
Nov  7 15:47:38 ip-172-31-32-231 systemd[1]: systemd-hibernate.service: Deactivated successfully.
Nov  7 15:47:38 ip-172-31-32-231 systemd[1]: Finished Hibernate.
Nov  7 15:47:38 ip-172-31-32-231 systemd[1]: Reached target System Hibernation.
Nov  7 15:47:38 ip-172-31-32-231 systemd[1]: Stopped target Sleep.
Nov  7 15:47:38 ip-172-31-32-231 systemd[1]: Stopped target System Hibernation.
Nov  7 15:47:38 ip-172-31-32-231 systemd-logind[658]: Operation 'sleep' finished.
```

Comment 3 Dominik Wombacher 2024-11-08 09:44:29 UTC
https://src.fedoraproject.org/rpms/ec2-hibinit-agent/pull-request/8

Waiting for Scratch build and Installability test to finish.
Merge to rawhide, all fedora and epel branches afterwards.

Comment 4 Fedora Update System 2024-11-08 13:24:14 UTC
FEDORA-2024-be7692a00b (ec2-hibinit-agent-1.0.9-4.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-be7692a00b

Comment 5 Fedora Update System 2024-11-08 13:29:22 UTC
FEDORA-2024-be7692a00b (ec2-hibinit-agent-1.0.9-4.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2024-11-08 13:50:21 UTC
FEDORA-2024-e86b6f8de3 (ec2-hibinit-agent-1.0.9-4.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-e86b6f8de3

Comment 7 Fedora Update System 2024-11-08 13:54:23 UTC
FEDORA-2024-047834a65a (ec2-hibinit-agent-1.0.9-4.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-047834a65a

Comment 8 Fedora Update System 2024-11-08 13:55:29 UTC
FEDORA-EPEL-2024-530f347467 (ec2-hibinit-agent-1.0.9-4.el8) has been submitted as an update to Fedora EPEL 8.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-530f347467

Comment 9 Fedora Update System 2024-11-08 13:55:43 UTC
FEDORA-EPEL-2024-9b8fdb6817 (ec2-hibinit-agent-1.0.9-4.el9) has been submitted as an update to Fedora EPEL 9.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-9b8fdb6817

Comment 10 Fedora Update System 2024-11-09 02:57:59 UTC
FEDORA-EPEL-2024-9b8fdb6817 has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-9b8fdb6817

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2024-11-09 03:08:45 UTC
FEDORA-2024-e86b6f8de3 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-e86b6f8de3`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-e86b6f8de3

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Fedora Update System 2024-11-09 03:14:12 UTC
FEDORA-EPEL-2024-530f347467 has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-530f347467

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 13 Fedora Update System 2024-11-10 03:48:01 UTC
FEDORA-2024-047834a65a has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-047834a65a`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-047834a65a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 14 Fedora Update System 2024-11-17 01:19:31 UTC
FEDORA-EPEL-2024-9b8fdb6817 (ec2-hibinit-agent-1.0.9-4.el9) has been pushed to the Fedora EPEL 9 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 15 Fedora Update System 2024-11-17 01:19:58 UTC
FEDORA-2024-e86b6f8de3 (ec2-hibinit-agent-1.0.9-4.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 16 Fedora Update System 2024-11-17 01:38:53 UTC
FEDORA-EPEL-2024-530f347467 (ec2-hibinit-agent-1.0.9-4.el8) has been pushed to the Fedora EPEL 8 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 17 Fedora Update System 2024-11-18 03:13:32 UTC
FEDORA-2024-047834a65a (ec2-hibinit-agent-1.0.9-4.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.