Closed ahrechushkin closed 1 year ago
@agrare Do you know?
Hey @ahrechushkin it looks like we do not expect there to be >1 external_network_provider, but you could manually edit the port of the network manager to point to a different instance.
rhv = ManageIQ::Providers::Redhat::InfraManager.find_by(:name => "NAME")
rhv.network_manager.port = 9697
rhv.save!
References: Picking the first external_network_provider: https://github.com/ManageIQ/manageiq-providers-ovirt/blob/master/app/models/manageiq/providers/ovirt/infra_manager.rb#L74-L75 Building the NetworkManager from the auth_url: https://github.com/ManageIQ/manageiq-providers-ovirt/blob/master/app/models/manageiq/providers/ovirt/infra_manager.rb#L98-L110
@agrare thanks you're right. For the sake of completeness we can change only keystone port (and it will working only in case when we have 2 launched keystone services). By the way it's make sense for me
Standard ovn-api irb(main):002:0> ovn = ExtManagementSystem.second.network_manager irb(main):003:0> ovn.port = 35357 irb(main):006:0> ovn.openstack_handle.detect_network_service => #<Fog::Network::OpenStack::Real:10488 ..... :port=>9696 .....
irb(main):013:0> ovn.port = 35358 irb(main):017:0> ovn.openstack_handle.detect_network_service => #<Fog::Network::OpenStack::Real:104920 ..... :port => 9697 ....
Hello! Anybody know can we redefine openstack_management url for network service? (mb when we create connection?)
I wanna test PoC with two instances of ovirt-provider-ovn on differents ports. (e.g. 9696 and 9697) ovirt instance will connect to ovn using port 9696 miq instance will connect to ovn using port 9697