micafer opened a new issue, #1672:
URL: https://github.com/apache/libcloud/issues/1672

   ## Summary
   
   An error is reported when creating node in OpenStack:
   `KeyError: 'id'`
   
   ## Detailed Information
   
   It seems that there is an error with the api_node about `flavor` information.
   
   ```py
       node = driver.create_node(**args)
     File 
"/usr/local/lib/python3.8/dist-packages/libcloud/compute/drivers/openstack.py", 
line 1569, in create_node
       return self._to_node(server_object)
     File 
"/usr/local/lib/python3.8/dist-packages/libcloud/compute/drivers/openstack.py", 
line 2523, in _to_node
       flavorId=api_node["flavor"]["id"],
   ```
   
   There are changes in OpenStack API:
   
   _Before microversion 2.47 this contains the ID and links for the flavor used 
to boot the server instance. This can be an empty object in case flavor 
information is no longer present in the system._
   
   _As of microversion 2.47 this contains a subset of the actual flavor 
information used to create the server instance, represented as a nested 
dictionary._
   
   See details:
   
https://docs.openstack.org/api-ref/compute/?expanded=create-server-detail,show-server-details-detail#show-server-details
   
   So it seems that as of microversion 2.47 the field `flavor.id` is not 
returned by the API call.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@libcloud.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to