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

Server Profile Template connections with priority "NotBootable" not accepted without defining boot_vlan_id #564

Open
wedooit opened this issue Dec 17, 2024 · 1 comment

Comments

@wedooit
Copy link

wedooit commented Dec 17, 2024

I'm getting always the following error, when applying the code (bear in mind that the "plan" works as expected):

oneview_server_profile_template.ServerProfileTemplate["spttest"]: Creating... ╷ │ Error: invalid boot_vlan_id: strconv.Atoi: parsing "": invalid syntax │ │ with oneview_server_profile_template.ServerProfileTemplate["spttest"], │ on main.tf line 18, in resource "oneview_server_profile_template" "ServerProfileTemplate": │ 18: resource "oneview_server_profile_template" "ServerProfileTemplate" { │ ╵ ERRO[0013] 1 error occurred: * exit status 1

The inputs:
connection_settings = {
manage_connections = true
compliance_ctl = "Checked"
}
connections = [
{
connection_id = 1
allocated_mbps = 1
allocated_vfs = 1
isolated_trunk = false
max_mbps = 25
connection_name = "cn1tun1lab"
function_type = "Ethernet"
network_type = "network"
network_name = "tun1lab"
port_id = "Mezz 3:1-a"
requested_mbps = "2500"
requested_vfs = "Auto"
lag_name = "LAG1"
boot = {
priority = "NotBootable"
}
}

The execution plan:

  + connection_settings {
      + compliance_control = "Checked"
      + manage_connections = true

      + connections {
          + function_type  = "Ethernet"
          + id             = 1
          + isolated_trunk = false
          + lag_name       = "LAG1"
          + name           = "cn1tun1lab"
          + network_uri    = "/rest/ethernet-networks/df78c53b-ca33-4516-8a38-2d913110b754"
          + port_id        = "Mezz 3:1-a"
          + requested_mbps = "2500"
          + requested_vfs  = "Auto"
            # (2 unchanged attributes hidden)

          + boot {
              + priority           = "NotBootable"
                # (3 unchanged attributes hidden)

              + iscsi (known after apply)
            }
        }

We tried to execute this with providers version 8.5, 8.7 and 9.0
But it didn't worked in anyone.

@akshith-gunasheelan
Copy link
Collaborator

Hi @wedooit , we will check this and get back to you

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

2 participants