SM:R3.1build 29: Centos : Provision does not complete with failed dependencies at webui

Bug #1616582 reported by sundarkh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.1
Fix Committed
Critical
Abhay Joshi
Trunk
Fix Committed
Critical
Abhay Joshi

Bug Description

SM:R3.1build 29: Centos : Provision does not complete with failed dependencies at webui

1) SM installed with Liberty build 29
2) Reimaged the target with centos7.2 , which got reimaged succesfully
3) Initiated a provision , provision gets stuck at webui stage

ug 24 11:08:00 nodeg37 puppet-agent[1217]: Could not start Service[supervisor-webui]: Execution of '/usr/bin/systemctl start supervisor-webui' returned 6: Failed to start supervisor-webui.service: Unit supervisor-webui.service failed to load: No such file or directory.
Aug 24 11:08:00 nodeg37 puppet-agent[1217]: Wrapped exception:
Aug 24 11:08:00 nodeg37 puppet-agent[1217]: Execution of '/usr/bin/systemctl start supervisor-webui' returned 6: Failed to start supervisor-webui.service: Unit supervisor-webui.service failed to load: No such file or directory.
Aug 24 11:08:00 nodeg37 puppet-agent[1217]: (/Stage[webui]/Contrail::Webui::Service/Service[supervisor-webui]/ensure) change from stopped to running failed: Could not start Service[supervisor-webui]: Execution of '/usr/bin/systemctl start supervisor-webui' returned 6: Failed to start supervisor-webui.service: Unit supervisor-webui.service failed to load: No such file or directory.
Aug 24 11:08:00 nodeg37 puppet-agent[1217]: (/Stage[webui]/Contrail::Webui/Contrail::Lib::Report_status[webui_completed]/Exec[contrail-status-webui_completed]) Dependency Service[supervisor-webui] has failures: true
Aug 24 11:08:00 nodeg37 puppet-agent[1217]: (/Stage[webui]/Contrail::Webui/Contrail::Lib::Report_status[webui_completed]/Exec[contrail-status-webui_completed]) Skipping because of failed dependencies
Aug 24 11:08:00

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.1

Review in progress for https://review.opencontrail.org/23601
Submitter: kamlesh parmar (<email address hidden>)

Revision history for this message
kamlesh parmar (kparmar) wrote :

This problem is exposed below sequence:

The /etc/init.d/supervisor-webui file brought in my contrail-web-core package. None of the webui packages has "chkconfig on" except for opscenter.
"chkconfig on" does systemd reload and thats how systemctl know about the init.d/sysv services.
So if opscenter gets installed before contrail-web-core package, there is no subsequent attempt left for systemd reload. And ensure running fails for supervisor-webui. The fix is to ensure contrail-web-core gets installed first followed by contrail-openstack-webui.

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/23640
Submitter: kamlesh parmar (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/23640
Committed: http://github.org/Juniper/contrail-puppet/commit/5e09cd589fef274c59e9a1d946d1b735854d1a6a
Submitter: Zuul
Branch: master

commit 5e09cd589fef274c59e9a1d946d1b735854d1a6a
Author: Kamlesh Parmar <email address hidden>
Date: Thu Aug 25 17:00:24 2016 -0700

Closes-Bug: #1616582
supervisor-webui file comes from contrail-web-core. In the failing case
systemd reload happens before installing this package. Hence the systemctl start
supervisor-webui fails.

Change-Id: Ibf6102801fd67d86b272f4adb43cb9c825b332d1

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/23601
Committed: http://github.org/Juniper/contrail-puppet/commit/5427555dbdcb109e0fcd986febd38230c0ecf58a
Submitter: Zuul
Branch: R3.1

commit 5427555dbdcb109e0fcd986febd38230c0ecf58a
Author: Kamlesh Parmar <email address hidden>
Date: Thu Aug 25 17:00:24 2016 -0700

Closes-Bug: #1616582
supervisor-webui file comes from contrail-web-core. In the failing case
systemd reload happens before installing this package. Hence the systemctl start
supervisor-webui fails.

Change-Id: Ibf6102801fd67d86b272f4adb43cb9c825b332d1

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.