init_host() raises meaningless exception
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nova-dpm |
Fix Released
|
Medium
|
sreeteja |
Bug Description
The driver function init_host() invokes:
self._cpc = self._client.
For the code, see here: https:/
This code does not catch the zhmcclient.NotFound exception that will be raised if the CPC is not found.
The issue with this code is that this exception does not have a message text and therefore it will be hard from the nova log file to figure out what the reason was for the problem.
There can be various reasons why the CPC was not found:
* Wrong HMC host was configured in the config file.
* CPC UUID was mistyped in the config file.
* HMC user does not have object-access permission for the CPC.
The code quoted above should be protected by having a try-except block around it that catches zhmcclient.
description: | updated |
Changed in nova-dpm: | |
importance: | Undecided → Medium |
Changed in nova-dpm: | |
assignee: | Juergen Leopold (leopoldj) → sreeteja (sreeteja) |
Fix proposed to branch: master /review. openstack. org/457569
Review: https:/