[ https://issues.apache.org/jira/browse/JCLOUDS-603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14037118#comment-14037118 ]
Chris Custine commented on JCLOUDS-603: --------------------------------------- Can you run the same nova command with debug output and attach that as well? Just use "nova --debug boot ..." and that will output the corresponding json to compare to the jclouds json. > CreateServerOptions.novaNetworks() does not work when using with > Network.portUuid() > ----------------------------------------------------------------------------------- > > Key: JCLOUDS-603 > URL: https://issues.apache.org/jira/browse/JCLOUDS-603 > Project: jclouds > Issue Type: Bug > Components: jclouds-compute > Affects Versions: 1.7.1 > Environment: jClouds 1.7.1, openstack havana h.1 > Reporter: Jeffrey Nguyen > > I'm having issue with the CreateServerOptions.novaNetworks(). Specifically, > I'm having issue with this API when the Network is populated using > Network.portUuid(). When using both Network.networkUuid() and > Network.fixedIp(), the network/IP assignment worked fine. However, when I > used Network.portUuid() to assign neutron port, the network is not assigned > to the spawned instance. I tried both with the portUuid alone and together > with networkUuid and fixed IP but observed the same problem. > I'm using jClouds 1.7.1 with openstack Havana H.1 > I've embedded the gist of the code below. In case that doesn't come out > right, the URL to the gist snippet is at > https://gist.github.com/jeffrngu/25b62377d1bdf6380b19 > <script > src="https://gist.github.com/jeffrngu/25b62377d1bdf6380b19.js"></script> > Below is the wire log that shows request/response. Any pointers would be > greatly appreciated. > Thanks, > -Jeffrey > 16:46:09.282 [main] DEBUG jclouds.wire - >> > "{"server":{"name":"test","imageRef":"928a086a-77bb-4885-865c-2395f121530b","flavorRef":"c5407aca-a22d-44d8-81bb-4e82991e937e","networks":[{"port":"00244f0c-e5fe-417c-88ac-8883ee80dc11"}]}}" > 16:46:09.282 [main] DEBUG jclouds.headers - >> POST > http://10.94.251.12:8774/v2/5e9543b620354483b40647f93a76d3b8/servers HTTP/1.1 > 16:46:09.282 [main] DEBUG jclouds.headers - >> Accept: application/json > 16:46:09.282 [main] DEBUG jclouds.headers - >> X-Auth-Token: > MIIRTgYJKoZIhvcNAQcCoIIRPzCCETsC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siOWZlMmZmOWVlNDM4NGIxODk0YTkwODc4ZDNlOTJiYWI > iLCAiNDNjY2M1MDk1NWQ4NDhkZTgyNjIyZTdiNjBjZTc0ZjYiXX19fTGCAYEwggF9AgEBMFwwVzELMAkGA1UEBhMCVVMxDjAMBgNVBAgMBVVuc2V0MQ4wDAYDVQQHDAVVbnNldDEOMAwGA1UECgwFVW5zZXQxGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQIBATAHBgU > rDgMCGjANBgkqhkiG9w0BAQEFAASCAQCZ+CRsSq510nu0v13jGiX-13mU4NmCvzsOxGeOKsqGiPbySikQKcQPpqQEAh+h-R7ztGtjlog6PzzRWaPuVoso-OFgnj8GJQyeorqXoOpbf78j7sJwEEcrX55zHft5OGvO-Jw3-lsNCgY5vyUNceP6VM0FtO5Cq+B6WxT9W49 > +US3jpWVD0KvsKnXSA8gO7mfVHfxgzVEUJSqpI-CtB4G+RLT7Ch4mKCq3f5Rad6F+wuGnWw8k0mWiSioZo1J7-kplG3xrrk7J7iPhl3IBaupxxM11dkkjjMr9QUVFipFSxJJQi8RZUp2QB4On6Aw+yV13OnGYR5k9f4vgxxwvTmvw > 16:46:09.282 [main] DEBUG jclouds.headers - >> Content-Type: application/json > 16:46:09.283 [main] DEBUG jclouds.headers - >> Content-Length: 194 > 16:46:18.745 [main] DEBUG o.j.h.i.JavaUrlHttpCommandExecutorService - > Receiving response -1933851451: HTTP/1.1 202 Accepted > 16:46:18.745 [main] DEBUG jclouds.headers - << HTTP/1.1 202 Accepted > 16:46:18.745 [main] DEBUG jclouds.headers - << Date: Tue, 17 Jun 2014 > 15:38:18 GMT > 16:46:18.746 [main] DEBUG jclouds.headers - << Location: > http://10.94.251.12:8774/v2/5e9543b620354483b40647f93a76d3b8/servers/70c57a48-c0b2-4fe5-8651-f40d409814ef > 16:46:18.746 [main] DEBUG jclouds.headers - << Connection: keep-alive > 16:46:18.746 [main] DEBUG jclouds.headers - << X-Compute-Request-Id: > req-bfa0eb9e-df0b-455c-b3df-24bf02696949 > 16:46:18.746 [main] DEBUG jclouds.headers - << Content-Type: application/json > 16:46:18.746 [main] DEBUG jclouds.headers - << Content-Length: 440 > 16:46:18.747 [main] DEBUG jclouds.wire - << "{"server": {"security_groups": > [{"name": "default"}], "OS-DCF:diskConfig": "MANUAL", "id": > "70c57a48-c0b2-4fe5-8651-f40d409814ef", "links": [{"href": "http > ://10.94.251.12:8774/v2/5e9543b620354483b40647f93a76d3b8/servers/70c57a48-c0b2-4fe5-8651-f40d409814ef", > "rel": "self"}, {"href": > "http://10.94.251.12:8774/5e9543b620354483b40647f93a76d3b8/servers/70c5 > 7a48-c0b2-4fe5-8651-f40d409814ef", "rel": "bookmark"}], "adminPass": > "AUFjKiG8hbTS"}}" -- This message was sent by Atlassian JIRA (v6.2#6252)