Bug 1263119
| Summary: | virt-who show error info in the log if "OWNER" or "ENV" is null in /etc/sysconfig/virt-who | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Liushihui <shihliu> |
| Component: | virt-who | Assignee: | Radek Novacek <rnovacek> |
| Status: | CLOSED DUPLICATE | QA Contact: | Li Bin Liu <liliu> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.2 | CC: | gxing, hsun, ovasik, sgao, shihliu |
| Target Milestone: | rc | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-09-22 13:35:06 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Liushihui
2015-09-15 07:28:35 UTC
This is caused by bug 1243341, marking it as duplicate. *** This bug has been marked as a duplicate of bug 1243341 *** In the latest virt-who-0.14-8.el7.noarch, if "owner" or "env" have not been configured in /etc/virt-who.d/XXX, it will show error info in the log. please see it as the following. However, it won't generate any log if "owner" or "env" have not been configured in /etc/sysconfig/virt-who. I think it should show the same result on these two configure files in the same condition.
2015-09-18 02:02:02,352 [ERROR] @virtwho.py:747 - Fatal error: Option `env` needs to be set in config `test-rhevm1`
Traceback (most recent call last):
File "/usr/share/virt-who/virtwho.py", line 741, in <module>
main()
File "/usr/share/virt-who/virtwho.py", line 670, in main
virtWho = VirtWho(logger, options)
File "/usr/share/virt-who/virtwho.py", line 130, in __init__
self.configManager = ConfigManager(self.logger, config_dir, smType=options.smType)
File "/usr/share/virt-who/config.py", line 357, in __init__
self._readConfig(parser)
File "/usr/share/virt-who/config.py", line 364, in _readConfig
config.checkOptions(self.smType, self.logger)
File "/usr/share/virt-who/config.py", line 96, in checkOptions
raise InvalidOption("Option `env` needs to be set in config `%s`" % (self.name))
InvalidOption: Option `env` needs to be set in config `test-rhevm1`
Thanks for noticing, will fix together with bug 1254843. *** This bug has been marked as a duplicate of bug 1254843 *** |