SM: centos-kilo-build12: contrail HA provision fails at openstack-started due to failed dependency of contrail-openstack at python2-cryptography

Bug #1649596 reported by Sudheendra Rao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.1.1.x
Won't Fix
Critical
kamlesh parmar
R3.2
Fix Committed
Critical
kamlesh parmar
Trunk
Fix Committed
Critical
kamlesh parmar

Bug Description

SM centos kilo provision of contrail HA is failing at openstack-started due to failed dependency of contrail-openstack on build12 of R3.2.

The setup is in failed state:
Control Nodes : [u'nodec28', u'nodeg37', u'nodec10']
Compute Nodes : [u'nodei17', u'nodei19', u'nodei20']
Openstack Node : [u'nodec28']
WebUI Node : [nodec28, nodeg37, nodec10 ]
Analytics Nodes : [u'nodec28', u'nodeg37', u'nodec10']
Database Nodes : [u'nodec28', u'nodeg37', u'nodec10']

SM: nodej3.englab.juniper.net

root@nodej3:~# server-manager status server --cluster_id cluster5sanity
{
    "server": [
        {
            "id": "nodec28",
            "ip_address": "10.204.217.13",
            "mac_address": "00:25:90:C3:08:82",
            "status": "openstack_started" <<<<<<<
        },
        {
            "id": "nodeg37",
            "ip_address": "10.204.217.77",
            "mac_address": "00:25:90:C5:60:E0",
            "status": "database_completed"
        },
        {
            "id": "nodec10",
            "ip_address": "10.204.217.176",
            "mac_address": "00:25:90:C4:83:E4",
            "status": "database_completed"
        },
        {
            "id": "nodei17",
            "ip_address": "10.204.217.129",
            "mac_address": "00:25:90:E7:82:5A",
            "status": "provision_started"
        },
        {
            "id": "nodei19",
            "ip_address": "10.204.217.131",
            "mac_address": "00:25:90:E7:7E:74",
            "status": "provision_started"
        },
        {
            "id": "nodei20",
            "ip_address": "10.204.217.132",
            "mac_address": "00:25:90:E7:7F:B0",
            "status": "provision_started"
        }
    ]
}
root@nodej3:~#

