GithubHelp home page GithubHelp logo

Comments (11)

brettkettering avatar brettkettering commented on June 19, 2024

Well, at least it exits with an error message. The user won't be fooled, but it would be nice to have the exit code updated so that a script can test for error. Not necessary for Secure Campaign, I would say, but would be good to add in the near future.

from pftool.

thewacokid avatar thewacokid commented on June 19, 2024

This is due to the wrapper script that actually calls pftool. We could have it pass back the error pretty easily I believe.

On Jun 20, 2016, at 4:31 PM, Brett Kettering [email protected] wrote:

Well, at least it exits with an error message. The user won't be fooled, but it would be nice to have the exit code updated so that a script can test for error. Not necessary for Secure Campaign, I would say, but would be good to add in the near future.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub #28 (comment), or mute the thread https://github.com/notifications/unsubscribe/ADRbVdXQTRVwRskb4_oDGaINpOLgmNjfks5qNxTHgaJpZM4I6MKG.

from pftool.

garygrider avatar garygrider commented on June 19, 2024

What is a non-existent file?

From: Gregory Geller [mailto:[email protected]]
Sent: Monday, June 20, 2016 4:23 PM
To: pftool/pftool
Subject: [pftool/pftool] BUG: Attempting to copy non-existent file with pfcp (#28)

When attempting to copy a non-existent file using pftool (pfcp), it should generate an error.

It does, but $? is still set to 0.

-bash-4.1$ pfcp a b
"/users/gellergr/src" pfcp a b

get_base_path -- Failed to stat path a

MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD
with errorcode -1.

NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on

exactly when Open MPI kills them.


mpirun has exited due to process rank 0 with PID 11519 on
node cc-fta02 exiting improperly. There are two reasons this could occur:

  1.  this process did not call "init" before exiting, but others in
    

    the job did. This can cause a job to hang indefinitely while it waits
    for all processes to call "init". By rule, if one process calls "init",
    then ALL processes must call "init" prior to termination.

  2.  this process called "init", but exited without calling "finalize".
    

    By rule, all processes that call "init" MUST call "finalize" prior to
    exiting or it will be considered an "abnormal termination"

This may have caused other processes in the application to be

terminated by signals sent by mpirun (as reported here).

Launched /opt/campaign/pftool/installed/bin/pfcp from host cc-fta03.localdomain at: Mon Jun 20 16:22:25 MDT 2016
ERROR: /opt/campaign/pftool/installed/bin/pfcp failed
Job finished at: Mon Jun 20 16:22:27 MDT 2016
-bash-4.1$ echo $?
0


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/28, or mute the threadhttps://github.com/notifications/unsubscribe/ALNxmYbsEfwmQWrLdKEBmusdpUgTVCOJks5qNxK9gaJpZM4I6MKG.

from pftool.

brettkettering avatar brettkettering commented on June 19, 2024

There's a test to use pfcp to copy a file that isn't there. Say someone mistypes a filename, for example. What does pfcp do when you tell it to copy a file that is not present?

from pftool.

jti-lanl avatar jti-lanl commented on June 19, 2024

Come to think of it, I actually commented out that test, in a private version, because ... what if you don't have fuse mounted?

[Apologies to Greg, since I suggested he report this. I'd suggest he throw things up here, so we have a record. I didn't make the connection with the unmounted-fuse thing until just now.]

from pftool.

gregorygeller avatar gregorygeller commented on June 19, 2024

So, if we don't want to set $? when attempting to copy a non-existent file, then what do you suggest I do to automate a test for proper behavior? Look for "Failed" or "MPI_ABORT" in the output?

from pftool.

brettkettering avatar brettkettering commented on June 19, 2024

I don't understand Jeff's comment. I think this is a bug and specifically for the reason you mention. A script needs some way to detect if a command fails.

from pftool.

jti-lanl avatar jti-lanl commented on June 19, 2024

We should fix pfcp like Dave suggested. Users will always have marfs appear to be mounted somehow. Us squirrels can just deal.

from pftool.

brettkettering avatar brettkettering commented on June 19, 2024

Jeff and I had a chat conversation about this. The pf* Python scripts were written with the assumption that file systems would always be mounted. This is not the case on the Batch FTAs in MarFS. the pf* scripts need to be changed so that they do not assume the file system is mounted. They need to look at the output of PFTool and return an error if PFTool returns an error. In the case of a FNF (file not found), the pf* scripts need to return some intelligible output to the user as well as set the return code to an error that a script can catch and process.

from pftool.

cadejager avatar cadejager commented on June 19, 2024

Sounds good. I will look into it this morning.

from pftool.

cadejager avatar cadejager commented on June 19, 2024

This bug also exists with pfcm and pfls. I have fixed both of them with my latest commit.

from pftool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.