Bug 1337445
Summary: | machine dialect should provide metadata - validValues, default, hidden | ||
---|---|---|---|
Product: | [oVirt] otopi | Reporter: | Yedidyah Bar David <didi> |
Component: | Plugins.dialog | Assignee: | Yedidyah Bar David <didi> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Nikolai Sednev <nsednev> |
Severity: | urgent | Docs Contact: | |
Priority: | urgent | ||
Version: | master | CC: | bugs, cshao, dfediuck, didi, fdeutsch, huzhao, leiwang, nsednev, rbarry, sbonazzo, stirabos, weiwang, yaniwang, ycui |
Target Milestone: | ovirt-4.0.0-rc | Keywords: | TestBlocker, Triaged |
Target Release: | 1.5.0 | Flags: | rule-engine:
ovirt-4.0.0+
rule-engine: blocker+ rule-engine: planning_ack+ sbonazzo: devel_ack+ mavital: testing_ack+ |
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | 1331626 | Environment: | |
Last Closed: | 2016-07-05 08:02:49 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | Integration | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1344900 | ||
Bug Blocks: | 1331626 |
Description
Yedidyah Bar David
2016-05-19 08:45:16 UTC
This bug report has Keywords: Regression or TestBlocker. Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP. *** Bug 1336250 has been marked as a duplicate of this bug. *** Please provide me with relevant link to NGN ISO image, as we don't have such yet. This bug can also be verified on a regular RHEL-H host with the correct hosted-engine-setup. To follow up: hosted-engine --deploy --otopi-environment="DIALOG/dialect=str:machine" Will show the appropriate %QStart, %QEnd, %QHidden, etc. Indeed, and also plain engine-setup with same option. All you need is recent enough otopi (1.5.0 should be ok). Why does this bug depend on bug 1344900? See above comments - you can verify it with any otopi-based tool that allows passing options. E.g.: engine-setup --otopi-environment="DIALOG/dialect=str:machine" Run it with an unpatched otopi and with a patched one and you can see the added lines. (In reply to Yedidyah Bar David from comment #7) > Why does this bug depend on bug 1344900? > > See above comments - you can verify it with any otopi-based tool that allows > passing options. E.g.: > > engine-setup --otopi-environment="DIALOG/dialect=str:machine" > > Run it with an unpatched otopi and with a patched one and you can see the > added lines. I've set the dependency because of the initial requirement for step 3. was "Setup Hosted Engine step by step." Unless 1344900 fixed, the deployment will fail. But generally you're correct, just to see if during the deployment step 5. "Press Enter key with default value." with default value of 2 virtual CPUs pass, then this bug can be verified. Where can I get ISO image with latest 4.0 NGN? However, I would also say that bz#1344900 should not block verification of this bug, since the entire flow up until the point where it fails depends on proper parsing of the new otopi output. This bug was cloned from hosted-engine-setup to otopi, because we decided the fix should be in otopi. The bug subject line is all that matters. Comment 0 was left as-is only to provide context. For current bug, otopi was changed to provide additional meta-data when using machine dialect: Default value, whether the reply should be Hidden from the user, and the list of Valid Values. You can verify with any otopi tool that interacts with the user and has these in at least one of its questions. For full coverage, you need questions with: 1. No default e.g. admin password in engine-setup, or ISO domain ACL (choose 'yes' to configure it) 2. Some default e.g. 'Configure Engine on this host (Yes, No) [Yes]' 3. No valid values (meaning, any value is valid) e.g. admin password 4. Some valid values e.g. 'Configure Engine on this host (Yes, No)' 5. Answer should be hidden e.g. admin password 6. Answer should not be hidden e.g. 'Configure Engine on this host (Yes, No) [Yes]' For documentation of the additions to the machine dialect protocol, see otopi sources: https://gerrit.ovirt.org/#/c/56955/16/README.dialog Also note that at some point, the original bug was fixed by parsing the text meant for humans, which is imperfect (e.g. can fail due to translation). I think this is bug 1298160. Not sure if new code was later written to use the new additions of this bug. But this is irrelevant for current bug - current is on otopi. Works for me on these components: Red Hat Enterprise Linux release 7.2 Beta Linux 3.10.0-327.18.2.el7.x86_64 #1 SMP Fri Apr 8 05:09:53 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux Linux version 3.10.0-327.18.2.el7.x86_64 (mockbuild.eng.bos.redhat.com) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC) ) #1 SMP Fri Apr 8 05:09:53 EDT 2016 qemu-kvm-rhev-2.3.0-31.el7_2.13.x86_64 ovirt-setup-lib-1.0.2-1.el7ev.noarch ovirt-host-deploy-1.5.0-1.el7ev.noarch ovirt-engine-sdk-python-3.6.5.0-2.el7ev.noarch sanlock-3.2.4-1.el7.x86_64 libvirt-client-1.2.17-13.el7_2.4.x86_64 mom-0.5.4-1.el7ev.noarch vdsm-4.18.2-0.el7ev.x86_64 ovirt-hosted-engine-ha-2.0.0-1.el7ev.noarch ovirt-hosted-engine-setup-2.0.0.1-1.el7ev.noarch ovirt-vmconsole-1.0.3-1.el7ev.noarch ovirt-vmconsole-host-1.0.3-1.el7ev.noarch Deployment did not crushed on previous steps. oVirt 4.0.0 has been released, closing current release. |