Skip to Content.
Sympa Menu

perfsonar-user - [perfsonar-user] Perfsonar 4.0 Docker perfsonar-psb_to_esmond.service start failure

Subject: perfSONAR User Q&A and Other Discussion

List archive

[perfsonar-user] Perfsonar 4.0 Docker perfsonar-psb_to_esmond.service start failure


Chronological Thread 
  • From: "John Tai (johntai)" <>
  • To: "" <>
  • Cc: Andrew Lake <>
  • Subject: [perfsonar-user] Perfsonar 4.0 Docker perfsonar-psb_to_esmond.service start failure
  • Date: Thu, 17 Aug 2017 03:15:45 +0000
  • Accept-language: en-US
  • Ironport-phdr: 9a23:qVmPPx/eqw2d6f9uRHKM819IXTAuvvDOBiVQ1KB32+4cTK2v8tzYMVDF4r011RmSDNWds6oMotGVmpioYXYH75eFvSJKW713fDhBt/8rmRc9CtWOE0zxIa2iRSU7GMNfSA0tpCnjYgBaF8nkelLdvGC54yIMFRXjLwp1Ifn+FpLPg8it2e2//57ebx9UiDahfLh/MAi4oQLNu8cMnIBsMLwxyhzHontJf+RZ22ZlLk+Nkhj/+8m94odt/zxftPw9+cFAV776f7kjQrxDEDsmKWE169b1uhTFUACC+2ETUmQSkhpPHgjF8BT3VYr/vyfmquZw3jSRMMvrRr42RDui9b9mRh/2hikaKz43/mLZis1sg61Uux+uvQBzz5LObY2JKPZyYKXQds4aS2pbWcZRUjRMDo24YYsID+oBO/tToZfnqFsPsBCyAQusBOTvyj9Omn/5x6w63+EvHQrb2wEgHdUOsHTSrNXpLqgSUPu4w7XJzTXYc/xW3i3x55TPchAkuPyBW697f8TWyUkqDQzFj1OQpJTkPzOTyuQCrXKb7+x+WuKzlWIrsR9+rSWyxss0hYnJh54VylDZ9Spi2oo6Odq4SEt9bNW5E5VQrzmXO5Z0T84sWW1ltiQ3xqcFtJO6ZiQHyoorywbCZ/CbaYSE/xLuWeeLLTtlhH9od6iziwus/US80uHwS8u53VhQoidLk9TArHIA2wbO5sWHTPZ2412v1iyV1w/J7+FJOUA0mrTfK54m2rMwjIYcvlnFHiPvmUX2lKiWdl84+uSx9ujreKnppp6HN4BojQHyKLghmsu6AeggMwgOWXaU+fik2bH+/0D0Tq9Gg/M0n6XDs53XJN4Xq6ynDwNN14Ys8Re/DzOo0NQCmnkHKUpIeBCAj4jpPVHOPOr3DfakjluwkTdr3OzJPrr7DprRKXjDla/tfaxh5E5E1Aoz0ddf6opMCr4fOvLzVFTxtNveDhAjKQy42vvnCM5j2YMEQm+PBq6ZMLjOsV+T+O4jOeiMZIkJuDnjMfgl4eDhjWMnlVMHY6amwIYXOziEGaEsO0iDb2HrhN4bVHoRsxAWTer2hUeEXCIJIXu+Quh0sik2Eoy9CoHKXMWwm7Gb9Ca9ApBMYG1aUBaBHWq+JKueXPJZIgCVIskprjUFHfijTI8nyRiv9UWyn7hgLuzI8ywwvpP4398z7OrWw0JhvQdoBtiQhjneB1p/mXkFEmc7

Hi PerfSonar Experts!

 

I’m trying to build a docker container based on centos7 and perfsonar-toolkit and have a perfsonar-psb_to_esmond.service start failure related to the /etc/init.d/perfsonar-psb_to_esmond service startup script call to

MA_KEY=`python esmond/manage.py add_api_key_user perfsonar | grep "Key:" | cut -f2 -d " "`

 

Which fails with:

perfsonar-psb_to_esmond: django.db.utils.OperationalError: FATAL:  password authentication failed for user "esmond"

 

Detail messages below. Also included is the Dockerfile being used.

 

“docker run -it -p7443:443 -v /var/run  --privileged=true test/perfsonar”  is used to run the container.

 

 

We have a KVM equivalent based on the provided pS-Toolkit-4.0 CentOS7-FullInstall-x86_64 iso.

 

I’m stumped on what is missing in the docker version which is causing the authentication failure.

