Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Plugin fails to lookup status of action #123

Open
bnfbiz opened this issue Feb 15, 2019 · 5 comments
Open

Plugin fails to lookup status of action #123

bnfbiz opened this issue Feb 15, 2019 · 5 comments

Comments

@bnfbiz
Copy link

bnfbiz commented Feb 15, 2019

vRA 7.x version
7.3.1
Terraform version
v0.11.11
terraform-provider-vra7 plugin version
5855f3c

Describe the bug
Receiving the following error message when terraform is checking the status "Resource view failed to load: invalid character '<' looking for beginning of value"
The apply does kick off, destory gives the same error

To Reproduce
Running the simple example (with site appropriate mods)

In my case I had the host setup to be the fully quallified site: https://mysite.com/vcac/org/myorg

Expected behavior
This should either work or not work but not partially work. If the fully qualified path is a problem, then the code should at least warn about it. In my case the blueprint was requested but terraform couldn't check the status.

Screenshots
N/A

Logs
Attach logs to help debug the issue
2019-02-13T16:50:50.076Z resource.go:327 readResource ? INFO 01a^[[0m Calling read resource to get the current resource status of the request: 559c9987-7e22-44e1-8e1f-2257e0d7d9f4
^[[31m2019-02-13T16:50:50.082Z resource.go:334 readResource ? ERRO 01b^[[0m Resource view failed to load: invalid character '<' looking for beginning of value
2019-02-13T16:50:50.083Z resource.go:760 waitForRequestCompletion ? INFO 01c^[[0m Checking to see if resource is created. Status: SUBMITTED.
2019-02-13T16:50:50.083Z resource.go:773 waitForRequestCompletion ? INFO 01d^[[0m Resource creation request status: SUBMITTED.

Desktop (please complete the following information):
Red Hat Enterprise Linux 7.5

Additional context

@Prativa20
Copy link
Contributor

Prativa20 commented Feb 20, 2019

@bnfbiz I tried a basic provisioning on my 7.3 vRA. Works fine for me.
Can you please attach the vra-terraform.log file? These logs are not enough.

Thanks,
Prativa

@bnfbiz bnfbiz changed the title Plugin failes to lookup status of action Plugin fails to lookup status of action Feb 21, 2019
@bnfbiz
Copy link
Author

bnfbiz commented Feb 21, 2019

did you try having the host with the suffix /vcac/?

@Prativa20
Copy link
Contributor

@bnfbiz The host should not have the suffix vcac. It should just be "https://host"

@bnfbiz
Copy link
Author

bnfbiz commented Feb 25, 2019

I understand that, I think there should be a code fix to at a minimum warn of the misconfiguration. The problem is is partially worked and that is the problem, if it didn't work at all, I would have caught the problem much sooner than the blueprint creation started but the status couldn't be checked successfully.

@Prativa20
Copy link
Contributor

@bnfbiz Agreed! We can add this validation in the code.

Thanks,
Prativa

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

No branches or pull requests

2 participants