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

Malformed request body with New-RubrikBootstrap #568

Closed
shamsway opened this issue Feb 20, 2020 · 2 comments
Closed

Malformed request body with New-RubrikBootstrap #568

shamsway opened this issue Feb 20, 2020 · 2 comments

Comments

@shamsway
Copy link
Contributor

Current Behavior:

New-RubrikBootstrap is used to bootstrap a new Edge/Cluster. Currently the request body being built by the private function New-BodyString is malformed (example below).

VERBOSE: Body = {
  "dnsNameservers": [
    "192.168.10.9"
  ],
  "enableSoftwareEncryptionAtRest": true,
  "adminUserInfo": {
    "password": "P@SSw0rd!",
    "id": "admin",
    "emailAddress": "[email protected]"
  },
  "nodeConfigs": {
    "node1": {
      "managementIpConfig": "System.Collections.Hashtable"
    }
  },
  "name": "RubrikEdge",
  "ntpServerConfigs": [
    {
      "server": "pool.ntp.org"
    }
  ]
}

Expected Behavior:
The body should be properly formed, as demonstrated below

Body = {
  "dnsNameservers": [
    "192.168.10.9"
  ],
  "enableSoftwareEncryptionAtRest": true,
  "adminUserInfo": {
    "password": "P@SSw0rd!",
    "id": "admin",
    "emailAddress": "[email protected]"
  },
  "nodeConfigs": {
    "node1": {
      "managementIpConfig": {
        "address": "192.168.1.10",
        "netmask": "255.255.255.0",
        "gateway": "192.168.1.1"
      }
    }
  },
  "name": "RubrikEdge",
  "ntpServerConfigs": [
    {
      "server": "pool.ntp.org"
    }
  ]
}

Steps to Reproduce:

Use New-RubrikBootstrap based on the included cmdlet examples or documentation

@shamsway
Copy link
Contributor Author

Also found that the ID variable is being overwritten with the value "False" when it should be "me"

@jaapbrasser
Copy link
Contributor

Resolved in #569

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

No branches or pull requests

2 participants