Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rolls Back Changes from PR #32 That Break CS and OEL 9 #35

Merged
merged 3 commits into from
Oct 23, 2024

Conversation

ferricoxide
Copy link
Member

Reverts changes from #32 but keeps:

  • Entirety of changes to PostBuild.sh
  • Removal of init-script setup in AWSutils.sh

Closes #33

@ferricoxide
Copy link
Member Author

ferricoxide commented Oct 23, 2024

Gets rid of the:

[  944.388690] systemd-rc-local-generator[43024]: /etc/rc.d/rc.local is not marked executable, skipping.

But the:

[  944.598280] systemd-sysv-generator[43028]: SysV service '/etc/rc.d/init.d/cfn-hup' lacks a native systemd unit file. Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it more safe and robust.

Messages returns:

image

This has been referred to AWS to address (as have the alerts for /etc/rc.d/init.d/choose_repo and /etc/rc.d/init.d/rh-cloud-firstboot).

Removing the cfn-hup work-arounds does allow all AMIs to be built via CodeBuild:

image

(and)

$ aws ec2 describe-images \
    --filters 'Name=name,Values=spel-minimal-*9*' \
    --query 'sort_by(Images, &CreationDate)[? 
        Architecture == `x86_64` && 
        CreationDate >= `'"$(
          date -d "1 month ago" '+%Y-%m-%d'
        )"'`
      ].{CreationDate:CreationDate,Name:Name,ImageId:ImageId,BootMode:BootMode}' \
    --output table
-------------------------------------------------------------------------------------------------------------------------------------
|                                                          DescribeImages                                                           |
+----------------+---------------------------+------------------------+-------------------------------------------------------------+
|    BootMode    |       CreationDate        |        ImageId         |                            Name                             |
+----------------+---------------------------+------------------------+-------------------------------------------------------------+
|  uefi-preferred|  2024-10-23T11:34:10.000Z |  ami-005fcfdb47b931b4b |  spel-minimal-centos-9stream-hvm-2024.10.1b-01.x86_64-gp3   |
|  uefi-preferred|  2024-10-23T11:35:41.000Z |  ami-0ebce48689fe4ace2 |  spel-minimal-rhel-9-hvm-2024.10.1b-01.x86_64-gp3           |
|  uefi-preferred|  2024-10-23T11:38:23.000Z |  ami-021adb8048488b4bf |  spel-minimal-ol-9-hvm-2024.10.1b-01.x86_64-gp3             |
+----------------+---------------------------+------------------------+-------------------------------------------------------------+

@ferricoxide ferricoxide requested review from lorengordon and a team October 23, 2024 13:37
@ferricoxide ferricoxide merged commit 070c713 into plus3it:main Oct 23, 2024
4 checks passed
@ferricoxide ferricoxide deleted the Issue_33 branch October 23, 2024 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Roll back cfn-hup stuff from #31
2 participants