New commit detected on cfme/5.3.z: https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=4bf6b417d408f29d0cbb157b156141445adb1188 commit 4bf6b417d408f29d0cbb157b156141445adb1188 Merge: 6d017ab 52c8f5c Author: Greg McCullough <gmccullo> AuthorDate: Thu Apr 2 10:41:53 2015 -0400 Commit: Greg McCullough <gmccullo> CommitDate: Thu Apr 2 10:41:53 2015 -0400 Merge branch 'expose_pxe_image_type_to_automate_53z' into '5.3.z' Expose pxe image type to automate https://bugzilla.redhat.com/show_bug.cgi?id=1207796 See merge request !15 .../service_models/miq_ae_service_pxe_image_type.rb | 8 ++++++++ 1 file changed, 8 insertions(+)
Good to go. Verified in 5.3.5.1.20150630091250_5515226 [root@server vmdb]# rails console Loading production environment (Rails 3.2.17) irb(main):001:0> $evm = MiqAeMethodService::MiqAeService.new(MiqAeEngine::MiqAeWorkspaceRuntime.new) (55.4ms) SELECT version() SQL (1.7ms) SELECT "miq_ae_namespaces"."name" FROM "miq_ae_namespaces" WHERE "miq_ae_namespaces"."parent_id" IS NULL AND "miq_ae_namespaces"."enabled" = 't' AND ("miq_ae_namespaces"."name" != '$') ORDER BY priority DESC => #<MiqAeMethodService::MiqAeService:0x0000000473b000 @drb_server_references=[], @inputs={}, @workspace=#<MiqAeEngine::MiqAeWorkspaceRuntime:0x00000003ad79d0 @readonly=false, @graph=#<MiqAeEngine::MiqAeDigraph:0x00000003ad7958 @v={}, @from={}, @lastid=-1>, @current=[], @num_drb_methods=0, @datastore_cache={}, @class_methods={}, @dom_search=#<MiqAeEngine::MiqAeDomainSearch:0x00000003ad7840 @sorted_domains=["Default", "RedHat", "ManageIQ"], @fqns_id_cache={}, @fqns_id_class_cache={}, @partial_ns=[]>, @persist_state_hash={}>, @preamble_lines=0, @body=[], @persist_state_hash={}> irb(main):002:0> pit = $evm.vmdb(:pxe_image_type).first PxeImageType Load (0.9ms) SELECT "pxe_image_types".* FROM "pxe_image_types" LIMIT 1 PxeImageType Inst (7.3ms - 1rows) => #<MiqAeServicePxeImageType:0x1bf8fb4 @object=#<PxeImageType id: 1, name: "CentOS-6", provision_type: nil>, @virtual_columns=["region_description", "region_number"], @associations=["customization_templates", "iso_images", "pxe_images", "windows_images"]> irb(main):003:0> pi = $evm.vmdb(:pxe_image_type).all PxeImageType Load (0.3ms) SELECT "pxe_image_types".* FROM "pxe_image_types" PxeImageType Inst (0.5ms - 4rows) => [#<MiqAeServicePxeImageType:0x1adf9c0 @object=#<PxeImageType id: 1, name: "CentOS-6", provision_type: nil>, @virtual_columns=["region_description", "region_number"], @associations=["customization_templates", "iso_images", "pxe_images", "windows_images"]>, #<MiqAeServicePxeImageType:0x1adf2f4 @object=#<PxeImageType id: 2, name: "ESX", provision_type: "host">, @virtual_columns=["region_description", "region_number"], @associations=["customization_templates", "iso_images", "pxe_images", "windows_images"]>, #<MiqAeServicePxeImageType:0x1adebec @object=#<PxeImageType id: 3, name: "RHEL-6", provision_type: nil>, @virtual_columns=["region_description", "region_number"], @associations=["customization_templates", "iso_images", "pxe_images", "windows_images"]>, #<MiqAeServicePxeImageType:0x1ade5e8 @object=#<PxeImageType id: 4, name: "Windows", provision_type: "vm">, @virtual_columns=["region_description", "region_number"], @associations=["customization_templates", "iso_images", "pxe_images", "windows_images"]>] irb(main):004:0> p = PxeImageType.last PxeImageType Load (346.8ms) SELECT "pxe_image_types".* FROM "pxe_image_types" ORDER BY "pxe_image_types"."id" DESC LIMIT 1 PxeImageType Inst (0.1ms - 1rows) => #<PxeImageType id: 4, name: "Windows", provision_type: "vm">
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-1223.html