Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Allow 'Force' without IP address (Hosts page only) #627

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

carma12
Copy link
Collaborator

@carma12 carma12 commented Jan 29, 2025

Adding host should allow use of 'force' checkbox without IP address added, as the idea is to allow adding host objects that
don't have DNS entries associated with them.

Fixes: #624

@rcritten
Copy link

Just a heads-up but service will need something similar if that wasn't already being done.

@carma12
Copy link
Collaborator Author

carma12 commented Jan 29, 2025

Just a heads-up but service will need something similar if that wasn't already being done.

This PR solution just affect the Hosts page. But we have it already implemented for Services. This is how it looks:
image

It throws an error when DNs is not provided and succeeds if 'Force' option is checked. I guess it is correct?
image
image

@carma12 carma12 changed the title Fix: Allow 'Force' without IP address Fix: Allow 'Force' without IP address (Hosts page only) Jan 29, 2025
@rcritten
Copy link

Yup looks good for service.

Adding host should allow use of 'force'
checkbox without IP address added, as the
idea is to allow adding host objects that
don't have DNS entries associated with them.

Fixes: freeipa#624
Signed-off-by: Carla Martinez <carlmart@redhat.com>
@carma12 carma12 force-pushed the fix-hosts-force-option branch from 3612c40 to 35a50cf Compare January 30, 2025 12:47
@carma12 carma12 requested a review from mreynolds389 January 30, 2025 12:48
@carma12
Copy link
Collaborator Author

carma12 commented Jan 30, 2025

The code has been corrected to adjust the behavior mentioned in this comment from the issue.

@carma12
Copy link
Collaborator Author

carma12 commented Jan 30, 2025

Also the integration tests have been adapted to these changes.

@mreynolds389 mreynolds389 added the ack Pull Request approved, it can be merged label Jan 30, 2025
As the way of creating new Hosts requires one
more step (i.e. selecting the 'Force' checkbox),
the integration tests need to be adapted to this.

Signed-off-by: Carla Martinez <carlmart@redhat.com>
@carma12 carma12 force-pushed the fix-hosts-force-option branch from 60cfeb1 to caa69b9 Compare January 31, 2025 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack Pull Request approved, it can be merged needs-review This PR is waiting on a review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding host should allow use of 'force' checkbox without IP address added
3 participants