Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1966586

Summary: [Assisted-4.7] [Staging] 200 OK returned when setting invalid Base DNS domain using API
Product: OpenShift Container Platform Reporter: Lital Alon <lalon>
Component: assisted-installerAssignee: Sagi Dayan <sdayan>
assisted-installer sub component: assisted-service QA Contact: Yuri Obshansky <yobshans>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: aos-bugs, mfilanov, slavie
Version: 4.8Keywords: Triaged
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: AI-Team-Core
Fixed In Version: OCP-Metal-v1.0.23.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-18 17:32:34 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 Lital Alon 2021-06-01 12:57:17 UTC
Description of problem:
It is possible to set invalid base DNS domain using API.
I used: base_dns_domain="dnstest"

Expected to get an error, but cluster got updated instead.

Version-Release number of selected component (if applicable):
Staging, v1.0.21.1

How reproducible:
100%

Steps to Reproduce:
1. Create a cluster
2. Using API, set invalid DNS

Actual results:
Cluster got updated

Expected results:
Error 400

Additional info:
found by test: test_network_base_dns_name 
https://auto-jenkins-csb-kniqe.apps.ocp4.prod.psi.redhat.com/job/ocp-assisted-installer-virt/1081/testReport/test_validations/TestValidations/Run_assisted_installer_Functional_API_Tests___test_network_base_dns_name/

Comment 2 Lital Alon 2021-07-21 10:37:53 UTC
Verified on Staging, OCP-Metal-v1.0.23.1

Comment 6 errata-xmlrpc 2021-10-18 17:32:34 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.9.0 bug fix and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:3759