Python-lxml is not installed on machine which has roles control and database.

Bug #1358208 reported by Bharat Kumar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R1.1
Fix Released
Undecided
Raj Reddy
Trunk
Fix Released
Critical
Raj Reddy

Bug Description

lxml is not installed on machine which has roles control and Database, on config and compute nodes it is installed.

Logs:
==========
root@nodec58:~# contrail-status
Traceback (most recent call last):
  File "/usr/bin/contrail-status", line 14, in <module>
    from lxml import etree
ImportError: No module named lxml <<<<<<<<<<<<<

root@nodec58:~# dpkg -l | grep lxml
root@nodec58:~# dpkg -l | grep lxml

root@nodec58:~# apt-cache rdepends python-lxml
python-lxml
Reverse Depends:
  python-docutils
  python-maas-provisioningserver
  python-django-maas
  python-troveclient
  python-nova
  python-ncclient
  python-keystone
  python-glance
  python-cinder
  contrail-config
  contrail-analytics
root@nodec58:~#

Config node:
===========
root@nodeg21:~# dpkg -l | grep lxml
ii python-lxml 3.3.1-1contrail1 pythonic binding for the libxml2 and libxslt libraries
root@nodeg21:~#

Compute Node:
============
root@nodeg17:~# dpkg -l | grep lxml
ii python-lxml 3.3.1-1contrail1 pythonic binding for the libxml2 and libxslt libraries
root@nodeg17:~#

root@nodeg17:~# apt-cache rdepends python-lxml
python-lxml
Reverse Depends:
  python-docutils
  python-maas-provisioningserver
  python-django-maas
  python-troveclient
  python-nova
  python-ncclient
  python-keystone
  python-glance
  python-cinder
  contrail-config
  contrail-analytics

Bharat Kumar (pbharat)
summary: - lxml is not installed on machine which has roles control and database.
+ Python-lxml is not installed on machine which has roles control and
+ database.
description: updated
description: updated
Revision history for this message
Bharat Kumar (pbharat) wrote :

Issue is seen with R1.10 Build #18 Deb

Changed in juniperopenstack:
assignee: nobody → Raj Reddy (rajreddy)
milestone: r1.10-beta → r1.10-fcs
tags: added: blocker
Revision history for this message
rishi verma (rishiv) wrote :

Seeing more issues with packaging on compute node too.

root@a6s19:~# contrail-status
Traceback (most recent call last):
  File "/usr/bin/contrail-status", line 12, in <module>
    import requests
ImportError: No module named requests <<<<<<<<<<<<<<<
root@a6s19:~#

root@nodea4:~#
root@nodea4:~# contrail-status
Traceback (most recent call last):
  File "/usr/bin/contrail-status", line 12, in <module>
    import requests
ImportError: No module named requests <<<<<<<<<<

root@nodea4:~#
root@nodea4:~#

After installing requests:
========================

root@nodea4:~#
root@nodea4:~# contrail-status
Traceback (most recent call last):
  File "/usr/bin/contrail-status", line 14, in <module>
    from lxml import etree
ImportError: No module named lxml <<<<<<<<<<<<<<
root@nodea4:~#

root@nodea4:~#
root@nodea4:~# dpkg -l | grep contrail
ii contrail-fabric-utils 1.10-18 Contrail Fabric Utilities for cluster management
ii contrail-install-packages 1.10-18~havana Contrail Installer Packages - Container of debian packages
ii contrail-setup 1.10-18 Contrail Setup package with scripts for provisioning
root@nodea4:~#

Revision history for this message
Bharat Kumar (pbharat) wrote :

On Build #19 not seeing this issue. Is this bug fixed?

Logs:
======
root@nodec58:~# contrail-status
== Contrail Control ==
supervisor-control: active
contrail-control active
contrail-control-nodemgr active
contrail-dns active
contrail-named active

== Contrail Database ==
supervisord-contrail-database:active
contrail-database active
contrail-database-nodemgr active

root@nodec58:~# dpkg -l | grep lxml
ii python-lxml 3.3.1-1contrail1 pythonic binding for the libxml2 and libxslt libraries
root@nodec58:~# apt-cache rdepends python-lxml
python-lxml
Reverse Depends:
  python-docutils
  python-maas-provisioningserver
  python-django-maas
  python-troveclient
  python-nova
  python-ncclient
  python-keystone
  python-glance
  python-cinder
  contrail-setup
  contrail-config
  contrail-analytics
root@nodec58:~#

Revision history for this message
Raj Reddy (rajreddy) wrote : Re: [Bug 1358208] Re: Python-lxml is not installed on machine which has roles control and database.
Download full text (3.4 KiB)

this was fixed yesterday, can you please check with today's image..

-
Raj

