Dear MIQ team,
we found a bug in M release. some fields are missing only in Morphy version (Not in master) when trying to create new physical storage.
We traced the problem to faulty variable initialization.
we have an hidden text field in the form that use to determine if we are in edit mode or new mode. the default value of the field is empty string, and in edit mode it set to 'yes'. for some reasone in the M release the default value (empty string) is not set correctly, and the fix for that is adding to that field the following attribute: initialValue: ''
I dont know why the default value is not working like we expect in the M release. in the master branch it works like expected (empty text fields have value of empty string by defualt).
I opened a PR to fix this issue (ManageIQ/manageiq-ui-classic#8014), but maybe you can explain me why its not working only in Morphy? is it because ddf version differences ? other dependecies diffs?
Liran
Not sure, but I am consistently getting PUMA error on the latest master
Puma starting in single mode...
* Version 4.3.11 (ruby 2.7.2-p137), codename: Mysterious Traveller
* Min threads: 5, max threads: 5
* Environment: development
[----] E, [2022-03-21T11:04:16.225334 #4484:945c] ERROR -- evm: MIQ(MiqWorker::Runner) ID [69] PID [4484] GUID [0d8c4da5-1b49-4f90-aa66-48ee4f75a5e1] An unhandled error has occurred: Address already in use - bind(2) for "0.0.0.0" port 5000
/Users/kuldip.nanda/.rvm/gems/ruby-2.7.2/gems/puma-4.3.11/lib/puma/binder.rb:229:in `initialize'
/Users/kuldip.nanda/.rvm/gems/ruby-2.7.2/gems/puma-4.3.11/lib/puma/binder.rb:229:in `new'
/Users/kuldip.nanda/.rvm/gems/ruby-2.7.2/gems/puma-4.3.11/lib/puma/binder.rb:229:in `add_tcp_listener'
/Users/kuldip.nanda/.rvm/gems/ruby-2.7.2/gems/puma-4.3.11/lib/puma/binder.rb:106:in `block in parse'
/Users/kuldip.nanda/.rvm/gems/ruby-2.7.2/gems/puma-4.3.11/lib/puma/binder.rb:90:in `each'
/Users/kuldip.nanda/.rvm/gems/ruby-2.7.2/gems/puma-4.3.11/lib/puma/binder.rb:90:in `parse'
/Users/kuldip.nanda/.rvm/gems/ruby-2.7.2/gems/puma-4.3.11/lib/puma/runner.rb:161:in `load_and_bind'
/Users/kuldip.nanda/.rvm/gems/ruby-2.7.2/gems/puma-4.3.11/lib/puma/single.rb:98:in `run'
/Users/kuldip.nanda/.rvm/gems/ruby-2.7.2/gems/puma-4.3.11/lib/puma/launcher.rb:172:in `run'
/Users/kuldip.nanda/.rvm/gems/ruby-2.7.2/gems/puma-4.3.11/lib/rack/handler/puma.rb:73:in `run'
/Users/kuldip.nanda/.rvm/gems/ruby-2.7.2/gems/rack-2.2.3/lib/rack/server.rb:327:in `start'
/Users/kuldip.nanda/.rvm/gems/ruby-2.7.2/gems/railties-6.0.4.7/lib/rails/commands/server/server_command.rb:39:in `start'
/Users/kuldip.nanda/projects/easy/githubfork/manageiq/app/models/mixins/miq_web_server_runner_mixin.rb:29:in `block in start_rails_server'
/Users/kuldip.nanda/projects/easy/githubfork/manageiq/app/models/mixins/miq_web_server_runner_mixin.rb:27:in `tap'
/Users/kuldip.nanda/projects/easy/githubfork/manageiq/app/models/mixins/miq_web_server_runner_mixin.rb:27:in `start_rails_server'
/Users/kuldip.nanda/projects/easy/githubfork/manageiq/app/models/mixins/miq_web_server_runner_mixin.rb:16:in `run'
/Users/kuldip.nanda/projects/easy/githubfork/manageiq/app/models/miq_worker/runner.rb:96:in `start'
/Users/kuldip.nanda/projects/easy/githubfork/manageiq/lib/workers/bin/run_single_worker.rb:128:in `<main>'
ERROR: An unhandled error has occurred: Address already in use - bind(2) for "0.0.0.0" port 5000. See log for details.
Please can anyone suggest/ any pointers how to resolve it
bin/webpack --watch --follow
in one terminal window all the time (first time it take 2 around minutes to finish). This automatically compiles js changes in couple of seconds after your changes. Make sure you have node 14.
Hi everybody.
I want to reload the datatable after the creation or deletion in any page.
def javascript_flash(**args)
After the delete task is added to queue, this method should be callled, and it will render the message.
I want to reload the datatable only in show_list page after the message is shown.
Can anybody help me on this issue?
Hi Folks, need some advice. I have to show a Relation under VM Instance
detail in UI. So I have added
diff --git a/app/controllers/vm_common.rb b/app/controllers/vm_common.rb
index 71d594aa75..aaa6746a36 100644
--- a/app/controllers/vm_common.rb
+++ b/app/controllers/vm_common.rb
@@ -358,6 +358,11 @@ module VmCommon
show_association('floating_ips', _('Floating IPs'), :floating_ips, FloatingIp)
end
+ def placement_group
+ show_association('placement_groups', _('Placement Groups'), :placement_groups, PlacementGroup)
+ end
+
+
def cloud_subnets
show_association('cloud_subnets', _('Subnets'), :cloud_subnets, CloudSubnet)
end
But I do not see this. So was wondering if I am missing something specific.
The message I sent to @MelsHyrule:
Hey, thank you for the reply here.
The new UI branch I opened is here: https://github.com/Autosde/manageiq-ui-classic/tree/ofer/311468-filter_events_with_storage_system
It shows the changes I made to the form and the related JS files.
The issue I'm having is in the app/controllers/application_controller/timelines.rb file.
In the old PR Adam replied that adding provider-specific code is not recommended, but I could not find a workaround,
for the filtration purposes I need to add a property to the object or another local variable.
Adam's comment: https://github.com/ManageIQ/manageiq-ui-classic/pull/8424#discussion_r969772342
Do you see any other way I could make it work and approved?
Hi, I have defined a dialog and a button for the 'Provider' object type, but when selecting the button from the Physical Infrastructure Provider, the following error occurs:
FATAL -- development: Error caught: [ActionController::UrlGenerationError] No route matches {:action=>"dialog_load", :controller=>"ems_physical_infra", :dialog_locals=>{:resource_action_id=>183, :target_id=>2, :target_type=>"ext_management_system", :real_target_type=>"ExtManagementSystem", :dialog_id=>3, :api_submit_endpoint=>"/api/providers/2", :api_action=>"Create Incident", :finish_submit_endpoint=>"/ems_infra", :cancel_endpoint=>"/ems_infra", :open_url=>false}, :id=>"2"}
Does anybody have any pointers on how to tackle this problem?
GET dialog_load
in config/routes
for e.g. ems_infra and ems_cloud (https://github.com/ManageIQ/manageiq-ui-classic/blob/master/config/routes.rb#L1126)
ApplicationController
so no need to include anything in the controller as far as I know
cloud_tenants, cloud_volumes, clusters, container_nodes, data_stores, generic_objects, hosts, providers, templates, vms
.physical_servers
? I have managed to enable custom buttons for the PhysicalServer
class but when creating a button it does not register it under the collection's actions, therefore when committing a dialog from one of the physical servers an error is returned, as the action is not supported for the resource.cloud_volume.rb
model, which is used by the ui cloud-volume-form.schema.js
.
:options
attribute? :fields => [
{
:component => "select",
:name => "required_capabilities",
:id => "required_capabilities",
:label => _("Required Capabilities"),
:options => capabilities,
:isRequired => true,
:isMulti => true
},
{
:component => "select",
:name => "storage_service_id",
:id => "storage_service_id",
:label => _("Storage Service"),
:isRequired => true,
:validate => [{:type => "required"}],
:options => services, # here we would like to filter based on the selected capabilities
:includeEmpty => true,
:isDisabled => false
},