log info from syslog:
Dec 13 04:45:31 nodec28 puppet-agent[19095]: Could not update: Execution of '/usr/bin/yum -d 0 -e 0 -y install contrail-openstack' returned 1: Error: Package: python2-cryptography-1.3.1-3.el7.x86_64 (base)
Dec 13 04:45:31 nodec28 puppet-agent[19095]: Requires: python-cffi >= 1.4.1
Dec 13 04:45:31 nodec28 puppet-agent[19095]: Available: python-cffi-0.8.6-1.el7.x86_64 (centos71kilo12)
Dec 13 04:45:31 nodec28 puppet-agent[19095]: python-cffi = 0.8.6-1.el7
Dec 13 04:45:31 nodec28 puppet-agent[19095]: You could try using --skip-broken to work around the problem
Dec 13 04:45:31 nodec28 puppet-agent[19095]: You could try running: rpm -Va --nofiles --nodigest
Dec 13 04:45:31 nodec28 puppet-agent[19095]: Wrapped exception:
Dec 13 04:45:31 nodec28 puppet-agent[19095]: Execution of '/usr/bin/yum -d 0 -e 0 -y install contrail-openstack' returned 1: Error: Package: python2-cryptography-1.3.1-3.el7.x86_64 (base)
Dec 13 04:45:31 nodec28 puppet-agent[19095]: Requires: python-cffi >= 1.4.1
Dec 13 04:45:31 nodec28 puppet-agent[19095]: Available: python-cffi-0.8.6-1.el7.x86_64 (centos71kilo12)
Dec 13 04:45:31 nodec28 puppet-agent[19095]: python-cffi = 0.8.6-1.el7
Dec 13 04:45:31 nodec28 puppet-agent[19095]: You could try using --skip-broken to work around the problem
Dec 13 04:45:31 nodec28 puppet-agent[19095]: You could try running: rpm -Va --nofiles --nodigest
Dec 13 04:45:31 nodec28 puppet-agent[19095]: (/Stage[openstack]/Contrail::Profile::Openstack_controller/Package[contrail-openstack]/ensure) change from absent to latest failed: Could not update: Execution of '/usr/bin/yum -d 0 -e 0 -y install contrail-openstack' returned 1: Error: Package: python2-cryptography-1.3.1-3.el7.x86_64 (base)
Dec 13 04:45:31 nodec28 puppet-agent[19095]: (/Stage[openstack]/Contrail::Profile::Openstack_controller/Package[contrail-openstack]/ensure) Requires: python-cffi >= 1.4.1
Dec 13 04:45:31 nodec28 puppet-agent[19095]: (/Stage[openstack]/Contrail::Profile::Openstack_controller/Package[contrail-openstack]/ensure) Available: python-cffi-0.8.6-1.el7.x86_64 (centos71kilo12)
Dec 13 04:45:31 nodec28 puppet-agent[19095]: (/Stage[openstack]/Contrail::Profile::Openstack_controller/Package[contrail-openstack]/ensure) python-cffi = 0.8.6-1.el7
Dec 13 04:45:31 nodec28 puppet-agent[19095]: (/Stage[openstack]/Contrail::Profile::Openstack_controller/Package[contrail-openstack]/ensure) You could try using --skip-broken to work around the problem
Dec 13 04:45:31 nodec28 puppet-agent[19095]: (/Stage[openstack]/Contrail::Profile::Openstack_controller/Package[contrail-openstack]/ensure) You could try running: rpm -Va --nofiles --nodigest
Dec 13 04:45:31 nodec28 puppet-agent[19095]: (/Stage[openstack]/Memcached/Package[memcached]) Dependency Package[contrail-openstack] has failures: true
Dec 13 04:45:31 nodec28 puppet-agent[19095]: (/Stage[openstack]/Memcached/Package[memcached]) Skipping because of failed dependencies
Dec 13 04:45:31 nodec28 puppet-agent[19095]: (/Stage[openstack]/Memcached/File[/etc/sysconfig/memcached]) Dependency Package[contrail-openstack] has failures: true
Dec 13 04:45:31 nodec28 puppet-agent[19095]: (/Stage[openstack]/Memcached/File[/etc/sysconfig/memcached]) Skipping because of failed dependencies
Dec 13 04:45:31 nodec28 puppet-agent[19095]: (/Stage[openstack]/Memcached/Service[memcached]) Dependency Package[contrail-openstack] has failures: true
Dec 13 04:45:31 nodec28 puppet-agent[19095]: (/Stage[openstack]/Memcached/Service[memcached]) Skipping because of failed dependencies
Dec 13 04:45:31 nodec28 puppet-agent[19095]: (/Stage[openstack]/Mysql::Server/Anchor[mysql::server::start]) Dependency Package[contrail-openstack] has failures: true
Dec 13 04:45:31 nodec28 puppet-agent[19095]: (/Stage[openstack]/Mysql::Server/Anchor[mysql::server::start]) Skipping because of failed dependencies
Dec 13 04:45:31 nodec28 puppet-agent[19095]: (/Stage[openstack]/Mysql::Server::Config/File[mysql-config-file]) Dependency Package[contrail-openstack] has failures: true
Dec 13 04:45:31 nodec28 puppet-agent[19095]: (/Stage[openstack]/Mysql::Server::Config/File[mysql-config-file]) Skipping because of failed dependencies

tags: added: blocker
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.2

