Skip to content

How to use getVolume for Openstack in v3?  #680

Open

Description

@shaghayegh-tvkl

I'm trying to get a Volume but when I use this method I get the 404 Error. It seems like the API its calling is this:
GET /v1/ -Project ID- /volumes/ -Volume ID-
However, it should be "v3" instead of "v1". I tested both in postman and with the replacement of v3 it worked.
how can I change it?

Activity

  1. hagak commented on Jun 17, 2021

    @hagak

    I just ran into this today and found that if I modified this file:
    pkgcloud/lib/pkgcloud/openstack/blockstorage/client/index.js

    Change
    this.serviceType = 'volume';
    to
    this.serviceType = 'volumev3';

    I know this is a year plus old post but I found it looking for an answer so maybe someone else will too.

    Not sure the proper way to fix this issue which is why i have not put a Pull Request in. I am new to openstack so not sure if the v1 interface is needed.

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

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