Bug 1218281

Summary: RFE: rdo-manager - update heat deployment-show to make puppet output readable
Product: [Community] RDO Reporter: Jon Jozwiak <jjozwiak>
Component: rdo-managerAssignee: Hugh Brock <hbrock>
Status: CLOSED EOL QA Contact: Shai Revivo <srevivo>
Severity: medium Docs Contact:
Priority: unspecified    
Version: KiloCC: mburns, mmagr, nbarcet
Target Milestone: ---   
Target Release: Kilo   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-19 16:05:14 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:

Description Jon Jozwiak 2015-05-04 13:44:43 UTC
Description of problem:
Reviewing puppet output for an overcloud deployment is difficult because the formatting of the output is all on one line rather than the formatted view you see when watching puppet run normally.  

Version-Release number of selected component (if applicable):


How reproducible:
Follow the below steps to reproduce 

Steps to Reproduce:
1.  Deploy Overcloud 
2.  Get a list of deployments 
heat resource-list --nested-depth 5 overcloud | grep Deployment

| 0                                           | b0a900e1-b3bf-4130-bd90-33197d743ffb          | OS::Heat::StructuredDeployment                    | CREATE_COMPLETE | 2015-04-24T18:50:27Z | ControllerDeploymentLoadBalancer_Step1      |
| 0                                           | c43d44df-20ac-44be-a8ba-909b4fde5c15          | OS::Heat::StructuredDeployment                    | CREATE_COMPLETE | 2015-04-24T18:51:16Z | ControllerDeploymentServicesBase_Step2      |
| 0                                           | b7fc477a-0200-4733-a89c-dd558650a080          | OS::Heat::StructuredDeployment                    | CREATE_COMPLETE | 2015-04-24T18:52:26Z | ControllerRingbuilderDeployment_Step3       |
| 0                                           | dd9e3131-7a65-40a9-8699-98edde6289b7          | OS::Heat::StructuredDeployment                    | CREATE_COMPLETE | 2015-04-24T18:53:13Z | ControllerDeploymen

3.  List one of the deployment steps (one with resource name 0) to see the puppet output
 heat deployment-show b0a900e1-b3bf-4130-bd90-33197d743ffb




Actual results:
Here's a subset of the output.  Notice the deploy_stdout contains the puppet output.  
{
  "status": "COMPLETE", 
  "server_id": "8a72a107-4bcf-402b-9c0b-8a2a0d6ba3c8", 
  "config_id": "8606676d-d9d3-46e4-aca7-70e3928a7f41", 
  "output_values": {
    "deploy_stdout": "\u001b[mNotice: Compiled catalog for ov-yt45xirei4d-0-3gk6xmquhpga-controller-a22qqpaas5kp.novalocal in environment production in 2.22 seconds\u001b[0m\n\u001b[mNotice: /Stage[main]/Concat::Setup/File[/var/lib/puppet/concat]/ensure: created\u001b[0m\n\u001b[mNotice: /Stage[main]/Concat::Setup/File[/var/lib/puppet/concat/bin]/ensure: created\u001b[0m\n\u001b[mNotice: /Stage[main]/Concat::Setup/File[/var/lib/puppet/concat/bin/concatfragments.rb]/ensure: defined content as '{md5}b684db0eac243553a6a79365119a363d'\u001b[0m\n\u001b[mNotice: /Stage[main]/Tripleo::Loadbalancer/Sysctl::Value[net.ipv4.ip_nonlocal_bind]/Sysctl[net.ipv4.ip_nonlocal_bind]/ensure: created\u001b[0m\n\u001b[mNotice: /Stage[main]/Tripleo::Loadbalancer/Sysctl::Value[net.ipv4.ip_nonlocal_bind]/Exec[exec_sysctl_net.ipv4.ip_nonlocal_bind]: Triggered 'refresh' from 1 events\u001b[0m\n\u001b[mNotice: /Stage[main]/Keepalived::Config/Concat[/etc/keepalived/keepalived.conf]/File[/var/lib/puppet/concat/_etc_keepalived_keepalived.conf]/ensure: created\u001b[0m\n\u001b[mNotice: /Stage[main]/Keepalived::Config/Concat[/etc/keepalived/keepalived.conf]/File[/var/lib/puppet/concat/_etc_keepalived_keepalived.conf/fragments]/ensure: created\u001b[0m\n\u001b[mNotice: /Stage[main]/Tripleo::Loadbalancer/Keepalived::Vrrp_script[haproxy]/Concat::Fragment[keepalived_vrrp_script_haproxy]/File[/var/lib/puppet/concat/_etc_keepalived_keepalived.conf/fragments/20_keepalived_vrrp_script_haproxy]/ensure: defined content as '{md5}da7d32a51c63afc3557d6db96ef84b3b'\u001b[0m\n\u001b[mNotice: /Stage[main]/Keepalived::Config/Concat[/etc/keepalived/keepalived.conf]/File[/var/lib/puppet/concat/_etc_keepalived_keepalived.conf/fragments.concat]/ensure: created\u001b[0m\n\u001b[mNotice: /Stage[main]/Keepalived::Config/Concat::Fragment[global_config]/File[/var/lib/puppet/concat/_etc_keepalived_keepalived.conf/fragments/01_global_config]/ensure: defined content as '{md5}632ec1a386da39f73bbd4078d1b7af43'\u001b[0m\n\u001b[mNotice: /Stage[main]/Keepalived::Config/Concat[/etc/keepalived/keepalived.conf]/File[/var/lib/puppet/concat/_etc_keepalived_keepalived.conf/fragments.concat.out]/ensure: created\u001b

Expected results:
Have option to display standard formatting similar to when manually running puppet.  In other words, display with the new lines and breaks as you would normally see when executing puppet.  

Additional info:

Comment 5 Chandan Kumar 2016-05-19 16:05:14 UTC
This bug is against a Version which has reached End of Life.
If it's still present in supported release (http://releases.openstack.org), please update Version and reopen.

Comment 6 Red Hat Bugzilla 2023-09-14 02:58:45 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days