Skip to content

Instantly share code, notes, and snippets.

@psachin
Created Jan 27, 2018
Embed
What would you like to do?
Learning ManageIQ's DROs
[root@localhost vmdb]# rails c
Loading production environment (Rails 5.0.6)
irb(main):001:0> $evm=MiqAeMethodService::MiqAeService.new(MiqAeEngine::MiqAeWorkspaceRuntime.new)
=> #<MiqAeMethodService::MiqAeService:0x0000000b647188 @drb_server_references=[], @inputs={}, @workspace=#<MiqAeEngine::MiqAeWorkspaceRuntime:0x0000000b6473b8 @readonly=false, @nodes=[], @current=[], @datastore_cache={}, @class_methods={}, @dom_search=#<MiqAeEngine::MiqAeDomainSearch:0x0000000b6472c8 @fqns_id_cache={}, @fqns_id_class_cache={}, @partial_ns=[], @prepend_namespace=nil>, @persist_state_hash={}, @current_state_info={}, @state_machine_objects=[], @ae_user=nil, @rbac=false>, @persist_state_hash={}, @logger=#<Vmdb::Loggers::MulticastLogger:0x000000039a3aa0 @loggers=#<Set: {#<VMDBLogger:0x000000039a3cf8 @progname=nil, @level=1, @default_formatter=#<Logger::Formatter:0x000000039a3c58 @datetime_format=nil>, @formatter=#<VMDBLogger::Formatter:0x000000039a3b40 @datetime_format=nil>, @logdev=#<Logger::LogDevice:0x000000039a3c08 @shift_size=1048576, @shift_age=0, @filename=#<Pathname:/var/www/miq/vmdb/log/automation.log>, @dev=#<File:/var/www/miq/vmdb/log/automation.log>, @mon_owner=nil, @mon_count=0, @mon_mutex=#<Thread::Mutex:0x000000039a3be0>>, @write_lock=#<Thread::Mutex:0x000000039a3b18>, @local_levels={}>}>, @level=0>>
irb(main):003:0> dro_class = $evm.vmdb(:generic_object_definition).find_by(:name => "LearnDRO")
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkin, connection_pool: size: 5, connections: 1, in use: 0, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkin, connection_pool: size: 5, connections: 1, in use: 0, waiting_in_queue: 0
=> #<MiqAeServiceGenericObjectDefinition:0x50637e0 @object=#<GenericObjectDefinition id: 7, name: "LearnDRO", description: "Learn how DRO works", properties: {:attributes=>{"name"=>:string, "is_checked"=>:boolean, "created"=>:datetime, "retired"=>:datetime}, :associations=>{"service_get_admin_user"=>"Service"}, :methods=>["get_admin_user"]}, created_at: "2018-01-27 08:20:12", updated_at: "2018-01-27 08:22:15">, @virtual_columns=["generic_objects_count", "href_slug", "region_description", "region_number"], @associations=[]>
irb(main):005:0> dro = dro_class.create_object(:name => "My second DRO object", :is_checked => false, :created => Time.new, :retired => nil)
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkin, connection_pool: size: 5, connections: 1, in use: 0, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkin, connection_pool: size: 5, connections: 1, in use: 0, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkin, connection_pool: size: 5, connections: 1, in use: 0, waiting_in_queue: 0
=> #<MiqAeServiceGenericObject:0x5dcd0c0 @object=#<GenericObject:0x0000000a069320 id: 11, name: "My second DRO object", uid: nil, generic_object_definition_id: 7, created_at: "2018-01-27 15:50:00", updated_at: "2018-01-27 15:50:00", attributes: {"is_checked"=>false, "created"=>2018-01-27 15:50:00 UTC, "retired"=>nil}, associations: ["service_get_admin_user"], methods: ["get_admin_user"]>, @virtual_columns=["generic_object_definition_name", "href_slug", "region_description", "region_number"], @associations=[]>
irb(main):006:0> $evm.log(:info, "dro object: #{dro.inspect}")
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkin, connection_pool: size: 5, connections: 1, in use: 0, waiting_in_queue: 0
=> true
irb(main):007:0> $evm.log(:info, "dro object: #{dro.attributes}")
=> true
irb(main):008:0> dro.methods
=> [:name, :uid, :updated_at, :created_at, :properties, :region_number, :href_slug, :region_description, :add_to_service, :remove_from_service, :generic_object_definition_name, :generic_object_definition_id, :remove_from_vmdb, :inspect, :object_class, :tags, :reload, :associations, :model_suffix, :wrap_results, :ar_method, :object_send, :virtual_columns_inspect, :virtual_column_names, :inspect_all, :tagged_with?, :tag_assign, :tag_unassign, :taggable?, :_log, :[], :[]=, :attributes, :class_name, :namespace, :parent, :attributes=, :decrypt, :id, :instance_name, :current_message, :current_field_name, :current_field_type, :_dump, :fork, :to_json, :`, :to_yaml, :to_yaml_properties, :blank?, :presence, :present?, :psych_to_yaml, :as_json, :acts_like?, :to_param, :to_query, :deep_dup, :duplicable?, :in?, :presence_in, :instance_values, :instance_variable_names, :with_options, :html_safe?, :is_haml?, :to_miq_a, :deep_send, :number_with_method?, :dclone, :pretty_print, :pretty_print_cycle, :pretty_print_instance_variables, :pretty_print_inspect, :column_type, :is_integer?, :is_numeric?, :copy_hash, :copy_array, :format_timezone, :ui_lookup, :ui_lookup_for_title, :report_build_html_table, :_, :n_, :s_, :N_, :Nn_, :ns_, :require_dependency, :unloadable, :require_or_load, :load_dependency, :include_concern, :descendant_get, :in_namespace?, :try, :try!, :instance_of?, :public_send, :instance_variable_get, :instance_variable_set, :instance_variable_defined?, :remove_instance_variable, :private_methods, :kind_of?, :instance_variables, :tap, :singleton_method, :class_eval, :is_a?, :define_singleton_method, :extend, :method, :public_method, :suppress_warnings, :to_enum, :enum_for, :Grouping, :pretty_inspect, :Group, :<=>, :===, :=~, :!~, :eql?, :respond_to?, :freeze, :display, :object_id, :send, :gem, :to_s, :require_relative, :nil?, :hash, :class, :singleton_class, :clone, :dup, :itself, :taint, :tainted?, :untaint, :untrust, :trust, :untrusted?, :methods, :protected_methods, :frozen?, :public_methods, :singleton_methods, :!, :==, :!=, :__send__, :equal?, :instance_eval, :instance_exec, :__id__]
irb(main):009:0> dro.retired = Time.now+7.days
RuntimeError: Workspace not found when running generic object
from /opt/rh/cfme-gemset/bundler/gems/manageiq-automation_engine-ef744f1aa985/lib/miq_automation_engine/service_models/miq_ae_service_generic_object.rb:23:in `ae_user_identity'
from /opt/rh/cfme-gemset/bundler/gems/manageiq-automation_engine-ef744f1aa985/lib/miq_automation_engine/service_models/miq_ae_service_generic_object.rb:29:in `method_missing'
from (irb):9
from /opt/rh/cfme-gemset/gems/railties-5.0.6/lib/rails/commands/console.rb:65:in `start'
from /opt/rh/cfme-gemset/gems/railties-5.0.6/lib/rails/commands/console_helper.rb:9:in `start'
from /opt/rh/cfme-gemset/gems/railties-5.0.6/lib/rails/commands/commands_tasks.rb:78:in `console'
from /opt/rh/cfme-gemset/gems/railties-5.0.6/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
from /opt/rh/cfme-gemset/gems/railties-5.0.6/lib/rails/commands.rb:18:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
irb(main):010:0> dro.attributes
=> {"id"=>11, "name"=>"My second DRO object", "uid"=>nil, "generic_object_definition_id"=>7, "created_at"=>Sat, 27 Jan 2018 15:50:00 UTC +00:00, "updated_at"=>Sat, 27 Jan 2018 15:50:00 UTC +00:00, "properties"=>{"is_checked"=>false, "created"=>"2018-01-27T10:50:00.154-05:00", "retired"=>nil}}
irb(main):011:0> dro
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkin, connection_pool: size: 5, connections: 1, in use: 0, waiting_in_queue: 0
=> #<MiqAeServiceGenericObject:0x5dcd0c0 @object=#<GenericObject:0x0000000a069320 id: 11, name: "My second DRO object", uid: nil, generic_object_definition_id: 7, created_at: "2018-01-27 15:50:00", updated_at: "2018-01-27 15:50:00", attributes: {"is_checked"=>false, "created"=>2018-01-27 15:50:00 UTC, "retired"=>nil}, associations: ["service_get_admin_user"], methods: ["get_admin_user"]>, @virtual_columns=["generic_object_definition_name", "href_slug", "region_description", "region_number"], @associations=[]>
irb(main):012:0> mydro = $evm.vmdb(:generic_object).all
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkin, connection_pool: size: 5, connections: 1, in use: 0, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkin, connection_pool: size: 5, connections: 1, in use: 0, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkin, connection_pool: size: 5, connections: 1, in use: 0, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkin, connection_pool: size: 5, connections: 1, in use: 0, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkin, connection_pool: size: 5, connections: 1, in use: 0, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkin, connection_pool: size: 5, connections: 1, in use: 0, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkin, connection_pool: size: 5, connections: 1, in use: 0, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkin, connection_pool: size: 5, connections: 1, in use: 0, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkin, connection_pool: size: 5, connections: 1, in use: 0, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkin, connection_pool: size: 5, connections: 1, in use: 0, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkin, connection_pool: size: 5, connections: 1, in use: 0, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkin, connection_pool: size: 5, connections: 1, in use: 0, waiting_in_queue: 0
=> [#<MiqAeServiceGenericObject:0x470034c @object=#<GenericObject:0x00000008e01160 id: 9, name: "rds-db12", uid: nil, generic_object_definition_id: 5, created_at: "2018-01-09 22:53:46", updated_at: "2018-01-09 22:53:46", attributes: {"engine"=>"postgres", "master_username"=>"dbadmin", "allocated_storage"=>"5", "db_instance_class"=>"db.t2.micro", "db_instance_identifier"=>"rds-db12"}, associations: ["services"], methods: []>, @virtual_columns=["generic_object_definition_name", "href_slug", "region_description", "region_number"], @associations=[]>, #<MiqAeServiceGenericObject:0x618fd48 @object=#<GenericObject:0x00000008e00f80 id: 4, name: "First Demo DRO", uid: nil, generic_object_definition_id: 6, created_at: "2017-12-06 18:45:22", updated_at: "2017-12-06 18:45:22", attributes: {"created"=>2017-12-06 18:45:22 UTC, "is_tired"=>true, "retirement"=>nil}, associations: [], methods: ["kick", "laugh_at", "punch", "buy_a_drink"]>, @virtual_columns=["generic_object_definition_name", "href_slug", "region_description", "region_number"], @associations=[]>, #<MiqAeServiceGenericObject:0x618f820 @object=#<GenericObject:0x00000008e00e40 id: 5, name: "Second Demo DRO", uid: nil, generic_object_definition_id: 6, created_at: "2017-12-06 19:38:19", updated_at: "2017-12-06 19:38:19", attributes: {"created"=>2017-12-06 19:38:19 UTC, "is_tired"=>true, "retirement"=>nil}, associations: [], methods: ["kick", "laugh_at", "punch", "buy_a_drink"]>, @virtual_columns=["generic_object_definition_name", "href_slug", "region_description", "region_number"], @associations=[]>, #<MiqAeServiceGenericObject:0x618f2f8 @object=#<GenericObject:0x00000008e00d00 id: 6, name: "rds-db1", uid: nil, generic_object_definition_id: 5, created_at: "2017-12-12 15:14:27", updated_at: "2017-12-12 15:14:27", attributes: {"engine"=>"postgres", "master_username"=>"dbadmin", "allocated_storage"=>"5", "db_instance_class"=>"db.t2.micro", "db_instance_identifier"=>"rds-db1"}, associations: ["services"], methods: []>, @virtual_columns=["generic_object_definition_name", "href_slug", "region_description", "region_number"], @associations=[]>, #<MiqAeServiceGenericObject:0x618edd0 @object=#<GenericObject:0x00000008e00bc0 id: 10, name: "First Learn DRO object", uid: nil, generic_object_definition_id: 7, created_at: "2018-01-27 08:40:29", updated_at: "2018-01-27 08:40:29", attributes: {"created"=>2018-01-27 08:40:29 UTC, "is_checked"=>false}, associations: ["service_get_admin_user"], methods: ["get_admin_user"]>, @virtual_columns=["generic_object_definition_name", "href_slug", "region_description", "region_number"], @associations=[]>, #<MiqAeServiceGenericObject:0x618e8a8 @object=#<GenericObject:0x00000008e00a58 id: 11, name: "My second DRO object", uid: nil, generic_object_definition_id: 7, created_at: "2018-01-27 15:50:00", updated_at: "2018-01-27 15:50:00", attributes: {"created"=>2018-01-27 15:50:00 UTC, "retired"=>nil, "is_checked"=>false}, associations: ["service_get_admin_user"], methods: ["get_admin_user"]>, @virtual_columns=["generic_object_definition_name", "href_slug", "region_description", "region_number"], @associations=[]>]
irb(main):013:0> mydro = $evm.vmdb(:generic_object).find(11)
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkin, connection_pool: size: 5, connections: 1, in use: 0, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkin, connection_pool: size: 5, connections: 1, in use: 0, waiting_in_queue: 0
=> #<MiqAeServiceGenericObject:0x48088c0 @object=#<GenericObject:0x000000090113d8 id: 11, name: "My second DRO object", uid: nil, generic_object_definition_id: 7, created_at: "2018-01-27 15:50:00", updated_at: "2018-01-27 15:50:00", attributes: {"created"=>2018-01-27 15:50:00 UTC, "retired"=>nil, "is_checked"=>false}, associations: ["service_get_admin_user"], methods: ["get_admin_user"]>, @virtual_columns=["generic_object_definition_name", "href_slug", "region_description", "region_number"], @associations=[]>
irb(main):014:0> mydro.instance_variable_set(:@ae_user, User.first)
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
=> #<User id: 1, name: "Administrator", email: "jmarc@redhat.com", icon: nil, created_on: "2017-10-06 16:35:38", updated_on: "2018-01-27 15:44:03", userid: "admin", settings: {:quadicons=>{:service=>true, :ems=>true, :ems_cloud=>true, :host=>true, :miq_template=>true, :physical_server=>true, :storage=>true, :vm=>true, :ems_container=>true}, :views=>{:authkeypaircloud=>"list", :availabilityzone=>"list", :hostaggregate=>"list", :catalog=>"list", :cm_providers=>"list", :cm_configured_systems=>"list", :compare=>"expanded", :compare_mode=>"details", :condition=>"list", :container=>"list", :containergroup=>"list", :containernode=>"list", :containerservice=>"list", :containerroute=>"list", :containerproject=>"list", :containerreplicator=>"list", :containerimage=>"list", :containerimageregistry=>"list", :persistentvolume=>"list", :containerbuild=>"list", :containertemplate=>"list", :cloudobjectstorecontainer=>"list", :cloudobjectstoreobject=>"list", :cloudtenant=>"list", :cloudvolume=>"list", :cloudvolumebackup=>"list", :cloudvolumesnapshot=>"list", :drift=>"expanded", :drift_mode=>"details", :emscluster=>"grid", :emscontainer=>"grid", :filesystem=>"list", :flavor=>"list", :host=>"grid", :job=>"list", :manageiq_providers_cloudmanager=>"grid", :manageiq_providers_cloudmanager_template=>"list", :manageiq_providers_cloudmanager_vm=>"grid", :manageiq_providers_containermanager=>"grid", :manageiq_providers_inframanager=>"grid", :manageiq_providers_inframanager_vm=>"grid", :manageiq_providers_inframanager_template=>"list", :manageiq_providers_middlewaremanager=>"grid", :manageiq_providers_physicalinframanager=>"list", :manageiq_providers_storagemanager=>"list", :middlewaredatasource=>"list", :middlewaredeployment=>"list", :middlewaredomain=>"list", :middlewaremessaging=>"list", :middlewareserver=>"list", :middlewareservergroup=>"list", :miqaction=>"list", :miqaeclass=>"list", :miqaeinstance=>"list", :miqevent=>"list", :miqpolicy=>"list", :miqpolicyset=>"list", :miqreportresult=>"list", :miqrequest=>"list", :miqtemplate=>"list", :orchestrationstack=>"list", :orchestrationtemplate=>"list", :servicetemplate=>"list", :storagemanager=>"list", :miqtask=>"list", :ms=>"grid", :physicalserver=>"list", :policy=>"list", :policyset=>"grid", :resourcepool=>"grid", :service=>"grid", :scanhistory=>"list", :storage_files=>"list", :summary_mode=>"dashboard", :registryitems=>"list", :serverbuild=>"list", :storage=>"grid", :tagging=>"grid", :treesize=>"20", :vm=>"grid", :vmortemplate=>"grid", :vmcompare=>"compressed"}, :perpage=>{:grid=>20, :tile=>20, :list=>20, :reports=>20}, :topology=>{:containers_max_items=>100}, :display=>{:startpage=>"/dashboard/show", :reporttheme=>"default", :quad_truncate=>"m", :theme=>"red", :taskbartext=>true, :hostcompare=>"Compressed", :timezone=>"UTC", :display_vms=>false, :locale=>"en"}, :default_search=>nil, :ui_service=>{:display=>{:locale=>"en"}}}, lastlogon: "2018-01-27 15:44:03", lastlogoff: "2018-01-12 23:03:14", current_group_id: 2, first_name: nil, last_name: nil, password_digest: "$2a$10$0cNe4Bo/DoJji8uEhbW0o.kALp12R.M6BQq7wPxbuil...">
irb(main):015:0> User.current_user = User.first
irb(main):016:0> mydro.get_admin_user
PostgreSQLAdapter#log_after_checkin, connection_pool: size: 5, connections: 1, in use: 0, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkin, connection_pool: size: 5, connections: 1, in use: 0, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkin, connection_pool: size: 5, connections: 1, in use: 0, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkin, connection_pool: size: 5, connections: 1, in use: 0, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkin, connection_pool: size: 5, connections: 1, in use: 0, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkin, connection_pool: size: 5, connections: 1, in use: 0, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkin, connection_pool: size: 5, connections: 1, in use: 0, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkin, connection_pool: size: 5, connections: 1, in use: 0, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkin, connection_pool: size: 5, connections: 1, in use: 0, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkin, connection_pool: size: 5, connections: 1, in use: 0, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkin, connection_pool: size: 5, connections: 1, in use: 0, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkout, connection_pool: size: 5, connections: 1, in use: 1, waiting_in_queue: 0
PostgreSQLAdapter#log_after_checkin, connection_pool: size: 5, connections: 1, in use: 0, waiting_in_queue: 0
NoMethodError: undefined method `root' for true:TrueClass
from /var/www/miq/vmdb/app/models/generic_object.rb:194:in `_call_automate'
from /var/www/miq/vmdb/app/models/generic_object.rb:135:in `method_missing'
from /opt/rh/cfme-gemset/bundler/gems/manageiq-automation_engine-ef744f1aa985/lib/miq_automation_engine/engine/miq_ae_method_service/miq_ae_service_model_base.rb:313:in `public_send'
from /opt/rh/cfme-gemset/bundler/gems/manageiq-automation_engine-ef744f1aa985/lib/miq_automation_engine/engine/miq_ae_method_service/miq_ae_service_model_base.rb:313:in `block in object_send'
from /opt/rh/cfme-gemset/bundler/gems/manageiq-automation_engine-ef744f1aa985/lib/miq_automation_engine/engine/miq_ae_method_service/miq_ae_service_model_base.rb:332:in `ar_method'
from /opt/rh/cfme-gemset/bundler/gems/manageiq-automation_engine-ef744f1aa985/lib/miq_automation_engine/engine/miq_ae_method_service/miq_ae_service_model_base.rb:342:in `ar_method'
from /opt/rh/cfme-gemset/bundler/gems/manageiq-automation_engine-ef744f1aa985/lib/miq_automation_engine/engine/miq_ae_method_service/miq_ae_service_model_base.rb:311:in `object_send'
from /opt/rh/cfme-gemset/bundler/gems/manageiq-automation_engine-ef744f1aa985/lib/miq_automation_engine/service_models/miq_ae_service_generic_object.rb:31:in `method_missing'
from (irb):16
from /opt/rh/cfme-gemset/gems/railties-5.0.6/lib/rails/commands/console.rb:65:in `start'
from /opt/rh/cfme-gemset/gems/railties-5.0.6/lib/rails/commands/console_helper.rb:9:in `start'
from /opt/rh/cfme-gemset/gems/railties-5.0.6/lib/rails/commands/commands_tasks.rb:78:in `console'
from /opt/rh/cfme-gemset/gems/railties-5.0.6/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
from /opt/rh/cfme-gemset/gems/railties-5.0.6/lib/rails/commands.rb:18:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment