-
Notifications
You must be signed in to change notification settings - Fork 33
IPAddress return is empty with latest release of vRealize Automation #16
Comments
+1 |
This sounds like an issue related to vRA, please file a Support Request through vmware.com |
@bhalter I don't think so. I am able to deploy one Catalog Item with IP Address using a powershell script and using the exactly same user to deploy that machine with terraform I cannot get the IP address of the VM. I think the latest provider version doesn't support/works well with vRealize 7.6.0. vRA 7.x version Terraform version terraform-provider-vra7 plugin version |
That's a bit more interesting, @markpeek did some investigation around changes in TF 0.12 yesterday and it looks like it could be related to that as well. Did you run into this issue with both versions or 0.12 only? |
@bhalter both versions. Note: This provider is able to return the machine name. However, this is not enough for me since the name takes time to spread to the DNS and because of that I am not able to remote connect to the VMs. |
Have you tried with a user that doesn't have the tenant administrator role assigned? I would like to know if it's the same in your case. |
@hobovirtual my user is not tenant administrator. |
It seems to be also happening with vRA 7.5.0, right after CHG074547 HF hot fix update for the VRA7.5SDE environment was applied (Build: 10053500). I tried for two different users: the user with less privileges doesn't have this problem. The user with more privileges does have this problem. I don't know the exact privileges of both users at this time, nor whether one is a tenant administrator, while the other is not like @hobovirtual reported. |
In our case, the IP address not available at the deployment level, but it is available at the VM level within the deployment, on the network tab. The Dell people at our site are asking if the vRealize provider could get the IP address from the VM instead of from the deployment? |
@hobovirtual I have one more case for vRA 7.5.0 with CHG074547 for your table. But I believe our cases are only for the Business Group Role(s) columns. I was told that permissions are not given to individual user. "User role" and "Shared access role" don't see this problem. "Support role" do see this problem. |
One comment about our case: we don't have those problem from the vRealize UI, only from Terraform. |
@hobovirtual I'm a little confused about the above table. Should the right most columns be labelled something like "IP address?" instead of "Role(s)"? Also, I was told the above three users in our case have neither Manager nor Tenant Administrator role. |
Hi @GMZwinge Yes you're right, i guess some fields got miscopied from my table, here's an image capture instead |
Hi All, vRA 7.4 version Terraform version terraform-provider-vra7 plugin version OUTPUT of terraform show: vra7_deployment.Linux_machine_02[0]:resource "vra7_deployment" "Linux_machine_02" { |
@soumik612 Since you are using vRA 7.4, you might just access ip_address as part of the VM properties. Please let me know if that works for you. Thanks, |
@Prativa20, In my case, the VMs have multiple NICs which are named as |
@soumik612 Let me reproduce this issue and get back to you. Thanks, |
@hobovirtual and others: We have a ticket with VMware regarding this issue. They ask:
I don't know which resourceViews APIs are being hit, nor have sample code to hit those API. Can someone provide such sample code (shell or Python script for example)? |
@hobovirtual @GMZwinge Can we get on a call to reproduce this issue? |
Hi @GMZwinge Working with @Prativa20 and engineering on this, hopefully we can provide some feedback soon. Thanks! |
Hi @Prativa20 , @hobovirtual , Have you been able to find a fix for this issue yet ? |
Hi @soumik612 |
Have you received any feedback from Vmware yet ? |
@soumik612 This issues is reproduced only if we set ip_address in main.tf while requesting a catalog item from terraform as in this example The issue is that some extraneous custom properties are added to machine deployments when you create a deployment via Terraform. Those custom properties only get created if the user has a certain role (support user, business group admin, and other admins). One of those extra custom properties is named "ip_address", which conflicts with the "ip_address" metadata that is returned by vRA when Terraform queries for machine information. That custom property value overwrites the real IP address value. So, adding ip_address isn't the right way to do it. This issue is resolved in the PR #40. Thanks, |
Thanks @Prativa20 , I am able to fetch the ips now using the custom plugin. Any idea when this code will be pushed to official TF provider ? |
@soumik612 Great! I am working on merging it with proper documentation and examples. Will update soon. |
1. Addressing the following issues: https://github.com/terraform-providers/terraform-provider-vra7/issues/47 https://github.com/terraform-providers/terraform-provider-vra7/issues/43 https://github.com/terraform-providers/terraform-provider-vra7/issues/41 https://github.com/terraform-providers/terraform-provider-vra7/issues/39 https://github.com/terraform-providers/terraform-provider-vra7/issues/38 https://github.com/terraform-providers/terraform-provider-vra7/issues/33 https://github.com/terraform-providers/terraform-provider-vra7/issues/29 https://github.com/terraform-providers/terraform-provider-vra7/issues/27 https://github.com/terraform-providers/terraform-provider-vra7/issues/16 2. Re-designed the resource_configuration schema to include more properties 3. Implemented Day 2 operations for Scale In and Scale Out 4. Added import functionality 5. Updated the create and update logic as per the new schema 6. Modify read deployment to read all the properties retuned from the API 7. Added examples and documentation for the new schema Signed-off-by: Prativa Bawri <bawrip@vmware.com>
1. Addressing the following issues: https://github.com/terraform-providers/terraform-provider-vra7/issues/47 https://github.com/terraform-providers/terraform-provider-vra7/issues/43 https://github.com/terraform-providers/terraform-provider-vra7/issues/41 https://github.com/terraform-providers/terraform-provider-vra7/issues/39 https://github.com/terraform-providers/terraform-provider-vra7/issues/38 https://github.com/terraform-providers/terraform-provider-vra7/issues/33 https://github.com/terraform-providers/terraform-provider-vra7/issues/29 https://github.com/terraform-providers/terraform-provider-vra7/issues/27 https://github.com/terraform-providers/terraform-provider-vra7/issues/16 2. Re-designed the resource_configuration schema to include more properties 3. Implemented Day 2 operations for Scale In and Scale Out 4. Added import functionality 5. Updated the create and update logic as per the new schema 6. Modify read deployment to read all the properties retuned from the API 7. Added examples and documentation for the new schema Signed-off-by: Prativa Bawri <bawrip@vmware.com>
1. Addressing the following issues: https://github.com/terraform-providers/terraform-provider-vra7/issues/47 https://github.com/terraform-providers/terraform-provider-vra7/issues/43 https://github.com/terraform-providers/terraform-provider-vra7/issues/41 https://github.com/terraform-providers/terraform-provider-vra7/issues/39 https://github.com/terraform-providers/terraform-provider-vra7/issues/38 https://github.com/terraform-providers/terraform-provider-vra7/issues/33 https://github.com/terraform-providers/terraform-provider-vra7/issues/29 https://github.com/terraform-providers/terraform-provider-vra7/issues/27 https://github.com/terraform-providers/terraform-provider-vra7/issues/16 2. Re-designed the resource_configuration schema to include more properties 3. Implemented Day 2 operations for Scale In and Scale Out 4. Added import functionality 5. Updated the create and update logic as per the new schema 6. Modify read deployment to read all the properties retuned from the API 7. Added examples and documentation for the new schema Signed-off-by: Prativa Bawri <bawrip@vmware.com>
1. Addressing the following issues: https://github.com/terraform-providers/terraform-provider-vra7/issues/47 https://github.com/terraform-providers/terraform-provider-vra7/issues/43 https://github.com/terraform-providers/terraform-provider-vra7/issues/41 https://github.com/terraform-providers/terraform-provider-vra7/issues/39 https://github.com/terraform-providers/terraform-provider-vra7/issues/38 https://github.com/terraform-providers/terraform-provider-vra7/issues/33 https://github.com/terraform-providers/terraform-provider-vra7/issues/29 https://github.com/terraform-providers/terraform-provider-vra7/issues/27 https://github.com/terraform-providers/terraform-provider-vra7/issues/16 2. Re-designed the resource_configuration schema to include more properties 3. Implemented Day 2 operations for Scale In and Scale Out 4. Added import functionality 5. Updated the create and update logic as per the new schema 6. Modify read deployment to read all the properties retuned from the API 7. Added examples and documentation for the new schema Signed-off-by: Prativa Bawri <bawrip@vmware.com>
1. Addressing the following issues: https://github.com/terraform-providers/terraform-provider-vra7/issues/47 https://github.com/terraform-providers/terraform-provider-vra7/issues/43 https://github.com/terraform-providers/terraform-provider-vra7/issues/41 https://github.com/terraform-providers/terraform-provider-vra7/issues/39 https://github.com/terraform-providers/terraform-provider-vra7/issues/38 https://github.com/terraform-providers/terraform-provider-vra7/issues/33 https://github.com/terraform-providers/terraform-provider-vra7/issues/29 https://github.com/terraform-providers/terraform-provider-vra7/issues/27 https://github.com/terraform-providers/terraform-provider-vra7/issues/16 2. Re-designed the resource_configuration schema to include more properties 3. Implemented Day 2 operations for Scale In and Scale Out 4. Added import functionality 5. Updated the create and update logic as per the new schema 6. Modify read deployment to read all the properties retuned from the API 7. Added examples and documentation for the new schema Signed-off-by: Prativa Bawri <bawrip@vmware.com>
1. Addressing the following issues: https://github.com/terraform-providers/terraform-provider-vra7/issues/55 https://github.com/terraform-providers/terraform-provider-vra7/issues/54 https://github.com/terraform-providers/terraform-provider-vra7/issues/47 https://github.com/terraform-providers/terraform-provider-vra7/issues/43 https://github.com/terraform-providers/terraform-provider-vra7/issues/41 https://github.com/terraform-providers/terraform-provider-vra7/issues/39 https://github.com/terraform-providers/terraform-provider-vra7/issues/38 https://github.com/terraform-providers/terraform-provider-vra7/issues/33 https://github.com/terraform-providers/terraform-provider-vra7/issues/29 https://github.com/terraform-providers/terraform-provider-vra7/issues/27 https://github.com/terraform-providers/terraform-provider-vra7/issues/16 2. Re-designed the resource_configuration schema to include more properties 3. Implemented Day 2 operations for Scale In and Scale Out and Change Lease 4. Added import functionality 5. Added vra7_deployment data source 6. Updated the create and update logic as per the new schema 7. Modify read deployment to read all the properties retuned from the API 8. Modified README.md, examples and documentation as per the new schema Signed-off-by: Prativa Bawri <bawrip@vmware.com>
1. Addressing the following issues: https://github.com/terraform-providers/terraform-provider-vra7/issues/55 https://github.com/terraform-providers/terraform-provider-vra7/issues/54 https://github.com/terraform-providers/terraform-provider-vra7/issues/47 https://github.com/terraform-providers/terraform-provider-vra7/issues/43 https://github.com/terraform-providers/terraform-provider-vra7/issues/41 https://github.com/terraform-providers/terraform-provider-vra7/issues/39 https://github.com/terraform-providers/terraform-provider-vra7/issues/38 https://github.com/terraform-providers/terraform-provider-vra7/issues/33 https://github.com/terraform-providers/terraform-provider-vra7/issues/29 https://github.com/terraform-providers/terraform-provider-vra7/issues/27 https://github.com/terraform-providers/terraform-provider-vra7/issues/16 2. Re-designed the resource_configuration schema to include more properties 3. Implemented Day 2 operations for Scale In and Scale Out and Change Lease 4. Added import functionality 5. Added vra7_deployment data source 6. Updated the create and update logic as per the new schema 7. Modify read deployment to read all the properties retuned from the API 8. Modified README.md, examples and documentation as per the new schema Signed-off-by: Prativa Bawri <bawrip@vmware.com>
1. Addressing the following issues: https://github.com/terraform-providers/terraform-provider-vra7/issues/55 https://github.com/terraform-providers/terraform-provider-vra7/issues/54 https://github.com/terraform-providers/terraform-provider-vra7/issues/47 https://github.com/terraform-providers/terraform-provider-vra7/issues/43 https://github.com/terraform-providers/terraform-provider-vra7/issues/41 https://github.com/terraform-providers/terraform-provider-vra7/issues/39 https://github.com/terraform-providers/terraform-provider-vra7/issues/38 https://github.com/terraform-providers/terraform-provider-vra7/issues/33 https://github.com/terraform-providers/terraform-provider-vra7/issues/29 https://github.com/terraform-providers/terraform-provider-vra7/issues/27 https://github.com/terraform-providers/terraform-provider-vra7/issues/16 2. Re-designed the resource_configuration schema to include more properties 3. Implemented Day 2 operations for Scale In and Scale Out and Change Lease 4. Added import functionality 5. Added vra7_deployment data source 6. Updated the create and update logic as per the new schema 7. Modify read deployment to read all the properties retuned from the API 8. Modified README.md, examples and documentation as per the new schema Signed-off-by: Prativa Bawri <bawrip@vmware.com>
1. Addressing the following issues: https://github.com/terraform-providers/terraform-provider-vra7/issues/55 https://github.com/terraform-providers/terraform-provider-vra7/issues/54 https://github.com/terraform-providers/terraform-provider-vra7/issues/47 https://github.com/terraform-providers/terraform-provider-vra7/issues/43 https://github.com/terraform-providers/terraform-provider-vra7/issues/41 https://github.com/terraform-providers/terraform-provider-vra7/issues/39 https://github.com/terraform-providers/terraform-provider-vra7/issues/38 https://github.com/terraform-providers/terraform-provider-vra7/issues/33 https://github.com/terraform-providers/terraform-provider-vra7/issues/29 https://github.com/terraform-providers/terraform-provider-vra7/issues/27 https://github.com/terraform-providers/terraform-provider-vra7/issues/16 2. Re-designed the resource_configuration schema to include more properties 3. Implemented Day 2 operations for Scale In and Scale Out and Change Lease 4. Added import functionality 5. Added vra7_deployment data source 6. Updated the create and update logic as per the new schema 7. Modify read deployment to read all the properties retuned from the API 8. Modified README.md, examples and documentation as per the new schema Signed-off-by: Prativa Bawri <bawrip@vmware.com>
1. Addressing the following issues: https://github.com/terraform-providers/terraform-provider-vra7/issues/55 https://github.com/terraform-providers/terraform-provider-vra7/issues/54 https://github.com/terraform-providers/terraform-provider-vra7/issues/47 https://github.com/terraform-providers/terraform-provider-vra7/issues/43 https://github.com/terraform-providers/terraform-provider-vra7/issues/41 https://github.com/terraform-providers/terraform-provider-vra7/issues/39 https://github.com/terraform-providers/terraform-provider-vra7/issues/38 https://github.com/terraform-providers/terraform-provider-vra7/issues/33 https://github.com/terraform-providers/terraform-provider-vra7/issues/29 https://github.com/terraform-providers/terraform-provider-vra7/issues/27 https://github.com/terraform-providers/terraform-provider-vra7/issues/16 2. Re-designed the resource_configuration schema to include more properties 3. Implemented Day 2 operations for Scale In and Scale Out and Change Lease 4. Added import functionality 5. Added vra7_deployment data source 6. Updated the create and update logic as per the new schema 7. Modify read deployment to read all the properties retuned from the API 8. Modified README.md, examples and documentation as per the new schema Signed-off-by: Prativa Bawri <bawrip@vmware.com>
1. Addressing the following issues: https://github.com/terraform-providers/terraform-provider-vra7/issues/55 https://github.com/terraform-providers/terraform-provider-vra7/issues/54 https://github.com/terraform-providers/terraform-provider-vra7/issues/47 https://github.com/terraform-providers/terraform-provider-vra7/issues/43 https://github.com/terraform-providers/terraform-provider-vra7/issues/41 https://github.com/terraform-providers/terraform-provider-vra7/issues/39 https://github.com/terraform-providers/terraform-provider-vra7/issues/38 https://github.com/terraform-providers/terraform-provider-vra7/issues/33 https://github.com/terraform-providers/terraform-provider-vra7/issues/29 https://github.com/terraform-providers/terraform-provider-vra7/issues/27 https://github.com/terraform-providers/terraform-provider-vra7/issues/16 2. Re-designed the resource_configuration schema to include more properties 3. Implemented Day 2 operations for Scale In and Scale Out and Change Lease 4. Added import functionality 5. Added vra7_deployment data source 6. Updated the create and update logic as per the new schema 7. Modify read deployment to read all the properties retuned from the API 8. Modified README.md, examples and documentation as per the new schema Signed-off-by: Prativa Bawri <bawrip@vmware.com>
1. Addressing the following issues: https://github.com/terraform-providers/terraform-provider-vra7/issues/55 https://github.com/terraform-providers/terraform-provider-vra7/issues/54 https://github.com/terraform-providers/terraform-provider-vra7/issues/47 https://github.com/terraform-providers/terraform-provider-vra7/issues/43 https://github.com/terraform-providers/terraform-provider-vra7/issues/41 https://github.com/terraform-providers/terraform-provider-vra7/issues/39 https://github.com/terraform-providers/terraform-provider-vra7/issues/38 https://github.com/terraform-providers/terraform-provider-vra7/issues/33 https://github.com/terraform-providers/terraform-provider-vra7/issues/29 https://github.com/terraform-providers/terraform-provider-vra7/issues/27 https://github.com/terraform-providers/terraform-provider-vra7/issues/16 2. Re-designed the resource_configuration schema to include more properties 3. Implemented Day 2 operations for Scale In and Scale Out and Change Lease 4. Added import functionality 5. Added vra7_deployment data source 6. Updated the create and update logic as per the new schema 7. Modify read deployment to read all the properties retuned from the API 8. Modified README.md, examples and documentation as per the new schema Signed-off-by: Prativa Bawri <bawrip@vmware.com>
1. Addressing the following issues: https://github.com/terraform-providers/terraform-provider-vra7/issues/55 https://github.com/terraform-providers/terraform-provider-vra7/issues/54 https://github.com/terraform-providers/terraform-provider-vra7/issues/47 https://github.com/terraform-providers/terraform-provider-vra7/issues/43 https://github.com/terraform-providers/terraform-provider-vra7/issues/41 https://github.com/terraform-providers/terraform-provider-vra7/issues/39 https://github.com/terraform-providers/terraform-provider-vra7/issues/38 https://github.com/terraform-providers/terraform-provider-vra7/issues/33 https://github.com/terraform-providers/terraform-provider-vra7/issues/29 https://github.com/terraform-providers/terraform-provider-vra7/issues/27 https://github.com/terraform-providers/terraform-provider-vra7/issues/16 2. Re-designed the resource_configuration schema to include more properties 3. Implemented Day 2 operations for Scale In and Scale Out and Change Lease 4. Added import functionality 5. Added vra7_deployment data source 6. Updated the create and update logic as per the new schema 7. Modify read deployment to read all the properties retuned from the API 8. Modified README.md, examples and documentation as per the new schema Signed-off-by: Prativa Bawri <bawrip@vmware.com>
@hobovirtual @diogoferreirasky @GMZwinge @soumik612 This issue is fixed in the latest version, v1.0.0. IP address is returned once the deployment is successful. ip_address is also added in the resource_configuration schema for its easy access. Refer to the documentation, examples and README for more detail and migrate to this version. |
vRA 7.x version
vRealize Automation 7.6.0
Terraform version
Terraform v0.11.13
terraform-provider-vra7 plugin version
provider.vra7 v0.2.0
Describe the bug
Following issue #136
After some investigation following an upgrade from vRealize 7.4 to 7.6 me and one of my customer, we realized that the ip_address data is no longer populated in the resourceViews only if the user who made the request has the Tenant Administrator role in vRealize Automation.
Looking into resourceViews, seems that the NETWORK_LIST data map, always contains the IP no matter who made the request or it's role(s)
Should we change the IPAddress or add a new NetworkAddress resource in the vra7_sdk.go to reflect this behavior change in the latest vRA version?
To Reproduce
Steps to reproduce the behavior:
Create a user with Tenant Administrator in vRA
Launch deployment via terraform config file
Add the IPAddress output
2.1 You should get the following output
vm1 IP Address =
Repeat the same steps with a user that doesn't have the Tenant Administor role
3.1 You should get the following output
vm1 IP Address = 10.10.10.X
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: