Bug 972404 - Will show debug error when create app with debug option
Will show debug error when create app with debug option
Status: CLOSED NOTABUG
Product: OpenShift Online
Classification: Red Hat
Component: Command Line Interface (Show other bugs)
2.x
Unspecified Unspecified
unspecified Severity low
: ---
: ---
Assigned To: Clayton Coleman
libra bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-09 03:59 EDT by Lei Zhang
Modified: 2015-05-14 22:23 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-06-09 06:28:41 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Lei Zhang 2013-06-09 03:59:02 EDT
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 06:28:41 EDT
According to bug 950202,close this bug as NOTABUG

Note You need to log in before you can comment on or make changes to this bug.