Questions tagged [pkgcloud]

pkgcloud is a standard library for node.js that abstracts away differences among multiple cloud providers.

pkgcloud is a standard library for node.js that abstracts away differences among multiple cloud providers. Currently there are six service types which are handled by pkgcloud:

  • Compute
  • Storage
  • Database
  • DNS (beta)
  • Block Storage (beta)
  • Load Balancers (beta)

Services provided by pkgcloud are exposed in two ways,

  1. By service type
  2. By provider name

Due to the differences between the vocabulary for each service provider, pkgcloud uses its own unified vocabulary. The pkgcloud.storage service is designed to make it easy to upload and download files to various infrastructure providers. Each instance of pkgcloud.storage.Client returned from pkgcloud.storage.createClient has a set of uniform APIs.

You should use this tag if your question is related with any issues while using pkgcloud library APIs.

29 questions
5
votes
0 answers

Node.js worker memory spike Error R14 when using request & pkgcloud

This one has me totally baffled because it occurs seemingly at random. I have a Node.js app that streams tweets (using ntwitter), adding hundreds of rows per second to a mongodb. This part always works fine and memory use is steady. BUT recently…
Brade
  • 1,481
  • 1
  • 13
  • 21
2
votes
0 answers

Create Volume in OpenStack with pkgcloud

I'm trying to use Pkgcloud in order to create a volume in OpenStack. I guess I have a problem with the API version that Pkgcloud is using. This is my code: var blockstorageClient = pkgcloud.blockstorage.createClient(config); var volumeOptions = { …
2
votes
2 answers

Authenticate Username and Password in OpenStack with pkgcloud

I'm trying to call an API for password authentication in OpenStack. This is API that I curl and get the access token: Password authentication with unscoped authorization I want to do the same thing in NodeJS and I'm a little confused. Can I do it…
2
votes
2 answers

Piping an axios request to a pkgcloud storage upload causes a "write after end" error

I'm trying to download an external file with axios, and then pipe it into an openstack object storage container using pkgcloud. The upload stream appears to end before the file is fully downloaded. async function upload(url, name, extension,…
Adam Smith
  • 357
  • 4
  • 13
2
votes
0 answers

pkgcloud (Openstack) : Download file with interceptDownload

I'm trying to download a file (uploaded before in a swift container (openstack)) when I click on the link on my webpage interface. The file is found when I display "res" but it's not downloaded (with my browser : "Fail = No File") and and I don't…
0x4B
  • 21
  • 4
2
votes
1 answer

Upload image from buffer in request

I am trying to handle a image upload request from an iOS/Android app. In the request I am getting a buffer of the image and want to upload that to Rackspace files without having to download the image to re-upload it. I could write the file to file…
mcclaskiem
  • 394
  • 1
  • 15
2
votes
0 answers

Skipper resize image before uploading using adapter

I have a similar question to this one. How can I have this upload to my RackSpace adapter as well? Here's the code: upload: function(req, res){ var RackspaceAdapter = require('../adapters/rackspace/index'), receiver =…
2
votes
1 answer

In Node.js how to send message to client side from a handler/callback method

I am a beginner in node.js. I am trying to create a webapp using node.js which will create servers in cloud and manage them. After doing some research I've decided to use node.js, socket.io, express and pkgcloud modules to create the webapp. Now,…
devd
  • 370
  • 10
  • 28
1
vote
0 answers

openstack, pkgcloud and node js

I am using pkg cloud in node js var pkgcloud = require('pkgcloud'), _ = require('lodash'); // create our client with your openstack credentials var client = pkgcloud.compute.createClient({ provider: 'openstack', username:…
1
vote
0 answers

Getting cached response when fetching stack details from openstack using npm pkgcloud getStack() method

I am using the below code block to fetch the details of a particular stack. The code is working fine and I am getting the stack details. But the problem is that I have to get the status of the stack after stack creation is completed. I am using the…
1
vote
0 answers

openstack npm pkgcloud createImage() function not working

I am trying to create an image of an instance in openstack using npm pkgcloud. For this I am using the code as below: var openstack_client_compute = null; openstack_client_compute = pkgcloud.compute.createClient({ provider: PROVIDER, //…
1
vote
0 answers

Solution: Multiple file upload using multer, pkgcloud and openstack

I had a requirement to upload multiple files to object storage in Bluemix. I was using Multer for getting the files. I faced several issues either with Multer or pkgcloud ranging from authorization issues to ENOENT problems. I struggled for 3 days…
Indrani
  • 27
  • 7
1
vote
0 answers

upload file using pkgcloud openstack storage

Hi I want to make an app which can upload files to bluemix-object-storage using pkgcloud. Right now I am using multer to get the files in the server. But pkgcloud.upload() is accept readable stream, whereas req.files is not readable streams. var…
Kim
  • 1,081
  • 2
  • 12
  • 17
1
vote
1 answer

Get buffer from Rackspace download using pkgcloud

This may not be possible but I am trying to return a buffer object of an image on Rackspace using the pkgcloud module without having to write to the filesystem. I've seen this done before however both examples show piping the download to the File…
mcclaskiem
  • 394
  • 1
  • 15
1
vote
1 answer

Bluemix - object storage - node.js - pkgcloud - openstack returns 401

I am trying to use pkgcloud (node.js) openstack with bluemix object storage, but when I put all the requested parameters as on official page, it always returns 401. I tried using postman as described on bluemix and it works.
libik
  • 22,239
  • 9
  • 44
  • 87
1
2