Skip to content

Instantly share code, notes, and snippets.

@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: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: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
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
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
@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
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