Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1518028

Summary: os-collect-config doesn't start at boot on split stack deployments with pre-provisioned servers
Product: Red Hat OpenStack Reporter: Alex Schultz <aschultz>
Component: documentationAssignee: Dan Macpherson <dmacpher>
Status: CLOSED EOL QA Contact: RHOS Documentation Team <rhos-docs>
Severity: medium Docs Contact:
Priority: medium    
Version: 11.0 (Ocata)CC: agurenko, aschultz, dbecker, dmacpher, mburns, mcornea, morazi, rhel-osp-director-maint, srevivo
Target Milestone: ---Keywords: Triaged, ZStream
Target Release: 11.0 (Ocata)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1518009 Environment:
Last Closed: 2018-06-22 12:39:11 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: 1518009    
Bug Blocks:    

Description Alex Schultz 2017-11-27 23:18:15 UTC
+++ This bug was initially created as a clone of Bug #1518009 +++

Description of problem:
os-collect-config service doesn't start at boot on split stack deployments

Version-Release number of selected component (if applicable):
openstack-tripleo-heat-templates-6.2.4-1.el7ost.noarch.rpm 

How reproducible:
100%

Steps to Reproduce:
1. Deploy OSP11 with split stack on pre-provisioned nodes
2. Reboot one of the nodes
3. Check os-collect-config service status

Actual results:
[root@controller-0 stack]# systemctl status os-collect-config
● os-collect-config.service - Collect metadata and run hook commands.
   Loaded: loaded (/usr/lib/systemd/system/os-collect-config.service; disabled; vendor preset: disabled)
   Active: inactive (dead)


Expected results:
os-collect-config service is started after a reboot so subsequent stack updates can be applied.

Additional info:

Before the node reboot:

[root@controller-0 stack]# systemctl status os-collect-config
● os-collect-config.service - Collect metadata and run hook commands.
   Loaded: loaded (/usr/lib/systemd/system/os-collect-config.service; disabled; vendor preset: disabled)
   Active: active (running) since Mon 2017-11-27 18:18:57 UTC; 3h 29min ago
 Main PID: 10945 (os-collect-conf)
   Memory: 760.9M
   CGroup: /system.slice/os-collect-config.service
           └─10945 /usr/bin/python /usr/bin/os-collect-config

Nov 27 18:49:17 controller-0 os-collect-config[10945]: dib-run-parts Mon Nov 27 18:49:17 UTC 2017 ----------------------- PROFILING -----------------------
Nov 27 18:49:17 controller-0 os-collect-config[10945]: dib-run-parts Mon Nov 27 18:49:17 UTC 2017
Nov 27 18:49:17 controller-0 os-collect-config[10945]: dib-run-parts Mon Nov 27 18:49:17 UTC 2017 Target: migration.d
Nov 27 18:49:17 controller-0 os-collect-config[10945]: dib-run-parts Mon Nov 27 18:49:17 UTC 2017
Nov 27 18:49:17 controller-0 os-collect-config[10945]: dib-run-parts Mon Nov 27 18:49:17 UTC 2017 Script                                     Seconds
Nov 27 18:49:17 controller-0 os-collect-config[10945]: dib-run-parts Mon Nov 27 18:49:17 UTC 2017 ---------------------------------------  ----------
Nov 27 18:49:17 controller-0 os-collect-config[10945]: dib-run-parts Mon Nov 27 18:49:17 UTC 2017
Nov 27 18:49:17 controller-0 os-collect-config[10945]: dib-run-parts Mon Nov 27 18:49:17 UTC 2017
Nov 27 18:49:17 controller-0 os-collect-config[10945]: dib-run-parts Mon Nov 27 18:49:17 UTC 2017 --------------------- END PROFILING ---------------------
Nov 27 18:49:17 controller-0 os-collect-config[10945]: [2017-11-27 18:49:17,406] (os-refresh-config) [INFO] Completed phase migration


After the node reboot:
[root@controller-0 stack]# systemctl status os-collect-config
● os-collect-config.service - Collect metadata and run hook commands.
   Loaded: loaded (/usr/lib/systemd/system/os-collect-config.service; disabled; vendor preset: disabled)
   Active: inactive (dead)

--- Additional comment from Alex Schultz on 2017-11-27 17:49:27 EST ---

The workaround for this is to just manually enable it by running 'sudo systemctl enable os-collect-config'

--- Additional comment from Alex Schultz on 2017-11-27 18:06:16 EST ---

It appears that the upstream patch for the backport also includes some extra items that may have partial upgrade implications.  We'll have to cherry-pick just part of it.

Comment 1 Alex Schultz 2017-11-27 23:19:07 UTC
The manual configuration part of the documentation will also need to be updated to include a 'sudo systemctl enable os-collect-config' after the service restart 

https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/11/html/director_installation_and_usage/chap-configuring_basic_overcloud_requirements_on_pre_provisioned_nodes#sect-Creating_the_Overcloud_with_Pre_Provisioned_Nodes

Comment 2 Scott Lewis 2018-06-22 12:39:11 UTC
OSP11 is now retired, see details at https://access.redhat.com/errata/product/191/ver=11/rhel---7/x86_64/RHBA-2018:1828