leopardslab / nodecloud-legacy Goto Github PK
View Code? Open in Web Editor NEW[DEPERECATED] REFER: nodecloud | The Node.js API for open cloud
License: Apache License 2.0
[DEPERECATED] REFER: nodecloud | The Node.js API for open cloud
License: Apache License 2.0
The website should be a goto place for new contributors, explaining about the package and notes on making APIs calls
Using nodecloud, a user should be able to create and deploy compute instances in the Rackspace cloud.
Feature Proposal
AWS IAM is very much essential and used almost before accessing any other service.
For bug reports:
For feature proposals:
Similar or dependent issues:
*
Using NodeCloud a user should be able to use CloudFiles feature of Rackspace.
*Supporting for CDN services. aws cloud front. ex :- create distributions , create invalidations. For an example CDN invalidations specially helpful when sdk is used with continuous delivery
We have support for NoSQL indexed db for Google Cloud. Amazon SimpleDB is equivalent to AWS indexed db support.
For bug reports:
For feature proposals:
This will add complete support to NoSQL indexed DB for both cloud providers.
Similar or dependent issues:
*
Using NodeCloud, a user should be able to create a CloudBlock storage.
In the current storage tests the api calls to AWS are not being mocked correctly. This causes most of the storage tests to fail.
Description:
s3-us-west-2.amazonaws.com:443
. It should actually be s3.us-west-2.amazonaws.com:443
.Similar or dependent issues:
yarn run v1.5.1
$ mocha test/storage/aws-s3.js
AWS S3
(node:1472) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): BucketAlreadyExists: The requested bucketname is not available. The bucket namespace is shared by all users of the system. Please select a different name and try again.
(node:1472) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
1) should create S3 bucket
(node:1472) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): AssertionError: expected [AccessDenied: Access Denied] to equal 'BucketNotEmpty: The bucket you tried to delete is not empty'
2) should not delete S3 bucket
(node:1472) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): AccessDenied: Access Denied
3) should create multipart upload
โ should list all buckets (1653ms)
(node:1472) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 4): AccessDenied: Access Denied
4) should upload an arbitary sized buffer, blob, or stream
1 passing (10s)
4 failing
1) AWS S3 should create S3 bucket:
Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
2) AWS S3 should not delete S3 bucket:
Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
3) AWS S3 should create multipart upload:
Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
4) AWS S3 should upload an arbitary sized buffer, blob, or stream:
Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
error An unexpected error occurred: "Command failed.
Exit code: 4
Command: sh
Arguments: -c mocha test/storage/aws-s3.js
Directory: /Users/samayjain/Desktop/samay/nodecloud
Output:
".
yarn test
command. The issue occurs in the file test\compute\ec2.jsError: Cannot find module 'D:\repos\nodecloud\nodecloud\node_modules\grpc\src\node\extension_binary\grpc_node.node'
at Function.Module._resolveFilename (module.js:555:15)
at Function.Module._load (module.js:482:25)
at Module.require (module.js:604:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (D:\repos\nodecloud\nodecloud\node_modules\grpc\src\node\src\grpc_extension.js:38:15)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Module.require (module.js:604:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (D:\repos\nodecloud\nodecloud\node_modules\grpc\src\node\src\client.js:55:12)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Module.require (module.js:604:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (D:\repos\nodecloud\nodecloud\node_modules\grpc\src\node\index.js:45:14)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Module.require (module.js:604:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (D:\repos\nodecloud\nodecloud\node_modules\@google-cloud\common-grpc\src\service.js:27:12)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Module.require (module.js:604:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (D:\repos\nodecloud\nodecloud\node_modules\@google-cloud\common-grpc\src\operation.js:36:15)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Module.require (module.js:604:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (D:\repos\nodecloud\nodecloud\node_modules\@google-cloud\common-grpc\src\index.js:26:21)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Module.require (module.js:604:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (D:\repos\nodecloud\nodecloud\node_modules\@google-cloud\bigtable\src\index.js:25:18)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Module.require (module.js:604:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (D:\repos\nodecloud\nodecloud\node_modules\google-cloud\src\index.js:69:13)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Module.require (module.js:604:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (D:\repos\nodecloud\nodecloud\lib\core\google\provider.js:1:81)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Module.require (module.js:604:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (D:\repos\nodecloud\nodecloud\lib\core\base-provider.js:3:24)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Module.require (module.js:604:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (D:\repos\nodecloud\nodecloud\lib\core\index.js:1:84)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Module.require (module.js:604:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (D:\repos\nodecloud\nodecloud\lib\index.js:1:76)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Module.require (module.js:604:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (D:\repos\nodecloud\nodecloud\test\compute\ec2.js:4:19)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Module.require (module.js:604:17)
at require (internal/module.js:11:18)
at D:\repos\nodecloud\nodecloud\node_modules\mocha\lib\mocha.js:231:27
at Array.forEach (<anonymous>)
at Mocha.loadFiles (D:\repos\nodecloud\nodecloud\node_modules\mocha\lib\mocha.js:228:14)
at Mocha.run (D:\repos\nodecloud\nodecloud\node_modules\mocha\lib\mocha.js:514:10)
at Object.<anonymous> (D:\repos\nodecloud\nodecloud\node_modules\mocha\bin\_mocha:480:18)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Function.Module.runMain (module.js:701:10)
at startup (bootstrap_node.js:193:16)
at bootstrap_node.js:617:3
'D:\repos\nodecloud\nodecloud\node_modules\grpc\src\node\extension_binary\grpc_node.node'
Similar or dependent issues:
Feature Proposal
Add documentation to newly added AWS IAM support.
For bug reports:
For feature proposals:
Provide documentation on how to user NodeCloud AWS IAM
Similar or dependent issues:
*
For bug reports:
For feature proposals:
This allows nodecloud to extend its first support to SQL service of Azure Cloud Provider. ๐ฅ
Similar or dependent issues:
For bug reports:
For feature proposals:
This will add support to serverless service integration with nodecloud for AWS.
Similar or dependent issues:
For bug reports:
Using NodeCloud a user should be able to create and deploy CloudLoadbalancers.
Bug Report
From one of the examples, AWS S3 was broken, since it used a method name that did not exist.
For bug reports:
For feature proposals:
Similar or dependent issues:
THIS IS A NOT A REAL ISSUE BUT A PLACEHOLDER.
All the practising PRs for Google Code-In 2017 should refer this issue. PRs referring this issue will be closed without merging. Do not refer this issue if you are NOT submitting a practice PR and need your work merged.
Operating System: Linux mint 18.3 Cinnamon 64-bit
Stack Trace:
AWS S3
3 passing (8s)
2 failing
AWS S3
should create S3 bucket:
Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
AWS S3
should upload an arbitary sized buffer, blob, or stream:
Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
scan
operation.Let's create a Git Pre Commit Hook to run ESLint in our NodeCloud repos to avoid ourselves pushing codes with lint errors.
Follow these steps:
.git/hooks
as pre-commit
chmod +x .git/hooks/pre-commit
Image Source: http://www.sterlinghamilton.com/git-hook-pre-commit-for-debug-comments/
For bug reports:
What went wrong?
When trying to run the project from Mac, the project did not initiate due to following error. Tried to hardcode the credentials in providerJS as well in core folder with the region. But no luck. The same process configured earlier was working well on Linux environment.
What did you expect should have happened?
Run the initial project
What was the config you used?
Created a config.json file in the newly created project with the personal aws credentials
What stacktrace or error message from your provider did you see?
/Users/lakindugunasekara/Desktop/nodecloud-test/nodecloud/lib/core/aws/provider.js:22
!this._AWS.config.credentials.accessKeyId ||
^
TypeError: Cannot read property 'accessKeyId' of null
at new AWS (/Users/lakindugunasekara/Desktop/nodecloud-test/nodecloud/lib/core/aws/provider.js:22:36)
at Provider.getProvider (/Users/lakindugunasekara/Desktop/nodecloud-test/nodecloud/lib/core/base-provider.js:20:44)
at new Provider (/Users/lakindugunasekara/Desktop/nodecloud-test/nodecloud/lib/core/base-provider.js:12:27)
at Object.getProvider (/Users/lakindugunasekara/Desktop/nodecloud-test/nodecloud/lib/core/index.js:9:10)
at Object.<anonymous> (/Users/lakindugunasekara/Desktop/nodecloud-test/nodecloud-mock/index.js:2:25)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
/Users/lakindugunasekara/Desktop/nodecloud-test/nodecloud/lib/core/aws/provider.js:22
!this._AWS.config.credentials.accessKeyId ||
^
TypeError: Cannot read property 'accessKeyId' of null
at new AWS (/Users/lakindugunasekara/Desktop/nodecloud-test/nodecloud/lib/core/aws/provider.js:22:36)
at Provider.getProvider (/Users/lakindugunasekara/Desktop/nodecloud-test/nodecloud/lib/core/base-provider.js:20:44)
at new Provider (/Users/lakindugunasekara/Desktop/nodecloud-test/nodecloud/lib/core/base-provider.js:12:27)
at Object.getProvider (/Users/lakindugunasekara/Desktop/nodecloud-test/nodecloud/lib/core/index.js:9:10)
at Object.<anonymous> (/Users/lakindugunasekara/Desktop/nodecloud-test/nodecloud-mock/index.js:2:25)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
TypeError: Cannot read property 'accessKeyId' of null
Display the current state of the project and the plan
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.