Project

General

Profile

Actions

Bug #9249

closed

Associate host with vm fails for all compute resources but Ovirt

Added by Daniel Lobato Garcia over 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Compute resources
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Currently associating a vm with a host fails for all compute resources but for Ovirt.
The reason is that to do the association we make a query based on the ip or mac attributes of the Host, which are now in its own model.

...Host.authorized(:view_hosts, Host).where(:ip...

Fix should be as simple as performing the 'where' on the interfaces instead of the host and a couple of tests ensuring this won't break again.


Related issues 1 (1 open0 closed)

Related to Foreman - Tracker #2409: NetworkingNew

Actions
Actions #1

Updated by Dominic Cleal over 9 years ago

Actions #2

Updated by Dominic Cleal over 9 years ago

  • Translation missing: en.field_release set to 28
Actions #3

Updated by Tom Caspy over 9 years ago

  • Assignee set to Tom Caspy
Actions #4

Updated by The Foreman Bot over 9 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2147 added
  • Pull request deleted ()
Actions #5

Updated by Tom Caspy over 9 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF