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

ibm_pi_instance doesn't populate networks -> network_id #6028

Open
srikanthkm opened this issue Feb 26, 2025 · 1 comment
Open

ibm_pi_instance doesn't populate networks -> network_id #6028

srikanthkm opened this issue Feb 26, 2025 · 1 comment
Labels
service/Power Systems Issues related to Power Systems

Comments

@srikanthkm
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform IBM Provider Version

Terraform v1.5.4
on darwin_amd64

  • provider registry.terraform.io/ibm-cloud/ibm v1.75.2

Affected Resource(s)

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

data "ibm_pi_instances" "ds_instance" {
  pi_cloud_instance_id = data.ibm_pi_workspace.workspace.id
}

output "instances" {
    value = data.ibm_pi_instances.ds_instance
}

data "ibm_pi_networks" "ds_networks" {
  pi_cloud_instance_id = data.ibm_pi_workspace.workspace.id
}

output "networks" { 
    value = data.ibm_pi_networks.ds_networks
}

Debug Output

Panic Output

Expected Behavior

The network_id field under networks should be populated in the response. However, it is rendered empty though the public network is attached to the instance.

Actual Behavior

The network_id is empty

{
      "id": "1bfbb09b-e411-ec8d-4b74-b6bf93f84653",
      "pi_cloud_instance_id": "xxx",
      "pvm_instances": [
        {
          "crn": "MASKED_CRN",
          "fault": {},
          "health_status": "OK",
          "license_repository_capacity": 0,
          "max_virtual_cores": 5,
          "maxmem": 16,
          "maxproc": 2,
          "memory": 2,
          "min_virtual_cores": 1,
          "minmem": 2,
          "minproc": 0.25,
          "networks": [
            {
              "external_ip": "",
              "ip": "192.168.152.244",
              "mac_address": "fa:69:31:f2:9f:20",
              "macaddress": "fa:69:31:f2:9f:20",
              "network_id": "",
              "network_name": "public-192_168_152_240-29-VLAN_2090",
              "type": "fixed"
            }
          ],
          "pin_policy": "hard",
          "placement_group_id": "none",
          "processors": 0.25,
          "proctype": "shared",
          "pvm_instance_id": "a1e2c293-c4e8-4318-8917-49bb584c3fd2",
          "server_name": "vsi-26feb",
          "shared_processor_pool": "",
          "shared_processor_pool_id": "",
          "status": "ACTIVE",
          "storage_connection": "",
          "storage_pool": "General-Flash-6",
          "storage_pool_affinity": true,
          "storage_type": "any",
          "user_tags": [],
          "virtual_cores_assigned": 1,
          "virtual_serial_number": []
        }
      ]
    }
  }
@github-actions github-actions bot added the service/Power Systems Issues related to Power Systems label Feb 26, 2025
@ismirlia
Copy link
Collaborator

ismirlia commented Mar 6, 2025

@srikanthkm Please post the complete configuration. From what you've pasted, it sounds like it is an issue with the service broker response. @rmoralesjr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service/Power Systems Issues related to Power Systems
Projects
None yet
Development

No branches or pull requests

2 participants