[9.2][updates] contrail5.0.1 plugin's packages couldn't be installed from the plugin repository

Bug #1661174 reported by vnaumov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel Contrail plugin
Fix Released
High
Unassigned
Fuel for OpenStack
Fix Released
High
Unassigned

Bug Description

Fuel 9.0 -> 9.1 -> 9.2, Contrail 5.0.0(updated to 5.0.1), LDAP 3.0.1 [1]

Steps to reproduce:
  1. Deploy 9.0 env + contrail plugin (9 slaves) [2]
  2. Install and configure LDAP
  3. Reset env (to activate ldap)
  4. Deploy changes
  5. Update to 9.1 state master node [3]
  6. Add mos-updates
"deb http://mirror.fuel-infra.org/mos-repos/ubuntu/9.0/ mos9.0-updates main restricted"
     into Settings -> General on Fuel UI
  7. Run `fuel2 update --env {env_id} install --repos mos-updates --restart-rabbit --restart-mysql` on master Node
  8. Deploy changes
  9. scp contrail-5.0-5.0.1-1-5.noarch.rpm root@10.109.0.2:/tmp
  10. fuel plugins --update /tmp/contrail-5.0-5.0.1-1-5.noarch.rpm (as a workaround to bug [4])
  11. start update to 9.2 [5]
  12. cd /etc/yum.repos.d/
  13.vim mos92-updates.repo
  14.switch update mechanism in repo-url to snapshots-case, and use MOS_CENTOS_PROPOSED_MIRROR_ID=proposed-2017-01-28-114420 from snap 822 (rc2)
  15. continue updating to 9.2 [6]
  16.replace step 4 in above guide by following command
ansible-playbook playbooks/mos9_prepare_env.yml -e '
{"env_id":1, "snapshot_repo":"snapshots/9.0-2017-01-28-114420", "snapshot_suite":"mos9.0-proposed" }'
  17.check that's above snap-repo matched with repo-mos-updates in fuel UI
  18. go to step 9(from guide), fuel2 update --env 1 install --repos mos9.2-updates
  20. failed to deploy
  21. redeploy with disabled Security TLS(as a workaround to [8])
  22. step 10 from guide (upgrade kernels)
  23. restart all nodes (using ansible)
  24. check kernel-versions on nodes

Expected results:
successful deploy and continue updating env

Actual result:
in fuel UI there was deploy changes button and when you push it, deploy failed on task
[contrail-compute-vrouter/9]

log from compute cinder = * (/Stage[main]/Contrail::Compute::Vrouter/Package[contrail-vrouter-dkms]/ensure) change from purged to present failed: Execution of '/usr/bin/apt-get q -y -o DPkg::Options::=-force-confold -o APT::Get::AllowUnauthenticated=1 install contrail-vrouter-dkms' returned 100: Reading package lists...*
installed plugins: Contrail 5.0.0(updated to 5.0.1), LDAP 3.0.1
link to diagnostic snapshot: [7]

[1] http://plugins.mirantis.com/repository/l/d/ldap/ldap-3.0-3.0.1-1.noarch.rpm
[2] CI: http://jenkins-tpi.bud.mirantis.net:8080/view/9.0-custom/job/9.0.contrail.5.0.0.custom.dev/8/console
[3] http://docs.openstack.org/developer/fuel-docs/userdocs/fuel-install-guide/update-fuel.html#update-fuel
[4]https://bugs.launchpad.net/fuel/+bug/1658652
[5]https://docs.mirantis.com/openstack/fuel/fuel-master/release-notes/update-product/update-prerequisites-9-2.html
[6]https://docs.mirantis.com/openstack/fuel/fuel-master/release-notes/update-product/update-env-9-2.html#update-env-9-2
[7]https://drive.google.com/open?id=0B-AO_niPlWzFOHFKdTBaNDZDcG8
[8]https://bugs.launchpad.net/fuel-plugin-contrail/+bug/1660530

