SM based storage provisioning may fail sometimes as dpkg gets interrupted

Bug #1425683 reported by Vinod Nair
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Fix Committed
High
Dheeraj Gautam
R2.1
Fix Committed
High
Dheeraj Gautam

Bug Description

Some times SM bases storage provisioning may fail as dpkg is getting interrupted on its own on some nodes

Seen in Ubuntu 12.04 icehoue 210 Build 39

l::Profile::Common/Contrail::Common/Contrail::Lib::Contrail-setup-repo[Storage_12_39]/Exec[update-sources-list-Storage_12_39]/returns: E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
Error: sed -i "/deb http:\/\/10.87.132.145\/contrail\/repo\/Storage_12_39 .\//d" /etc/apt/sources.list && echo "deb http://10.87.132.145/contrail/repo/Storage_12_39 ./"|cat - /etc/apt/sources.list > /tmp/out && mv /tmp/out /etc/apt/sources.list && apt-get update returned 100 instead of one of [0]
Error: /Stage[first]/Contrail::Profile::Common/Contrail::Common/Contrail::Lib::Contrail-setup-repo[Storage_12_39]/Exec[update-sources-list-Storage_12_39]/returns: change from notrun to 0 failed: sed -i "/deb http:\/\/10.87.132.145\/contrail\/repo\/Storage_12_39 .\//d" /etc/apt/sources.list && echo "deb http://10.87.132.145/contrail/repo/Storage_12_39 ./"|cat - /etc/apt/sources.list > /tmp/out && mv /tmp/out /etc/apt/sources.list && apt-get update returned 100 instead of one of [0]
Notice: **** contrail - contrail_repo_type = contrail-ubuntu-packagecontrail-ubuntu-storage-repo

Workaround is to run dpkg --configure -a on the node where provision has failed

Changed in juniperopenstack:
importance: Undecided → High
information type: Proprietary → Public
Revision history for this message
Dheeraj Gautam (dgautam) wrote :

This issue has been fixed in R2.11 under different bug.
Commit ID.
https://github.com/Juniper/contrail-puppet/commit/af2aa5f9b9ed00eda11d14bfafc4349525ce7a4b

Changed in juniperopenstack:
status: New → Fix Committed
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.