Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1562199 - FFU: openstack-glance-registry service is still running on controller FFU process has finished
FFU: openstack-glance-registry service is still running on controller FFU pro...
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates (Show other bugs)
13.0 (Queens)
Unspecified Unspecified
high Severity urgent
: z2
: 13.0 (Queens)
Assigned To: Lukas Bezdicka
Marius Cornea
: ReleaseNotes, Triaged, ZStream
Depends On:
Blocks: 1597875
  Show dependency treegraph
 
Reported: 2018-03-29 14:31 EDT by Marius Cornea
Modified: 2018-09-10 07:38 EDT (History)
9 users (show)

See Also:
Fixed In Version: openstack-tripleo-heat-templates-8.0.4-5.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-08-29 12:35:26 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Launchpad 1775186 None None None 2018-06-05 09:27 EDT
OpenStack gerrit 554177 None stable/queens: MERGED tripleo-heat-templates: FFU: Fix glance tasks (I38ab5a91b541e7e070f188ee73ef4c7dd7f65eaa) 2018-07-31 10:50 EDT
OpenStack gerrit 572389 None master: MERGED tripleo-heat-templates: Fix GlanceRegistry FFU cleanup (Ide061ca5e4495495658380499c62862e43441e25) 2018-07-31 10:50 EDT
OpenStack gerrit 587441 None stable/queens: NEW tripleo-heat-templates: Fix GlanceRegistry FFU cleanup (Ide061ca5e4495495658380499c62862e43441e25) 2018-07-31 10:49 EDT
Red Hat Product Errata RHBA-2018:2574 None None None 2018-08-29 12:36 EDT

  None (edit)
Description Marius Cornea 2018-03-29 14:31:13 EDT
Description of problem:
FFU: openstack-glance-registry service is still running on controller FFU process has finished:

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


How reproducible:
100%

Steps to Reproduce:
1. Deploy OSP10
2. Upgrade to OSP13 through FFU procedure
3. SSH to controller nodes and check systemctl status openstack-glance-registry

Actual results:
[root@controller-0 heat-admin]# systemctl status openstack-glance-registry
● openstack-glance-registry.service - OpenStack Image Service (code-named Glance) Registry server
   Loaded: loaded (/usr/lib/systemd/system/openstack-glance-registry.service; enabled; vendor preset: disabled)
   Active: active (running) since Thu 2018-03-29 02:01:29 UTC; 16h ago
 Main PID: 568952 (glance-registry)
    Tasks: 9
   Memory: 0B
   CGroup: /system.slice/openstack-glance-registry.service
           ├─568952 /usr/bin/python2 /usr/bin/glance-registry
           ├─569184 /usr/bin/python2 /usr/bin/glance-registry
           ├─569185 /usr/bin/python2 /usr/bin/glance-registry
           ├─569186 /usr/bin/python2 /usr/bin/glance-registry
           ├─569187 /usr/bin/python2 /usr/bin/glance-registry
           ├─569188 /usr/bin/python2 /usr/bin/glance-registry
           ├─569189 /usr/bin/python2 /usr/bin/glance-registry
           ├─569190 /usr/bin/python2 /usr/bin/glance-registry
           └─569191 /usr/bin/python2 /usr/bin/glance-registry

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.


Expected results:
Service should be stopped and disabled.

Additional info:
Comment 1 Marios Andreou 2018-04-02 09:01:56 EDT
please triage this we are going through the list and assigning round robin thanks (DFG:Upgrades triage call)
Comment 4 Lukas Bezdicka 2018-04-20 08:28:45 EDT
Should be already fixed in upstream.
Comment 8 Marius Cornea 2018-05-04 16:04:10 EDT
openstack-tripleo-heat-templates-8.0.2-11.el7ost.noarch

After FFU:

