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

When installing from scratch, /esg/gridftp_root/etc/grid-security/certificates/ isn’t created if non-existent #127

Open
plogerais opened this issue Sep 16, 2019 · 1 comment

Comments

@plogerais
Copy link

While installing from scratch, if you don’t create the directory /esg/gridftp_root/etc/grid-security/certificates/, install.yml fails with this error :

TASK [globus_certs : Copy certificates over if it is] **********************************************************************************************************************************************************
changed: [vesg4cds-data.ipsl.upmc.fr]
fatal: [vesg4cds-idx.ipsl.upmc.fr]: FAILED! => {
    "changed": true,
    "cmd": "cp /etc/grid-security/certificates/* /esg/gridftp_root/etc/grid-security/certificates/",
    "delta": "0:00:00.005728",
    "end": "2019-09-16 15:19:56.689950",
    "rc": 1,
    "start": "2019-09-16 15:19:56.684222"
}

STDERR:

cp: la cible « /esg/gridftp_root/etc/grid-security/certificates/ » n'est pas un répertoire

To Reproduce
Steps to reproduce the behavior :

  1. Run installer with options --skip-tags gridftp
  2. See error

ESGF Node (please complete the following information):

  • Managed OS: CentOS 6 & 7
  • Host OS: CentOS 7
  • esgf-ansible Version: 4.0.4
  • Node type: Index

Additional context
Possible workaround : Using the command mkdir -p /esg/gridftp_root/etc/grid-security/certificates/, then launching the playbook install.yml again, solves the problem.

@Theropod
Copy link

Theropod commented Oct 30, 2019

is it mistyping in source code?
see

cp {{ grid_security.cert_dir }}/* {{ gridftp.chroot }}{{ grid_security.cert_dir }}/

because {{ gridftp.chroot }} is {{ esg.home }}/gridftp_root and {{ grid_security.cert_dir }} is /etc/grid-security/certificates in group_vars/all.yml

nathanlcarlson added a commit that referenced this issue Sep 8, 2020
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

2 participants