Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show also non vpc vms in network topology #510

Merged

Conversation

Ladas
Copy link
Contributor

@Ladas Ladas commented Feb 28, 2017

Depends on:

In AWS, EC2 classic Vms do not have a subnet associated, so
these would not show in the topology. By allowing the Vms to
be shown also under Availability Zone, we should be showing all
Vms in the system.

Fixes BZ:
https://bugzilla.redhat.com/show_bug.cgi?id=1400087

@Ladas Ladas force-pushed the show_also_non_vpc_vms_in_network_topology branch from e4cc6ba to 5dcfdfd Compare February 28, 2017 14:12
@Ladas
Copy link
Contributor Author

Ladas commented Feb 28, 2017

before:
screenshot from 2017-02-28 15-20-00

after:
screenshot from 2017-02-28 15-18-12

In AWS, EC2 classic Vms do not have a subnet associated, so
these would not show in the topology. By allowing the Vms to
be shown also under Availability Zone, we should be showing all
Vms in the system.

Fixes BZ:
https://bugzilla.redhat.com/show_bug.cgi?id=1400087
Allow to toggle Avail. Zone in the NetworkTopology
@Ladas Ladas force-pushed the show_also_non_vpc_vms_in_network_topology branch from 5dcfdfd to 5a70556 Compare February 28, 2017 14:24
Enhance specs after adding Avail. Zone to the network topology
@Ladas Ladas closed this Mar 1, 2017
@Ladas Ladas reopened this Mar 1, 2017
Autofix rubocop issues
@miq-bot
Copy link
Member

miq-bot commented Mar 1, 2017

Checked commits Ladas/manageiq-ui-classic@1279fe5~...d669904 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
3 files checked, 5 offenses detected

spec/services/network_topology_service_spec.rb

@mzazrivec
Copy link
Contributor

Things work OK for Amazon, but I'm getting the following error for an OpenStack topology
which isn't there when I try the same thing on master:

FATAL -- : Error caught: [NoMethodError] undefined method `compressed_id' for #<ActiveRecord::Relation []>
.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activerecord-5.0.2/lib/active_record/relation/delegation.rb:124:in `method_missing'
.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activerecord-5.0.2/lib/active_record/relation/delegation.rb:94:in `method_missing'
app/services/topology_service.rb:35:in `entity_id'
app/services/topology_service.rb:75:in `build_rel_data_and_links'
app/services/topology_service.rb:64:in `block in build_recursive_topology'
app/services/topology_service.rb:56:in `each'
app/services/topology_service.rb:56:in `build_recursive_topology'
app/services/network_topology_service.rb:48:in `block in build_topology'
.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activerecord-5.0.2/lib/active_record/relation/delegation.rb:38:in `each'
.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activerecord-5.0.2/lib/active_record/relation/delegation.rb:38:in `each'
app/services/network_topology_service.rb:47:in `build_topology'
app/controllers/topology_controller.rb:49:in `generate_topology'
app/controllers/topology_controller.rb:35:in `data'

@Ladas
Copy link
Contributor Author

Ladas commented Mar 3, 2017

@mzazrivec core fix added as a dependency

@Ladas
Copy link
Contributor Author

Ladas commented Mar 7, 2017

@mzazrivec can you recheck this? The core dependency was merged

@mzazrivec mzazrivec added this to the Sprint 56 Ending Mar 13, 2017 milestone Mar 9, 2017
@mzazrivec mzazrivec merged commit 1d53014 into ManageIQ:master Mar 9, 2017
@simaishi
Copy link
Contributor

Euwe backport (to manageiq repo) details:

$ git log -1
commit 6d0a92fcf44cd229749a640d9c8cb3a70d648173
Author: Milan Zázrivec <[email protected]>
Date:   Thu Mar 9 11:31:03 2017 +0100

    Merge pull request #510 from Ladas/show_also_non_vpc_vms_in_network_topology
    
    Show also non vpc vms in network topology
    (cherry picked from commit 1d53014f8b98c5d60e2ebe775f79b460bade14c7)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1431163

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants