无法创建OpenStack队列

时间:2018-04-08 14:55:26

标签: java queue openstack jclouds

我正在尝试使用Java和jclouds创建一个OpenStack队列,但我不能,我按照示例example,我的代码是:

MarconiApi marconiApi = ContextBuilder.newBuilder("openstack-marconi")
                .endpoint(Auth_URL)
                .credentials(tenantName + ":" + username, apiKey)
                .buildApi(MarconiApi.class);

String region = marconiApi.getConfiguredRegions().iterator().next();
QueueApi queueApi = marconiApi.getQueueApi(region, Publisher_ID);
queueApi.create("test");

我收到错误:org.jclouds.rest.ResourceNotFoundException: org.jclouds.http.HttpResponseException: command: PUT http://controller:8888/queues/test HTTP/1.1 failed with response: HTTP/1.1 404 Not Found; content: []

请记住我正在使用

 <dependency>
            <groupId>org.apache.jclouds</groupId>
            <artifactId>jclouds-all</artifactId>
            <version>2.1.0</version>
        </dependency>
<dependency>
            <groupId>org.apache.jclouds.labs</groupId>
            <artifactId>openstack-marconi</artifactId>
            <version>2.1.0</version>
        </dependency>

所以我做错了什么?这些是OpenStack Zaqar的功能吗?如何创建OpenStack队列?

由于

0 个答案:

没有答案