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

install NFS daemon #6065

Open
maestro7879 opened this issue Jan 31, 2024 · 4 comments
Open

install NFS daemon #6065

maestro7879 opened this issue Jan 31, 2024 · 4 comments

Comments

@maestro7879
Copy link

Attempting to build an image using a hardened AWS AL2 AMI and receiving the below errors.

Error executing action setup on resource 'nfs[install NFS daemon]'.

FATAL: Mixlib::ShellOut::ShellCommandFailed: nfs[install NFS daemon] (aws-parallelcluster-environment::install line 16) had an error: Mixlib::ShellOut::ShellCommandFailed: service[statd] (nfs::_common line 56) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'

@judysng
Copy link
Contributor

judysng commented Jan 31, 2024

Hi, what version of pcluster are you using, and could you provide your build image config file? Can you also run pcluster export-image-logs and upload the logs: https://docs.aws.amazon.com/parallelcluster/latest/ug/pcluster.export-image-logs-v3.html ?

@maestro7879
Copy link
Author

Hi, what version of pcluster are you using, and could you provide your build image config file? Can you also run pcluster export-image-logs and upload the logs: https://docs.aws.amazon.com/parallelcluster/latest/ug/pcluster.export-image-logs-v3.html ?
pcluster version
{
"version": "3.8.0"
}

IMAGE_CONFIG
Build:
InstanceType: t3.xlarge
ParentImage: ami-0ea65a9hwsdhh34
SubnetId: subnet-04b8cf582355b45
SecurityGroupIds:

  • sg-0f39076344bfd9da
    Imds:
    ImdsSupport: v2.0
    Iam:
    InstanceProfile: arn:aws:iam::45333550383:instance-profile/asdf-asdf-imagebuild-instancerole
    PermissionsBoundary: arn:aws:iam::45333550383:policy/asdf-asdf-asdf-permissions-boundary
    CleanupLambdaRole: arn:aws:iam::45333550383:role/system/asdf-lambda-execution-role
    Image:
    RootVolume:
    Size: 80

I'd have to work on getting the logs exports.

@maestro7879
Copy link
Author

I have not been able to export the logs.

Is there any information on what is trying to be done related to NFS ?
I assume just install and start the service ?

@enrico-usai
Copy link
Contributor

Hi @maestro7879 sorry for the delay, I hope you've been able to solve your issue in the meantime.

Anyway, I'll try to add here some context.

  1. these are the steps executed at AMI creation time.
  2. The nfs resource behind the scenes tries to install nfs official cookbooks
  3. In your case nfs installation is failing in the line 56 of _common.rb from nfs third party cookbook, while trying to start the statd service

This is out of ParallelCluster control. To try to debug why statd is not starting you can try to manually start it in your AMI and check the logs.

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

No branches or pull requests

3 participants