Review in progress for https://review.opencontrail.org/27229
Submitter: kamlesh parmar (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/27230
Submitter: kamlesh parmar (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/27229
Committed: http://github.org/Juniper/contrail-puppet/commit/3e499eba5b76f22e8c04bb0d49e0251e6b17309d
Submitter: Zuul (<email address hidden>)
Branch: R3.2

commit 3e499eba5b76f22e8c04bb0d49e0251e6b17309d
Author: Kamlesh Parmar <email address hidden>
Date: Tue Dec 13 18:20:24 2016 -0800

Partial-Bug: #1649596
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

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/27230
Committed: http://github.org/Juniper/contrail-puppet/commit/2ef698b75f60036cdd0d4e421d90339e5ef75ae0
Submitter: Zuul (<email address hidden>)
Branch: master

commit 2ef698b75f60036cdd0d4e421d90339e5ef75ae0
Author: Kamlesh Parmar <email address hidden>
Date: Tue Dec 13 18:20:24 2016 -0800

Partial-Bug: #1649596
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

Revision history for this message
Abhay Joshi (abhayj) wrote : Re: SM: centos-kilo-build12: contrail HA provision fails at openstack-started due to failed dependency of contrail-openstack

Marking this bug as closed. Was submitted as partial fix as change was needed in fab too. That change in fab has been submitted by another bug. Hence marking this as fixed.

Revision history for this message
sundarkh (sundar-kh) wrote :

Seen with Centos71/kilo R3.1.1.x build 1

/var/log/messages on the target
---------------------------------

Jan 4 23:56:48 nodeh8 puppet-agent[16105]: Could not update: Execution of '/usr/bin/yum -d 0 -e 0 -y install contrail-openstack' returned 1: Error: Package: python2-cryptography-1.3.1-3.el7.x86_64 (base)

Jan 4 23:56:48 nodeh8 puppet-agent[16105]: Requires: python-cffi >= 1.4.1

Jan 4 23:56:48 nodeh8 puppet-agent[16105]: Available: python-cffi-0.8.6-1.el7.x86_64 (centos71kilo1)

Jan 4 23:56:48 nodeh8 puppet-agent[16105]: python-cffi = 0.8.6-1.el7

Jan 4 23:56:48 nodeh8 puppet-agent[16105]: You could try using --skip-broken to work around the problem

Jan 4 23:56:48 nodeh8 puppet-agent[16105]: You could try running: rpm -Va --nofiles --nodigest

Jan 4 23:56:48 nodeh8 puppet-agent[16105]: Wrapped exception:

Jan 4 23:56:48 nodeh8 puppet-agent[16105]: Execution of '/usr/bin/yum -d 0 -e 0 -y install contrail-openstack' returned 1: Error: Package: python2-cryptography-1.3.1-3.el7.x86_64 (base)

Jan 4 23:56:48 nodeh8 puppet-agent[16105]: Requires: python-cffi >= 1.4.1

Jan 4 23:56:48 nodeh8 puppet-agent[16105]: Available: python-cffi-0.8.6-1.el7.x86_64 (centos71kilo1)

Jan 4 23:56:48 nodeh8 puppet-agent[16105]: python-cffi = 0.8.6-1.el7

Jan 4 23:56:48 nodeh8 puppet-agent[16105]: You could try using --skip-broken to work around the problem

Jan 4 23:56:48 nodeh8 puppet-agent[16105]: You could try running: rpm -Va --nofiles --nodigest

Jan 4 23:56:48 nodeh8 puppet-agent[16105]: (/Stage[openstack]/Contrail::Profile::Openstack_controller/Package[contrail-openstack]/ensure) change from absent to latest failed: Could not update: Execution of '/usr/bin/yum -d 0 -e 0 -y install contrail-openstack' returned 1: Error: Package: python2-cryptography-1.3.1-3.el7.x86_64 (base)

Trying to install the package manually
---------------------------------------

Trying Manually
[root@nodeh8 ~]# /usr/bin/yum -d 0 -e 0 -y install contrail-openstack

Error: Package: python2-cryptography-1.3.1-3.el7.x86_64 (base)

           Requires: python-cffi >= 1.4.1

           Available: python-cffi-0.8.6-1.el7.x86_64 (centos71kilo1)

               python-cffi = 0.8.6-1.el7

 You could try using --skip-broken to work around the problem

 You could try running: rpm -Va --nofiles --nodigest

[root@nodeh8 ~]#

summary: SM: centos-kilo-build12: contrail HA provision fails at openstack-
- started due to failed dependency of contrail-openstack
+ started due to failed dependency of contrail-openstack at
+ python2-cryptography
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.1.1.x

Review in progress for https://review.opencontrail.org/29731
Submitter: kamlesh parmar (<email address hidden>)

Revision history for this message
Abhay Joshi (abhayj) wrote :

No plan to fix in 3.1.1.x.

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.