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

Openstack builder connects to wrong endpoint #21

Open
ghost opened this issue Apr 21, 2021 · 1 comment
Open

Openstack builder connects to wrong endpoint #21

ghost opened this issue Apr 21, 2021 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 21, 2021

This issue was originally opened by @JoelFeiner as hashicorp/packer#5201. It was migrated here as a result of the Packer plugin split. The original body of the issue is below.


I am attempting to build an image using the OpenStack provider. It ultimately fails at launching the server with the following message: "Error launching source server: Invalid request due to incorrect syntax or missing required parameters".

It is able to connect to the identity service, verify the flavor and set up the keypair (which might be a local thing).

One thing I am noticing is that tcpdump shows a lot of connections to ec2-54-235-77-197.compute-1.amazonaws.com, whereas when I launch the server with the nova client, there are none. I'm wondering if there's a hardcoded URL in Packer somewhere.

I'm unable to further debug this because Packer or the underlying library does not provide the response from the OpenStack server. From Googling, I see that this is simply not supported at the current juncture.

Packer 1.0.3
Ubuntu 17.04 64-bit
Build output: https://gist.github.com/JoelFeiner/7f7102e3324e4efc00980600217a07aa

Builder config in JSON file:

        {
            "type": "openstack",
            "flavor": "A1.2",
            "source_image": "7925b8a6-b439-4991-9adf-092a202ff16e",
            "ssh_username": "root",
            "networks": [ "bf7a7067-8739-4421-9a08-c940d7fd435d" ],
            "image_name": "{{user `image_type`}}-{{user `image_verson`}}"
        }

Environment variables set:
OS_AUTH_URL
OS_REGION_NAME
OS_IDENTITY_API_VERSION
OS_TENANT_NAME
OS_PASSWORD
OS_USERNAME

@ArKam
Copy link

ArKam commented Apr 21, 2021

This URL may well be the one used by packer to look at hashicorp repository for newer versions available.
PS: I personally can't reproduce this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant