[Fiware-lab-help] Problem with instances and volumes [Fi-Dash]

Sergio Vavassori svavassori at conwet.com
Wed May 20 10:11:08 CEST 2015


Hello,

We are developing some widget for the Fi-Dash project (part of Fi-Ops) and
we are having some problems operating in Spain2 with instances and volumes:

* Images are created with ERROR status
* Deleting an image hangs for a while and then responds with 500. While it
is hanged the image is in 'deleted' state and when it responds back the 500
the image changes back to 'active'.
* Trying to attaching a volume respond with a 200 OK response but the
volume is not attached

As attachments the curl commands we did and their replies.

Do you have any information of how the problem can be solved or if we are
doing something wrong with our requests?


Regards,
Sergio Vavassori
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/fiware-lab-help/attachments/20150520/ea9bee42/attachment.html>
-------------- next part --------------
curl -iv 'https://cloud.lab.fiware.org/Spain2/compute/v2/0000000000000000000000000braulio/servers/c39a70fc-a16e-4124-804f-45081833bf91' -H 'Accept: application/json' -H 'X-Auth-Token: 732b5b804dd24988b8a93669f18bbdec' -k

* Hostname was NOT found in DNS cache
*   Trying 130.206.84.8...
* Connected to cloud.lab.fiware.org (130.206.84.8) port 443 (#0)
* successfully set certificate verify locations:
*   CAfile: none
  CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server key exchange (12):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
* Server certificate:
* 	 subject: OU=Domain Control Validated; CN=*.lab.fiware.org
* 	 start date: 2014-10-09 00:00:00 GMT
* 	 expire date: 2016-10-08 23:59:59 GMT
* 	 issuer: C=NL; O=TERENA; CN=TERENA SSL CA
* 	 SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway.
> GET /Spain2/compute/v2/0000000000000000000000000braulio/servers/c39a70fc-a16e-4124-804f-45081833bf91 HTTP/1.1
> User-Agent: curl/7.37.1
> Host: cloud.lab.fiware.org
> Accept: application/json
> X-Auth-Token: 732b5b804dd24988b8a93669f18bbdec
> 
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
* Server nginx/1.4.6 (Ubuntu) is not blacklisted
< Server: nginx/1.4.6 (Ubuntu)
Server: nginx/1.4.6 (Ubuntu)
< Date: Tue, 19 May 2015 15:28:38 GMT
Date: Tue, 19 May 2015 15:28:38 GMT
< Content-Type: application/json
Content-Type: application/json
< Content-Length: 1825
Content-Length: 1825
< Connection: keep-alive
Connection: keep-alive
< X-Powered-By: Express
X-Powered-By: Express
< Access-Control-Allow-Origin: undefined
Access-Control-Allow-Origin: undefined
< Access-Control-Allow-Methods: HEAD, PUT, POST, GET, OPTIONS, DELETE
Access-Control-Allow-Methods: HEAD, PUT, POST, GET, OPTIONS, DELETE
< Access-Control-Allow-Headers: origin, content-type, X-Auth-Token, Tenant-ID, x-image-meta-is_public, x-image-meta-name
Access-Control-Allow-Headers: origin, content-type, X-Auth-Token, Tenant-ID, x-image-meta-is_public, x-image-meta-name
< Access-Control-Allow-Credentials: true
Access-Control-Allow-Credentials: true
< x-compute-request-id: req-410904c3-f542-4d7b-b700-506d34c9ece6
x-compute-request-id: req-410904c3-f542-4d7b-b700-506d34c9ece6

< 


{  
  "server":{  
    "status":"ERROR",
    "updated":"2015-05-19T15:25:37Z",
    "hostId":"45a04b919c0773b8e7c2a4be36ee4dfcab94a8501ca534fe322e5863",
    "addresses":{  
      "shared-net":[  
        {  
          "OS-EXT-IPS-MAC:mac_addr":"fa:16:3e:81:be:df",
          "version":4,
          "addr":"192.168.198.185",
          "OS-EXT-IPS:type":"fixed"
        }
      ]
    },
    "links":[  
      {  
        "href":"http://130.206.112.3:8774/v2/0000000000000000000000000braulio/servers/c39a70fc-a16e-4124-804f-45081833bf91",
        "rel":"self"
      },
      {  
        "href":"http://130.206.112.3:8774/0000000000000000000000000braulio/servers/c39a70fc-a16e-4124-804f-45081833bf91",
        "rel":"bookmark"
      }
    ],
    "key_name":null,
    "image":{  
      "id":"e3c68044-ac26-4bfa-98d2-c199147169b4",
      "links":[  
        {  
          "href":"http://130.206.112.3:8774/0000000000000000000000000braulio/images/e3c68044-ac26-4bfa-98d2-c199147169b4",
          "rel":"bookmark"
        }
      ]
    },
    "OS-EXT-STS:task_state":null,
    "OS-EXT-STS:vm_state":"error",
    "OS-SRV-USG:launched_at":null,
    "flavor":{  
      "id":"1",
      "links":[  
        {  
          "href":"http://130.206.112.3:8774/0000000000000000000000000braulio/flavors/1",
          "rel":"bookmark"
        }
      ]
    },
    "id":"c39a70fc-a16e-4124-804f-45081833bf91",
    "security_groups":[  
      {  
        "name":"default"
      }
    ],
    "OS-SRV-USG:terminated_at":null,
    "OS-EXT-AZ:availability_zone":"nova",
    "user_id":"braulio",
    "name":"testImage__instance",
    "created":"2015-05-19T15:25:00Z",
    "tenant_id":"0000000000000000000000000braulio",
    "OS-DCF:diskConfig":"MANUAL",
    "os-extended-volumes:volumes_attached":[  

    ],
    "accessIPv4":"",
    "accessIPv6":"",
    "fault":{  
      "message":"No valid host was found. Exceeded max scheduling attempts 3 for instance c39a70fc-a16e-4124-804f-45081833bf91. Last exception: [u'Traceback (most recent call last):\\n', u'  File \"/usr/lib/python2.7/dist-packages/nova/compute/manager.py\", line 2039, in _do",
      "code":500,
      "created":"2015-05-19T15:25:37Z"
    },
    "OS-EXT-STS:power_state":0,
    "config_drive":"",
    "metadata":{  

    }
  }
}
-------------- next part --------------
curl -iv 'https://mashup.lab.fiware.org/proxy/http/130.206.112.3:8774/v2/0000000000000000000000000braulio/images/e3c68044-ac26-4bfa-98d2-c199147169b4' -X DELETE -H 'Pragma: no-cache' -H 'Origin: https://mashup.lab.fiware.org' -H 'Accept-Encoding: gzip, deflate, sdch' -H 'Accept-Language: es-ES,es;q=0.8,en;q=0.6' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/40.0.2214.94 Chrome/40.0.2214.94 Safari/537.36' -H 'Accept: text/javascript, text/html, application/xml, text/xml, */*' -H 'Cache-Control: no-cache' -H 'X-Auth-Token: 79dfd0c064754117a7cbe5029c357e71' -H 'X-Requested-With: XMLHttpRequest' -H 'Cookie: _key_session=bjc5UzBla1VMTXdWZ3dyTVNmeUJId0ZLUGs2VXl6WFVscFNVb3k2Z29LNnVWRHFPUmlmNFVSWWR4MC9nclFPY3lGTjNCQXBINVNiOVdHTzZoWm1Fc21ka2lpM1NiRlVNYUk3bUNuRXk5V1hjTVJyY3Fjb1pDN0xvalg5KytQdmxPTHZwVlZJZGpOUlpkMVNKaDVlLzg3UWhSQ0V5enNjNHNrZ1RQQ09Kei9aK2c3T2ZCdWVtVjRHNmpSREZ5UHpLc2JZWlVmTng4SU9ZdUJrOERFRldBWVFSVXNCZXRZNXNLd0lxcHJSWjJhdHlabGQvVEYvSTZRc2pxQWpMTXpHNEFNeDUvWmJ3ZTE2RFFFQnQ5b3E3ZFN6ZXd0ZlhOZVZaUjBZVnhid0daRFd1d2FlVmJNSjBtdHZIWmVYK1FIbi9icG0xRGVqQldWVFFTcmhpeW51UFdZTUZZUWhXTnVqbEhiang0TGViRytKVGJRaWtGWEFoOGtVVnJ5b0FRb2hpVnBldU00RTJFQ2Z2ZFR2QUgweGozT0dmcXVMeG8wcy85UldxWHBXOWtxSlc3RTlJZStsZDNheXJlcndaMGhiYUJQSERjWmlJVDIwME9xay9yNlNDMGhSb0xKTzh5eUVPUTZSdEFNcjB2Mmc1MWliZlBIdE5aTW1pZWp1dG9lRGhQMmJnYVlmWTgraEZKdGZiNjRlYVNKNnhSWUM3ZldzSDN0aW50RzA0RkxzPS0tTEVTM1JBUFJ2TTMwRDlNQ0o1MmhBZz09--3557d3b519472c8696d6add019ca63dbd4ee7e28; _ga=GA1.2.1654105829.1429868970; oil_sid=hwi67ubr4uxlu07qly25dhfltntbcggo; policy_cookie=on' -H 'Connection: keep-alive' -H 'Referer: https://mashup.lab.fiware.org/braulio/OpenStack' --compressed


* Hostname was NOT found in DNS cache
*   Trying 130.206.84.11...
* Connected to mashup.lab.fiware.org (130.206.84.11) port 443 (#0)
* successfully set certificate verify locations:
*   CAfile: none
  CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server key exchange (12):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* Server certificate:
* 	 subject: OU=Domain Control Validated; CN=*.lab.fiware.org
* 	 start date: 2014-10-09 00:00:00 GMT
* 	 expire date: 2016-10-08 23:59:59 GMT
* 	 subjectAltName: mashup.lab.fiware.org matched
* 	 issuer: C=NL; O=TERENA; CN=TERENA SSL CA
* 	 SSL certificate verify ok.
> DELETE /proxy/http/130.206.112.3:8774/v2/0000000000000000000000000braulio/images/e3c68044-ac26-4bfa-98d2-c199147169b4 HTTP/1.1
> Host: mashup.lab.fiware.org
> Pragma: no-cache
> Origin: https://mashup.lab.fiware.org
> Accept-Encoding: gzip, deflate, sdch
> Accept-Language: es-ES,es;q=0.8,en;q=0.6
> User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/40.0.2214.94 Chrome/40.0.2214.94 Safari/537.36
> Accept: text/javascript, text/html, application/xml, text/xml, */*
> Cache-Control: no-cache
> X-Auth-Token: 79dfd0c064754117a7cbe5029c357e71
> X-Requested-With: XMLHttpRequest
> Cookie: _key_session=bjc5UzBla1VMTXdWZ3dyTVNmeUJId0ZLUGs2VXl6WFVscFNVb3k2Z29LNnVWRHFPUmlmNFVSWWR4MC9nclFPY3lGTjNCQXBINVNiOVdHTzZoWm1Fc21ka2lpM1NiRlVNYUk3bUNuRXk5V1hjTVJyY3Fjb1pDN0xvalg5KytQdmxPTHZwVlZJZGpOUlpkMVNKaDVlLzg3UWhSQ0V5enNjNHNrZ1RQQ09Kei9aK2c3T2ZCdWVtVjRHNmpSREZ5UHpLc2JZWlVmTng4SU9ZdUJrOERFRldBWVFSVXNCZXRZNXNLd0lxcHJSWjJhdHlabGQvVEYvSTZRc2pxQWpMTXpHNEFNeDUvWmJ3ZTE2RFFFQnQ5b3E3ZFN6ZXd0ZlhOZVZaUjBZVnhid0daRFd1d2FlVmJNSjBtdHZIWmVYK1FIbi9icG0xRGVqQldWVFFTcmhpeW51UFdZTUZZUWhXTnVqbEhiang0TGViRytKVGJRaWtGWEFoOGtVVnJ5b0FRb2hpVnBldU00RTJFQ2Z2ZFR2QUgweGozT0dmcXVMeG8wcy85UldxWHBXOWtxSlc3RTlJZStsZDNheXJlcndaMGhiYUJQSERjWmlJVDIwME9xay9yNlNDMGhSb0xKTzh5eUVPUTZSdEFNcjB2Mmc1MWliZlBIdE5aTW1pZWp1dG9lRGhQMmJnYVlmWTgraEZKdGZiNjRlYVNKNnhSWUM3ZldzSDN0aW50RzA0RkxzPS0tTEVTM1JBUFJ2TTMwRDlNQ0o1MmhBZz09--3557d3b519472c8696d6add019ca63dbd4ee7e28; _ga=GA1.2.1654105829.1429868970; oil_sid=hwi67ubr4uxlu07qly25dhfltntbcggo; policy_cookie=on
> Connection: keep-alive
> Referer: https://mashup.lab.fiware.org/braulio/OpenStack
> 
< HTTP/1.1 500 INTERNAL SERVER ERROR
HTTP/1.1 500 INTERNAL SERVER ERROR
< Date: Tue, 19 May 2015 14:23:02 GMT
Date: Tue, 19 May 2015 14:23:02 GMT
* Server Apache/2.4.10 (Debian) is not blacklisted
< Server: Apache/2.4.10 (Debian)
Server: Apache/2.4.10 (Debian)
< Via: 1.1 mashup.lab.fiware.org (Wirecloud-python-Proxy/1.1)
Via: 1.1 mashup.lab.fiware.org (Wirecloud-python-Proxy/1.1)
< x-compute-request-id: req-8ac65004-9c94-45a9-88eb-034c3f154914
x-compute-request-id: req-8ac65004-9c94-45a9-88eb-034c3f154914
< Strict-Transport-Security: max-age=63072000; includeSubdomains; preload
Strict-Transport-Security: max-age=63072000; includeSubdomains; preload
< Content-Length: 192
Content-Length: 192
< Connection: close
Connection: close
< Content-Type: application/xml; charset=UTF-8
Content-Type: application/xml; charset=UTF-8


Get of the same image. Notice that the status is now "deleted" while the DELETE request has not responded yet.

curl -iv -X HEAD https://cloud.lab.fiware.org/Spain2/image/v1/images/e3c68044-ac26-4bfa-98d2-c199147169b4 -H "X-Auth-Token: e7ec9be11aae4bb2bf35083ea6f850de" -k


* Hostname was NOT found in DNS cache
*   Trying 130.206.84.8...
* Connected to cloud.lab.fiware.org (130.206.84.8) port 443 (#0)
* successfully set certificate verify locations:
*   CAfile: none
  CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server key exchange (12):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
* Server certificate:
* 	 subject: OU=Domain Control Validated; CN=*.lab.fiware.org
* 	 start date: 2014-10-09 00:00:00 GMT
* 	 expire date: 2016-10-08 23:59:59 GMT
* 	 issuer: C=NL; O=TERENA; CN=TERENA SSL CA
* 	 SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway.
> HEAD /Spain2/image/v1/images/e3c68044-ac26-4bfa-98d2-c199147169b4 HTTP/1.1
> User-Agent: curl/7.37.1
> Host: cloud.lab.fiware.org
> Accept: */*
> X-Auth-Token: e7ec9be11aae4bb2bf35083ea6f850de
> 
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
* Server nginx/1.4.6 (Ubuntu) is not blacklisted
< Server: nginx/1.4.6 (Ubuntu)
Server: nginx/1.4.6 (Ubuntu)
< Date: Tue, 19 May 2015 14:19:07 GMT
Date: Tue, 19 May 2015 14:19:07 GMT
< Content-Type: text/html; charset=UTF-8
Content-Type: text/html; charset=UTF-8
< Content-Length: 0
Content-Length: 0
< Connection: keep-alive
Connection: keep-alive
< X-Powered-By: Express
X-Powered-By: Express
< Access-Control-Allow-Origin: undefined
Access-Control-Allow-Origin: undefined
< Access-Control-Allow-Methods: HEAD, PUT, POST, GET, OPTIONS, DELETE
Access-Control-Allow-Methods: HEAD, PUT, POST, GET, OPTIONS, DELETE
< Access-Control-Allow-Headers: origin, content-type, X-Auth-Token, Tenant-ID, x-image-meta-is_public, x-image-meta-name
Access-Control-Allow-Headers: origin, content-type, X-Auth-Token, Tenant-ID, x-image-meta-is_public, x-image-meta-name
< Access-Control-Allow-Credentials: true
Access-Control-Allow-Credentials: true
< x-image-meta-id: e3c68044-ac26-4bfa-98d2-c199147169b4
x-image-meta-id: e3c68044-ac26-4bfa-98d2-c199147169b4
< x-image-meta-deleted: False
x-image-meta-deleted: False
< x-image-meta-container_format: bare
x-image-meta-container_format: bare
< x-image-meta-checksum: 261a99a433c142f458a89debf3cd5010
x-image-meta-checksum: 261a99a433c142f458a89debf3cd5010
< x-image-meta-protected: False
x-image-meta-protected: False
< x-image-meta-min_disk: 0
x-image-meta-min_disk: 0
< x-image-meta-created_at: 2015-05-19T14:17:50
x-image-meta-created_at: 2015-05-19T14:17:50
< x-image-meta-size: 8
x-image-meta-size: 8
< x-image-meta-status: deleted
x-image-meta-status: deleted
< x-image-meta-is_public: False
x-image-meta-is_public: False
< x-image-meta-min_ram: 0
x-image-meta-min_ram: 0
< x-image-meta-owner: 0000000000000000000000000braulio
x-image-meta-owner: 0000000000000000000000000braulio
< x-image-meta-updated_at: 2015-05-19T14:18:12
x-image-meta-updated_at: 2015-05-19T14:18:12
< x-image-meta-disk_format: iso
x-image-meta-disk_format: iso
< x-image-meta-name: testImage
x-image-meta-name: testImage
< etag: 261a99a433c142f458a89debf3cd5010
etag: 261a99a433c142f458a89debf3cd5010
< x-openstack-request-id: req-5eaebce7-2b49-4f83-92de-316931d17e95
x-openstack-request-id: req-5eaebce7-2b49-4f83-92de-316931d17e95

< 
* Connection #0 to host cloud.lab.fiware.org left intact


More information about the Fiware-lab-help mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy