nodejitsu / node-cloudservers Goto Github PK
View Code? Open in Web Editor NEWA client implementation for Rackspace CloudServers in node.js
Home Page: http://github.com/nodejitsu/node-cloudservers
License: Other
A client implementation for Rackspace CloudServers in node.js
Home Page: http://github.com/nodejitsu/node-cloudservers
License: Other
I'm having numerous issues trying to setup a node.js development environment on Windows/Cygwin.
Instead of using Windows, is it a good idea to just use Cloud9ide? (http://www.cloud9ide.com)
They allow you to use npm right out of the box. So, I could just npm install cloudservers.... and continue from that point without the Windows setup headache.
If that works, I think it could really simplify the node hosting setup process for command line/node beginners like myself. Been trying for 2 months to get a good setup.
nt
Ohai guys,
I need this option especially WRT to this call: cloudservers.getServers(true, function(){})
. The default cache-control settings for Rackspace calls are 30 minutes - this hurts when I'm spawning servers via script and need IPs on completion... I don't want to wait.
Rackspace's official suggestion is to use dummy get parameters to do cache-busting: http://docs.rackspace.com/servers/api/v1.0/cs-devguide/content/Caching-d1e921.html
Rather than do cache busting on EVERY call, I suggest a flag/variable/option on a per-call basis - anything as long as it works.
I'd do a pull request but IDK if you want to change your request procedures based on what Eran talked about earlier this week. LMK.
Thanks,
Van
do we get the ssh password for a spawned server?
do we get to assign the password for a new server?
thanks!
$subject
Took me a while to figure it out!
I was following the docs and the docs seem to show that all you have to do is create a client via cloudservers.createClient. Turns out that doesn't do the auth but just store the auth info in this.config.
cloudservers @ 0.2.6
-- request @ 1.9.9
I am able to getFlavors and getImages, however when I call createServer or getServers the server and servers variables respectively are both null. I know createServer works because my server is created, but the callback receives a null variable.
the following code works:
client.getFlavors( function( err, flavors ) {
// Dump the flavors we have just received
console.log( util.inspect( flavors, true, null ) );
});
the following code returns servers = null:
client.getServers( true, function( servers ) {
console.log( util.inspect( servers, true, null ) );
});
the following code creates a server but returns server = null:
client.createServer( options, function( server ) {
console.log( util.inspect( server, true, null ) );
});
npm ERR! Not compatible with your version of node/npm: [email protected]
npm ERR! Required: {"node":"0.4.x"}
npm ERR! Actual: {"npm":"1.0.6","node":"v0.5.0-pre"}
It seems there is no version yet in the NPM registry that contains this fix: 7683bcd
Can we get a 0.2.9 or 0.2.10 into npm for this fix, please?
Just installed node-cloudservers via npm today. So far, I haven't been able to use any of the client functions to create a server on Rackspace. All return an err of either ECONNREFUSED (when I'm at work) or ENOTFOUND (when I'm at home). I'm using Mac OS Snow Leopard, and I found a similar issue reported a year ago related to the use of /etc/resolv.conf for dns lookup resolution. Other functions (npm, curl, etc.) appear to work fine. Is there something I'm missing?
After install node.js, I attempted to install cloudservers as per your instructions. I get an error printed below. It seems to be invalid json error.
~/node# npm install cloudservers
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm info fetch http://registry.npmjs.org/cloudservers/-/cloudservers-0.2.0.tgz
npm info calculating sha1 /tmp/npm-1298154452380/1298154452380-0.9361977083608508/tmp.tgz
npm info shasum 12556ab1cb37d1becac19a3ef5360b5cbbecd668
npm ERR! couldn't read package.json in /tmp/npm-1298154452380/1298154452380-0.9361977083608508/contents/package
npm ERR! Error installing [email protected]
npm ERR! Error: Failed to parse json
npm ERR! Unexpected token ]
npm ERR! {
npm ERR! "name": "cloudservers",
npm ERR! "description": "A client implementation for Rackspace CloudServers in node.js",
npm ERR! "version": "0.2.0",
npm ERR! "author": "Charlie Robbins [email protected]",
npm ERR! "contributors": [
npm ERR! { "name": "Elijah Insua", "email": "[email protected]" },
npm ERR! { "name": "Matthew Bergman", "email": "[email protected]" },
npm ERR! ],
npm ERR! "repository": {
npm ERR! "type": "git",
npm ERR! "url": "http://github.com/nodejitsu/node-cloudservers.git"
npm ERR! },
npm ERR! "keywords": ["cloud computing", "api", "rackspace cloud", "cloudservers"],
npm ERR! "dependencies": {
npm ERR! "request": ">= 0.10.0",
npm ERR! "vows": ">= 0.5.2"
npm ERR! },
npm ERR! "main": "./lib/cloudservers",
npm ERR! "scripts": { "test": "vows test/-test.js --spec" },
npm ERR! "engines": { "node": ">= 0.3.0" }
npm ERR! }
npm ERR! at /usr/local/lib/node/.npm/npm/0.3.2/package/lib/utils/read-json.js:73:13
npm ERR! at P (/usr/local/lib/node/.npm/npm/0.3.2/package/lib/utils/read-json.js:62:40)
npm ERR! at cb (/usr/local/lib/node/.npm/npm/0.3.2/package/lib/utils/graceful-fs.js:31:9)
npm ERR! at [object Object]. (fs.js:86:5)
npm ERR! at [object Object].emit (events.js:39:17)
npm ERR! at afterRead (fs.js:843:12)
npm ERR! Report this *entire log at http://github.com/isaacs/npm/issues
npm ERR! or email it to [email protected]
npm ERR! Just tweeting a tiny part of the error will not be helpful.
npm not ok
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.