{"action":"created","issue":{"url":"https://api.github.com/repos/pkgcloud/pkgcloud/issues/513","repository_url":"https://api.github.com/repos/pkgcloud/pkgcloud","labels_url":"https://api.github.com/repos/pkgcloud/pkgcloud/issues/513/labels{/name}","comments_url":"https://api.github.com/repos/pkgcloud/pkgcloud/issues/513/comments","events_url":"https://api.github.com/repos/pkgcloud/pkgcloud/issues/513/events","html_url":"https://github.com/pkgcloud/pkgcloud/issues/513","id":149843225,"number":513,"title":"issues with ceph compatibility","user":{"login":"alieber99","id":17378698,"avatar_url":"https://avatars.githubusercontent.com/u/17378698?v=3","gravatar_id":"","url":"https://api.github.com/users/alieber99","html_url":"https://github.com/alieber99","followers_url":"https://api.github.com/users/alieber99/followers","following_url":"https://api.github.com/users/alieber99/following{/other_user}","gists_url":"https://api.github.com/users/alieber99/gists{/gist_id}","starred_url":"https://api.github.com/users/alieber99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alieber99/subscriptions","organizations_url":"https://api.github.com/users/alieber99/orgs","repos_url":"https://api.github.com/users/alieber99/repos","events_url":"https://api.github.com/users/alieber99/events{/privacy}","received_events_url":"https://api.github.com/users/alieber99/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-20T18:07:39Z","updated_at":"2016-04-21T11:30:45Z","closed_at":null,"body":"Hi \r\nI used this library for accessing the swift API from node. It worked fine but then when the object storage moved to use Ceph, although the init and create container worked fine, the upload failed with error 404. Ceph is supposed to be compatible to Swift, has anyone run into this issue?"},"comment":{"url":"https://api.github.com/repos/pkgcloud/pkgcloud/issues/comments/212872687","html_url":"https://github.com/pkgcloud/pkgcloud/issues/513#issuecomment-212872687","issue_url":"https://api.github.com/repos/pkgcloud/pkgcloud/issues/513","id":212872687,"user":{"login":"alieber99","id":17378698,"avatar_url":"https://avatars.githubusercontent.com/u/17378698?v=3","gravatar_id":"","url":"https://api.github.com/users/alieber99","html_url":"https://github.com/alieber99","followers_url":"https://api.github.com/users/alieber99/followers","following_url":"https://api.github.com/users/alieber99/following{/other_user}","gists_url":"https://api.github.com/users/alieber99/gists{/gist_id}","starred_url":"https://api.github.com/users/alieber99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alieber99/subscriptions","organizations_url":"https://api.github.com/users/alieber99/orgs","repos_url":"https://api.github.com/users/alieber99/repos","events_url":"https://api.github.com/users/alieber99/events{/privacy}","received_events_url":"https://api.github.com/users/alieber99/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T11:30:45Z","updated_at":"2016-04-21T11:30:45Z","body":"Hi all:\r\n\r\nwould appreciate some help so I am adding more info, this is the code , very simple code that uploads a file from the disk to the object storage. When running this same code opposite an Openstack Swift setup it works properly but when moving to a Ceph setup it fails.   What I see is that it goes into the upload function but fails when loading the metadata from the cloud (which apparently it does before the write, something which I do not understand) :\r\n<< failed code within files.js :     self.getFile(uploadOptions.container, options.remote, function (err, file\r\nvar fs = require('fs'),\r\n    pkgcloud = require('../../lib/pkgcloud'),\r\n    _ = require('underscore'),\r\nasync = require('async');\r\n>>\r\n\r\n< my code based on the example:>\r\nvar openStackCredentials = {\r\n        provider: 'openstack',\r\n        username: 'my_username',\r\n        password: 'my_password',\r\n        region: 'my_region',\r\n        authUrl: 'http://XX.XX.XX.XX:5000',\r\n        tenantName: 'my_tenant'\r\n\r\n}\r\n\r\n    var openstack = pkgcloud.storage.createClient(openStackCredentials);\r\n\r\n    var myReport = fs.createReadStream('file.txt');\r\n\r\n    var upload = openstack.upload({\r\n            container: \"sample-container\",\r\n            remote: 'file.txt'\r\n        });\r\n\r\n        upload.on('error', function (err) {\r\n            console.error(err);\r\n        });\r\n\r\n        upload.on('success', function (file) {\r\n            console.log(\"success\");\r\n        });\r\n  \r\n        myReport.pipe(upload);"}}