{"action":"closed","issue":{"url":"https://api.github.com/repos/ContainX/openstack4j/issues/650","repository_url":"https://api.github.com/repos/ContainX/openstack4j","labels_url":"https://api.github.com/repos/ContainX/openstack4j/issues/650/labels{/name}","comments_url":"https://api.github.com/repos/ContainX/openstack4j/issues/650/comments","events_url":"https://api.github.com/repos/ContainX/openstack4j/issues/650/events","html_url":"https://github.com/ContainX/openstack4j/issues/650","id":153212964,"number":650,"title":"some Queries openstack4j after authenticate.","user":{"login":"huytt1992","id":19186519,"avatar_url":"https://avatars.githubusercontent.com/u/19186519?v=3","gravatar_id":"","url":"https://api.github.com/users/huytt1992","html_url":"https://github.com/huytt1992","followers_url":"https://api.github.com/users/huytt1992/followers","following_url":"https://api.github.com/users/huytt1992/following{/other_user}","gists_url":"https://api.github.com/users/huytt1992/gists{/gist_id}","starred_url":"https://api.github.com/users/huytt1992/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huytt1992/subscriptions","organizations_url":"https://api.github.com/users/huytt1992/orgs","repos_url":"https://api.github.com/users/huytt1992/repos","events_url":"https://api.github.com/users/huytt1992/events{/privacy}","received_events_url":"https://api.github.com/users/huytt1992/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-05-05T11:21:09Z","updated_at":"2016-12-23T12:11:06Z","closed_at":"2016-12-23T12:11:06Z","body":"here my code.\npackage com.inet.dms.openstack4j;\n\nimport java.util.List;\n\nimport org.openstack4j.api.OSClient;\nimport org.openstack4j.model.common.Identifier;\nimport org.openstack4j.model.compute.Action;\nimport org.openstack4j.model.compute.Flavor;\nimport org.openstack4j.model.compute.Server;\nimport org.openstack4j.model.identity.Tenant;\nimport org.openstack4j.model.identity.User;\nimport org.openstack4j.openstack.OSFactory;\n\npublic class OpenStackProvisioning {\n\n```\npublic static void main(String[] args) {\n    // TODO Auto-generated method stub\n\n    try {\n\n        System.out.println(\"step 01: authenticate\");\n\n        OSClient os = OSFactory.builderV3()\n                .endpoint(\"http://10.60.xxx.xxx:5000/v3\")\n                .credentials(\"adminxxx\", \"xxxxx\", Identifier.byName(\"default\"))\n                .scopeToProject(Identifier.byName(\"admin\"), Identifier.byName(\"default\")).authenticate();\n\n        System.out.println(\"step 02 :\");\n        List<? extends User> users = os.identity().users().list();\n\n\n        List<? extends Tenant> tenants = os.identity().tenants().list();\n\n        // Find all running Servers\n        List<? extends Server> servers = os.compute().servers().list(); \n\n        // Suspend a Server\n        os.compute().servers().action(\"serverId\", Action.SUSPEND);\n\n        System.out.println(\"step 03\");\n    } catch (Exception ex) {\n        ex.printStackTrace();\n    }\n}\n```\n\n}\n\n. this is error print : i was debug , error  in line : List<? extends Server> servers = os.compute().servers().list(); \nstep 01: authenticate\nstep 02 :\nConnectionException{message=controller, status=0}\n    at org.openstack4j.connectors.httpclient.HttpExecutorServiceImpl.invoke(HttpExecutorServiceImpl.java:60)\n    at org.openstack4j.connectors.httpclient.HttpExecutorServiceImpl.execute(HttpExecutorServiceImpl.java:32)\n    at org.openstack4j.core.transport.internal.HttpExecutor.execute(HttpExecutor.java:51)\n    at org.openstack4j.openstack.internal.BaseOpenStackService$Invocation.execute(BaseOpenStackService.java:189)\n    at org.openstack4j.openstack.internal.BaseOpenStackService$Invocation.execute(BaseOpenStackService.java:183)\n    at org.openstack4j.openstack.compute.internal.ServerServiceImpl.list(ServerServiceImpl.java:95)\n    at org.openstack4j.openstack.compute.internal.ServerServiceImpl.list(ServerServiceImpl.java:80)\n    at org.openstack4j.openstack.compute.internal.ServerServiceImpl.list(ServerServiceImpl.java:72)\n    at com.inet.dms.openstack4j.OpenStackProvisioning.main(OpenStackProvisioning.java:35)\nCaused by: java.net.UnknownHostException: controller\n    at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)\n    at java.net.InetAddress$1.lookupAllHostAddr(Unknown Source)\n    at java.net.InetAddress.getAddressesFromNameService(Unknown Source)\n    at java.net.InetAddress.getAllByName0(Unknown Source)\n    at java.net.InetAddress.getAllByName(Unknown Source)\n    at java.net.InetAddress.getAllByName(Unknown Source)\n    at org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:44)\n    at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:102)\n    at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:314)\n    at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:357)\n    at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:218)\n    at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:194)\n    at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:85)\n    at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108)\n    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186)\n    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)\n    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106)\n    at org.openstack4j.connectors.httpclient.HttpCommand.execute(HttpCommand.java:112)\n    at org.openstack4j.connectors.httpclient.HttpExecutorServiceImpl.invokeRequest(HttpExecutorServiceImpl.java:65)\n    at org.openstack4j.connectors.httpclient.HttpExecutorServiceImpl.invoke(HttpExecutorServiceImpl.java:56)\n    ... 8 more\n\nplease help me, thank you very much\n"}}
{"actor":{"display_login":"auhlig"}}