Bug 1360829
| Summary: | Automation Method Error When Accessing 'host'/'hosts' From a Switch | |||
|---|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Josh Carter <jocarter> | |
| Component: | Provisioning | Assignee: | Lucy Fu <lufu> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Dmitry Misharov <dmisharo> | |
| Severity: | high | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 5.6.0 | CC: | jhardy, obarenbo, simaishi | |
| Target Milestone: | GA | Keywords: | TestOnly, ZStream | |
| Target Release: | 5.7.0 | |||
| Hardware: | All | |||
| OS: | All | |||
| Whiteboard: | ||||
| Fixed In Version: | 5.7.0.0 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1371980 (view as bug list) | Environment: | ||
| Last Closed: | 2017-01-11 20:00:15 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: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1371980 | |||
|
Comment 2
Greg McCullough
2016-07-27 15:23:29 UTC
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/8aa9e80f990383fa3fcc70ef33f50fd99be18749 commit 8aa9e80f990383fa3fcc70ef33f50fd99be18749 Author: Lucy Fu <lufu> AuthorDate: Wed Jul 27 14:06:52 2016 -0400 Commit: Lucy Fu <lufu> CommitDate: Wed Jul 27 14:22:08 2016 -0400 Update Switch's relationship from host to hosts in automate. This relationship change from host to hosts in Switch model was done in PR https://github.com/ManageIQ/manageiq/pull/7542. https://bugzilla.redhat.com/show_bug.cgi?id=1360829 .../service_models/miq_ae_service_switch.rb | 2 +- .../service_methods/miq_ae_service_switch_spec.rb | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 spec/lib/miq_automation_engine/service_methods/miq_ae_service_switch_spec.rb Fixed and verified in 5.7.0.3.20160927165516_075d0f3. Rails console was used for testing: $evm = MiqAeMethodService::MiqAeService.new(MiqAeEngine::MiqAeWorkspaceRuntime.new) s = $evm.vmdb(:switch).first s.hosts |