Ask Your Question

sidIrisLogic's profile - activity

2017-06-13 15:59:28 -0600 received badge  Famous Question (source)
2017-06-13 15:59:28 -0600 received badge  Notable Question (source)
2017-03-01 08:18:20 -0600 received badge  Popular Question (source)
2017-03-01 08:05:02 -0600 commented answer Devstack on AWS and fetch data using pkgcloud.

none the less pkgcloud works totally fine with trystack, no pun intended check links https://wangkexiong.github.io/using-openstack-api-with-trystack/ (https://wangkexiong.github.io/using-o...)

2017-03-01 08:03:56 -0600 answered a question Devstack on AWS and fetch data using pkgcloud.

The above was resolved, my authURL was not correct(oo man what a badiee) Anyway pkgcloud cannot be used for openstack deployed inside of AWS-EC2, reason as follows: 1. The createclient makes a call to fetch the authId and the service catalog. 2. The service catalog has the ip address endpoints pointing to an internally mapped IP allocated by AWS. 3. This ip is totally internal and private and not available. 4. So when pkgcloud extracts compute API endpoint and tries to call it , it times out,

 Error: connect ETIMEDOUT 10.140.196.48:8774{
        "message": "connect ETIMEDOUT 10.140.196.48:8774",
        "stack": "Error: connect ETIMEDOUT 10.140.196.48:8774\n    at Object.exports._errnoException (util.js:856:11)\n    at exports._exceptionWithHostPort (util.js:879:20)\n    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1057:14)",
        "code": "ETIMEDOUT",
        "errno": "ETIMEDOUT",
        "syscall": "connect",
        "address": "10.140.196.48",
        "port": 8774
}

Hence answering my own question :)

2017-02-09 01:36:21 -0600 asked a question Devstack on AWS and fetch data using pkgcloud.

Hi, I have installed DevStack on a m3.large instance of AWS-EC2 and the installation went smoothly and I did not get any errors. Now I am using the node-js based pkgcloud sdk to fetch data from it but it is erroring out, Could someone please point out what I am doing wrong or where do I need to look or change something to get this working.

I am pasting the code and the error below

var pkgcloud = require('pkgcloud');
var openstack = pkgcloud.compute.createClient({
    provider: 'openstack',
    username: 'myusername',
    password: 'mypassword',
    region: 'nova',
    tenantId: 'admin',
    authUrl: 'http://ip-address/identity'
});
//console.log("openstack "+JSON.stringify(openstack,null,'\t'))
openstack.getServers(function(err, containers) {
    if (err)
        console.log("Err " + err + JSON.stringify(err, null, '\t'));
    else
        console.log("Servers " + JSON.stringify(containers, null, '\t'));
})

The Error that I get is this:

Error: Error (401): Unauthorized{
        "message": "Error (401): Unauthorized",
        "stack": "Error: Error (401): Unauthorized\n    at Object.exports.handle (D:\\Siddharth\\30.Sublime-workspace\\openstack-poc\\node_modules\\errs\\lib\\errs.js:203:19)\n    at D:\\Siddharth\\30.Sublime-workspace\\openstack-poc\\node_modules\\pkgcloud\\lib\\pkgcloud\\openstack\\client.js:214:23\n    at D:\\Siddharth\\30.Sublime-workspace\\openstack-poc\\node_modules\\pkgcloud\\lib\\pkgcloud\\openstack\\client.js:162:14\n    at Request._callback (D:\\Siddharth\\30.Sublime-workspace\\openstack-poc\\node_modules\\pkgcloud\\lib\\pkgcloud\\openstack\\context\\identity.js:160:14)\n    at Request.self.callback (D:\\Siddharth\\30.Sublime-workspace\\openstack-poc\\node_modules\\request\\request.js:123:22)\n    at emitTwo (events.js:100:13)\n    at Request.emit (events.js:185:7)\n    at Request.<anonymous> (D:\\Siddharth\\30.Sublime-workspace\\openstack-poc\\node_modules\\request\\request.js:1047:14)\n    at emitOne (events.js:95:20)",
        "name": "Error",
        "failCode": "Unauthorized",
        "statusCode": 401,
        "href": "http://54.227.13.130/identity/v2.0/tokens",
        "method": "POST",
        "headers": {
                "date": "Wed, 08 Feb 2017 14:34:34 GMT",
                "server": "Apache/2.4.18 (Ubuntu)",
                "vary": "X-Auth-Token",
                "x-openstack-request-id": "req-be91d3cf-40f9-4c50-9c2b-7d9eb4fcb313",
                "www-authenticate": "Keystone uri=\"http://10.140.196.48/identity\"",
                "content-length": "114",
                "connection": "close",
                "content-type": "application/json"
        },
        "result": {
                "error": {
                        "message": "The request you have made requires authentication.",
                        "code": 401,
                        "title": "Unauthorized"
                }
        }
}

The same credentials work when I login using the web based interface, but here I get 401, I am kinda stuck any help would really be appreciated.

Thanks Siddharth

2017-02-09 01:36:21 -0600 answered a question devstack horizon error

Hi, I have installed devstack multiple times (only on AWS-EC2 it never fails.) rest I have tried on http://Linode.com boxes but the script always kept giving one after the other error even after fixing them.

Thanks.

2017-02-09 01:36:21 -0600 commented answer Newton on Ubuntu 16.04 - Horizon login failed - keystone.log Authorization failed. The request you have made requires authentication.

Also, my devstack installation was smooth and I was able to login as well, did you try using the password you supplied in local.conf while you were logging in.

2017-02-09 01:36:21 -0600 answered a question Newton on Ubuntu 16.04 - Horizon login failed - keystone.log Authorization failed. The request you have made requires authentication.

Hi , Is this a devstack installation or openstack, the reason I am asking this I am getting this same error when I try fetching some data out of devstack using pkgcloud api.

Thanks