Bug 1338545
| Summary: | Add AlertOnNumberOfLVs to engine-config.sh | ||
|---|---|---|---|
| Product: | [oVirt] ovirt-engine | Reporter: | Allon Mureinik <amureini> | 
| Component: | Tools.Config | Assignee: | Allon Mureinik <amureini> | 
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Carlos Mestre González <cmestreg> | 
| Severity: | low | Docs Contact: | |
| Priority: | medium | ||
| Version: | 4.0.0 | CC: | acanan, amureini, bugs, ngavrilo, ylavi | 
| Target Milestone: | ovirt-4.0.0-rc | Flags: | rule-engine:
                ovirt-4.0.0+ rule-engine: planning_ack+ amureini: devel_ack+ rule-engine: testing_ack+ | 
| Target Release: | 4.0.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-07-05 08:01:58 UTC | Type: | Bug | 
| Regression: | --- | Mount Type: | --- | 
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | Storage | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| 
        
          Description
        
        
          Allon Mureinik
        
        
        
        
        
          2016-05-22 16:46:04 UTC
        
       Allon, This issue only takes care of displaying the value? What about the option of setting it to a different value? Yup, indeed - any value that can be queried by engine-config can also be updated, by using the -s flag:
${OVIRT_HOME}/share/ovirt-engine/bin/engine-config.sh -s AlertOnNumberOfLVs=<some number>
The legal values are integers of 6 and above (due to the special LVs we create on the domain)
#engine-config  -g AlertOnNumberOfLVs
AlertOnNumberOfLVs: 300 version: general
# engine-config  -s AlertOnNumberOfLVs=5
Cannot set value 5 to key AlertOnNumberOfLVs. 
# engine-config  -s AlertOnNumberOfLVs=6
# engine-config  -g AlertOnNumberOfLVs
AlertOnNumberOfLVs: 6 version: general
engine=> SELECT * from vdc_options WHERE option_name = 'AlertOnNumberOfLVs';
 option_id |    option_name     | option_value | version 
-----------+--------------------+--------------+---------
       375 | AlertOnNumberOfLVs | 6            | general
(1 row)
(also tested negative: char, float, negative...)
version: 
rhevm-4.0.0.4-0.1.el7ev.noarch
oVirt 4.0.0 has been released, closing current release. |