Skip to content

Instantly share code, notes, and snippets.

console error for https://bugzilla.redhat.com/show_bug.cgi?id=1506672
(Tag Expression: Cannot combine AND and OR operators )
throw "error";
$("#exp_editor_div").replaceWith("\u003cdiv id='exp_editor_div'\u003e\n\u003cdiv id='exp_editor_flash' style='display:none'\u003e\n\u003c/div\u003e\n\n\u003cdiv class='panel panel-default'\u003e\n\u003cdiv class='panel-heading'\u003e\n\u003ch3 class='panel-title'\u003e\nEdit Expression\n\u003c/h3\u003e\n\u003c/div\u003e\n\u003cdiv class='panel-body'\u003e\n\u003cdiv class='form-group'\u003e\n\u003cbutton class='btn btn-default' data-method='post' data-miq_sparkle_on onclick='miqAjaxButton(\u0026#39;/miq_ae_customization/exp_button?pressed=undo\u0026#39;);' remote='true' title='Undo the last change'\u003e\n\u003ci class='fa fa-reply'\u003e\u003c/i\u003e\n\u003c/button\u003e\n\u003cbutton class='btn btn-default disabled'\u003e\n\u003ci class='fa fa-share'\u003e\u003c/i\u003e\n\u003c/button\u003e\n\u003cspan id='exp_buttons_off'\u003e\n\u003cbutton class='btn btn-default di
@d-m-u
d-m-u / gist:79ff44fce7bdf9675955433983c2c814
Created May 7, 2019 14:13
Dalli request: TypeError: struct ApplicationController::Performance::Options not compatible (struct size differs)
ERROR -- : Unexpected exception during Dalli request: TypeError: struct ApplicationController::Performance::Options not compatible (struct size differs)
[----] E, [2019-05-07T10:11:42.301121 #86560:3ff2783a807c] ERROR -- : /Users/duhlmann/.rvm/gems/ruby-2.5.1/gems/activesupport-5.0.7.2/lib/active_support/core_ext/marshal.rb:4:in `load'
/Users/duhlmann/.rvm/gems/ruby-2.5.1/gems/activesupport-5.0.7.2/lib/active_support/core_ext/marshal.rb:4:in `load'
/Users/duhlmann/manageiq/config/initializers/marshal_autoloader.rb:3:in `load'
/Users/duhlmann/.rvm/gems/ruby-2.5.1/gems/dalli-2.7.6/lib/dalli/server.rb:443:in `deserialize'
/Users/duhlmann/.rvm/gems/ruby-2.5.1/gems/dalli-2.7.6/lib/dalli/server.rb:509:in `generic_response'
/Users/duhlmann/.rvm/gems/ruby-2.5.1/gems/dalli-2.7.6/lib/dalli/server.rb:273:in `get'
/Users/duhlmann/.rvm/gems/ruby-2.5.1/gems/dalli-2.7.6/lib/dalli/server.rb:67:in `request'
/Users/duhlmann/.rvm/gems/ruby-2.5.1/gems/dalli-2.7.6/lib/dalli/options.rb:18:in `block in request'
/Users/duhlm
Thread 3 [0x14dbc7c sleep] Sharing
blocking: 1, 2
/opt/rh/rh-ruby23/root/usr/share/ruby/monitor.rb:187:in lock' /opt/rh/rh-ruby23/root/usr/share/ruby/monitor.rb:187:in mon_enter'
/opt/rh/rh-ruby23/root/usr/share/ruby/monitor.rb:212:in mon_synchronize' /opt/rh/cfme-gemset/gems/activerecord-5.0.6/lib/active_record/model_schema.rb:452:in load_schema'
/opt/rh/cfme-gemset/gems/activerecord-5.0.6/lib/active_record/model_schema.rb:343:in columns_hash' /opt/rh/cfme-gemset/gems/activerecord-5.0.6/lib/active_record/inheritance.rb:77:in descends_from_active_record?'
/opt/rh/cfme-gemset/gems/activerecord-5.0.6/lib/active_record/inheritance.rb:83:in finder_needs_type_condition?' /opt/rh/cfme-gemset/gems/activerecord-5.0.6/lib/active_record/core.rb:292:in relation'
/opt/rh/cfme-gemset/gems/activerecord-5.0.6/lib/active_record/scoping/named.rb:42:in default_scoped' /opt/rh/cfme-gemset/gems/activerecord-5.0.6/lib/active_record/scoping/named.rb:28:in all'
/opt/rh/cfme-gemset/gems/activerecord-5.0.6/lib/active_record/querying
require_domain_file
describe ManageIQ::Automate::Cloud::Orchestration::Operations::AvailableFlavors do
let(:root_object) { Spec::Support::MiqAeMockObject.new(root_hash) }
let(:root_hash) do
{ 'service_template' => MiqAeMethodService::MiqAeServiceServiceTemplate.find(service_template.id) }
end
let(:ae_service) do
Spec::Support::MiqAeMockService.new(root_object).tap do |service|
current_object = Spec::Support::MiqAeMockObject.new
@d-m-u
d-m-u / gist:49d2fa441cbc83f1f4a5f6eb8474e1fe
Created May 20, 2019 18:11
cleanup duplication in AvailableFlavors spec
require_domain_file
describe ManageIQ::Automate::Cloud::Orchestration::Operations::AvailableFlavors do
let(:root_object) { Spec::Support::MiqAeMockObject.new(root_hash) }
let(:root_hash) do
{ 'service_template' => MiqAeMethodService::MiqAeServiceServiceTemplate.find(service_template.id) }
end
let(:ae_service) do
Spec::Support::MiqAeMockService.new(root_object).tap do |service|
current_object = Spec::Support::MiqAeMockObject.new
@d-m-u
d-m-u / gist:6ce4c78600a758e15b4bcf3ffa299a65
Created July 19, 2019 11:58
lj's actioncable issue :)
=> Booting Puma
=> Rails 5.1.7 application starting in development
=> Run `rails server -h` for more startup options
** Using session_store: ActionDispatch::Session::MemCacheStore
** ManageIQ master, codename: Ivanchuk
I, [2019-07-19T07:55:15.736164 #4604] INFO -- : Initializing RemoteConsole server!
Puma starting in single mode...
* Version 3.7.1 (ruby 2.5.5-p157), codename: Snowy Sagebrush
* Min threads: 5, max threads: 5
* Environment: development
@d-m-u
d-m-u / gist:27777cbc081286b5f1b0d70f2ca00b14
Created July 25, 2019 14:26
miq_provision_customize_body URI failure
log/automation.log:[----] E, [2019-07-25T10:24:33.014141 #27143:3fd6ecb7f6d0] ERROR -- : <AEMethod miq_provision_customize_body> The following error occurred during method evaluation:
log/automation.log:[----] E, [2019-07-25T10:24:33.014514 #27143:3fd6ecb7f6d0] ERROR -- : <AEMethod miq_provision_customize_body> ArgumentError: bad argument (expected URI object or URI string)
log/automation.log:[----] E, [2019-07-25T10:24:33.015272 #27143:3fd6ecb7f6d0] ERROR -- : <AEMethod miq_provision_customize_body> (drbunix:///var/folders/n5/1rtj753d4s569vt8njt3_gs80000gn/T/automation_engine20190725-27143-i330c6) /Users/duhlmann/.rvm/rubies/ruby-2.5.5/lib/ruby/2.5.0/uri/rfc3986_parser.rb:119:in `convert_to_uri'
log/automation.log:[----] E, [2019-07-25T10:24:33.018774 #27143:3fd6ecb7f6d0] ERROR -- : Method STDERR: (drbunix:///var/folders/n5/1rtj753d4s569vt8njt3_gs80000gn/T/automation_engine20190725-27143-i330c6) /Users/duhlmann/.rvm/rubies/ruby-2.5.5/lib/ruby/2.5.0/uri/rfc3986_parser.rb:119:in `convert_to_uri': bad argum
@d-m-u
d-m-u / gist:d6b96f907d014b62c9a6e0a8c571c9fe
Created July 26, 2019 19:44
Openstack::NetworkManager::RefreshParser ovirt
[----] D, [2019-07-26T15:41:07.313880 #84904:3ffd8a465b50] DEBUG -- : (0.7ms) SELECT "miq_product_features"."identifier" FROM "miq_product_features" INNER JOIN "miq_roles_features" ON "miq_product_features"."id" = "miq_roles_features"."miq_product_feature_id" WHERE "miq_roles_features"."miq_user_role_id" = $1 [["miq_user_role_id", 1]]
[----] F, [2019-07-26T15:41:07.325757 #84904:3ffd8a465b50] FATAL -- : Error caught: [NameError] uninitialized constant ManageIQ::Providers::Openstack::NetworkManager::RefreshParser
/Users/duhlmann/.rvm/gems/ruby-2.5.5/bundler/gems/manageiq-providers-ovirt-8313271cb048/app/models/manageiq/providers/redhat/network_manager/refresh_parser.rb:2:in `<module:Providers>'
/Users/duhlmann/.rvm/gems/ruby-2.5.5/bundler/gems/manageiq-providers-ovirt-8313271cb048/app/models/manageiq/providers/redhat/network_manager/refresh_parser.rb:1:in `<top (required)>'
/Users/duhlmann/.rvm/gems/ruby-2.5.5/gems/activesupport-5.1.7/lib/active_support/dependencies/interlock.rb:12:in `block in loading'
/
@d-m-u
d-m-u / gist:13e049f48a918afb8a05895e85ceffef
Last active July 31, 2019 13:52
`convert_to_uri': bad argument (expected URI object or URI string) (ArgumentError)
log/automation.log:[----] E, [2019-07-30T20:38:44.620116 #58697:3fe44cd408e4] ERROR -- : <AEMethod miq_provision_customize_body> The following error occurred during method evaluation:
log/automation.log:[----] E, [2019-07-30T20:38:44.620931 #58697:3fe44cd408e4] ERROR -- : <AEMethod miq_provision_customize_body> ArgumentError: bad argument (expected URI object or URI string)
log/automation.log:[----] E, [2019-07-30T20:38:44.621754 #58697:3fe44cd408e4] ERROR -- : <AEMethod miq_provision_customize_body> (drbunix:///var/folders/n5/1rtj753d4s569vt8njt3_gs80000gn/T/automation_engine20190730-58697-8w69uj) /Users/duhlmann/.rvm/rubies/ruby-2.5.5/lib/ruby/2.5.0/uri/rfc3986_parser.rb:119:in `convert_to_uri'
log/automation.log:[----] E, [2019-07-30T20:38:44.625736 #58697:3fe44cd408e4] ERROR -- : Method STDERR: (drbunix:///var/folders/n5/1rtj753d4s569vt8njt3_gs80000gn/T/automation_engine20190730-58697-8w69uj) /Users/duhlmann/.rvm/rubies/ruby-2.5.5/lib/ruby/2.5.0/uri/rfc3986_parser.rb:119:in `convert_to_uri': bad argum
def ==(o)
o = Rufus::Scheduler.parse(o)
o.seconds == @seconds &&
(o.zone == @zone || o.zone.current_period == @zone.current_period)
end
rather than what got merged on Friday:
https://github.com/ManageIQ/manageiq/blob/master/config/initializers/convert_time_to_eo.rb#L6