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

pcluster image build fails with RHEL 8 and 9 #6567

Closed
mclouds2020 opened this issue Nov 14, 2024 · 4 comments
Closed

pcluster image build fails with RHEL 8 and 9 #6567

mclouds2020 opened this issue Nov 14, 2024 · 4 comments

Comments

@mclouds2020
Copy link

mclouds2020 commented Nov 14, 2024

We are using pcluster 3.10.0 to build the custom AMI with RHEL 9.0

During some steps it fails with below message

Stdout: dnf_package[install kernel packages] (aws-parallelcluster-platform::install line 29) had an error: Chef::Exceptions::Package: No candidate version available for kernel-devel

Build Template

Build:
InstanceType: c5a.xlarge
ParentImage: ami-02b7c8c8a886e9e76
SubnetId: subnet-06ea1d4ec580c651f
SecurityGroupIds:

  • sg-07451c683b5b871b6
    Iam:
    AdditionalIamPolicies:
    • Policy: arn:aws:iam::abccccc:policy/stigKMSFullAccess
      DevSettings:
      TerminateInstanceOnFailure: False
      DisableValidateAndTest: True
@mclouds2020
Copy link
Author

mclouds2020 commented Nov 14, 2024

StackTrace

enerated at 2024-11-14 04:16:55 +0000
Chef::Exceptions::Package: install_packages[Install OS and extra packages] (aws-parallelcluster-platform::install line 19) had an error: Chef::Exceptions::Package: dnf_pac
kage[install kernel packages] (aws-parallelcluster-platform::install line 29) had an error: Chef::Exceptions::Package: No version specified, and no candidate version avail
able for kernel-devel
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/mixin/why_run.rb:238:in `run'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/mixin/why_run.rb:322:in `block in run'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/mixin/why_run.rb:321:in `each'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/mixin/why_run.rb:321:in `run'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/provider.rb:258:in `process_resource_requirements'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/provider.rb:233:in `run_action'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/resource.rb:601:in `block in run_action'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/resource.rb:628:in `with_umask'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/resource.rb:600:in `run_action'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/runner.rb:74:in `run_action'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/runner.rb:108:in `block in run_all_actions'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/runner.rb:108:in `each'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/runner.rb:108:in `run_all_actions'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/resource_collection.rb:64:in `insert'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/dsl/declare_resource.rb:267:in `declare_resource'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/dsl/resources.rb:36:in `package'
(eval):29:in `block in use'
(eval):2:in `block in action_install_kernel_source'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/provider.rb:304:in `instance_eval'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/provider.rb:304:in `compile_and_converge_action'
(eval):2:in `action_install_kernel_source'
(eval):43:in `block in use'
(eval):2:in `block in action_setup'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/provider.rb:304:in `instance_eval'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/provider.rb:304:in `compile_and_converge_action'
(eval):2:in `action_setup'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/provider.rb:245:in `run_action'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/resource.rb:601:in `block in run_action'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/resource.rb:628:in `with_umask'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/resource.rb:600:in `run_action'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/runner.rb:74:in `run_action'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/runner.rb:108:in `block in run_all_actions'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/runner.rb:108:in `each'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/runner.rb:108:in `run_all_actions'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/runner.rb:132:in `block in converge'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/resource_collection/resource_list.rb:96:in `block in execute_each_resource'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/resource_collection/stepable_iterator.rb:114:in `call_iterator_block'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/resource_collection/stepable_iterator.rb:103:in `iterate'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/resource_collection/stepable_iterator.rb:54:in `each_with_index'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/resource_collection/resource_list.rb:94:in `execute_each_resource'
/opt/cinc/embedded/lib/ruby/3.1.0/forwardable.rb:238:in `execute_each_resource'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/runner.rb:130:in `converge'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/client.rb:869:in `block in converge'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/client.rb:864:in `catch'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/client.rb:864:in `converge'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/client.rb:888:in `converge_and_save'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/client.rb:298:in `run'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/application.rb:305:in `run_with_graceful_exit_option'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/application.rb:281:in `block in run_chef_client'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/local_mode.rb:42:in `with_server_connectivity'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/application.rb:264:in `run_chef_client'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/application/base.rb:354:in `run_application'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/application.rb:67:in `run'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-bin-18.4.12/bin/cinc-client:25:in `<top (required)>'
/usr/bin/cinc-client:183:in `load'
/usr/bin/cinc-client:183:in `<main>'

