Skip to content

(MAINT): Update default URI in ProvisionService to a stable endpoint #286

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

Closed
wants to merge 1 commit into from

Conversation

span786
Copy link
Contributor

@span786 span786 commented Jun 18, 2025

Summary

Update default URI in ProvisionService to a stable endpoint

Additional Context

The default URL used for provisioning VMs is currently not working, so this change is necessary to ensure the CI workflow remains functional.

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified.

Sorry, something went wrong.

@span786 span786 requested a review from a team as a code owner June 18, 2025 06:41
@span786
Copy link
Contributor Author

span786 commented Jun 18, 2025

Verified the new URL with PostMan:

curl --location 'https://facade-maint-config-windows-use-ssh-6f3kfepqcq-ew.a.run.app/v1/provision' \
--header 'Content-Type: application/json' \
--data '{
    "url": "https://api.github.com/repos/puppetlabs/puppetlabs-sqlserver/actions/runs/15700030985",
    "VMs": [
        {
            "cloud": null,
            "region": null,
            "zone": null,
            "images": [
                "windows-2022"
            ]
        }
    ]
}'
---
version: 2
groups:
- name: docker_nodes
  targets: []
- name: ssh_nodes
  targets:
  - uri: 34.169.243.169
    config:
      transport: ssh
      ssh:
        user: litmuseepkow8f
        password: L1tmusjouk5t1x
        host-key-check: false
        port: 22
        login-shell: powershell
    facts:
      provisioner: provision::provision_service
      platform: windows-2022
      uuid: 9b2e1a54-f136-446b-bc33-08d0ee1d611f
- name: winrm_nodes
  targets: []
Screenshot 2025-06-18 at 12 16 43

Old URL returns Internal Server error:

curl --location 'https://facade-release-6f3kfepqcq-ew.a.run.app/v1/provision' \
--header 'Content-Type: application/json' \
--data '{
    "url": "https://api.github.com/repos/puppetlabs/puppetlabs-sqlserver/actions/runs/15700030985",
    "VMs": [
        {
            "cloud": null,
            "region": null,
            "zone": null,
            "images": [
                "windows-2022"
            ]
        }
    ]
}'
image

@gavindidrichsen
Copy link
Contributor

gavindidrichsen commented Jun 18, 2025

Hi @span786. Instead can you please set the SERVICE_URL. See here which shows that if this environment variable is not set then the code selects the default_uri. This provision_service doc explains a bit about this and here's an motd example for changing the service url.

Closing this out for now, but please feel free to reach out!

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.

None yet

2 participants