openstacknetsdk

Openstack.Net SDK cannot access services

元气小坏坏 提交于 2019-12-24 00:57:37
问题 We've setup an OpenStack system on our own hardware installing all components, with everything seemingly fine as we've created networks and VMs through the web interface. I'm trying to use openstack.net SDK to do things programatically. I seem to be able to Authenticate fine using a username and password, but when it comes to accessing other services that are installed, we get errors suggesting the API endpoints aren't available to the user. The code we're using is below which works fine

OpenStack Rackspace Cloud Files .net SDK

被刻印的时光 ゝ 提交于 2019-12-08 02:51:05
问题 I am trying to save an XML file to a non CDN Container from Sydney: public void Save(XDocument document) { using (MemoryStream ms = new MemoryStream()) { document.Save(ms); ms.Position = 0; RackspaceCloudIdentity identity = new RackspaceCloudIdentity { Username = "username", APIKey = "xxxxxxxxxxx", CloudInstance = CloudInstance.Default }; CloudFilesProvider provider = new CloudFilesProvider(identity); provider.CreateObject("XMLFiles", ms, "xmlFile1.xml", region: "syd"); } } For a 1MB file, it

OpenStack Rackspace Cloud Files .net SDK

时光毁灭记忆、已成空白 提交于 2019-12-06 11:56:57
I am trying to save an XML file to a non CDN Container from Sydney: public void Save(XDocument document) { using (MemoryStream ms = new MemoryStream()) { document.Save(ms); ms.Position = 0; RackspaceCloudIdentity identity = new RackspaceCloudIdentity { Username = "username", APIKey = "xxxxxxxxxxx", CloudInstance = CloudInstance.Default }; CloudFilesProvider provider = new CloudFilesProvider(identity); provider.CreateObject("XMLFiles", ms, "xmlFile1.xml", region: "syd"); } } For a 1MB file, it takes about 50 seconds to upload (very long). And, trying to download the file back, returns an empty

Openstack.Net SDK cannot access service with region

不羁的心 提交于 2019-12-04 06:06:58
问题 Using our own hardware, we've installed vanilla openstack with all components however I am having problems accessing services other than the Identity due to a region issue. The code used is as follows called with the admin account and admin tennant we created... public static void TestAccess(string userName, string password, string projectName, string projectId) { try { Uri baseUrl = new Uri(URL_IDENTITY); CloudIdentityWithProject projectCloudId = new CloudIdentityWithProject();

Openstack.Net SDK cannot access service with region

♀尐吖头ヾ 提交于 2019-12-02 10:13:09
Using our own hardware, we've installed vanilla openstack with all components however I am having problems accessing services other than the Identity due to a region issue. The code used is as follows called with the admin account and admin tennant we created... public static void TestAccess(string userName, string password, string projectName, string projectId) { try { Uri baseUrl = new Uri(URL_IDENTITY); CloudIdentityWithProject projectCloudId = new CloudIdentityWithProject(); projectCloudId.Username = userName; projectCloudId.Password = password; projectCloudId.ProjectName = projectName;