-
Notifications
You must be signed in to change notification settings - Fork 138
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
designate: create a test port and nslookup it #3443
Open
sjamgade
wants to merge
3
commits into
SUSE-Cloud:master
Choose a base branch
from
sjamgade:testdesignate
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+11
−2
Open
Changes from 2 commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4116,8 +4116,17 @@ function oncontroller_testsetup | |
fi | ||
|
||
# this file is created by the designate barclamp | ||
designate_pools="/etc/desigate/pools.crowbar.yaml" | ||
[[ -e $designate_pools ]] && designate-manage pool update --file $designate_pools | ||
designate_pools="/etc/designate/pools.crowbar.yaml" | ||
if [[ -e $designate_pools ]]; then | ||
designate-manage pool update --file $designate_pools | ||
# default values from the node.neutron.dns_domain | ||
openstack tld create --name local | ||
openstack zone create --email [email protected] openstack.local. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. shouldn't this be done by the neutron integration of the barclamp? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. without pools, designate cannot create zones, (so they can be XFRd to be resolvable) |
||
theport=$(openstack port create --network fixed --dns-name iamgroot thanos -f value -c id) | ||
openstack floating ip create floating --port $theport | ||
wait_for 30 5 "nslookup iamgroot.openstack.local >> /dev/null" "thanos port is nslookup-able" | ||
[ $want_tempest = 1 ] && openstack tld create --name com # needed by designate-template-plugin smoke test | ||
sjamgade marked this conversation as resolved.
Show resolved
Hide resolved
|
||
fi | ||
|
||
# Run Tempest Smoketests if configured to do so | ||
tempestret=0 | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
shouldn't this be already done by the barclamp?
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.
the barclamp leaves a sample pool file
/etc/designate/pools.crowbar.yaml"
for the admin to review.Why the barclamp doesnot do this ?
The way designate is currently installed, a zone will be created as soon as a vm is created, the only thing stopping it is "unavailability" of pool in designate. This will have security implication (allowing anyone who can create a vm to create a zone, leaking dns zone information on un-intended network, causing conflicts in dns resolution).
However this is needed to test designate, so adding it here as part of automation.
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 is being taken care of by crowbar/crowbar-openstack#2192