Hello,
me and @sneumann are experiencing problems when trying to create an instance on our OpenStack cluster. The error we get seems to be caused by a low level Go conversion:
1 error(s) occurred:
* openstack_compute_instance_v2.master: json: cannot unmarshal number 1.994752e+06 into Go value of type int
We are able to get the job done manually using both the nova client, and the Horizon interface. The error occurs only when using terraform.
We tried:
0.7.8
0.7.9
0.7.10
The logs in this issue are from 0.7.10
resource "openstack_compute_instance_v2" "master" {
name="mytest-master"
image_name = "KubeNow"
flavor_name = "c1r8d49"
floating_ip = "172.21.8.193"
key_pair = "KubeNow-keypair"
network {
name = "KubeNow-network"
}
security_groups = ["KubeNow-secgroup"]
}
KubeNow image, KubeNow-keypair, KubeNow-network and KubeNow-secgroup were previously created.
https://gist.github.com/mcapuccini/5deeccb56ad3555dd72e8e7a0fec0c76
New instance created 😄
Go unmarshal error 😭
terraform apply This problem caused an issue in one of my projects:
@mcapuccini I'm sorry to hear you're running into this. It's quite likely an underlying Gophercloud error.
Thanks for the debug output... I'm unable to see where the unmarshal error might be coming from, though. I have a few questions:
1.99... consistent or are you getting different values each time?nova --debug boot --flavor ... command? This will provide some additional API information and possibly point to where unmarshalling is failing.Thanks!
Hi, I am the user @mcapuccini was holding hands. I now did a
ubuntu@host-192-168-0-5:~$ OS_DOMAIN_ID="" nova --debug boot --image KubeNow --flavor c4r16d30 --nic net-id=9c9e9...84c51 mynewone
DEBUG (extension:157) found extension EntryPoint.parse('v2token = keystoneauth1.loading._plugins.identity.v2:Token')
DEBUG (extension:157) found extension EntryPoint.parse('admin_token = keystoneauth1.loading._plugins.admin_token:AdminToken')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcauthcode = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAuthorizationCode')
DEBUG (extension:157) found extension EntryPoint.parse('v2password = keystoneauth1.loading._plugins.identity.v2:Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3password = keystoneauth1.loading._plugins.identity.v3:Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcpassword = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectPassword')
DEBUG (extension:157) found extension EntryPoint.parse('token = keystoneauth1.loading._plugins.identity.generic:Token')
DEBUG (extension:157) found extension EntryPoint.parse('v3token = keystoneauth1.loading._plugins.identity.v3:Token')
DEBUG (extension:157) found extension EntryPoint.parse('password = keystoneauth1.loading._plugins.identity.generic:Password')
DEBUG (session:248) REQ: curl -g -i -X GET https://openstack.cebitec.uni-bielefeld.de:5000/v3 -H "Accept: application/json" -H "User-Agent: keystoneauth1/2.4.1 python-requests/2.9.1 CPython/2.7.12"
INFO (connectionpool:761) Starting new HTTPS connection (1): openstack.cebitec.uni-bielefeld.de
DEBUG (connectionpool:388) "GET /v3 HTTP/1.1" 200 274
DEBUG (session:277) RESP: [200] Content-Length: 274 Strict-Transport-Security: max-age=15768000 Vary: X-Auth-Token Keep-Alive: timeout=5, max=100 Server: Apache/2.4.7 (Ubuntu) Connection: Keep-Alive Date: Tue, 15 Nov 2016 17:42:44 GMT x-openstack-request-id: req-0c1b229...4004 Content-Type: application/json X-Distribution: Ubuntu
RESP BODY: {"version": {"status": "stable", "updated": "2015-03-30T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.4", "links": [{"href": "https://openstack.cebitec.uni-bielefeld.de:5000/v3/", "rel": "self"}]}}
DEBUG (base:165) Making authentication request to https://openstack.cebitec.uni-bielefeld.de:5000/v3/auth/tokens
DEBUG (connectionpool:388) "POST /v3/auth/tokens HTTP/1.1" 201 5028
DEBUG (session:248) REQ: curl -g -i -X GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89b...bea -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}dc8...708"
INFO (connectionpool:208) Starting new HTTP connection (1): proxy.cebitec.uni-bielefeld.de
DEBUG (connectionpool:388) "GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89b...bea HTTP/1.1" 404 52
DEBUG (session:277) RESP: [404] Content-Length: 52 Via: 1.1 proxy.CeBiTec.Uni-Bielefeld.DE:3128 (squid/2.7.STABLE7) X-Cache: HIT from proxy.CeBiTec.Uni-Bielefeld.DE Age: 141 Connection: close Date: Tue, 15 Nov 2016 17:40:24 GMT Content-Type: text/plain; charset=UTF-8 X-Compute-Request-Id: req-c117f...0da5
RESP BODY: 404 Not Found
The resource could not be found.
DEBUG (session:248) REQ: curl -g -i -X GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}dc88...74708"
INFO (connectionpool:243) Resetting dropped connection: proxy.cebitec.uni-bielefeld.de
DEBUG (connectionpool:388) "GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ HTTP/1.1" 200 399
DEBUG (session:277) RESP: [200] Content-Length: 399 Via: 1.1 proxy.CeBiTec.Uni-Bielefeld.DE:3128 (squid/2.7.STABLE7) Proxy-Connection: keep-alive X-Cache: MISS from proxy.CeBiTec.Uni-Bielefeld.DE X-Compute-Request-Id: req-132989...db92495342e Connection: keep-alive Date: Tue, 15 Nov 2016 17:42:45 GMT Content-Type: application/json
RESP BODY: {"version": {"status": "SUPPORTED", "updated": "2011-01-21T11:33:21Z", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}], "min_version": "", "version": "", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.compute+json;version=2"}], "id": "v2.0"}}
DEBUG (extension:157) found extension EntryPoint.parse('v2token = keystoneauth1.loading._plugins.identity.v2:Token')
DEBUG (extension:157) found extension EntryPoint.parse('admin_token = keystoneauth1.loading._plugins.admin_token:AdminToken')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcauthcode = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAuthorizationCode')
DEBUG (extension:157) found extension EntryPoint.parse('v2password = keystoneauth1.loading._plugins.identity.v2:Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3password = keystoneauth1.loading._plugins.identity.v3:Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcpassword = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectPassword')
DEBUG (extension:157) found extension EntryPoint.parse('token = keystoneauth1.loading._plugins.identity.generic:Token')
DEBUG (extension:157) found extension EntryPoint.parse('v3token = keystoneauth1.loading._plugins.identity.v3:Token')
DEBUG (extension:157) found extension EntryPoint.parse('password = keystoneauth1.loading._plugins.identity.generic:Password')
DEBUG (session:248) REQ: curl -g -i -X GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff8...bea/images -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}dc...9974708"
DEBUG (connectionpool:388) "GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89be9ce00d4d7690253f6142c0bbea/images HTTP/1.1" 200 4898
DEBUG (session:277) RESP: [200] Content-Length: 4898 Via: 1.1 proxy.CeBiTec.Uni-Bielefeld.DE:3128 (squid/2.7.STABLE7) Proxy-Connection: keep-alive X-Cache: MISS from proxy.CeBiTec.Uni-Bielefeld.DE X-Compute-Request-Id: req-0ae16b70-9118-4d46-b84e-7368ba4e67d9 Connection: keep-alive Date: Tue, 15 Nov 2016 17:42:45 GMT Content-Type: application/json
RESP BODY: {"images": [{"id": "35e4ec...fd2a30df", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89be9ce...c0bbea/images/35e4ec...d2a30df", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89be...bbea/images/35e4ec...a140-c100fd2a30df", "rel": "bookmark"}, {"href": "http://controller:9292/images/35e4ec8...a30df", "type": "application/vnd.openstack.image", "rel": "alternate"}], "name": "KubeNow"}, {"id": "700ad5...1405471853", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89be...bbea/images/700ad54a...1853", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89be...0bbea/images/700ad5...5471853", "rel": "bookmark"}, {"href": "http://controller:9292/images/700ad5...5471853", "type": "application/vnd.openstack.image", "rel": "alternate"}], "name": "Ubuntu_16.04_32bit"}, {"id": "785e44...c13e9", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89b...bea/images/785e4423-...2ec13e9", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89be9ce0...bea/images/78...ec13e9", "rel": "bookmark"}, {"href": "http://controller:9292/images/785e4423-...3e9", "type": "application/vnd.openstack.image", "rel": "alternate"}], "name": "KubeNow-old"}, {"id": "0857...dbd1814", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89be9ce...bea/images/0857f...dbd1814", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89b...bbea/images/0857f...37cdbd1814", "rel": "bookmark"}, {"href": "http://controller:9292/images/0857fd...dbd1814", "type": "application/vnd.openstack.image", "rel": "alternate"}], "name": "Image-MG-Worksop-2016--16Stools"}, {"id": "01...0c59c9149", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89be...bbea/images/011161...a0c59c9149", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89be...bbea/images/01116160-db...149", "rel": "bookmark"}, {"href": "http://controller:9292/images/0111616...9c9149", "type": "application/vnd.openstack.image", "rel": "alternate"}], "name": "Ubuntu 16.04.1 LTS"}, {"id": "1d43...f8d092", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89..bea/images/1d439e9a...f8d092", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89be..bbea/images/1d439e9...f8d092", "rel": "bookmark"}, {"href": "http://controller:9292/images/1d4...21f8d092", "type": "application/vnd.openstack.image", "rel": "alternate"}], "name": "BiBiGrid Slave 21.10.16"}, {"id": "d66f...09d5d1a93", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89be9ce00d4d7690253f6142c0bbea/images/d66f62d2-81c9-4720-a460-4f409d5d1a93", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89...bea/images/d66f62d2-81c9-4720-a4...1a93", "rel": "bookmark"}, {"href": "http://controller:9292/images/d66f62d2-81c9-4720-a46...3", "type": "application/vnd.openstack.image", "rel": "alternate"}], "name": "BiBiGrid Master 21.10.16"}, {"id": "6cc08...fea3eda7724", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89b...bbea/images/6cc082cf-...7724", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff8...bbea/images/6cc0...7724", "rel": "bookmark"}, {"href": "http://controller:9292/images/6cc0...9fea3eda7724", "type": "application/vnd.openstack.image", "rel": "alternate"}], "name": "Ubuntu 14.04.5 LTS"}, {"id": "4288e1f5-4..", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89be9ce...ea/images/4288e1f5-...d1f8813ff", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89be..a/images/42...3d1f8813ff", "rel": "bookmark"}, {"href": "http://controller:9292/images/4288e1...8813ff", "type": "application/vnd.openstack.image", "rel": "alternate"}], "name": "Demo_Cirros"}]}
DEBUG (session:248) REQ: curl -g -i -X GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89be9c...bea/images/35e4ec...0df -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}dc88267...74708"
DEBUG (connectionpool:388) "GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89be...bbea/images/35e4ec87..0df HTTP/1.1" 200 1553
DEBUG (session:277) RESP: [200] Content-Length: 1553 Via: 1.1 proxy.CeBiTec.Uni-Bielefeld.DE:3128 (squid/2.7.STABLE7) Proxy-Connection: keep-alive X-Cache: MISS from proxy.CeBiTec.Uni-Bielefeld.DE X-Compute-Request-Id: req-3315932...9fe59f Connection: keep-alive Date: Tue, 15 Nov 2016 17:42:45 GMT Content-Type: application/json
RESP BODY: {"image": {"status": "ACTIVE", "updated": "2016-11-15T09:33:48Z", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89be9...bea/images/35e4ec87-80d6...2a30df", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff...bea/images/35...d2a30df", "rel": "bookmark"}, {"href": "http://controller:9292/images/35e4e...00fd2a30df", "type": "application/vnd.openstack.image", "rel": "alternate"}], "id": "35e4e...0fd2a30df", "OS-EXT-IMG-SIZE:size": 1105723392, "name": "KubeNow", "created": "2016-11-15T09:28:14Z", "minDisk": 24, "server": {"id": "7279c6c1-1030-4...db", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89b...2c0bbea/servers/7279c6c1-1030-44...c13db", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff8...c0bbea/servers/7279c...85c13db", "rel": "bookmark"}]}, "progress": 100, "minRam": 512, "metadata": {"instance_uuid": "7279c...3db", "image_location": "snapshot", "image_state": "available", "user_id": "370a07908...396", "description": "Ubuntu 16.04.1 LTS modified - see https://wiki.cebitec.uni-bielefeld.de/bibiserv/index.php/OpenStack/Images", "image_type": "image", "architecture": "x86_64", "base_image_ref": "22a...af48ae", "owner_id": "ff8...c0bbea"}}}
DEBUG (session:248) REQ: curl -g -i -X GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff8...0bbea/flavors/c4r16d30 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}dc88...9974708"
DEBUG (connectionpool:388) "GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89be9ce...2c0bbea/flavors/c4r16d30 HTTP/1.1" 404 78
DEBUG (session:277) RESP: [404] Content-Length: 78 Via: 1.1 proxy.CeBiTec.Uni-Bielefeld.DE:3128 (squid/2.7.STABLE7) X-Cache: HIT from proxy.CeBiTec.Uni-Bielefeld.DE Age: 141 Connection: close Date: Tue, 15 Nov 2016 17:40:24 GMT Content-Type: application/json; charset=UTF-8 X-Compute-Request-Id: req-c4a7f1ca-da97-4cea-8181-b0752548d7bc
RESP BODY: {"itemNotFound": {"message": "The resource could not be found.", "code": 404}}
DEBUG (session:248) REQ: curl -g -i -X GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89...c0bbea/flavors?is_public=None -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}dc8...c039974708"
INFO (connectionpool:243) Resetting dropped connection: proxy.cebitec.uni-bielefeld.de
DEBUG (connectionpool:388) "GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89b...2c0bbea/flavors?is_public=None HTTP/1.1" 200 6322
DEBUG (session:277) RESP: [200] Content-Length: 6322 Via: 1.1 proxy.CeBiTec.Uni-Bielefeld.DE:3128 (squid/2.7.STABLE7) Proxy-Connection: keep-alive X-Cache: MISS from proxy.CeBiTec.Uni-Bielefeld.DE X-Compute-Request-Id: req-445e3c90...dbb7 Connection: keep-alive Date: Tue, 15 Nov 2016 17:42:45 GMT Content-Type: application/json
RESP BODY: {"flavors": [{"id": "015ead93-a...cfdad5ef", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff8...0253f6142c0bbea/flavors/015ead93-a7d...dad5ef", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89be...0bbea/flavors/015ead...fdad5ef", "rel": "bookmark"}], "name": "c24r800d100"}, {"id": "11bb89...35978", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89be...0bbea/flavors/11bb895a-...8cf35978", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89be9ce.../flavors/11bb895a-...e8cf35978", "rel": "bookmark"}], "name": "c4r16d30"}, {"id": "207e15a9...638b0dfd688", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89be9c...bea/flavors/207e15a9-7455-429b...688", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89be9ce00d4d7690...a/flavors/207e1...688", "rel": "bookmark"}], "name": "c48r2000d5120"}, {"id": "3a31...ad77f", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89be...bea/flavors/3a312dc0-...ad77f", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89be9c..bea/flavors/3a312d...ead77f", "rel": "bookmark"}], "name": "c1r1000d10"}, {"id": "3cff109f-9...3d99", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89be...142c0bbea/flavors/3cf...a9-4b2920ca3d99", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89b...0bbea/flavors/3cff10...3d99", "rel": "bookmark"}], "name": "c48r1500d0"}, {"id": "4d11...4d4a70fd0", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89be9ce...bbea/flavors/4d11c184-4...", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89be9ce0...0bbea/flavors/4d11c184-...a70fd0", "rel": "bookmark"}], "name": "c48r256d500"}, {"id": "6e695204-18..562bc7", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89...a/flavors/6e695204-...2bc7", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89be...0bbea/flavors/6e695204-18d...90562bc7", "rel": "bookmark"}], "name": "c2r30d160"}, {"id": "7220bd80-3...8aec", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89be9ce0...ea/flavors/7220bd80-3...18aec", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff...ea/flavors/7220bd80-3804...8aec", "rel": "bookmark"}], "name": "c24r1000d10"}, {"id": "74b40f...840de02a", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89be9c..bea/flavors/74b40fe...40de02a", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89be.../flavors/74b40fe7-...2a", "rel": "bookmark"}], "name": "c6r90d160"}, {"id": "7bdb9d0e-87...c7c9ce3", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89b...ea/flavors/7bdb9d...4c0d3c7c9ce3", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff...42c0bbea/flavors/7bdb9d0e-87d...3c7c9ce3", "rel": "bookmark"}], "name": "c1r8d49"}, {"id": "9da1...489853d8", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89...0bbea/flavors/9da1c0d2-bb...53d8", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89...3f6142c0bbea/flavors/9da1...9489853d8", "rel": "bookmark"}], "name": "c4r32d30"}, {"id": "bd4...e113156", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89be9ce...a/flavors/bd493...13156", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89be9ce0...bbea/flavors/bd493a22...fe113156", "rel": "bookmark"}], "name": "c12r180d320"}, {"id": "d90d73...8924ffa", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89be9c...ea/flavors/d90d73dc-1b94-4...a", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89be9ce...c0bbea/flavors/d9...18924ffa", "rel": "bookmark"}], "name": "c12r64d256"}, {"id": "df8d5e9...28c8", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89be9ce00...bea/flavors/df8d5e98-8523-4534-...c8", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89be9c.../flavors/df8d5e98-...88b20d28c8", "rel": "bookmark"}], "name": "c48r1000d2048"}, {"id": "eac4d968-f...7", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89be9ce...bbea/flavors/eac4d...42a367", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff8...42c0bbea/flavors/eac4d9...642a367", "rel": "bookmark"}], "name": "c24r360d3072"}, {"id": "edfd618...5e4", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89be9...ea/flavors/edfd6182-2...f5e4", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89...bbea/flavors/edfd6...5e4", "rel": "bookmark"}], "name": "c48r720d5120"}]}
DEBUG (session:248) REQ: curl -g -i -X GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89b...42c0bbea/flavors/11bb895...35978 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}dc88...5f4c039974708"
DEBUG (connectionpool:388) "GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89be9c...bbea/flavors/11bb89...f35978 HTTP/1.1" 200 576
DEBUG (session:277) RESP: [200] Content-Length: 576 Via: 1.1 proxy.CeBiTec.Uni-Bielefeld.DE:3128 (squid/2.7.STABLE7) Proxy-Connection: keep-alive X-Cache: MISS from proxy.CeBiTec.Uni-Bielefeld.DE X-Compute-Request-Id: req-1456...b1ea660a51bf Connection: keep-alive Date: Tue, 15 Nov 2016 17:42:45 GMT Content-Type: application/json
RESP BODY: {"flavor": {"name": "c4r16d30", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff8...bea/flavors/11bb8...cf35978", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89be9c...c0bbea/flavors/11bb89...cf35978", "rel": "bookmark"}], "ram": 16384, "OS-FLV-DISABLED:disabled": false, "vcpus": 4, "swap": "", "os-flavor-access:is_public": true, "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 30, "disk": 24, "id": "11bb8...3ae8cf35978"}}
DEBUG (session:248) REQ: curl -g -i -X POST http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89b...0bbea/servers -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}dc...4708" -d '{"server": {"name": "mynewone", "imageRef": "35e4ec8...2a30df", "flavorRef": "11bb8..8cf35978", "max_count": 1, "min_count": 1, "networks": [{"uuid": "9c9e91bb..c51"}]}}'
DEBUG (connectionpool:388) "POST http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89b...142c0bbea/servers HTTP/1.1" 202 484
DEBUG (session:277) RESP: [202] Content-Length: 484 Via: 1.1 proxy.CeBiTec.Uni-Bielefeld.DE:3128 (squid/2.7.STABLE7) Proxy-Connection: keep-alive X-Cache: MISS from proxy.CeBiTec.Uni-Bielefeld.DE X-Compute-Request-Id: req-ce90680b-8fc...3903 Connection: keep-alive Location: http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89be...0bbea/servers/9581cb5e-8891-47d7-...0f Date: Tue, 15 Nov 2016 17:42:46 GMT Content-Type: application/json
RESP BODY: {"server": {"security_groups": [{"name": "default"}], "OS-DCF:diskConfig": "MANUAL", "id": "9581cb5e-889...70f", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89be9...2c0bbea/servers/9581...e0e5b170f", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89be9ce0...bbea/servers/9581cb5e-889...5b170f", "rel": "bookmark"}], "adminPass": "P..c"}}
DEBUG (session:248) REQ: curl -g -i -X GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89be9...bea/servers/9581cb5e-8891-47d7-9b83-8fde0e5b170f -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}dc88267f...039974708"
DEBUG (connectionpool:388) "GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89be9ce0...0bbea/servers/9581cb5e-8...5b170f HTTP/1.1" 200 1456
DEBUG (session:277) RESP: [200] Content-Length: 1456 Via: 1.1 proxy.CeBiTec.Uni-Bielefeld.DE:3128 (squid/2.7.STABLE7) Proxy-Connection: keep-alive X-Cache: MISS from proxy.CeBiTec.Uni-Bielefeld.DE X-Compute-Request-Id: req-b0f15942-f...40363200b Connection: keep-alive Date: Tue, 15 Nov 2016 17:42:46 GMT Content-Type: application/json
RESP BODY: {"server": {"status": "BUILD", "updated": "2016-11-15T17:42:46Z", "hostId": "", "addresses": {}, "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89b...2c0bbea/servers/9581cb5e...e5b170f", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89...2c0bbea/servers/9581cb5e...0f", "rel": "bookmark"}], "key_name": null, "image": {"id": "35e4ec...a30df", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89be9ce...bbea/images/35e4e...a30df", "rel": "bookmark"}]}, "OS-EXT-STS:task_state": "scheduling", "OS-EXT-STS:vm_state": "building", "OS-SRV-USG:launched_at": null, "flavor": {"id": "11bb895..ae8cf35978", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89b...c0bbea/flavors/11bb895a-4c5d-...78", "rel": "bookmark"}]}, "id": "95...70f", "OS-SRV-USG:terminated_at": null, "OS-EXT-AZ:availability_zone": "nova", "user_id": "370...96", "name": "mynewone", "created": "2016-11-15T17:42:46Z", "tenant_id": "ff89be9c...bea", "OS-DCF:diskConfig": "MANUAL", "os-extended-volumes:volumes_attached": [], "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 0, "config_drive": "", "metadata": {}}}
DEBUG (session:248) REQ: curl -g -i -X GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff8...bbea/flavors/11bb895a...978 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}dc88267f2815...974708"
DEBUG (connectionpool:388) "GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89...53f6142c0bbea/flavors/11bb8...e8cf35978 HTTP/1.1" 200 576
DEBUG (session:277) RESP: [200] Content-Length: 576 Via: 1.1 proxy.CeBiTec.Uni-Bielefeld.DE:3128 (squid/2.7.STABLE7) Proxy-Connection: keep-alive X-Cache: MISS from proxy.CeBiTec.Uni-Bielefeld.DE X-Compute-Request-Id: req-bc...9f7-bccb2494afee Connection: keep-alive Date: Tue, 15 Nov 2016 17:42:46 GMT Content-Type: application/json
RESP BODY: {"flavor": {"name": "c4r16d30", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff...6142c0bbea/flavors/11b...f35978", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89...bbea/flavors/11bb895a-4c5d...978", "rel": "bookmark"}], "ram": 16384, "OS-FLV-DISABLED:disabled": false, "vcpus": 4, "swap": "", "os-flavor-access:is_public": true, "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 30, "disk": 24, "id": "11bb895...5978"}}
DEBUG (session:248) REQ: curl -g -i -X GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89be9...bea/images/35e4...30df -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}dc88267f28...039974708"
DEBUG (connectionpool:388) "GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89be...ea/images/35e4ec87...2a30df HTTP/1.1" 200 1553
DEBUG (session:277) RESP: [200] Content-Length: 1553 Via: 1.1 proxy.CeBiTec.Uni-Bielefeld.DE:3128 (squid/2.7.STABLE7) Proxy-Connection: keep-alive X-Cache: MISS from proxy.CeBiTec.Uni-Bielefeld.DE X-Compute-Request-Id: req-358ed2fd-9..28714db Connection: keep-alive Date: Tue, 15 Nov 2016 17:42:46 GMT Content-Type: application/json
RESP BODY: {"image": {"status": "ACTIVE", "updated": "2016-11-15T09:33:48Z", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89...0bbea/images/35e4ec87-80d6-...2a30df", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89...a/images/35e4ec8...fd2a30df", "rel": "bookmark"}, {"href": "http://controller:9292/images/35e4ec87...a30df", "type": "application/vnd.openstack.image", "rel": "alternate"}], "id": "35e4ec87-80d6...30df", "OS-EXT-IMG-SIZE:size": 1105723392, "name": "KubeNow", "created": "2016-11-15T09:28:14Z", "minDisk": 24, "server": {"id": "7279c6c1-1030-442b-abb1-4e55285c13db", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89be9c...bea/servers/72...4e55285c13db", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89be9...bbea/servers/7279c6c1-1030-442...3db", "rel": "bookmark"}]}, "progress": 100, "minRam": 512, "metadata": {"instance_uuid": "7279c6..85c13db", "image_location": "snapshot", "image_state": "available", "user_id": "3...ffa1fd86c017396", "description": "Ubuntu 16.04.1 LTS modified - see https://wiki.cebitec.uni-bielefeld.de/bibiserv/index.php/OpenStack/Images", "image_type": "image", "architecture": "x86_64", "base_image_ref": "22aea...5af48ae", "owner_id": "f...42c0bbea"}}}
+--------------------------------------+-------------------------------------------------+
| Property | Value |
+--------------------------------------+-------------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | nova |
| OS-EXT-STS:power_state | 0 |
| OS-EXT-STS:task_state | scheduling |
| OS-EXT-STS:vm_state | building |
| OS-SRV-USG:launched_at | - |
| OS-SRV-USG:terminated_at | - |
| accessIPv4 | |
| accessIPv6 | |
| adminPass | P...c |
| config_drive | |
| created | 2016-11-15T17:42:46Z |
| flavor | c4r16d30 (11bb895a...78) |
| hostId | |
| id | 9581cb5e...5b170f |
| image | KubeNow (35e4ec87-...a30df) |
| key_name | - |
| metadata | {} |
| name | mynewone |
| os-extended-volumes:volumes_attached | [] |
| progress | 0 |
| security_groups | default |
| status | BUILD |
| tenant_id | ff89...bea |
| updated | 2016-11-15T17:42:46Z |
| user_id | 370a0...7396 |
+--------------------------------------+-------------------------------------------------+
Happy to provide further input and do manual tests.
Yours, Steffen
@sneumann Thank you! This is a strange one to pin down... Can you also provide the output of nova --debug show <id>?
@jtopjian does Packer use Gophercloud as well? A good additional information is that we are able to build images with Packer, which it implies to create an instance.
@mcapuccini Ah, that's a good point. Packer has most likely not moved to the new https://github.com/gophercloud/gophercloud library and is still using https://github.com/rackspace/gophercloud.
These kinds of unmarshalling errors were spotted early in in the new Gophercloud library, but it looks like one slipped through. It's just a matter of figuring out which value is causing Go to be unhappy and doing a quick patch.
Quick note: I saw this is marked as "blocking" at https://github.com/mcapuccini/KubeNow/issues/33. This _should_ work with Terraform 0.7.7. That was the last release before the Gophercloud libraries were swapped.
I definitely want to pin this one down though. Instance output (nova --debug show <id>) might provide a better indication. Also look for any all-numeric fields.
Morning,
I can confirm that terraform apply works with 0.7.7.
Please find here the nova show, Happy to help where needed.
Yours, Steffen
ubuntu@host-192-168-0-5:~/KubeNow$ OS_DOMAIN_ID="" nova --debug show 896052...3740c83b
DEBUG (extension:157) found extension EntryPoint.parse('v2token = keystoneauth1.loading._plugins.identity.v2:Token')
DEBUG (extension:157) found extension EntryPoint.parse('admin_token = keystoneauth1.loading._plugins.admin_token:AdminToken')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcauthcode = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAuthorizationCode')
DEBUG (extension:157) found extension EntryPoint.parse('v2password = keystoneauth1.loading._plugins.identity.v2:Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3password = keystoneauth1.loading._plugins.identity.v3:Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcpassword = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectPassword')
DEBUG (extension:157) found extension EntryPoint.parse('token = keystoneauth1.loading._plugins.identity.generic:Token')
DEBUG (extension:157) found extension EntryPoint.parse('v3token = keystoneauth1.loading._plugins.identity.v3:Token')
DEBUG (extension:157) found extension EntryPoint.parse('password = keystoneauth1.loading._plugins.identity.generic:Password')
DEBUG (session:248) REQ: curl -g -i -X GET https://openstack.cebitec.uni-bielefeld.de:5000/v3 -H "Accept: application/json" -H "User-Agent: keystoneauth1/2.4.1 python-requests/2.9.1 CPython/2.7.12"
INFO (connectionpool:761) Starting new HTTPS connection (1): openstack.cebitec.uni-bielefeld.de
DEBUG (connectionpool:388) "GET /v3 HTTP/1.1" 200 274
DEBUG (session:277) RESP: [200] Content-Length: 274 Strict-Transport-Security: max-age=15768000 Vary: X-Auth-Token Keep-Alive: timeout=5, max=100 Server: Apache/2.4.7 (Ubuntu) Connection: Keep-Alive Date: Tue, 15 Nov 2016 21:59:31 GMT x-openstack-request-id: req-540b663...67f Content-Type: application/json X-Distribution: Ubuntu
RESP BODY: {"version": {"status": "stable", "updated": "2015-03-30T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.4", "links": [{"href": "https://openstack.cebitec.uni-bielefeld.de:5000/v3/", "rel": "self"}]}}
DEBUG (base:165) Making authentication request to https://openstack.cebitec.uni-bielefeld.de:5000/v3/auth/tokens
DEBUG (connectionpool:388) "POST /v3/auth/tokens HTTP/1.1" 201 5028
DEBUG (session:248) REQ: curl -g -i -X GET
http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89b...rc0bbea -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}4767b77b0b88...99777b5d"
INFO (connectionpool:208) Starting new HTTP connection (1): proxy.cebitec.uni-bielefeld.de
DEBUG (connectionpool:388) "GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89b...c0bbea HTTP/1.1" 404 52
DEBUG (session:277) RESP: [404] Content-Length: 52 Via: 1.1 proxy.CeBiTec.Uni-Bielefeld.DE:3128 (squid/2.7.STABLE7) X-Cache: HIT from proxy.CeBiTec.Uni-Bielefeld.DE Age: 189 Connection: close Date: Tue, 15 Nov 2016 21:56:22 GMT Content-Type: text/plain; charset=UTF-8 X-Compute-Request-Id: req-1e092bdf-...e1c649b
RESP BODY: 404 Not Found
The resource could not be found.
DEBUG (session:248) REQ: curl -g -i -X GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}4767b77b0b...1799777b5d"
INFO (connectionpool:243) Resetting dropped connection: proxy.cebitec.uni-bielefeld.de
DEBUG (connectionpool:388) "GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ HTTP/1.1" 200 399
DEBUG (session:277) RESP: [200] Content-Length: 399 Via: 1.1 proxy.CeBiTec.Uni-Bielefeld.DE:3128 (squid/2.7.STABLE7) Proxy-Connection: keep-alive X-Cache: MISS from proxy.CeBiTec.Uni-Bielefeld.DE X-Compute-Request-Id: req-001469...bf87801b16 Connection: keep-alive Date: Tue, 15 Nov 2016 21:59:31 GMT Content-Type: application/json
RESP BODY: {"version": {"status": "SUPPORTED", "updated": "2011-01-21T11:33:21Z", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}], "min_version": "", "version": "", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.compute+json;version=2"}], "id": "v2.0"}}
DEBUG (extension:157) found extension EntryPoint.parse('v2token = keystoneauth1.loading._plugins.identity.v2:Token')
DEBUG (extension:157) found extension EntryPoint.parse('admin_token = keystoneauth1.loading._plugins.admin_token:AdminToken')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcauthcode = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAuthorizationCode')
DEBUG (extension:157) found extension EntryPoint.parse('v2password = keystoneauth1.loading._plugins.identity.v2:Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3password = keystoneauth1.loading._plugins.identity.v3:Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcpassword = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectPassword')
DEBUG (extension:157) found extension EntryPoint.parse('token = keystoneauth1.loading._plugins.identity.generic:Token')
DEBUG (extension:157) found extension EntryPoint.parse('v3token = keystoneauth1.loading._plugins.identity.v3:Token')
DEBUG (extension:157) found extension EntryPoint.parse('password = keystoneauth1.loading._plugins.identity.generic:Password')
DEBUG (session:248) REQ: curl -g -i -X GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89b...c0bbea/servers/896052...3740c83b -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}4767b7...9dbe1799777b5d"
DEBUG (connectionpool:388) "GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89b...c0bbea/servers/896052...3740c83b HTTP/1.1" 200 1725
DEBUG (session:277) RESP: [200] Content-Length: 1725 Via: 1.1 proxy.CeBiTec.Uni-Bielefeld.DE:3128 (squid/2.7.STABLE7) Proxy-Connection: keep-alive X-Cache: MISS from proxy.CeBiTec.Uni-Bielefeld.DE X-Compute-Request-Id: req-b52e32cf...d9da490 Connection: keep-alive Date: Tue, 15 Nov 2016 21:59:32 GMT Content-Type: application/json
RESP BODY: {"server": {"status": "ACTIVE", "updated": "2016-11-15T18:37:18Z", "hostId": "7224a5d...7b6418bae", "addresses": {"KubeNow-network": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:51:be:2c", "version": 4, "addr": "10.0.0.5", "OS-EXT-IPS:type": "fixed"}]}, "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89b...c0bbea/servers/896052...3740c83b", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89b...c0bbea/servers/896052...3740c83b", "rel": "bookmark"}], "key_name": "KubeNow-keypair", "image": {"id": "35e4e...2a30df", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89b...c0bbea/images/35e4e...2a30df", "rel": "bookmark"}]}, "OS-EXT-STS:task_state": null, "OS-EXT-STS:vm_state": "active", "OS-SRV-USG:launched_at": "2016-11-15T18:37:18.000000", "flavor": {"id": "11bb89...8cf35978", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89b...c0bbea/flavors/11bb89...8cf35978", "rel": "bookmark"}]}, "id": "896052...3740c83b", "security_groups": [{"name": "KubeNow-secgroup"}], "OS-SRV-USG:terminated_at": null, "OS-EXT-AZ:availability_zone": "dynamic", "user_id": "370a07...c017396", "name": "mynewone", "created": "2016-11-15T18:37:10Z", "tenant_id": "ff89b...c0bbea", "OS-DCF:diskConfig": "MANUAL", "os-extended-volumes:volumes_attached": [], "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 1, "config_drive": "", "metadata": {}}}
DEBUG (session:248) REQ: curl -g -i -X GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89b...c0bbea/flavors/11bb89...8cf35978 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}4767b77...259dbe1799777b5d"
DEBUG (connectionpool:388) "GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89b...c0bbea/flavors/11bb89...8cf35978 HTTP/1.1" 200 576
DEBUG (session:277) RESP: [200] Content-Length: 576 Via: 1.1 proxy.CeBiTec.Uni-Bielefeld.DE:3128 (squid/2.7.STABLE7) Proxy-Connection: keep-alive X-Cache: MISS from proxy.CeBiTec.Uni-Bielefeld.DE X-Compute-Request-Id: req-9cfe17f1-64b0-4192-baa5-2df5e84c5a43 Connection: keep-alive Date: Tue, 15 Nov 2016 21:59:32 GMT Content-Type: application/json
RESP BODY: {"flavor": {"name": "c4r16d30", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89b...c0bbea/flavors/11bb89...8cf35978", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89b...c0bbea/flavors/11bb89...8cf35978", "rel": "bookmark"}], "ram": 16384, "OS-FLV-DISABLED:disabled": false, "vcpus": 4, "swap": "", "os-flavor-access:is_public": true, "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 30, "disk": 24, "id": "11bb89...8cf35978"}}
DEBUG (session:248) REQ: curl -g -i -X GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89b...c0bbea/images/35e4e...2a30df -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}4767b77b...be1799777b5d"
DEBUG (connectionpool:388) "GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89b...c0bbea/images/35e4e...2a30df HTTP/1.1" 200 1553
DEBUG (session:277) RESP: [200] Content-Length: 1553 Via: 1.1 proxy.CeBiTec.Uni-Bielefeld.DE:3128 (squid/2.7.STABLE7) Proxy-Connection: keep-alive X-Cache: MISS from proxy.CeBiTec.Uni-Bielefeld.DE X-Compute-Request-Id: req-206a17d4-25bc...4035 Connection: keep-alive Date: Tue, 15 Nov 2016 21:59:32 GMT Content-Type: application/json
RESP BODY: {"image": {"status": "ACTIVE", "updated": "2016-11-15T09:33:48Z", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89b...c0bbea/images/35e4e...2a30df", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89b...c0bbea/images/35e4e...2a30df", "rel": "bookmark"}, {"href": "http://controller:9292/images/35e4e...2a30df", "type": "application/vnd.openstack.image", "rel": "alternate"}], "id": "35e4e...2a30df", "OS-EXT-IMG-SIZE:size": 1105723392, "name": "KubeNow", "created": "2016-11-15T09:28:14Z", "minDisk": 24, "server": {"id": "7279c6c...85c13db", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89b...c0bbea/servers/7279c6c...85c13db", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89b...c0bbea/servers/7279c6c...85c13db", "rel": "bookmark"}]}, "progress": 100, "minRam": 512, "metadata": {"instance_uuid": "7279c6c...85c13db", "image_location": "snapshot", "image_state": "available", "user_id": "370a07...c017396", "description": "Ubuntu 16.04.1 LTS modified - see https://wiki.cebitec.uni-bielefeld.de/bibiserv/index.php/OpenStack/Images", "image_type": "image", "architecture": "x86_64", "base_image_ref": "22aea5e8-c...5af48ae", "owner_id": "ff89b...c0bbea"}}}
+--------------------------------------+----------------------------------------------------------+
| Property | Value |
+--------------------------------------+----------------------------------------------------------+
| KubeNow-network network | 10.0.0.5 |
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | dynamic |
| OS-EXT-STS:power_state | 1 |
| OS-EXT-STS:task_state | - |
| OS-EXT-STS:vm_state | active |
| OS-SRV-USG:launched_at | 2016-11-15T18:37:18.000000 |
| OS-SRV-USG:terminated_at | - |
| accessIPv4 | |
| accessIPv6 | |
| config_drive | |
| created | 2016-11-15T18:37:10Z |
| flavor | c4r16d30 (11bb89...8cf35978) |
| hostId | 7224a5...614a47b6418bae |
| id | 896052...3740c83b |
| image | KubeNow (35e4e...2a30df) |
| key_name | KubeNow-keypair |
| metadata | {} |
| name | mynewone |
| os-extended-volumes:volumes_attached | [] |
| progress | 0 |
| security_groups | KubeNow-secgroup |
| status | ACTIVE |
| tenant_id | ff89b...c0bbea |
| updated | 2016-11-15T18:37:18Z |
| user_id | 370a07...c017396 |
+--------------------------------------+----------------------------------------------------------+
Hi, I can confirm it works on 0.7.7 Yours, Steffen
Hi, these are the logs from nova show. Yours, Steffen
DEBUG (extension:157) found extension EntryPoint.parse('v2token = keystoneauth1.loading._plugins.identity.v2:Token')
DEBUG (extension:157) found extension EntryPoint.parse('admin_token = keystoneauth1.loading._plugins.admin_token:AdminToken')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcauthcode = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAuthorizationCode')
DEBUG (extension:157) found extension EntryPoint.parse('v2password = keystoneauth1.loading._plugins.identity.v2:Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3password = keystoneauth1.loading._plugins.identity.v3:Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcpassword = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectPassword')
DEBUG (extension:157) found extension EntryPoint.parse('token = keystoneauth1.loading._plugins.identity.generic:Token')
DEBUG (extension:157) found extension EntryPoint.parse('v3token = keystoneauth1.loading._plugins.identity.v3:Token')
DEBUG (extension:157) found extension EntryPoint.parse('password = keystoneauth1.loading._plugins.identity.generic:Password')
DEBUG (session:248) REQ: curl -g -i -X GET https://openstack.cebitec.uni-bielefeld.de:5000/v3 -H "Accept: application/json" -H "User-Agent: keystoneauth1/2.4.1 python-requests/2.9.1 CPython/2.7.12"
INFO (connectionpool:761) Starting new HTTPS connection (1): openstack.cebitec.uni-bielefeld.de
DEBUG (connectionpool:388) "GET /v3 HTTP/1.1" 200 274
DEBUG (session:277) RESP: [200] Content-Length: 274 Strict-Transport-Security: max-age=15768000 Vary: X-Auth-Token Keep-Alive: timeout=5, max=100 Server: Apache/2.4.7 (Ubuntu) Connection: Keep-Alive Date: Tue, 15 Nov 2016 21:59:31 GMT x-openstack-request-id: req-54...03667f Content-Type: application/json X-Distribution: Ubuntu
RESP BODY: {"version": {"status": "stable", "updated": "2015-03-30T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.4", "links": [{"href": "https://openstack.cebitec.uni-bielefeld.de:5000/v3/", "rel": "self"}]}}
DEBUG (base:165) Making authentication request to https://openstack.cebitec.uni-bielefeld.de:5000/v3/auth/tokens
DEBUG (connectionpool:388) "POST /v3/auth/tokens HTTP/1.1" 201 5028
DEBUG (session:248) REQ: curl -g -i -X GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89b...rc0bbea -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}4767b7...e1799777b5d"
INFO (connectionpool:208) Starting new HTTP connection (1): proxy.cebitec.uni-bielefeld.de
DEBUG (connectionpool:388) "GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89b...c0bbea HTTP/1.1" 404 52
DEBUG (session:277) RESP: [404] Content-Length: 52 Via: 1.1 proxy.CeBiTec.Uni-Bielefeld.DE:3128 (squid/2.7.STABLE7) X-Cache: HIT from proxy.CeBiTec.Uni-Bielefeld.DE Age: 189 Connection: close Date: Tue, 15 Nov 2016 21:56:22 GMT Content-Type: text/plain; charset=UTF-8 X-Compute-Request-Id: req-1e092b...1c649b
RESP BODY: 404 Not Found
The resource could not be found.
DEBUG (session:248) REQ: curl -g -i -X GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}4767b7...e1799777b5d"
INFO (connectionpool:243) Resetting dropped connection: proxy.cebitec.uni-bielefeld.de
DEBUG (connectionpool:388) "GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ HTTP/1.1" 200 399
DEBUG (session:277) RESP: [200] Content-Length: 399 Via: 1.1 proxy.CeBiTec.Uni-Bielefeld.DE:3128 (squid/2.7.STABLE7) Proxy-Connection: keep-alive X-Cache: MISS from proxy.CeBiTec.Uni-Bielefeld.DE X-Compute-Request-Id: req-001469e9-7284-48e2-8590-36bf87801b16 Connection: keep-alive Date: Tue, 15 Nov 2016 21:59:31 GMT Content-Type: application/json
RESP BODY: {"version": {"status": "SUPPORTED", "updated": "2011-01-21T11:33:21Z", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}], "min_version": "", "version": "", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.compute+json;version=2"}], "id": "v2.0"}}
DEBUG (extension:157) found extension EntryPoint.parse('v2token = keystoneauth1.loading._plugins.identity.v2:Token')
DEBUG (extension:157) found extension EntryPoint.parse('admin_token = keystoneauth1.loading._plugins.admin_token:AdminToken')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcauthcode = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAuthorizationCode')
DEBUG (extension:157) found extension EntryPoint.parse('v2password = keystoneauth1.loading._plugins.identity.v2:Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3password = keystoneauth1.loading._plugins.identity.v3:Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcpassword = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectPassword')
DEBUG (extension:157) found extension EntryPoint.parse('token = keystoneauth1.loading._plugins.identity.generic:Token')
DEBUG (extension:157) found extension EntryPoint.parse('v3token = keystoneauth1.loading._plugins.identity.v3:Token')
DEBUG (extension:157) found extension EntryPoint.parse('password = keystoneauth1.loading._plugins.identity.generic:Password')
DEBUG (session:248) REQ: curl -g -i -X GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89b...c0bbea/servers/896052...3740c83b -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}4767b7...e1799777b5d"
DEBUG (connectionpool:388) "GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89b...c0bbea/servers/896052...3740c83b HTTP/1.1" 200 1725
DEBUG (session:277) RESP: [200] Content-Length: 1725 Via: 1.1 proxy.CeBiTec.Uni-Bielefeld.DE:3128 (squid/2.7.STABLE7) Proxy-Connection: keep-alive X-Cache: MISS from proxy.CeBiTec.Uni-Bielefeld.DE X-Compute-Request-Id: req-b52e32cf-f970-442e-9e68-be41dd9da490 Connection: keep-alive Date: Tue, 15 Nov 2016 21:59:32 GMT Content-Type: application/json
RESP BODY: {"server": {"status": "ACTIVE", "updated": "2016-11-15T18:37:18Z", "hostId": "7224a5d...7b6418bae", "addresses": {"KubeNow-network": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:51:be:2c", "version": 4, "addr": "10.0.0.5", "OS-EXT-IPS:type": "fixed"}]}, "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89b...c0bbea/servers/896052...3740c83b", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89b...c0bbea/servers/896052...3740c83b", "rel": "bookmark"}], "key_name": "KubeNow-keypair", "image": {"id": "35e4e...2a30df", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89b...c0bbea/images/35e4e...2a30df", "rel": "bookmark"}]}, "OS-EXT-STS:task_state": null, "OS-EXT-STS:vm_state": "active", "OS-SRV-USG:launched_at": "2016-11-15T18:37:18.000000", "flavor": {"id": "11bb89...8cf35978", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89b...c0bbea/flavors/11bb89...8cf35978", "rel": "bookmark"}]}, "id": "896052...3740c83b", "security_groups": [{"name": "KubeNow-secgroup"}], "OS-SRV-USG:terminated_at": null, "OS-EXT-AZ:availability_zone": "dynamic", "user_id": "370a07...c017396", "name": "mynewone", "created": "2016-11-15T18:37:10Z", "tenant_id": "ff89b...c0bbea", "OS-DCF:diskConfig": "MANUAL", "os-extended-volumes:volumes_attached": [], "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 1, "config_drive": "", "metadata": {}}}
DEBUG (session:248) REQ: curl -g -i -X GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89b...c0bbea/flavors/11bb89...8cf35978 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}4767b7...e1799777b5d"
DEBUG (connectionpool:388) "GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89b...c0bbea/flavors/11bb89...8cf35978 HTTP/1.1" 200 576
DEBUG (session:277) RESP: [200] Content-Length: 576 Via: 1.1 proxy.CeBiTec.Uni-Bielefeld.DE:3128 (squid/2.7.STABLE7) Proxy-Connection: keep-alive X-Cache: MISS from proxy.CeBiTec.Uni-Bielefeld.DE X-Compute-Request-Id: req-9cfe17f1-64b0-4192-baa5-2df5e84c5a43 Connection: keep-alive Date: Tue, 15 Nov 2016 21:59:32 GMT Content-Type: application/json
RESP BODY: {"flavor": {"name": "c4r16d30", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89b...c0bbea/flavors/11bb89...8cf35978", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89b...c0bbea/flavors/11bb89...8cf35978", "rel": "bookmark"}], "ram": 16384, "OS-FLV-DISABLED:disabled": false, "vcpus": 4, "swap": "", "os-flavor-access:is_public": true, "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 30, "disk": 24, "id": "11bb89...8cf35978"}}
DEBUG (session:248) REQ: curl -g -i -X GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89b...c0bbea/images/35e4e...2a30df -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}4767b7...e1799777b5d"
DEBUG (connectionpool:388) "GET http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89b...c0bbea/images/35e4e...2a30df HTTP/1.1" 200 1553
DEBUG (session:277) RESP: [200] Content-Length: 1553 Via: 1.1 proxy.CeBiTec.Uni-Bielefeld.DE:3128 (squid/2.7.STABLE7) Proxy-Connection: keep-alive X-Cache: MISS from proxy.CeBiTec.Uni-Bielefeld.DE X-Compute-Request-Id: req-206a17d4-25bc-4b1a-a300-6096777f4035 Connection: keep-alive Date: Tue, 15 Nov 2016 21:59:32 GMT Content-Type: application/json
RESP BODY: {"image": {"status": "ACTIVE", "updated": "2016-11-15T09:33:48Z", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89b...c0bbea/images/35e4e...2a30df", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89b...c0bbea/images/35e4e...2a30df", "rel": "bookmark"}, {"href": "http://controller:9292/images/35e4e...2a30df", "type": "application/vnd.openstack.image", "rel": "alternate"}], "id": "35e4e...2a30df", "OS-EXT-IMG-SIZE:size": 1105723392, "name": "KubeNow", "created": "2016-11-15T09:28:14Z", "minDisk": 24, "server": {"id": "7279c6c...85c13db", "links": [{"href": "http://openstack.cebitec.uni-bielefeld.de:8774/v2/ff89b...c0bbea/servers/7279c6c...85c13db", "rel": "self"}, {"href": "http://openstack.cebitec.uni-bielefeld.de:8774/ff89b...c0bbea/servers/7279c6c...85c13db", "rel": "bookmark"}]}, "progress": 100, "minRam": 512, "metadata": {"instance_uuid": "7279c6c...85c13db", "image_location": "snapshot", "image_state": "available", "user_id": "370a07...c017396", "description": "Ubuntu 16.04.1 LTS modified - see https://wiki.cebitec.uni-bielefeld.de/bibiserv/index.php/OpenStack/Images", "image_type": "image", "architecture": "x86_64", "base_image_ref": "22aea5e8..5af48ae", "owner_id": "ff89b...c0bbea"}}}
+--------------------------------------+----------------------------------------------------------+
| Property | Value |
+--------------------------------------+----------------------------------------------------------+
| KubeNow-network network | 10.0.0.5 |
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | dynamic |
| OS-EXT-STS:power_state | 1 |
| OS-EXT-STS:task_state | - |
| OS-EXT-STS:vm_state | active |
| OS-SRV-USG:launched_at | 2016-11-15T18:37:18.000000 |
| OS-SRV-USG:terminated_at | - |
| accessIPv4 | |
| accessIPv6 | |
| config_drive | |
| created | 2016-11-15T18:37:10Z |
| flavor | c4r16d30 (11bb89...8cf35978) |
| hostId | 7224a5...614a47b6418bae |
| id | 896052...3740c83b |
| image | KubeNow (35e4e...2a30df) |
| key_name | KubeNow-keypair |
| metadata | {} |
| name | mynewone |
| os-extended-volumes:volumes_attached | [] |
| progress | 0 |
| security_groups | KubeNow-secgroup |
| status | ACTIVE |
| tenant_id | ff89b...c0bbea |
| updated | 2016-11-15T18:37:18Z |
| user_id | 370a07...c017396 |
+--------------------------------------+----------------------------------------------------------+
@sneumann Thanks! Sorry for the late reply.
Question: Is the error always about 1.994752e+06 or does that number change?
We never saw a different number. Yours, Steffen
This is becoming a fun challenge ;)
I think this error is being triggered early in the create phase. There are a few queries that happen during this phase, notably retrieving all available images and flavors in order to make a match between the common name and the UUID.
Can you try two things:
image_id and flavor_id instead of *_name and see if this error happens? If so, this confirms the bug is being triggered by one of your images or flavors.int (integer) types. Can you browse through your available images and flavors and see if one of them has a field with a value of approximately 1994752? That would be where the error is happening.Thanks!
Hi, happy to help. I have zero experience with go, how would I do 2) ? Call a debugger? Put print statements somewhere? Yours Steffen
I blame Android for the brevity and typos
You can simply do:
$ nova flavor-list
$ glance image-list
For more detailed information, do:
$ nova flavor-show <id>
$ glance image-show <id>
Really just looking for one of those fields in the structs I linked to that has a number of approximately 1994752
Ok, found a 1994752, simpler than I thought:
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
...
| 207e848...dfd688 | c48r2000d5120 | 1994752 | 24 | 5120 | | 48 | 1.0 | True |
...
Should I still try "Can you try using image_id and flavor_id instead of *_name", and how would I do that ?
I supply in the terraform.tfvars :
#KuberNow_image = "KubeNow" # Name of the image created with Packer
KuberNow_image = "35e4ec87-80d6-409d-a140-c100fd2a30df" # Name of the image created with Packer
but the installation does chokes with Unable to find image with name 35e...0df
@mcapuccini should I change anything so that KuberNow_image can pass an ID ?
Yours, Steffen
@sneumann yep! You should change image_name to image_id in these files:
https://github.com/kubenow/KubeNow/blob/master/openstack/master/main.tf#L26
https://github.com/kubenow/KubeNow/blob/master/openstack/edge/main.tf#L31
https://github.com/kubenow/KubeNow/blob/master/openstack/node/main.tf#L24
if it helps I can make a quick fix for KubeNow.
Hi, passed the image as ID rather than name, according to @mcapuccini 's suggestion above.
Still same result. What next ? Yours, Steffen
module.master.openstack_compute_instance_v2.master: Creating...
access_ip_v4: "" => "<computed>"
access_ip_v6: "" => "<computed>"
flavor_id: "" => "<computed>"
flavor_name: "" => "6e69520...562bc7"
floating_ip: "" => "172.21.8.209"
image_id: "" => "35e4ec...00fd2a30df"
image_name: "" => "<computed>"
key_pair: "" => "KubeNow-keypair"
name: "" => "KubeNow-master"
network.#: "" => "1"
network.0.access_network: "" => "false"
network.0.fixed_ip_v4: "" => "<computed>"
network.0.fixed_ip_v6: "" => "<computed>"
network.0.floating_ip: "" => "<computed>"
network.0.mac: "" => "<computed>"
network.0.name: "" => "KubeNow-network"
network.0.port: "" => "<computed>"
network.0.uuid: "" => "<computed>"
region: "" => "RegionOne"
security_groups.#: "" => "1"
security_groups.1881937636: "" => "KubeNow-secgroup"
stop_before_destroy: "" => "false"
user_data: "" => "a399819...7a5bf"
Error applying plan:
1 error(s) occurred:
* openstack_compute_instance_v2.master: json: cannot unmarshal number 1.994752e+06 into Go value of type int
@sneumann Perfect! Your flavor c48r2000d5120 is triggering the error. This is no fault of yours (or your organization), rather, Gophercloud needs modified to account for large numbers such as that. I'll get this cleaned up in Gophercloud.
Just make the same changes you made with image_name / image_id, but for the flavor. It looks like you specified a UUID correctly for the flavor, but just rename it to flavor_id:
https://github.com/kubenow/KubeNow/blob/master/openstack/master/main.tf#L27
I'll leave this Issue opened until the fix makes its way to Terraform.
Thank you both for your help and patience with this!
Hi, I can confirm that flavor_id did the trick, and I can run the terraform to the end !
Thanks for helping us through, glad to be of service. First time since MS-DOS days
that big RAM causes trouble :-) Yours, Steffen
Just to provide an update, discussion of this bug can now be found here: https://github.com/gophercloud/gophercloud/issues/209
@jtopjian what is the status of this, did in get fixed in 0.9? It's not urgent at all, but just for the records 🙂
Thanks for poking about this. It's still an open issue -- seems like discussion has stalled. I'll see if I can get it moving.
I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.