[root@controller-0 heat-admin]# systemctl status openstack-glance-registry
● openstack-glance-registry.service - OpenStack Image Service (code-named Glance) Registry server
   Loaded: loaded (/usr/lib/systemd/system/openstack-glance-registry.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2018-05-04 15:52:38 UTC; 4h 9min ago
 Main PID: 941884 (glance-registry)
    Tasks: 9
   Memory: 0B
   CGroup: /system.slice/openstack-glance-registry.service
           ├─941884 /usr/bin/python2 /usr/bin/glance-registry
           ├─942114 /usr/bin/python2 /usr/bin/glance-registry
           ├─942115 /usr/bin/python2 /usr/bin/glance-registry
           ├─942116 /usr/bin/python2 /usr/bin/glance-registry
           ├─942117 /usr/bin/python2 /usr/bin/glance-registry
           ├─942118 /usr/bin/python2 /usr/bin/glance-registry
           ├─942119 /usr/bin/python2 /usr/bin/glance-registry
           ├─942120 /usr/bin/python2 /usr/bin/glance-registry
           └─942121 /usr/bin/python2 /usr/bin/glance-registry

May 04 15:52:38 controller-0 systemd[1]: Started OpenStack Image Service (code-named Glance) Registry server.
May 04 15:52:38 controller-0 systemd[1]: Starting OpenStack Image Service (code-named Glance) Registry server...
May 04 15:52:40 controller-0 glance-registry[941884]: /usr/lib/python2.7/site-packages/glance/registry/api/__init__.py:36: DeprecationWarning: Glance Registry service has been deprecated for removal.
May 04 15:52:40 controller-0 glance-registry[941884]: debtcollector.deprecate("Glance Registry service has been "
May 04 15:52:40 controller-0 glance-registry[941884]: /usr/lib/python2.7/site-packages/paste/deploy/util.py:55: DeprecationWarning: Using function/method 'Healthcheck.factory()' is deprecated: The healthcheck middleware... not as a filter
May 04 15:52:40 controller-0 glance-registry[941884]: val = callable(*args, **kw)
Hint: Some lines were ellipsized, use -l to show in full.
Comment 9 Lukas Bezdicka 2018-05-06 15:47:50 EDT
Are you purposefully removing GlanceRegistry from your roles data? It has to be present in provided roles file https://github.com/openstack/tripleo-heat-templates/commit/9765f8d22564ac988fb07aa84e855e4c84788475#diff-931c9f84b71aa931378c46417a7df9a1
Comment 10 Marius Cornea 2018-05-06 18:13:47 EDT
(In reply to Lukas Bezdicka from comment #9)
> Are you purposefully removing GlanceRegistry from your roles data? It has to
> be present in provided roles file
> https://github.com/openstack/tripleo-heat-templates/commit/
> 9765f8d22564ac988fb07aa84e855e4c84788475#diff-
> 931c9f84b71aa931378c46417a7df9a1

No, I am using the default provided by the tripleo-heat-templates rpm:

[root@undercloud-0 ~]# rpm -q openstack-tripleo-heat-templates
openstack-tripleo-heat-templates-8.0.2-11.el7ost.noarch

[root@undercloud-0 ~]# grep GlanceRegistry /usr/share/openstack-tripleo-heat-templates/roles_data.yaml 
    - OS::TripleO::Services::GlanceRegistry


I think the issue is here: OS::TripleO::Services::GlanceRegistry gets nooped in /usr/share/openstack-tripleo-heat-templates/environments/lifecycle/ffwd-upgrade-prepare.yaml:

 [root@undercloud-0 tmp]# grep GlanceRegistry /usr/share/openstack-tripleo-heat-templates/environments/lifecycle/ffwd-upgrade-prepare.yaml
  OS::TripleO::Services::GlanceRegistry: OS::Heat::None
Comment 14 Lukas Bezdicka 2018-06-04 15:08:52 EDT
environments/lifecycle/ffwd-upgrade-prepare.yaml:  OS::TripleO::Services::GlanceRegistry: OS::Heat::None

Looks like we forgotten to remove the line.
Comment 28 Joanne O'Flynn 2018-08-15 03:56:07 EDT
This bug is marked for inclusion in the errata but does not currently contain draft documentation text. To ensure the timely release of this advisory please provide draft documentation text for this bug as soon as possible.

If you do not think this bug requires errata documentation, set the requires_doc_text flag to "-".


To add draft documentation text:

* Select the documentation type from the "Doc Type" drop down field.

* A template will be provided in the "Doc Text" field based on the "Doc Type" value selected. Enter draft text in the "Doc Text" field.
Comment 30 errata-xmlrpc 2018-08-29 12:35:26 EDT
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://access.redhat.com/errata/RHBA-2018:2574

Note You need to log in before you can comment on or make changes to this bug.