Skip to content

Catch `EndpointNotFound` error for getting server status update.

Uman Shahzad requested to merge uman/openstack-api-error into master

While testing the new region in OVH, we're having to use a new project with new creds that Ocim uses for both spawning new appservers and getting appserver information for currently running appservers. Since the currently running appservers are in the old region and project that require a different set of credentials, we get errors when attempting to access their detail view. This is a tiny patch to catch that error and log it to handle the case gracefully, until we improve Ocim with the ability to handle multi-OpenStack-project deployments.

Testing instructions:

  1. On stage, don't be on this branch, and make sure the .env file contains the new OpenStack credentials for all OPENSTACK_X variables (i.e. user/pass/tenant/region).
  2. See an instance that is setup to use the new region (i.e. 'Theme Academy'). Click on the older active instance and notice you get an error message (top right, or for a traceback see logs) when clicking on it to see the detail view.
  3. With this patch, see that clicking on it does not raise an error.

Merge request reports