Changed in fuel:
importance: Undecided → Medium
milestone: none → 9.x-updates
vnaumov (vnaumov-b)
description: updated
Changed in fuel:
importance: Medium → High
summary: - [9.2] [updates] unexpected deploy changes
+ [9.2] [updates][ui] unexpected deploy changes
tags: added: release-notes
vnaumov (vnaumov-b)
summary: - [9.2] [updates][ui] unexpected deploy changes
+ [9.2] [updates] "deploy changes" possibility still active after all
+ updates
summary: - [9.2] [updates] "deploy changes" possibility still active after all
- updates
+ [9.2][updates][ui] unexpected deploy changes
Revision history for this message
Ruslan Khozinov (rkhozinov) wrote : Re: [9.2][updates][ui] unexpected deploy changes

I've investigated the issue and I've found the root cause - it's an empty Packages.gz file for
http://10.109.0.2:8080/plugins/contrail-5.0/repositories/ubuntu/

in /var/www/nailgun/plugins/contrail-5.0/repositories/ubuntu/Packages.gz

It seems, like the step:
 dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz

was missed by puppet manifests

Revision history for this message
Ruslan Khozinov (rkhozinov) wrote :

@ipolliul Should we execute install.sh script during update the contrail plugins from 5.0.0 up to 5.0.1 ?

Changed in fuel:
assignee: nobody → Illia Polliul (ipolliul)
Revision history for this message
Illia Polliul (ipolliul) wrote :

Yes, looks like upgrading plugin rewrites Packages.gz, so need to add step with running install.sh after plugin upgrade.

vnaumov (vnaumov-b)
summary: - [9.2][updates][ui] unexpected deploy changes
+ [9.2][updates][ui] failed on task [contrail-compute-vrouter/9]
summary: - [9.2][updates][ui] failed on task [contrail-compute-vrouter/9]
+ [9.2][updates] contrail5.0.1 plugin's packages couldn't be installed
+ from the plugin repository
Revision history for this message
vnaumov (vnaumov-b) wrote :
Changed in fuel:
status: New → Fix Committed
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to mos/mos-docs (master)

Reviewed: https://review.fuel-infra.org/30297
Submitter: Mariia Zlatkova <email address hidden>
Branch: master

Commit: 325ae9c9a9517bfd03c46e5040669aaaa545e2e9
Author: Evgeny Konstantinov <email address hidden>
Date: Thu Feb 2 14:20:10 2017

Add contrail DPDK known issue to 9.2 relnotes

Change-Id: I1917954bfde1cbc7c92b000f9a2bc949e5dd88d4
Related-Bug: #1649889
Closes-Bug: #1661174

vnaumov (vnaumov-b)
Changed in fuel:
status: Fix Committed → Fix Released
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to mos/mos-docs (stable/9.2)

Fix proposed to branch: stable/9.2
Change author: Evgeny Konstantinov <email address hidden>
Review: https://review.fuel-infra.org/30426

Changed in fuel:
assignee: Illia Polliul (ipolliul) → nobody
Changed in fuel-plugin-contrail:
status: New → Fix Released
importance: Undecided → Medium
importance: Medium → High
milestone: none → 5.0.1
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to mos/mos-docs (stable/9.2)

Reviewed: https://review.fuel-infra.org/30426
Submitter: Mariia Zlatkova <email address hidden>
Branch: stable/9.2

Commit: 59645425f23cb2afafbcfb4c817c410a1cb295b7
Author: Evgeny Konstantinov <email address hidden>
Date: Thu Feb 2 14:24:23 2017

Add contrail DPDK known issue to 9.2 relnotes

Change-Id: I1917954bfde1cbc7c92b000f9a2bc949e5dd88d4
Related-Bug: #1649889
Closes-Bug: #1661174
(cherry picked from commit 325ae9c9a9517bfd03c46e5040669aaaa545e2e9)

tags: added: release-notes-done
removed: release-notes
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.