Bug 972404

Summary: Will show debug error when create app with debug option
Product: OpenShift Online Reporter: Lei Zhang <lzhang>
Component: ocAssignee: Clayton Coleman <ccoleman>
Status: CLOSED NOTABUG QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: unspecified    
Version: 2.xCC: wsun, xtian
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-09 10:28:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Lei Zhang 2013-06-09 07:59:02 UTC
Description of problem:
While creating app with debug option, when DEBUG start checking for application dns,  Error while resolving with Resolv::Hosts: /etc/hosts has no name. 

Version-Release number of selected component (if applicable):
STG(devenv-stage_369)
rhc-1.9.6

How reproducible:
always

Steps to Reproduce:
1. rhc app create -a mynodejs -t nodejs-0.6 -d 
2.
3.

Actual results:
Will show debug error when create app with debug option

Expected results:
User should not be required to modify /etc/host during or before app create. 

Additional info:
Waiting for your DNS name to be available ... DEBUG: Start checking for application dns @ 'mynodejs-jhou2.stg.rhcloud.com'
DEBUG: Error while resolving with Resolv::Hosts: /etc/hosts has no name: mynodejs-jhou2.stg.rhcloud.com(Resolv::ResolvError)
  /usr/lib/ruby/1.8/resolv.rb:220:in `getaddress'
  /usr/lib/ruby/gems/1.8/gems/rhc-1.9.6/lib/rhc/helpers.rb:350:in `hosts_file_contains?'
  /usr/lib/ruby/gems/1.8/gems/rhc-1.9.6/lib/rhc/helpers.rb:366:in `with_tolerant_encoding'
  /usr/lib/ruby/gems/1.8/gems/rhc-1.9.6/lib/rhc/helpers.rb:347:in `hosts_file_contains?'
  /usr/lib/ruby/gems/1.8/gems/rhc-1.9.6/lib/rhc/commands/app.rb:481:in `dns_propagated?'
  /usr/lib/ruby/gems/1.8/gems/rhc-1.9.6/lib/rhc/commands/app.rb:139:in `create'
  /usr/lib/ruby/gems/1.8/gems/rhc-1.9.6/lib/rhc/highline_extensions.rb:177:in `call'
  /usr/lib/ruby/gems/1.8/gems/rhc-1.9.6/lib/rhc/highline_extensions.rb:177:in `section'
  /usr/lib/ruby/gems/1.8/gems/rhc-1.9.6/lib/rhc/highline_extensions.rb:191:in `paragraph'
  /usr/lib/ruby/gems/1.8/gems/rhc-1.9.6/lib/rhc/helpers.rb:257:in `send'
  /usr/lib/ruby/gems/1.8/gems/rhc-1.9.6/lib/rhc/helpers.rb:257:in `paragraph'
  /usr/lib/ruby/gems/1.8/gems/rhc-1.9.6/lib/rhc/commands/app.rb:137:in `create'
  /usr/lib/ruby/gems/1.8/gems/rhc-1.9.6/lib/rhc/commands.rb:241:in `send'
  /usr/lib/ruby/gems/1.8/gems/rhc-1.9.6/lib/rhc/commands.rb:241:in `execute'
  /usr/lib/ruby/gems/1.8/gems/rhc-1.9.6/lib/rhc/commands.rb:232:in `to_commander'
  /usr/lib/ruby/gems/1.8/gems/commander-4.1.3/lib/commander/command.rb:180:in `call'
  /usr/lib/ruby/gems/1.8/gems/commander-4.1.3/lib/commander/command.rb:180:in `call'
  /usr/lib/ruby/gems/1.8/gems/commander-4.1.3/lib/commander/command.rb:155:in `run'
  /usr/lib/ruby/gems/1.8/gems/commander-4.1.3/lib/commander/runner.rb:400:in `run_active_command'
  /usr/lib/ruby/gems/1.8/gems/rhc-1.9.6/lib/rhc/command_runner.rb:73:in `run!'
  /usr/lib/ruby/gems/1.8/gems/commander-4.1.3/lib/commander/delegates.rb:7:in `run!'
  /usr/lib/ruby/gems/1.8/gems/rhc-1.9.6/lib/rhc/cli.rb:36:in `start'
  /usr/lib/ruby/gems/1.8/gems/rhc-1.9.6/bin/rhc:20
  /usr/bin/rhc:19:in `load'
  /usr/bin/rhc:19
DEBUG: End checking for application dns @ 'mynodejs-jhou2.stg.rhcloud.com - found=false'
done

Comment 1 Wei Sun 2013-06-09 10:28:41 UTC
According to bug 950202,close this bug as NOTABUG