>>>> Caused by Chef::Exceptions::Package: No version specified, and no candidate version available for kernel-devel
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/mixin/why_run.rb:238:in `run'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/mixin/why_run.rb:322:in `block in run'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/mixin/why_run.rb:321:in `each'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/mixin/why_run.rb:321:in `run'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/provider.rb:258:in `process_resource_requirements'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/provider.rb:233:in `run_action'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/resource.rb:601:in `block in run_action'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/resource.rb:628:in `with_umask'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/resource.rb:600:in `run_action'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/runner.rb:74:in `run_action'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/runner.rb:108:in `block in run_all_actions'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/runner.rb:108:in `each'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/runner.rb:108:in `run_all_actions'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/resource_collection.rb:64:in `insert'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/dsl/declare_resource.rb:267:in `declare_resource'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/dsl/resources.rb:36:in `package'
(eval):29:in `block in use'
(eval):2:in `block in action_install_kernel_source'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/provider.rb:304:in `instance_eval'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/provider.rb:304:in `compile_and_converge_action'
(eval):2:in `action_install_kernel_source'
(eval):43:in `block in use'
(eval):2:in `block in action_setup'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/provider.rb:304:in `instance_eval'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/provider.rb:304:in `compile_and_converge_action'
(eval):2:in `action_setup'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/provider.rb:245:in `run_action'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/resource.rb:601:in `block in run_action'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/resource.rb:628:in `with_umask'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/resource.rb:600:in `run_action'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/runner.rb:74:in `run_action'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/runner.rb:108:in `block in run_all_actions'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/runner.rb:108:in `each'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/runner.rb:108:in `run_all_actions'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/runner.rb:132:in `block in converge'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/resource_collection/resource_list.rb:96:in `block in execute_each_resource'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/resource_collection/stepable_iterator.rb:114:in `call_iterator_block'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/resource_collection/stepable_iterator.rb:103:in `iterate'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/resource_collection/stepable_iterator.rb:54:in `each_with_index'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/resource_collection/resource_list.rb:94:in `execute_each_resource'
/opt/cinc/embedded/lib/ruby/3.1.0/forwardable.rb:238:in `execute_each_resource'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/runner.rb:130:in `converge'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/client.rb:869:in `block in converge'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/client.rb:864:in `catch'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/client.rb:864:in `converge'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/client.rb:888:in `converge_and_save'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/client.rb:298:in `run'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/application.rb:305:in `run_with_graceful_exit_option'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/application.rb:281:in `block in run_chef_client'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/local_mode.rb:42:in `with_server_connectivity'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/application.rb:264:in `run_chef_client'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/application/base.rb:354:in `run_application'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-18.4.12/lib/chef/application.rb:67:in `run'
/opt/cinc/embedded/lib/ruby/gems/3.1.0/gems/chef-bin-18.4.12/bin/cinc-client:25:in `<top (required)>'
/usr/bin/cinc-client:183:in `load'
/usr/bin/cinc-client:183:in `<main>'

@mclouds2020 mclouds2020 changed the title pcluster image build fails pcluster image build fails with RHEL 8 and 9 Nov 14, 2024
@himani2411
Copy link
Contributor

Hi @mclouds2020

It looks like the failure is with respect to the kernel-devel package not being available w.r.t to kernel version that you have. From the above message I cannot find the kernel version.
I couldnt find the ami-02b7c8c8a886e9e76 could you specify the region in which it is available?

Are you still facing the issue?

@Mic-U
Copy link

Mic-U commented Dec 30, 2024

@mclouds2020

It seems that your AMI does not have valid kernel-devel version.
I think that you should confirm if ami-02b7c8c8a886e9e76 satisfies requirements public doc says.

https://docs.aws.amazon.com/parallelcluster/latest/ug/Image-v3.html

To build a RedHat Enterprise Linux custom AMI, you must configure the OS for installing the packages that are provided by the RHUI (AWS) repositories: rhel--baseos-rhui-rpms, rhel--appstream-rhui-rpms, and codeready-builder-for-rhel--rhui-rpms. Moreover, the repositories on the custom AMI must contain kernel-devel packages on the same version as the running kernel version. kernel.

Copy link
Contributor

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants