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

Unable to create a Server Profile with Deployment Plan settings #212

Closed
marikrg opened this issue Mar 13, 2017 · 1 comment
Closed

Unable to create a Server Profile with Deployment Plan settings #212

marikrg opened this issue Mar 13, 2017 · 1 comment
Assignees

Comments

@marikrg
Copy link

marikrg commented Mar 13, 2017

Scenario/Intent

I'm not able to create any Server Profile using an existing Deployment Plan.
There is no way to get the URI of a Deployment Plan, unless copying it from the GUI.

The GET /rest/os-deployment-plans/{id}, from the OneView API 300, returns two URIs in the response data:

"nativePlanUri": "/rest/oedeploymentplan/c85a5181-8c4c-421c-a018-5b5e69082bce"

and

"uri": "/rest/os-deployment-plans/18d42e6d-f64e-422b-affd-7185603ab9c4"

The nativePlanUri is the same URI from ImageStreamer, and it doesn't work for Server Profile creation.
I must pass in the uri, which is the canonical URI.

Follow an example of the Deployment Setting from an existing Server Profile:

    "osDeploymentSettings": {
        "osDeploymentPlanUri": "/rest/os-deployment-plans/18d42e6d-f64e-422b-affd-7185603ab9c4",
        "osVolumeUri": "/rest/deployed-targets/c9bc7b3c-e916-425f-9dad-6c304e1140e1",
        "osCustomAttributes": [
            {
                "name": "hostname",
                "value": "newhostname"
            }
        ]
    }

Thus, the endpoints from the OneView Rest API 300 are really useful and must be implemented as soon as possible.

Environment Details

  • OneView SDK Version: any
  • OneView Appliance Version: 3.0 / Synergy
  • OneView Client API Version: 300
  • Ruby Version: any
  • Platform: Linux/Windows

Steps to Reproduce

Call OneviewSDK::API300::Synergy::OSDeploymentPlan.find_by (or anything similar, not sure about the class name)

Expected Result

Return a list of OS Deployment Plans.

Actual Result

This resource is not implemented yet.

@tmiotto
Copy link
Contributor

tmiotto commented Mar 16, 2017

Well, it's still missing the ServerProfile#set_os_deployment_plan.

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

3 participants