[jbosstools-issues] [JBoss JIRA] (JBIDE-10712) When creating a domain, the openshift-java-client is not waiting for the domain to get propagated
Andre Dietisheim (JIRA)
jira-events at lists.jboss.org
Wed Jan 25 13:19:48 EST 2012
Andre Dietisheim created JBIDE-10712:
----------------------------------------
Summary: When creating a domain, the openshift-java-client is not waiting for the domain to get propagated
Key: JBIDE-10712
URL: https://issues.jboss.org/browse/JBIDE-10712
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: openshift
Affects Versions: 3.3.0.M5
Reporter: Andre Dietisheim
Assignee: Andre Dietisheim
Fix For: 3.3.0.Beta2
The rhc-tooling is waiting for the namespace to propagate when it creates a domain:
https://github.com/openshift/os-client-tools/blob/master/express/bin/rhc-create-domain#L257
{code}
if !app_info.empty? && opt['namespace'] != user_info['user_info']['namespace']
#
# Confirm that the host(s) exist in DNS
#
puts "Now your new domain name(s) are being propagated worldwide (this might take a minute)..."
# Allow DNS to propogate
sleep 15
app_info.each_key do |appname|
fqdn = "#{appname}-#{opt['namespace']}.#{user_info['user_info']['rhc_domain']}"
# Now start checking for DNS
loop = 0
sleep_time = 2
while loop < RHC::MAX_RETRIES && !RHC::hostexist?(fqdn)
sleep sleep_time
loop+=1
puts " retry # #{loop} - Waiting for DNS: #{fqdn}"
sleep_time = RHC::delay(sleep_time)
end
if loop >= RHC::MAX_RETRIES
puts "Host could not be found: #{fqdn}"
dns_success = false
end
end
puts "You can use rhc-domain-info to view any url changes. Be sure to update any links"
puts "including the url in your local git config: <local_git_repo>/.git/config"
end
if dns_success
puts "Alteration successful."
else
puts "Alteration successful but at least one of the urls is still updating in DNS."
end
puts ""
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list