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

(MODULES-8554) Add error reporting for background upgrades #393

Merged
merged 1 commit into from
Mar 11, 2019

Conversation

mcdonaldseanp
Copy link
Contributor

No description provided.

@mcdonaldseanp mcdonaldseanp force-pushed the MODULES8554 branch 4 times, most recently from 2f0cc19 to a155ca7 Compare March 5, 2019 00:45
@puppetcla
Copy link

CLA signed by all contributors.

@mcdonaldseanp mcdonaldseanp force-pushed the MODULES8554 branch 3 times, most recently from a75c49c to 96cb3ef Compare March 5, 2019 19:15
lib/puppet/type/upgrade_error.rb Outdated Show resolved Hide resolved
@mcdonaldseanp mcdonaldseanp force-pushed the MODULES8554 branch 4 times, most recently from 768b701 to 1c97903 Compare March 11, 2019 18:40
Copy link
Contributor

@speedofdark speedofdark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update the small typo in the title (repoting -> reporting) and one small nit to check out..

not File.exists?(logfile)
end

def delete_file_and_read_content(filename)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: swap order of verbs? Since we're reading it, then deleting it?

This commit adds a new type/provider to check for an error log from a previous
installation and fail if the error log exists. This will allow upgrades to
leave behind error logs on failure to indicate the next puppet run should not
perform the upgrade since the previous one failed.

The provider will delete the existing error log before failing so that after
the failed puppet run the user can attempt the upgrade again.

This should provide error reporting for upgrades that require background
processes (i.e. windows upgrades) by failing the next puppet run after the
upgrade failure.
@mcdonaldseanp mcdonaldseanp changed the title (MODULES-8554) Add error repoting for background upgrades (MODULES-8554) Add error reporting for background upgrades Mar 11, 2019
@speedofdark speedofdark merged commit b2a22b2 into puppetlabs:master Mar 11, 2019
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

Successfully merging this pull request may close these issues.

4 participants