Bug 1829830
| Summary: | vhost custom properties does not accept '-' | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Siddhant Rao <sirao> |
| Component: | ovirt-engine | Assignee: | Dominik Holler <dholler> |
| Status: | CLOSED ERRATA | QA Contact: | Polina <pagranat> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 4.3.7 | CC: | dholler, mburman, michal.skrivanek, mkalinin, mperina, pagranat, pelauter |
| Target Milestone: | ovirt-4.4.1 | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | ovirt-engine-4.4.0.1 | Doc Type: | No Doc Update |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-08-04 13:22:48 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | Network | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Siddhant Rao
2020-04-30 12:51:34 UTC
A possible way to modify the validation on a test system is like this:
1. Read the old pattern:
/usr/share/ovirt-engine/dbscripts/engine-psql.sh -c "select option_value from vdc_options where option_name like 'PredefinedVMProperties' and version like '4.3' ;"
should return
sap_agent=^(true|false)$;sndbuf=^[0-9]+$;vhost=^(([a-zA-Z0-9_]*):(true|false))(,(([a-zA-Z0-9_]*):(true|false)))*$;viodiskcache=^(none|writeback|writethrough)$;mdev_type=^[^,](,?[0-9A-Za-z-]+)+$;hugepages=^[0-9]+$
2. Modify the pattern:
/usr/share/ovirt-engine/dbscripts/engine-psql.sh -c "select fn_db_update_config_value('PredefinedVMProperties', 'sap_agent=^(true|false)$;sndbuf=^[0-9]+$;vhost=^(([a-zA-Z0-9_-]*):(true|false))(,(([a-zA-Z0-9_]*):(true|false)))*$;viodiskcache=^(none|writeback|writethrough)$;mdev_type=^[^,](,?[0-9A-Za-z-]+)+$;hugepages=^[0-9]+$', '4.3');"
3. systemctl restart ovirt-engine
Please note that there is no verification that this has no unintended side effects yet.
The suggestion in comment#2 helped the customer. Let's test it properly and include it in the release. Thank you! I would keep severity high though. It is still preventing customers from doing the deployment. Siddhant, please create KCS. verified on ovirt-engine-4.4.0.2-0.1.el8ev.noarch network name with hyphen is successfully accepted now as a value for vhost custom-property. steps: 1. Create new network (networks/new network) , name test-network. In Compute/hosts/host1/setup host/ attach the new network to the enp3s0f1. In VM add the second nic (in Edit wirtual machine.general tab). 2. Set custom property: vhost = test-network:true. Start, migrate, stop VM succeed. The test added to the automation regression set 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 (Important: RHV Manager (ovirt-engine) 4.4 security, bug fix, and enhancement update), 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://access.redhat.com/errata/RHSA-2020:3247 |