Jira (PUP-9140) File resource checksum => mtime fails with empty mtime

6 views
Skip to first unread message

Francois Isabelle (JIRA)

unread,
Sep 14, 2018, 8:42:05 AM9/14/18
to puppe...@googlegroups.com
Francois Isabelle created an issue
 
Puppet / Bug PUP-9140
File resource checksum => mtime fails with empty mtime
Issue Type: Bug Bug
Affects Versions: PUP 5.3.7
Assignee: Unassigned
Components: Puppet Server
Created: 2018/09/14 5:41 AM
Environment:

This server is a CentOS 7.4.1708 machine running Puppet Server 5.3.7 with Ruby 2.4.4.

The client is Puppet 5.5.2.

Priority: Normal Normal
Reporter: Francois Isabelle

In order to improve performance for large binary files I have been using File resources with the checksum type set to 'mtime' for a while and I was satisfied with it . But apparently, this does not always work. On a different system, I keep getting :

Error: File written to disk did not match checksum; discarding changes ({mtime} vs {mtime}Thu Sep 13 16:19:24 -0400 2018)

As if the mtime on the server could not be compute.

This seemed like a bug.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Josh Cooper (JIRA)

unread,
Sep 20, 2018, 6:33:03 PM9/20/18
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
In order to improve performance for large binary files I have been using File resources with the checksum type set to 'mtime' for a while and I was satisfied with it . But apparently, this does not always work. On a different system, I keep getting :

{noformat}
Error: File written to disk did not match checksum; discarding changes ( \ {mtime} vs \ {mtime}Thu Sep 13 16:19:24 -0400 2018)
{noformat}

As if the mtime on the server could not be compute.

This seemed like a bug.

Maggie Dreyer (JIRA)

unread,
Sep 27, 2018, 7:24:04 PM9/27/18
to puppe...@googlegroups.com

Maggie Dreyer (JIRA)

unread,
Sep 27, 2018, 7:24:04 PM9/27/18
to puppe...@googlegroups.com
Maggie Dreyer updated an issue
Change By: Maggie Dreyer
Component/s: Puppet Server

Scott McClellan (JIRA)

unread,
Oct 1, 2018, 2:17:04 PM10/1/18
to puppe...@googlegroups.com
Scott McClellan updated an issue
Change By: Scott McClellan
Labels: checksum file linux needs_repro type_and_provider

Josh Cooper (JIRA)

unread,
Oct 1, 2019, 12:20:03 AM10/1/19
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Team: Platform OS Coremunity

Josh Cooper (Jira)

unread,
Jun 11, 2020, 2:26:03 AM6/11/20
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Epic Link: PUP-7548
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Josh Cooper (Jira)

unread,
Jan 27, 2021, 9:07:04 PM1/27/21
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-9140
 
Re: File resource checksum => mtime fails with empty mtime

I believe this is a duplicate of PUP-10368. Puppet used to get confused when comparing the checksum of the file it wrote. I'm going to close this, but feel free to reopen if you can reproduce the issue using the latest 6.20.0 or 7.3.0

Reply all
Reply to author
Forward
0 new messages