Bug 1322923
Summary: | java.lang.IllegalArgumentException: No type specified for option: 'encrypt_options' in /api/capabilities | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Itamar Heim <iheim> | |
Component: | ovirt-engine | Assignee: | Juan Hernández <juan.hernandez> | |
Status: | CLOSED ERRATA | QA Contact: | Gonza <grafuls> | |
Severity: | urgent | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 3.6.4 | CC: | gklein, juan.hernandez, lsurette, mgoldboi, oourfali, pstehlik, rbalakri, Rhev-m-bugs, srevivo, ykaul | |
Target Milestone: | ovirt-4.0.0-alpha | Keywords: | ZStream | |
Target Release: | 4.0.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | ovirt 4.0.0 alpha1 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1323450 (view as bug list) | Environment: | ||
Last Closed: | 2016-08-23 20:34:06 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | Infra | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1323450 |
Description
Itamar Heim
2016-03-31 16:45:39 UTC
The only way this can happen is if the "encrypt_options=bool" pair is missing from the VdsFenceOptionTypes configuration value. Please check if this is the case, with the following SQL query: select * from vdc_options where option_name='VdsFenceOptionTypes' The result should be the following: encrypt_options=bool,secure=bool,port=int,slot=int If it isn't, then update the database: update vdc_options set option_value='secure=bool,port=int,slot=int' where option_name='VdsFenceOptionTypes' Then restart the engine and it should work correctly. In theory this value is automatically added during updates: https://github.com/oVirt/ovirt-engine/blob/ovirt-engine-3.6/packaging/dbscripts/upgrade/pre_upgrade/0000_config.sql#L601 Any chances that this has been manually modified after the upgrade? Anyhow, a missing parameter like this should not cause a complete failure of the capabilities resource, we will fix that. Oved, please request the 3.6.z flag. The SQL statement to update the database in comment 1 is wrong, it should obviously include the missing pair: update vdc_options set option_value='encrypt_options=bool,secure=bool,port=int,slot=int' where option_name='VdsFenceOptionTypes' Note that in order to test and verify this you will need to force an error in the configuration. To do so manually perform the following update in the database: update vdc_options set option_value='secure=bool,port=int,slot=int' where option_name='VdsFenceOptionTypes' Then restart the engine, and once it is running again request the API capabilities resource: GET /ovirt-engine/api/capabilities That used to fail but should succeed now, and the following error message should appear in engine.log: ERROR: No type specified for fencing option "encrypt_options". Verified with: rhevm-4.0.0.6-0.1.el7ev.noarch Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHEA-2016-1743.html |