Bug 1391208 - When an appliance doesn't have access to the internet, domain display name causes a failure
Summary: When an appliance doesn't have access to the internet, domain display name ca...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate
Version: 5.7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.8.0
Assignee: mkanoor
QA Contact: Dmitry Misharov
URL:
Whiteboard: automate:git
Depends On:
Blocks: 1396210
TreeView+ depends on / blocked
 
Reported: 2016-11-02 19:13 UTC by mkanoor
Modified: 2017-06-12 17:47 UTC (History)
6 users (show)

Fixed In Version: 5.8.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1396210 (view as bug list)
Environment:
Last Closed: 2017-06-12 17:47:05 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:


Attachments (Terms of Use)
Screen shot of the error (79.62 KB, image/png)
2016-11-02 19:13 UTC, mkanoor
no flags Details

Description mkanoor 2016-11-02 19:13:04 UTC
Created attachment 1216712 [details]
Screen shot of the error

Description of problem:
Not all appliances in a zone might have access to the internet. When we display the domain name for a Git enabled domain, if there is no internet connection or the git server can't be reached we get an error

Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
1. Import a Git Domain into Automate
2. Server the connection to the GIT Server from the appliance (Disable VPN or some other trick) 
3. List all the Automate Domains using Automate-> Explorer

Actual results:
Unexpected error encountered

Expected results:
The domain should be displayed properly

Additional info:

Comment 2 mkanoor 2016-11-02 19:15:55 UTC
stack trace
[----] F, [2016-11-02T14:38:56.727582 #3087:3ff66f32c5a8] FATAL -- : Error caught: [MiqException::MiqUnreachableError] Failed to resolve address for gitlab.cloudforms.lab.eng.rdu2.redhat.com: nodename nor servname provided, or not known
/Users/madhukanoor/devsrc/manageiq/app/models/git_repository.rb:96:in `rescue in repo_block'
/Users/madhukanoor/devsrc/manageiq/app/models/git_repository.rb:94:in `repo_block'
/Users/madhukanoor/devsrc/manageiq/app/models/git_repository.rb:86:in `update_repo'
/Users/madhukanoor/devsrc/manageiq/app/models/git_repository.rb:15:in `refresh'
/Users/madhukanoor/devsrc/manageiq/app/models/git_repository.rb:23:in `branch_info'
/Users/madhukanoor/devsrc/manageiq/lib/miq_automation_engine/models/miq_ae_domain.rb:145:in `latest_ref_info'
/Users/madhukanoor/devsrc/manageiq/lib/miq_automation_engine/models/miq_ae_domain.rb:153:in `display_name'
/Users/madhukanoor/devsrc/manageiq/app/presenters/tree_node_builder.rb:271:in `node_with_display_name'
/Users/madhukanoor/devsrc/manageiq/app/presenters/tree_node_builder.rb:116:in `block in <class:TreeNodeBuilder>'
/Users/madhukanoor/devsrc/manageiq/app/presenters/tree_node_builder.rb:178:in `instance_exec'
/Users/madhukanoor/devsrc/manageiq/app/presenters/tree_node_builder.rb:178:in `build'
/Users/madhukanoor/devsrc/manageiq/app/presenters/tree_node_builder.rb:29:in `build' 
/Users/madhukanoor/devsrc/manageiq/app/presenters/tree_builder.rb:285:in `x_build_single_node'
/Users/madhukanoor/devsrc/manageiq/app/presenters/tree_builder.rb:263:in `x_build_node'
/Users/madhukanoor/devsrc/manageiq/app/presenters/tree_builder.rb:290:in `x_build_node_tree'
/Users/madhukanoor/devsrc/manageiq/app/presenters/tree_builder.rb:218:in `block in x_build_tree'
/Users/madhukanoor/.gem/ruby/2.2.2/gems/activerecord-5.0.0.1/lib/active_record/relation/delegation.rb:38:in `map'
/Users/madhukanoor/.gem/ruby/2.2.2/gems/activerecord-5.0.0.1/lib/active_record/relation/delegation.rb:38:in `map'
/Users/madhukanoor/devsrc/manageiq/app/presenters/tree_builder.rb:213:in `x_build_tree'
/Users/madhukanoor/devsrc/manageiq/app/presenters/tree_builder.rb:151:in `build_tree'
/Users/madhukanoor/devsrc/manageiq/app/presenters/tree_builder.rb:30:in `initialize'
/Users/madhukanoor/devsrc/manageiq/app/presenters/tree_builder_ae_class.rb:7:in `initialize'
/Users/madhukanoor/devsrc/manageiq/app/controllers/application_controller/feature.rb:28:in `new'
/Users/madhukanoor/devsrc/manageiq/app/controllers/application_controller/feature.rb:28:in `build_tree'
/Users/madhukanoor/devsrc/manageiq/app/controllers/application_controller.rb:2421:in `block in build_accordions_and_trees'
/Users/madhukanoor/devsrc/manageiq/app/controllers/application_controller.rb:2421:in `collect'
/Users/madhukanoor/devsrc/manageiq/app/controllers/application_controller.rb:2421:in `build_accordions_and_trees'

Comment 5 Dmitry Misharov 2017-03-06 13:18:24 UTC
Verified in 5.8.0.3.20170301174324_1e2e0c4. The domain is displayed properly.


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