I did find a previously created docker perfsonar but it’s a bit out-of-date and it has a different startup failure as well (https://github.com/MigielDV/perfsonar)

 

Any suggestions are appreciated!

 

// Error listed in “messages”

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: System check identified some issues:

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: WARNINGS:

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: api.IfRef.ipAddr: (fields.W900) IPAddressField has been deprecated. Support for it (except in historical migrations) will be removed in Django 1.9.

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: HINT: Use GenericIPAddressField instead.

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: api.LSPOpStatus.dstAddr: (fields.W900) IPAddressField has been deprecated. Support for it (except in historical migrations) will be removed in Django 1.9.

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: HINT: Use GenericIPAddressField instead.

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: api.LSPOpStatus.srcAddr: (fields.W900) IPAddressField has been deprecated. Support for it (except in historical migrations) will be removed in Django 1.9.

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: HINT: Use GenericIPAddressField instead.

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: Traceback (most recent call last):

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: File "esmond/manage.py", line 14, in <module>

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: execute_from_command_line(sys.argv)

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: File "/usr/lib/esmond/lib/python2.7/site-packages/django/core/management/__init__.py", line 351, in execute_from_command_line

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: utility.execute()

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: File "/usr/lib/esmond/lib/python2.7/site-packages/django/core/management/__init__.py", line 343, in execute

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: self.fetch_command(subcommand).run_from_argv(self.argv)

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: File "/usr/lib/esmond/lib/python2.7/site-packages/django/core/management/base.py", line 394, in run_from_argv

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: self.execute(*args, **cmd_options)

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: File "/usr/lib/esmond/lib/python2.7/site-packages/django/core/management/base.py", line 445, in execute

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: output = self.handle(*args, **options)

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: File "/usr/lib/esmond/esmond/api/management/commands/add_api_key_user.py", line 36, in handle

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: u = User.objects.get(username=user)

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: File "/usr/lib/esmond/lib/python2.7/site-packages/django/db/models/manager.py", line 127, in manager_method

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: return getattr(self.get_queryset(), name)(*args, **kwargs)

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: File "/usr/lib/esmond/lib/python2.7/site-packages/django/db/models/query.py", line 328, in get

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: num = len(clone)

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: File "/usr/lib/esmond/lib/python2.7/site-packages/django/db/models/query.py", line 144, in __len__

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: self._fetch_all()

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: File "/usr/lib/esmond/lib/python2.7/site-packages/django/db/models/query.py", line 965, in _fetch_all

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: self._result_cache = list(self.iterator())

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: File "/usr/lib/esmond/lib/python2.7/site-packages/django/db/models/query.py", line 238, in iterator

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: results = compiler.execute_sql()

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: File "/usr/lib/esmond/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 838, in execute_sql

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: cursor = self.connection.cursor()

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: File "/usr/lib/esmond/lib/python2.7/site-packages/django/db/backends/base/base.py", line 164, in cursor

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: cursor = self.make_cursor(self._cursor())

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: File "/usr/lib/esmond/lib/python2.7/site-packages/django/db/backends/base/base.py", line 135, in _cursor

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: self.ensure_connection()

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: File "/usr/lib/esmond/lib/python2.7/site-packages/django/db/backends/base/base.py", line 130, in ensure_connection

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: self.connect()

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: File "/usr/lib/esmond/lib/python2.7/site-packages/django/db/utils.py", line 97, in __exit__

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: six.reraise(dj_exc_type, dj_exc_value, traceback)

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: File "/usr/lib/esmond/lib/python2.7/site-packages/django/db/backends/base/base.py", line 130, in ensure_connection

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: self.connect()

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: File "/usr/lib/esmond/lib/python2.7/site-packages/django/db/backends/base/base.py", line 119, in connect

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: self.connection = self.get_new_connection(conn_params)

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: File "/usr/lib/esmond/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 176, in get_new_connection

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: connection = Database.connect(**conn_params)

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: File "/usr/lib/esmond/lib/python2.7/site-packages/psycopg2/__init__.py", line 164, in connect

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: conn = _connect(dsn, connection_factory=connection_factory, async=async)

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: django.db.utils.OperationalError: FATAL:  password authentication failed for user "esmond"

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: /usr/lib/perfsonar/scripts/psb_to_esmond.pl -d --pidfile=/var/run/psb_to_esmond.pid --logfile=/var/log/perfsonar/psb_to_esmond.log --user=perfsonar --group=perfsonar --statefile /var/lib/perfsonar/db_backups/psb_to_esmond.state --owmesh-dir /opt/perfsonar_ps/perfsonarbuoy_ma/etc --mapassword

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: Option mapassword requires an argument

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: clean_pSB_db.pl <options>

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: -h,--help                            displays this message.

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: --maxdays days                       maximum age (in days) of data to keep in database. Not valid for bwctl databases. Defaults to 90.

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: --maxmonths months                   maximum number of months to keep in database. Must be used for bwctl databases. Defaults to 3.

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: --dbtype type                        Indicates type of data in database. Valid value are 'owamp', 'bwctl', and 'traceroute'. Defaults to 'owamp'.

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: --dbuser user                        name of database user. Defaults to root.

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: --dbpassword password                password to access database. Defaults to empty string.

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: --dbhost host                        database host to access. Defaults to localhost.

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: --owmesh-dir dir                     location of owmesh.conf file with database username and password.

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: overrides dbuser, dbpassword, and dbhost.

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: --verbose                            increase amount of output from program

Aug 16 21:32:58 d5528c65188c perfsonar-psb_to_esmond: /etc/rc.d/init.d/perfsonar-psb_to_esmond start: perfSONAR MA Data Conversion could not be started

Aug 16 21:32:58 d5528c65188c systemd: perfsonar-psb_to_esmond.service: control process exited, code=exited status=3

Aug 16 21:32:58 d5528c65188c systemd: Failed to start SYSV: perfSONAR MA data conversion tool.

Aug 16 21:32:58 d5528c65188c systemd: Unit perfsonar-psb_to_esmond.service entered failed state.

Aug 16 21:32:58 d5528c65188c systemd: perfsonar-psb_to_esmond.service failed.

 

 

 

// Dockerfile

====

FROM centos7-systemd

 

# Base Perfsonar installs

RUN yum install -y epel-release

RUN yum install -y http://software.internet2.edu/rpms/el7/x86_64/main/RPMS/Internet2-repo-0.7-1.noarch.rpm

RUN yum clean all

RUN yum install -y perfsonar-toolkit

 

# Missing CentOs Utilities

RUN yum -y install traceroute mc net-tools ntp python-setuptools

RUN yum install -y ethtool

RUN yum clean all

 

RUN /usr/lib/perfsonar/scripts/configure_firewall install

RUN /usr/lib/perfsonar/scripts/service_watcher

 

CMD ["/usr/sbin/init"]

=====

 

Regards,

John

 

============

John Tai, Jr.

408-853-9540

 




Archive powered by MHonArc 2.6.19.

Top of Page