Skip to content

Commit

Permalink
Partial-Bug: #1649596
Browse files Browse the repository at this point in the history
The contrail-openstack package installation is failing due to python2-cryptography
present in the upstream base repo. That package obsoletes the python-cryptography
which is what contrial package provides. Disable the obsolete check so that higher
priority repo package is installed. contrail repo is higher priority.
Leaving bug partial as this need to be fixed in fab as well.

Change-Id: I870991adbe227fddd872a8b8dde689c179b89c16
  • Loading branch information
kamleshp committed Dec 14, 2016
1 parent 3f00258 commit 3e499eb
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
file { "/etc/yum.repos.d/cobbler-config.repo" :
ensure => present,
content => template("${module_name}/contrail-yum-repo.erb")
} ->
# add check_obsoletes flag off, for bug #1649596
exec { "/etc/yum/pluginconf.d/priorities.conf":
command => "echo 'check_obsoletes=1' >> /etc/yum/pluginconf.d/priorities.conf && echo exec-yum-priorities-fix >> /etc/contrail/exec-yum-pririties-fix.out",
provider => shell,
unless => "grep -qx exec-yum-priorities-fix /etc/contrail/exec-yum-pririties-fix.out",
logoutput => true
}
}
if ($operatingsystem == "Ubuntu") {
Expand Down

0 comments on commit 3e499eb

Please sign in to comment.