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

Bug 1562199

Summary: FFU: openstack-glance-registry service is still running on controller FFU process has finished
Product: Red Hat OpenStack Reporter: Marius Cornea <mcornea>
Component: openstack-tripleo-heat-templatesAssignee: Lukas Bezdicka <lbezdick>
Status: CLOSED ERRATA QA Contact: Marius Cornea <mcornea>
Severity: urgent Docs Contact:
Priority: high    
Version: 13.0 (Queens)CC: augol, ccamacho, dbecker, jschluet, lbezdick, mandreou, mburns, morazi, rhel-osp-director-maint
Target Milestone: z2Keywords: ReleaseNotes, Triaged, ZStream
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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 16:35:26 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:    
Bug Blocks: 1597875    

Description Marius Cornea 2018-03-29 18:31:13 UTC
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 13:01:56 UTC
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 12:28:45 UTC
Should be already fixed in upstream.

Comment 8 Marius Cornea 2018-05-04 20:04:10 UTC
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 19:47:50 UTC
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 22:13:47 UTC
(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 19:08:52 UTC
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 07:56:07 UTC
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 16:35:26 UTC
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