hashicorp / hashicorp/packer-plugin-openstack

OpenStack Builder: using WinRM connector produces error "An invalid 'name' value was provided."

Open
#19 0 comments 0 reactions 0 assignees View on GitHub
bug builder/openstack community-supported plugin
Dominant language
Go
Stars
29
Forks
26
PR merge metrics
No merged PRs in 30d

Description

_This issue was originally opened by @JimPruitt as hashicorp/packer#7646. It was migrated here as a result of the [Packer plugin split](https://github.com/hashicorp/packer/issues/8610#issuecomment-770034737). The original body of the issue is below._


FOR BUGS:
**Describe the problem and include the following information**:
I am attempting to use the Packer "OpenStack" builder with the WinRM connector. I can confirm that the builder is able to connect to OpenStack successfully and it successfully detects the OpenStack "flavor" ID (by using the flavor name). However, when it tries to launch the source server I get an error:

> openstack: Error launching source server: Bad request with: [POST https://**.***.***.***:*****/v2.1/servers], error message: {"badRequest": {"message": "An invalid 'name' value was provided. The name must be: printable characters. Can not start or end with whitespace.", "code": 400}}

(_Note that the ip address and port are obscured in the above error message_)

- **Packer version from `packer version`** v1.4.0
- **Host platform** Packer was running on **Windows 10**. Bug also occurs running it on **Centos 7**.
- **Debug log output**from `PACKER_LOG=1 packer build template.json`.
See https://gist.github.com/JimPruitt/45661198b1229935242c4f380090a412
- The _simplest example template and scripts_ needed to reproduce the bug.
See https://gist.github.com/JimPruitt/45661198b1229935242c4f380090a412

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.