Hi. I want to access to blockstorage service on OpenStack for work with volumes. I use under config for connected to blockstorage service:
const client = pkgcloud.blockstorage.createClient({
provider: "openstack",
username: "username",
password: "password",
authUrl: "http://ip:5000",
region: "region",
keystoneAuthVersion: 'v3',
domainId: 'default',
tenantId: 'project-id',
});
when I use console.log(client) method, I see correct and valid object includes it's methods such as getVolumes, getSnapshots and etc. but when I use under code
client.getVolumes((err, volumes)=>{
if (err) console.log(err);
console.log(volumes);
})
I will deal with the following error: "Unable to find matching endpoint for requested service"
thanks for guiding me.
@kenperkins
Hi. I want to access to blockstorage service on OpenStack for work with volumes. I use under config for connected to blockstorage service:
const client = pkgcloud.blockstorage.createClient({ provider: "openstack", username: "username", password: "password", authUrl: "http://ip:5000", region: "region", keystoneAuthVersion: 'v3', domainId: 'default', tenantId: 'project-id', }); when I use console.log(client) method, I see correct and valid object includes it's methods such as getVolumes, getSnapshots and etc. but when I use under code
client.getVolumes((err, volumes)=>{ if (err) console.log(err); console.log(volumes); })
I will deal with the following error: "Unable to find matching endpoint for requested service" thanks for guiding me. @kenperkins