Uploaded image for project: 'OpenShift Java Client'
  1. OpenShift Java Client
  2. OSJC-57

When creating a domain, the openshift-java-client is not waiting for the domain to get propagated

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.1.1
    • None
    • None
    • None

    Description

      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

      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 ""
      

      Attachments

        Activity

          People

            adietish@redhat.com André Dietisheim
            adietish@redhat.com André Dietisheim
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: