Update of master node 9.0-9.1 fails if there is an additional package in system which contains 'fuel-nailgun' substring

Bug #1629267 reported by Vladimir Khlyunev
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Anton Chevychalov

Bug Description

If there is more than one package in system that contains "fuel-nailgun" in it (e.g. extensions) "upgrade-prepare master" can fetch wrong package for selecting service for restarting:

=======
[root@nailgun versions]# PACKAGE="$(rpm -qa | grep '^fuel-nailgun')"
[root@nailgun versions]# echo $PACKAGE
fuel-nailgun-9.0.0-1.mos8861.noarch fuel-nailgun-extension-cluster-upgrade-9.1-1.mos81.git.f98dc1c.noarch
[root@nailgun versions]# SERVICES=$(rpm -ql "$PACKAGE" | grep '^/usr/lib/systemd/system/\w*.service$' | awk -F'/' '{print $NF}' | sed 's/.service$//')
[root@nailgun versions]# echo $SERVICES

=======
this leads to not restarted nailgun and non-zero ret code.
Steps to reproduce:
Deploy Fuel 9.0
Install fuel-nailgun-extension-cluster-upgrade package
Upgrade Fuel to 9.1

summary: Update of master node 9.0-9.1 fails if there is an additional package in
- system which contains 'nailgun' substring
+ system which contains 'fuel-nailgun' substring
description: updated
Changed in fuel:
assignee: nobody → Anton Chevychalov (achevychalov)
Revision history for this message
Anton Chevychalov (achevychalov) wrote :

Workaround: remove fuel-nailgun-extension-cluster-upgrade-9.1-1.mos81.git.f98dc1c.noarch before upgrade.

Fix: https://review.fuel-infra.org/#/c/27078/

Revision history for this message
Ilya Kharin (akscram) wrote :

This is not a workaround because the fuel-nailgun-extension-cluster-upgrade package is not only one package with such prefix, there is yet one at least.

Changed in fuel:
status: New → In Progress
Revision history for this message
Vitaly Sedelnik (vsedelnik) wrote :

Another workaround would be restart nailgun manually. Downgrading to High, adding release-notes tag and retargeting to 9.2.

Changed in fuel:
importance: Critical → High
milestone: 9.1 → 9.2
Revision history for this message
Anton Chevychalov (achevychalov) wrote :

Release note.

Update-prepare script unable to restart nailgun services when any of fuel-nailgun extensions was installed on master node.

As workaround it is possible to restart services manually after "update-prepare prepare master" step.

Command to restart:

systemctl restart assassind nailgun oswl_flavor_collectord oswl_image_collectord oswl_keystone_user_collectord oswl_tenant_collectord oswl_vm_collectord oswl_volume_collectord receiverd statsenderd

tags: added: release-notes
tags: added: release-notes-done
removed: release-notes
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to packages/centos7/python-cudet (9.0)

Reviewed: https://review.fuel-infra.org/27078
Submitter: Pkgs Jenkins <email address hidden>
Branch: 9.0

Commit: e9db0c19d76a1e9298db30f353b9c5fa46f69598
Author: Anton Chevychalov <email address hidden>
Date: Fri Sep 30 12:28:25 2016

Fix restart of nailgun during update-prepare

Fix problem with restart of fuel-nailgun related services
if additional extention was installed.

Change-Id: I9631fb8b13cfdbcd8f53d517252e2b73db0f14ce
Closes-Bug: #1629267

Changed in fuel:
status: In Progress → Fix Committed
tags: added: on-verification
Revision history for this message
TatyanaGladysheva (tgladysheva) wrote :

Verified on 9.2 snapshot #465.

tags: removed: on-verification
Changed in fuel:
status: Fix Committed → Fix Released
Revision history for this message
Maria Zlatkova (mzlatkova) wrote :

Does not need to be described in release notes 9.2. Confirmed with Anton Chevychalov.

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.