Bug 1207796
| Summary: | [RFE] Please expose pxe_image_type to AeService Models | ||
|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Lucy Fu <lufu> |
| Component: | Automate | Assignee: | Lucy Fu <lufu> |
| Status: | CLOSED ERRATA | QA Contact: | Ramesh A <rananda> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 5.3.0 | CC: | dajohnso, david.costakos, jhardy, jprause, kmorey, mberube, mfeifer, mkanoor, obarenbo, pkovar, rananda, tfitzger |
| Target Milestone: | GA | Keywords: | FutureFeature, ZStream |
| Target Release: | 5.3.5 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | 5.3.5.1 | Doc Type: | Enhancement |
| Doc Text: |
This version of CloudForms Management Engine exposes PxeImageType to automate. This enables customers to organize their customization templates they use for each tenant.
|
Story Points: | --- |
| Clone Of: | 1200601 | Environment: | |
| Last Closed: | 2015-07-15 12:54:54 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1200601 | ||
| Bug Blocks: | |||
|
Comment 1
CFME Bot
2015-04-02 14:45:53 UTC
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 |