This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.jclouds.one.domain; | |
| import java.math.BigInteger; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import javax.xml.bind.annotation.XmlAccessType; | |
| import javax.xml.bind.annotation.XmlAccessorType; | |
| import javax.xml.bind.annotation.XmlElement; | |
| import javax.xml.bind.annotation.XmlRootElement; | |
| import javax.xml.bind.annotation.XmlType; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // Questo file è stato generato dall'architettura JavaTM per XML Binding (JAXB) Reference Implementation, v2.2.8-b130911.1802 | |
| // Vedere <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> | |
| // Qualsiasi modifica a questo file andrà persa durante la ricompilazione dello schema di origine. | |
| // Generato il: 2016.04.13 alle 07:58:38 PM CEST | |
| // | |
| package org.jclouds.one; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.jclouds.one.domain; | |
| import com.google.auto.value.AutoValue; | |
| import java.math.BigInteger; | |
| import java.util.List; | |
| @AutoValue | |
| public abstract class VM2 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n" + | |
| " <methodCall>\n" + | |
| " <methodName>one.vm.allocate</methodName>\n" + | |
| " <params>\n" + | |
| " <param>\n" + | |
| " <value><string>{auth}</string></value>\n" + | |
| " </param>\n" + | |
| " </params>\n" + | |
| " </methodCall> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.jclouds.one.binders; | |
| import org.jclouds.http.HttpRequest; | |
| import org.jclouds.rest.MapBinder; | |
| import java.util.Map; | |
| public class BindOneGetInfo implements MapBinder { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.jclouds.one.features; | |
| import javax.inject.Named; | |
| import javax.ws.rs.POST; | |
| import javax.ws.rs.Produces; | |
| import javax.ws.rs.core.MediaType; | |
| import org.jclouds.one.binders.BindOneGetInfo; | |
| import org.jclouds.rest.annotations.MapBinder; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| buddy@ubuntub3-12:~$ openstack --debug --os-image-api-version 1 image create --public --disk-format raw --container-format bare --location http://172.17.1.205/ttylinux.img PROVA | |
| START with options: ['--debug', '--os-image-api-version', '1', 'image', 'create', '--public', '--disk-format', 'raw', '--container-format', 'bare', '--location', 'http://172.17.1.205/ttylinux.img', 'PROVA'] | |
| options: Namespace(access_token_endpoint='', auth_type='', auth_url='http://172.17.3.249:35357/v2.0', cacert='', client_id='', client_secret='***', cloud='', debug=True, default_domain='default', deferred_help=False, domain_id='', domain_name='', endpoint='', identity_provider='', identity_provider_url='', insecure=None, interface='', log_file=None, os_baremetal_api_version='1.6', os_compute_api_version='', os_dns_api_version='2', os_identity_api_version='', os_image_api_version='1', os_network_api_version='', os_object_api_version='', os_project_id=None, os_project_name=None, os_volume_api_version='', password='***', project_domai |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| run: | |
| 11:52:01.755 [main] DEBUG o.j.rest.internal.InvokeHttpMethod - >> invoking AuthenticationApi.authenticateWithTenantNameAndCredentials | |
| 11:52:01.758 [main] DEBUG o.j.h.i.JavaUrlHttpCommandExecutorService - Sending request 627256345: POST http://172.17.3.249:5000/v2.0/tokens HTTP/1.1 | |
| 11:52:01.759 [main] DEBUG jclouds.wire - >> "Sensitive data in payload, use jclouds.wire.log.sensitive override to enable logging this data." | |
| 11:52:01.762 [main] DEBUG jclouds.headers - >> POST http://172.17.3.249:5000/v2.0/tokens HTTP/1.1 | |
| 11:52:01.762 [main] DEBUG jclouds.headers - >> Accept: application/json | |
| 11:52:01.762 [main] DEBUG jclouds.headers - >> Content-Type: application/json | |
| 11:52:01.763 [main] DEBUG jclouds.headers - >> Content-Length: 95 | |
| 11:52:03.571 [main] DEBUG o.j.h.i.JavaUrlHttpCommandExecutorService - Receiving response 627256345: HTTP/1.1 200 OK | |
| 11:52:03.571 [main] DEBUG jclouds.headers - << HTTP/1.1 200 OK |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| run: | |
| 15:42:34.304 [main] DEBUG o.j.rest.internal.InvokeHttpMethod - >> invoking AuthenticationApi.authenticateWithTenantNameAndCredentials | |
| 15:42:34.345 [main] DEBUG o.j.h.o.OkHttpCommandExecutorService - Sending request 627256345: POST http://172.17.3.249:5000/v2.0/tokens HTTP/1.1 | |
| 15:42:34.346 [main] DEBUG jclouds.wire - >> "Sensitive data in payload, use jclouds.wire.log.sensitive override to enable logging this data." | |
| 15:42:34.346 [main] DEBUG jclouds.headers - >> POST http://172.17.3.249:5000/v2.0/tokens HTTP/1.1 | |
| 15:42:34.346 [main] DEBUG jclouds.headers - >> Accept: application/json | |
| 15:42:34.347 [main] DEBUG jclouds.headers - >> Content-Type: application/json | |
| 15:42:34.348 [main] DEBUG jclouds.headers - >> Content-Length: 95 | |
| 15:42:34.641 [main] DEBUG o.j.h.o.OkHttpCommandExecutorService - Receiving response 627256345: HTTP/1.1 411 Length Required | |
| 15:42:34.641 [main] DEBUG jclouds.headers - << HTTP/1.1 411 Length Required |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class OSJcloudsTest { | |
| NovaApi novaApi; | |
| GlanceApi glanceApi; | |
| OSJcloudsTest(){ | |
| Iterable<Module> modules = ImmutableSet.<Module>of( new SLF4JLoggingModule(), new OkHttpCommandExecutorServiceModule()); | |
| String provider = "openstack-nova"; | |
| String identity = "demo:admin"; | |
| String credential = "password"; |
NewerOlder