Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Does 'import' work? #29

Closed
mcascone opened this issue Sep 4, 2019 · 2 comments
Closed

Does 'import' work? #29

mcascone opened this issue Sep 4, 2019 · 2 comments
Assignees
Labels
feature request New feature request

Comments

@mcascone
Copy link

mcascone commented Sep 4, 2019

versions
Terraform v0.12.7
+ provider.vra7 v0.4.1

Describe the bug
terraform import fails on authentication. It appears as if it is not sending the user name correctly.

To Reproduce
Steps to reproduce the behavior:

  1. Module module.MASTER.vra7_deployment.vra-chef is instantiated and applied
  2. Terraform command: terraform import module.MASTER.vra7_deployment.vra-chef 5021936a-66c7-01d4-bb16-41ca96c3517b
  3. Error:
Error: Error: Unable to get auth token: vRealize API: [{Code:90135 Message:Unable to authenticate user  in tenant Engineering. SystemMessage:90135-Unable to authenticate user  in tenant Engineering.} {Code:400 Message: SystemMessage:}]

  on modules\vra-chef\main.tf line 5, in provider "vra7":
   5: provider "vra7" {

Expected behavior
Terraform imports the machine specified into the resource ID. I have never actually seen this happen so I'm not 100% sure what to expect.

Screenshots
If applicable, add screenshots to help explain your problem.

Logs
Attach logs to help debug the issue

  1. Attach vra-terraform.log
    vra-terraform.log

  2. Attach Terraform console log (Enable terraform logs following the steps mentioned in https://www.terraform.io/docs/configuration/environment-variables.html)
    PowerShell_transcript.CHI-MAXCA-10-01.qB5pgV5r.20190904164316.txt

  3. crash.log(if any)

Desktop (please complete the following information):
Win10

Additional context
Add any other context about the problem here.

@Prativa20
Copy link
Contributor

@mcascone Working on it. Will update soon

@Prativa20 Prativa20 self-assigned this Apr 5, 2020
@Prativa20 Prativa20 added the feature request New feature request label Apr 5, 2020
Prativa20 referenced this issue Apr 6, 2020
Prativa20 referenced this issue Apr 6, 2020
Prativa20 referenced this issue Apr 6, 2020
Prativa20 referenced this issue Apr 6, 2020
Prativa20 referenced this issue Apr 7, 2020
Prativa20 referenced this issue Apr 7, 2020
Prativa20 referenced this issue Apr 8, 2020
markpeek referenced this issue Apr 8, 2020
@Prativa20
Copy link
Contributor

Prativa20 commented Apr 8, 2020

@mcascone Import functionality is now supported in the latest version, v1.0.0.
Refer to README for detail.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature request New feature request
Projects
None yet
Development

No branches or pull requests

2 participants