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

Region data source returns null property values #348

Open
stvkpln opened this issue Jun 1, 2021 · 2 comments
Open

Region data source returns null property values #348

stvkpln opened this issue Jun 1, 2021 · 2 comments
Assignees
Labels
product-issue Bug or limitation in vRA or vRA Cloud

Comments

@stvkpln
Copy link

stvkpln commented Jun 1, 2021

vRA version
vRA Cloud
Terraform version
0.15.4
terraform-provider-vra plugin version
0.3.6

Describe the bug
When retrieving the data source for a region, the resource has a number of null fields that should be populated with data, such as the name of the region. When querying the region directly against the API, those fields show data...

An example output of a region's data source from the provider:

usw2 = {
  "cloud_account_id" = "6619bc9a18940e75-7f703c5265a63d87-e832bab19657dbecd082d308b9191fc68dc845ecbaedd055908d3cfd7a2bcc4a-9d401654141d487558a728a12fbb9"
  "created_at" = tostring(null)
  "external_region_id" = tostring(null)
  "filter" = tostring(null)
  "id" = "223cd589ed5cf27558a728a2c2130"
  "name" = tostring(null)
  "org_id" = tostring(null)
  "owner" = tostring(null)
  "region" = "us-west-2"
  "updated_at" = tostring(null)
}

That same region directly via the API:

{
  "externalRegionId": "us-west-2",
  "name": "us-west-2",
  "cloudAccountId": "6619bc9a18940e75-7f703c5265a63d87-e832bab19657dbecd082d308b9191fc68dc845ecbaedd055908d3cfd7a2bcc4a-9d401654141d487558a728a12fbb9",
  "id": "223cd589ed5cf27558a728a2c2130",
  "updatedAt": "2019-06-03",
  "organizationId": "fa57fef8-5d0e-494b-b299-7e4a9030ac11",
  "orgId": "fa57fef8-5d0e-494b-b299-7e4a9030ac11",
  "_links": {
    "self": {
      "href": "/iaas/api/regions/223cd589ed5cf27558a728a2c2130"
    },
    "cloud-account": {
      "href": "/iaas/api/cloud-accounts/6619bc9a18940e75-7f703c5265a63d87-e832bab19657dbecd082d308b9191fc68dc845ecbaedd055908d3cfd7a2bcc4a-9d401654141d487558a728a12fbb9"
    }
  }
}

To Reproduce

  1. Create a "vra_region" data source
  2. Create an output resource for the region data source
  3. Query the vRA IaaSRegions API and confirm missing fields

Expected behavior
I would expect the provider to not be returning null values if values do exist for those fields....

Desktop (please complete the following information):

  • OS: MacOS Big Sur 11.4
@stvkpln stvkpln added the bug Something isn't working label Jun 1, 2021
@Prativa20 Prativa20 self-assigned this Jun 24, 2021
@Prativa20
Copy link
Contributor

Prativa20 commented Jun 25, 2021

@stvkpln Merged the PR #352. This will populate org_id and updated_at.

However, to populate owner and created_at, requires changes in the API. So, marking this as product issue

@Prativa20 Prativa20 added product-issue Bug or limitation in vRA or vRA Cloud and removed bug Something isn't working labels Jun 25, 2021
@github-actions
Copy link

Marking this issue as stale due to inactivity. This helps us focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed.
If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!

@github-actions github-actions bot added the stale label Aug 25, 2021
@frodenas frodenas removed the stale label Sep 2, 2021
@tenthirtyam tenthirtyam changed the title Region data source returns null property values Region data source returns null property values Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product-issue Bug or limitation in vRA or vRA Cloud
Projects
None yet
Development

No branches or pull requests

3 participants