Skip to content

Warning messages about getfattr ... | grep -c '.daos' #2083

@ScottWales

Description

Describe the bug

I'm seeing extra warning messages in CSET logs that look like this:

sh: -c: line 0: syntax error near unexpected token `)'
sh: -c: line 0: `getfattr /home/562/saw562/cylc-run/cset-metplus-test/run12/share/cycle/20240203T0000Z/data/1/)scratch)dx2)gay548)ML)AIFS)outputs)postproc)ensv1)AIFS)ensv1)20240203T000000)ifs)0p25)fc)z_20240203T000000_6h_360_em1.nc | grep -c '.daos''

The error appears to be from the netcdf library passing the path unescaped through a shell function at https://github.com/Unidata/netcdf-c/blob/8b11cd27bd3b95fa7b2adecd174ddd6fbca3f901/libdispatch/dinfermodel.c#L1648

Perhaps it would be better to use urllib,parse.quote_plus() to create an escaped path when linking in the data in the fetch_fcst tasks

How to reproduce

Steps to reproduce the behaviour:

  1. Run the cset workflow at head of trunk
  2. Check the log files in ~/cylc-run/cset-metplus-test/runN/log/job/20240203T0000Z/bake_recipes/NN/bunch.0.err

Expected behaviour

There shouldn't be any 'sh' errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions