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

MAC address missing from server profile connections #552

Open
linkages opened this issue Jan 8, 2024 · 0 comments
Open

MAC address missing from server profile connections #552

linkages opened this issue Jan 8, 2024 · 0 comments

Comments

@linkages
Copy link

linkages commented Jan 8, 2024

Scenario:

I need the MAC address of the various interfaces after creating a server profile from a server profile template deployed on a Synergy OneView cluster. This is to automate the creation of DHCP reservations in preparation for OS install.

Environment:

Terraform OneView Provider 8.6
API Version: 3800

Example:

resource "oneview_server_profile" "profile" {
name = "servername"
hardware_name = data.oneview_server_hardware.frame1-bay1.name
server_hardware_type = data.oneview_server_profile_template.AZ1-SY480G11-20231215.server_hardware_type
template = data.oneview_server_profile_template.AZ1-SY480G11-20231215.name
scopes_uri = data.oneview_scope.scope.uri
}

output "profile" {
value = oneview_server_profile.profile.connection_settings
sensitive = true
}

Abbreviated output from "terraform output -json":

profile = toset([
  {
    "allocated_mbps" = 2500
    "allocated_vfs" = 0
    "boot" = tolist([
      {
        "boot_target" = toset([])
        "boot_vlan_id" = 0
        "boot_volume_source" = ""
        "ethernet_boot_type" = ""
        "iscsi" = tolist([])
        "priority" = "NotBootable"
      },
    ])
    "function_type" = "Ethernet"
    "id" = 2
    "interconnect_port" = 0
    "interconnect_uri" = "/rest/interconnects/c4867c10-59f7-4627-b51a-fd415e13372c"
    "ipv4" = tolist([])
    "isolated_trunk" = false
    "lag_name" = ""
    "mac" = ""
    "mac_type" = "Virtual"
    "managed" = true
    "maximum_mbps" = 50000
    "name" = "eth-1-b"
    "network_name" = ""
    "network_uri" = "/rest/ethernet-networks/c05a919a-9a37-49cc-814e-371a95892e45"
    "port_id" = "Mezz 3:2-a"
    "private_vlan_port_type" = "None"
    "requested_mbps" = "2500"
    "requested_vfs" = ""
    "state" = "Deployed"
    "status" = "OK"
    "wwnn" = ""
    "wwpn" = ""
    "wwpn_type" = ""
  },

notice how "mac" is empty.

Expected output from "terraform output -json":

profile = toset([
  {
    "allocated_mbps" = 2500
    "allocated_vfs" = 0
    "boot" = tolist([
      {
        "boot_target" = toset([])
        "boot_vlan_id" = 0
        "boot_volume_source" = ""
        "ethernet_boot_type" = ""
        "iscsi" = tolist([])
        "priority" = "NotBootable"
      },
    ])
    "function_type" = "Ethernet"
    "id" = 2
    "interconnect_port" = 0
    "interconnect_uri" = "/rest/interconnects/c4867c10-59f7-4627-b51a-fd415e13372c"
    "ipv4" = tolist([])
    "isolated_trunk" = false
    "lag_name" = ""
    "mac" = "66:1A:45:70:00:2B"
    "mac_type" = "Virtual"
    "managed" = true
    "maximum_mbps" = 50000
    "name" = "eth-1-b"
    "network_name" = ""
    "network_uri" = "/rest/ethernet-networks/c05a919a-9a37-49cc-814e-371a95892e45"
    "port_id" = "Mezz 3:2-a"
    "private_vlan_port_type" = "None"
    "requested_mbps" = "2500"
    "requested_vfs" = ""
    "state" = "Deployed"
    "status" = "OK"
    "wwnn" = ""
    "wwpn" = ""
    "wwpn_type" = ""
  },

The same thing happens when you use a data source as well.

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

No branches or pull requests

1 participant