Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[BUG] - Error creating server: {"message":"please provide only one os_id, app_id, or snapshot_id","status":400} #105

Closed
michaelspringer opened this issue Feb 12, 2021 · 1 comment · Fixed by #106
Assignees
Labels
bug Something isn't working

Comments

@michaelspringer
Copy link

michaelspringer commented Feb 12, 2021

Describe the bug

When attempting to build an image using 'snapshot_id' with 'os_id', or building with only 'snapshot_id', the API returns:

'please provide only one os_id, app_id, or snapshot_id","status":400}'

I am unable to find a combination of configuration options to build from a snapshot. (Also same with problem with iso_id)

To Reproduce

{
 "variables": {
        "vultr_api_key": "XXXXX",
        "vultr_ssh_pwd": "XXXXX"
    },
    "builders": [{
        "type": "vultr",
        "api_key": "{{ user `vultr_api_key` }}",
        "snapshot_description": "Packer-test-with updates",
        "region_id": "dfw",
        "plan_id": "vc2-1c-1gb",
        "os_id": 164,
        "snapshot_id": "673f3943-c844-4e28-99f4-eef7d97a42b1",
        "state_timeout": "15m",
        "ssh_username": "root",
        "ssh_password": "{{ user `vultr_ssh_pwd` }}"
    }]
}

Error

$ packer build test.json                                                                                                                                                                           
vultr: output will be in this color.

==> vultr: Running Vultr builder...
==> vultr: Creating temporary SSH key...
==> vultr: Creating Vultr instance...
==> vultr: &{ewr vc2-1c-1gb packer-1613155711  159 673f3943-c844-4e28-99f4-eef7d97a42b1 0      false false [] [9e01f1fe-1667-4166-b76d-69967fc23490]  false   false}
==> vultr: Error creating server: {"message":"please provide only one os_id, app_id, or snapshot_id","status":400}
==> vultr: Deleting temporary SSH key...
Build 'vultr' errored after 723 milliseconds 904 microseconds: Error creating server: {"message":"please provide only one os_id, app_id, or snapshot_id","status":400}

==> Wait completed after 723 milliseconds 989 microseconds

==> Some builds didn't complete successfully and had errors:
--> vultr: Error creating server: {"message":"please provide only one os_id, app_id, or snapshot_id","status":400}

==> Builds finished but no artifacts were created.
@michaelspringer michaelspringer added the bug Something isn't working label Feb 12, 2021
@ddymko
Copy link
Contributor

ddymko commented Feb 12, 2021

@michaelspringer Thanks for creating the ticket. We'll look into this

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants