-
Notifications
You must be signed in to change notification settings - Fork 107
Add hostname and IP address validation for env #2207
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
Add hostname and IP address validation for env #2207
Conversation
6a07a82 to
3de19c6
Compare
portante
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be good to go. I have addressed all the review comments from PR #2181 that were for this code.
3de19c6 to
82212e6
Compare
portante
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, now it is ready for re-review.
webbnh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like you got most of the items that I raised in #2181; I've transferred the remaining two.
82212e6 to
c941abb
Compare
From issue distributed-system-analysis#2201, it became apparent that we weren't validating hostnames, which led to weird, but valid, directory names for controllers being created on the server. One way this occurs is when the `_pbench_hostname` and or `_pbench_full_hostname` environment variables are defined with invalid values. We add the new commands `validate-hostname` and `validate-ipaddress` to ensure the definition of those names are correct. In the process of doing that, we found that we were using invalid host names in two of our unit tests.
c941abb to
6c01204
Compare
webbnh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but before you merge we need to decide how to dispose of the issue below (see my comment).
From issue #2201, it became apparent that we weren't validating hostnames, which led to weird, but valid, directory names for
controllers being created on the server. One way this occurs is when the
_pbench_hostnameand or_pbench_full_hostnameenvironment variables are defined with invalid values.We add the new commands
validate-hostnameandvalidate-ipaddressto ensure the definition of those names are correct.In the process of doing that, we found that we were using invalid host names in two of our unit tests.
Derived from PR #2181.