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

Using Keystone v3 token with openstack provider returns error requiring password #6458

Closed
thishitshome opened this issue May 3, 2016 · 3 comments · Fixed by #7337
Closed
Labels

Comments

@thishitshome
Copy link

Attempting to use openstack provider with "token" to create an instance returns the following error:

Error refreshing state: 1 error(s) occurred:

* You must provide a password to authenticate

Terraform Version

terraform -v
Terraform v0.6.15

OS Version

CentOS 6.6, 2.6.32-504.30.3.el6.x86_64

Affected Resource(s)

Please list the resources as a list, for example:

  • terraform-provider-openstack

Debug Output

https://gist.github.com/delias-/4c945e7aa97c63cd80d28b270783b391

Expected Behavior

A plan should be generated.

Actual Behavior

Terraform outputs an error.

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:
1 . Use a tf file like this example:

[myUser@myHost ~]$ cat example.tf

provider "openstack" {
  auth_url = "https://devcloud.mycorp.com:5000/v3"
  domain_name = "development"
  tenant_name = "dev2"
  token = "<X-Subject-Token Here generated out of band from keystone api>"
}

resource "openstack_compute_instance_v2" "myUniqInstance" {
  region = "dev"
  name = "myUniqInstance"
  image_name = "centos6-latest"
  flavor_name = "dev.tiny"
  network = { name = "dev-internal-net" }
}

2 . terraform plan

References

Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:

@jtopjian jtopjian changed the title Using token with openstack provider returns error requiring password Using Keystone v3 token with openstack provider returns error requiring password May 4, 2016
@jtopjian
Copy link
Contributor

jtopjian commented May 4, 2016

@delias- Thank you for opening this issue and including a lot of great information to work with!

I've made a slight edit to the title to mention that this seems to be a Keystone v3 issue.

@jtopjian
Copy link
Contributor

I believe I've found the root cause: rackspace/gophercloud#574

Once that's merged in, I'll be able to re-evaluate with Terraform.

@ghost
Copy link

ghost commented Apr 24, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants