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

Short-term archiving not working if DOUT_S_SAVE_INTERIM_RESTART_FILES is false #1572

Closed
billsacks opened this issue May 19, 2017 · 6 comments

Comments

@billsacks
Copy link
Member

I just tried creating an A compset case from cime master, using create_newcase (not create_test). The short-term archiver failed with this error:

[Errno 2] No such file or directory: '/glade/scratch/sacks/archive/check_int_rest_0519a/rest/0001-01-06-00000/rpointer.ice'

I think the problem is this code in case_st_archive.py:

    if not datename_is_last or case.get_value('DOUT_S_SAVE_INTERIM_RESTART_FILES') \
       or case.get_value("TEST"):
        if not os.path.exists(archive_restdir):
            os.makedirs(archive_restdir)

It seems to not create the necessary directory tree in a regular case with DOUT_S_SAVE_INTERIM_RESTART_FILES=FALSE.

Why does this have or case.get_value("TEST")? That is presumably why we haven't picked up any problems in our testing.

@billsacks billsacks added this to the cesm2 milestone May 19, 2017
@rljacob
Copy link
Member

rljacob commented May 19, 2017

CC @mfdeakin-sandia

@rljacob
Copy link
Member

rljacob commented May 23, 2017

Isn't DOUT_S_SAVE_INTERIM_RESTART_FILES set to FALSE by default? The title would imply short term archiving stopped working at all and we know that isn't true.

@jedwards4b
Copy link
Contributor

I think it was not working if REST_N < STOP_N and DOUT_S_SAVE_INTERIM_RESTART_FILES was FALSE

@rljacob
Copy link
Member

rljacob commented May 23, 2017

I tried that in ACME recently and it worked fine. With a fully coupled case.

@rljacob
Copy link
Member

rljacob commented May 23, 2017

That's how I noticed the problem reported in #1449

@billsacks
Copy link
Member Author

@jedwards4b - In my test case, I am pretty sure I had REST_N = STOP_N = 5 (days). So I'm pretty sure this bug applies to the default setup.

@rljacob - it was the fix for #1449 (i.e., PR #1511 ) that introduced this bug. So I suspect short-term archiving would be broken in ACME if you tried it with the current cime master.

billsacks added a commit that referenced this issue May 23, 2017
Short-term archiver fix

Fix logic in st_archive wrt DOUT_S_SAVE_INTERIM_RESTART_FILES
Test suite: scripts_regression_tests.py - several runs of create_newcase with various settings
of DOUT_S_SAVE_INTERIM_RESTART_FILES and REST_N
Test baseline:
Test namelist changes:
Test status: bit for bit

Fixes #1572

User interface changes?:

Code review: Bill Sacks
@ghost ghost removed the in progress label May 23, 2017
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

3 participants