On Aug 19, 2014, at 12:10 AM, rishi verma <email address hidden>
 wrote:

> Seeing more issues with packaging on compute node too.
>
> root@a6s19:~# contrail-status
> Traceback (most recent call last):
> File "/usr/bin/contrail-status", line 12, in <module>
> import requests
> ImportError: No module named requests <<<<<<<<<<<<<<<
> root@a6s19:~#
>
> root@nodea4:~#
> root@nodea4:~# contrail-status
> Traceback (most recent call last):
> File "/usr/bin/contrail-status", line 12, in <module>
> import requests
> ImportError: No module named requests <<<<<<<<<<
>
> root@nodea4:~#
> root@nodea4:~#
>
>
> After installing requests:
> ========================
>
> root@nodea4:~#
> root@nodea4:~# contrail-status
> Traceback (most recent call last):
> File "/usr/bin/contrail-status", line 14, in <module>
> from lxml import etree
> ImportError: No module named lxml <<<<<<<<<<<<<<
> root@nodea4:~#
>
>
> root@nodea4:~#
> root@nodea4:~# dpkg -l | grep contrail
> ii contrail-fabric-utils 1.10-18 Contrail Fabric Utilities for cluster management
> ii contrail-install-packages 1.10-18~havana Contrail Installer Packages - Container of debian packages
> ii contrail-setup 1.10-18 Contrail Setup package with scripts for provisioning
> root@nodea4:~#
>
> --
> You received this bug notification because you are a member of Contrail
> Systems engineering, which is subscribed to Juniper Openstack.
> https://bugs.launchpad.net/bugs/1358208
>
> Title:
> Python-lxml is not installed on machine which has roles control and
> database.
>
> Status in Juniper Openstack distribution:
> New
>
> Bug description:
> lxml is not installed on machine which has roles control and Database,
> on config and compute nodes it is installed.
>
> Logs:
> ==========
> root@nodec58:~# contrail-status
> Traceback (most recent call last):
> File "/usr/bin/contrail-status", line 14, in <module>
> from lxml import etree
> ImportError: No module named lxml <<<<<<<<<<<<<
>
> root@nodec58:~# dpkg -l | grep lxml
> root@nodec58:~# dpkg -l | grep lxml
>
> root@nodec58:~# apt-cache rdepends python-lxml
> python-lxml
> Reverse Depends:
> python-docutils
> python-maas-provisioningserver
> python-django-maas
> python-troveclient
> python-nova
> python-ncclient
> python-keystone
> python-glance
> python-cinder
> contrail-config
> contrail-analytics
> root@nodec58:~#
>
>
> Config node:
> ===========
> root@nodeg21:~# dpkg -l | grep lxml
> ii python-lxml 3.3.1-1contrail1 pythonic binding for the libxml2 and libxslt libraries
> root@nodeg21:~#
>
> Compute Node:
> ============
> root@nodeg17:~# dpkg -l | grep lxml
> ii python-lxml 3.3.1-1contrail1 pythonic binding for the libxml2 and libxslt libraries
> root@nodeg17:~#
>
> root@nodeg17:~# apt-cache rdepends python-lxml
> python-lxml
> Reverse Depends:
> python-docutils
> python-maas-provision...

Read more...

Raj Reddy (rajreddy)
Changed in juniperopenstack:
status: New → Fix Committed
Revision history for this message
Bharat Kumar (pbharat) wrote :

This bug is fixed, hence marking it as Fix Released.

Revision history for this message
Bharat Kumar (pbharat) wrote :

Tested with Build #21, R1.1 branch

Logs:
===
root@nodec58:~# contrail-status
== Contrail Control ==
supervisor-control: active
contrail-control active
contrail-control-nodemgr active
contrail-dns active
contrail-named active

== Contrail Database ==
supervisord-contrail-database:active
contrail-database active
contrail-database-nodemgr active

Changed in juniperopenstack:
status: Fix Committed → Fix Released
Revision history for this message
Raj Reddy (rajreddy) wrote :

fixed through

commit 18e57fe8ec90871c9ebf0acd4b603361492a5370
Author: Raj Reddy <email address hidden>
Date: Mon Aug 18 18:14:18 2014 -0700

    python-contrail requires a couple more python packages

    Change-Id: I3c735b8744a9437146e5c3c05be0ffecee2f45e6
    Closes-Bug: 1358208

commit 153d16537a80c77d4ac56f2160351e2d2d0d9f9b
Author: Raj Reddy <email address hidden>
Date: Mon Aug 18 18:11:37 2014 -0700

    correct some dependencies so contrail-status works in individual node roles

    Change-Id: I4ebd36a1a4e2197f673a04d860622a3934dd26a5
    Closes-Bug: 1358208

information type: Private → Public
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.