Skip to content

How can I get volume_id when creating pvc. #4

@huasiy

Description

@huasiy

I create pvc by executing
curl -X POST "http://10.0.0.77:2002/pvcs" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"name\": \"pvc-32ze341nncwlczm47bsre\", \"namespace\": \"default\", \"need_format\": true, \"volume_id\": \"32ze341nncwlczm47bsre\", \"volume_type\": \"lun\"}"
but get error: {"error":"can not find lv for wwid 32ze341nncwlczm47bsre"}.
The ouput of multipah -ll is empty. How can I get correct volume_id?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions