Hello Devs!

I am trying to get DCAE controller running and have it spin up the rest of the 
VMs in my Openstack setup. So far I have been successful in getting the DCAE 
controller instance communicating fine with Openstack (gets the token, 
endpoints and the compute/glance/network resources and updates the Jetty server 
endpoints). The flavors and the images needed by the DCAE VMs have been created 
in OS. However, DCAE controller fails to deploy the VM citing missing flavor as 
the reason for failure.

What is the DCAE controller endpoint where it queries for the flavor name? I am 
looking at: http://localhost:9998/resources/openstack/locations/${ZONE}/flavors 
and it has the entry. Is there any other endpoint to verify?
Any insights to debug this would be helpful.

org.openecomp.ncomp.sirius.manager.Jetty8ClientException: HTTP Request Failed: 
URL: http://localhost:9998/resources/services/vm-docker-host-1 code:500 
msg:operation failed: deploy {   "exception": "java.lang.RuntimeException: No 
flavor with name '8 GB Performance'",   "directory": 
"/opt/app/dcae-controller-platform-server",   "user": "root",   "hostname": 
"7493a368c7ff",   "port": "9998",   "class": "DcaePlatformController",   
"action": "deploy",   "request": {"instanceName": "z1"},   "context": {     
"remoteIp": "127.0.0.1",     "user": "console",     "parameters": {},     
"path": "/resources/services/vm-docker-host-1",     "requestId": 
"1494949479518:29"   } } <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 500 operation failed: deploy
{
  "exception": "java.lang.RuntimeException: No flavor with name '8 GB 
Performance'",
  "directory": "/opt/app/dcae-controller-platform-server",
  "user": "root",
  "hostname": "7493a368c7ff",
  "port": "9998",
  "class": "DcaePlatformController",
  "action": "deploy",
  "request": {"instanceName": "z1"},
  "context": {
    "remoteIp": "127.0.0.1",
    "user": "console",
    "parameters": {},
    "path": "/resources/services/vm-docker-host-1",
    "requestId": "1494949479518:29"
  }
}</title>

****************************
The DCAE controller Jetty8 server endpoint for the locations lists the flavor 
as below:

root@7493a368c7ff:/# curl -X GET -H "Authorization: Basic 
Y29uc29sZTpaakprWWpsbE1qbGpNVEkyTTJJeg==" -H "Content-Type: application/json" 
-H "Accept: application/json" -H "Host: localhost:9998" -H "Cache-Control: 
no-cache" -H "Postman-Token: 654d54f7-78ed-080b-7432-b9721cf3a5b0" 
"http://localhost:9998/resources/openstack/locations/z1";
{
  "lastChanged": "2017-05-16T15:49:28.728+0000",
  "ceilometerAvailableCapabilites": [],
  "ceilometerUnavailableCapabilites": [],
  "version": "Juno",
  "remoteLocation": "false",
  "remoteLocationName": "z1",
  "allowCreateFlavor": "false",
  "keystoneUrl": "http://x.x.x.x:5000/v2.0";,
  "flavorId": "20000",
  "supportsSecurityGroups": "false",
  "supportsFloatingIps": "false",
  "projects": {"onap": .....
....
  "flavors": {
....
    "8 GB Performance": {
      "id": "5",
      "ram": "16384",
      "disk": "160",
      "vcpus": "8",
      "swap": "",
      "rxtx_factor": "1.0",
      "OS_FLV_EXT_DATA_ephemeral": "0",
      "OS_FLV_DISABLED_disabled": "false",
      "os_flavor_access_is_public": "true",
      "links": [
        "0",
        "1"
      ]
    }
  },
  "hypervisors": {}
}
_______________________________________________
onap-discuss mailing list
onap-discuss@lists.onap.org
https://lists.onap.org/mailman/listinfo/onap-discuss

Reply via email to