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-10361) sort https bindings first #252

Merged
merged 3 commits into from
Jan 6, 2020

Conversation

pillarsdotnet
Copy link
Contributor

Fixes: MODULES-10361

When creating an iis_site resource, if non-ssl bindings come before ssl bindings, resource creation fails with an error similar to the following:

change from 'absent' to 'started' failed: Could not set 'started' on ensure: Error starting website: System.Management.Automation.CmdletInvocationException: Cannot find path 'IIS:\Sites\MyWebsite' because it does not exist.

This patch sorts https bindings before non-https bindings.

@pillarsdotnet pillarsdotnet requested a review from a team as a code owner December 24, 2019 16:22
@pillarsdotnet pillarsdotnet force-pushed the MODULES-10361 branch 28 times, most recently from 425fe9e to 1e079fa Compare December 31, 2019 00:45
lib/puppet/provider/iis_site/webadministration.rb Outdated Show resolved Hide resolved
lib/puppet/type/iis_site.rb Outdated Show resolved Hide resolved
@pillarsdotnet pillarsdotnet force-pushed the MODULES-10361 branch 3 times, most recently from 8d8bfe7 to ef3249b Compare December 31, 2019 04:04
@pillarsdotnet pillarsdotnet force-pushed the MODULES-10361 branch 3 times, most recently from 26a679e to 90583df Compare December 31, 2019 13:49
@pillarsdotnet
Copy link
Contributor Author

pillarsdotnet commented Dec 31, 2019

Okay, now I'm mystified all over again. Declaring an http binding before an https binding fails in local testing, but succeeds in appveyor.

@pillarsdotnet
Copy link
Contributor Author

pillarsdotnet commented Dec 31, 2019

Sorting bindings on resource create/update doesn't solve my problem. Trying again within instances and prefetch methods.

@pillarsdotnet
Copy link
Contributor Author

That fails, too. I don't understand the failure, though. Help, anyone?

@glennsarti
Copy link
Contributor

@pillarsdotnet What version of IIS and OS are you testing on locally vs Appveyor. And don't forget you can temporarily RDP into an appveyor worker

https://www.appveyor.com/docs/how-to/rdp-to-build-worker/

@pillarsdotnet
Copy link
Contributor Author

https://www.appveyor.com/docs/how-to/rdp-to-build-worker/

I've noted my versions in the puppetlabs ticket, but thanks for the appveyor tip!

@pillarsdotnet
Copy link
Contributor Author

The latest commit resolves the problem in local testing. I'm not sure how to replicate that in Appveyor.

@DavidS DavidS requested a review from glennsarti January 6, 2020 08:37
Copy link
Contributor

@DavidS DavidS left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution!

@DavidS DavidS merged commit 19fc1ab into puppetlabs:master Jan 6, 2020
@DavidS DavidS changed the title MODULES-10361: Sort https bindings first. (MODULES-10361) sort https bindings first Jan 6, 2020
@DavidS DavidS added the bugfix label Jan 6, 2020
@pillarsdotnet pillarsdotnet deleted the MODULES-10361 branch January 14, 2020 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants