Project

General

Profile

Actions

Bug #21956

closed

Host API update without compute attributes triggers vm update

Added by Timo Goebel over 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
API
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When changing the content view of a host in Katello, Katello issues an update via api v2 to /api/v2/hosts/23789 with payload:

{"id":23789,"host":{"subscription_facet_attributes":{"id":87,"autoheal":true,"service_level":"","release_version":"7.4"}}}

This fails because Foreman tries to schedule a compute orchestration.

Logs show:
Scheduling compute instance update because cluster changed it's value from 'Unchanged Value' (String) to 'Undesired Value from Compute Profile' (String)

The API controller sets the compute attributes for the host object with the data from the compute profile. This leads to the unwanted compute orchestration.

Actions #1

Updated by The Foreman Bot over 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/5077 added
Actions #2

Updated by Timo Goebel over 6 years ago

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

Updated by Tomer Brisker over 6 years ago

  • translation missing: en.field_release set to 296
Actions

Also available in: Atom PDF