oslo_reports is an undeclared dependency

Bug #1473232 reported by Steven Dake
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Fix Released
Critical
Artur Zarzycki
Liberty
Fix Released
Critical
Steven Dake
Mitaka
Fix Released
Critical
Artur Zarzycki

Bug Description

We get an error 409 after heat-api fails the first time. This should probably be two bugs.

[sdake@bigiron tools]$ sudo docker logs 06
ERROR: keystone is not available @ http://192.168.1.100:5000/v2.0
ERROR: keystone is not available @ http://192.168.1.100:5000/v2.0
[sdake@bigiron tools]$ sudo docker logs 31
database is active @ 192.168.1.100
keystone is active @ http://192.168.1.100:5000/v2.0
using existing tenant admin (6cf3c771c231449ab300a1deeccec2fd)
creating new user heat
created user heat (35e1cd7e67bf4c09856cdd2c714011d8)
using existing role admin (66186308ee1c4dfc84ef3a676306d4b4)
removing role _member_ from user heat in tenant admin
adding role admin to user heat in tenant admin
created new service heat/orchestration (479b8b0ce23e498685e3f9cfa2bc2fb7)
created new endpoint internalurl=http://192.168.1.100:8004/v1/%(tenant_id)s, publicurl=http://192.168.1.100:8004/v1/%(tenant_id)s, adminurl=http://192.168.1.100:8004/v1/%(tenant_id)s (85e4afffbc4a40dcab1ea1f19cdc8780)
ERROR: openstack 'NoneType' object does not support item assignment
/usr/lib/python2.7/site-packages/keystoneclient/shell.py:64: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
  'python-keystoneclient.', DeprecationWarning)
+----------+----------------------------------+
| Property | Value |
+----------+----------------------------------+
| id | b60116c81f0841a197b49c126e8e9093 |
| name | heat_stack_user |
+----------+----------------------------------+
Traceback (most recent call last):
  File "/usr/bin/heat-api", line 36, in <module>
    from oslo_reports import guru_meditation_report as gmr
ImportError: No module named oslo_reports
database is active @ 192.168.1.100
keystone is active @ http://192.168.1.100:5000/v2.0
using existing tenant admin (6cf3c771c231449ab300a1deeccec2fd)
using existing user heat (35e1cd7e67bf4c09856cdd2c714011d8)
using existing role admin (66186308ee1c4dfc84ef3a676306d4b4)
user heat already has role admin in tenant admin
using existing service heat/orchestration (479b8b0ce23e498685e3f9cfa2bc2fb7)
deleting endpoint internalurl=http://192.168.1.100:8004/v1/%(tenant_id)s, publicurl=http://192.168.1.100:8004/v1/%(tenant_id)s, adminurl=http://192.168.1.100:8004/v1/%(tenant_id)s (85e4afffbc4a40dcab1ea1f19cdc8780)
created new endpoint internalurl=http://192.168.1.100:8004/v1/%(tenant_id)s, publicurl=http://192.168.1.100:8004/v1/%(tenant_id)s, adminurl=http://192.168.1.100:8004/v1/%(tenant_id)s (7b6a63d95c1f4b2e88471cc435473c2a)
ERROR: openstack 'NoneType' object does not support item assignment
/usr/lib/python2.7/site-packages/keystoneclient/shell.py:64: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
  'python-keystoneclient.', DeprecationWarning)
Conflict occurred attempting to store role - Duplicate Entry (HTTP 409) (Request-ID: req-032017e7-82ba-4ca0-bdc2-55ddb710d1c6)
database is active @ 192.168.1.100
keystone is active @ http://192.168.1.100:5000/v2.0
using existing tenant admin (6cf3c771c231449ab300a1deeccec2fd)
using existing user heat (35e1cd7e67bf4c09856cdd2c714011d8)
using existing role admin (66186308ee1c4dfc84ef3a676306d4b4)
user heat already has role admin in tenant admin
using existing service heat/orchestration (479b8b0ce23e498685e3f9cfa2bc2fb7)
deleting endpoint internalurl=http://192.168.1.100:8004/v1/%(tenant_id)s, publicurl=http://192.168.1.100:8004/v1/%(tenant_id)s, adminurl=http://192.168.1.100:8004/v1/%(tenant_id)s (7b6a63d95c1f4b2e88471cc435473c2a)
created new endpoint internalurl=http://192.168.1.100:8004/v1/%(tenant_id)s, publicurl=http://192.168.1.100:8004/v1/%(tenant_id)s, adminurl=http://192.168.1.100:8004/v1/%(tenant_id)s (aafa1b9d6af14c4b8a81130a35194c96)
ERROR: openstack 'NoneType' object does not support item assignment
/usr/lib/python2.7/site-packages/keystoneclient/shell.py:64: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
  'python-keystoneclient.', DeprecationWarning)
Conflict occurred attempting to store role - Duplicate Entry (HTTP 409) (Request-ID: req-f9105c83-b15c-4f52-a905-f690a47d4025)
database is active @ 192.168.1.100
keystone is active @ http://192.168.1.100:5000/v2.0
using existing tenant admin (6cf3c771c231449ab300a1deeccec2fd)
using existing user heat (35e1cd7e67bf4c09856cdd2c714011d8)
using existing role admin (66186308ee1c4dfc84ef3a676306d4b4)
user heat already has role admin in tenant admin
using existing service heat/orchestration (479b8b0ce23e498685e3f9cfa2bc2fb7)
deleting endpoint internalurl=http://192.168.1.100:8004/v1/%(tenant_id)s, publicurl=http://192.168.1.100:8004/v1/%(tenant_id)s, adminurl=http://192.168.1.100:8004/v1/%(tenant_id)s (aafa1b9d6af14c4b8a81130a35194c96)
created new endpoint internalurl=http://192.168.1.100:8004/v1/%(tenant_id)s, publicurl=http://192.168.1.100:8004/v1/%(tenant_id)s, adminurl=http://192.168.1.100:8004/v1/%(tenant_id)s (8408788b9ade41d18b8d63747821ab54)
ERROR: openstack 'NoneType' object does not support item assignment
/usr/lib/python2.7/site-packages/keystoneclient/shell.py:64: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
  'python-keystoneclient.', DeprecationWarning)
Conflict occurred attempting to store role - Duplicate Entry (HTTP 409) (Request-ID: req-3c945193-ca31-4bb2-a4f1-2ea2fcf5bff3)
database is active @ 192.168.1.100
keystone is active @ http://192.168.1.100:5000/v2.0
using existing tenant admin (6cf3c771c231449ab300a1deeccec2fd)
using existing user heat (35e1cd7e67bf4c09856cdd2c714011d8)
using existing role admin (66186308ee1c4dfc84ef3a676306d4b4)
user heat already has role admin in tenant admin
using existing service heat/orchestration (479b8b0ce23e498685e3f9cfa2bc2fb7)
deleting endpoint internalurl=http://192.168.1.100:8004/v1/%(tenant_id)s, publicurl=http://192.168.1.100:8004/v1/%(tenant_id)s, adminurl=http://192.168.1.100:8004/v1/%(tenant_id)s (8408788b9ade41d18b8d63747821ab54)
created new endpoint internalurl=http://192.168.1.100:8004/v1/%(tenant_id)s, publicurl=http://192.168.1.100:8004/v1/%(tenant_id)s, adminurl=http://192.168.1.100:8004/v1/%(tenant_id)s (876c0a16014d4fe7a0567f11c7f68744)
ERROR: openstack 'NoneType' object does not support item assignment
/usr/lib/python2.7/site-packages/keystoneclient/shell.py:64: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
  'python-keystoneclient.', DeprecationWarning)
Conflict occurred attempting to store role - Duplicate Entry (HTTP 409) (Request-ID: req-6905f695-0054-430f-85ac-a267b4125627)
database is active @ 192.168.1.100
keystone is active @ http://192.168.1.100:5000/v2.0
using existing tenant admin (6cf3c771c231449ab300a1deeccec2fd)
using existing user heat (35e1cd7e67bf4c09856cdd2c714011d8)
using existing role admin (66186308ee1c4dfc84ef3a676306d4b4)
user heat already has role admin in tenant admin
using existing service heat/orchestration (479b8b0ce23e498685e3f9cfa2bc2fb7)
deleting endpoint internalurl=http://192.168.1.100:8004/v1/%(tenant_id)s, publicurl=http://192.168.1.100:8004/v1/%(tenant_id)s, adminurl=http://192.168.1.100:8004/v1/%(tenant_id)s (876c0a16014d4fe7a0567f11c7f68744)
created new endpoint internalurl=http://192.168.1.100:8004/v1/%(tenant_id)s, publicurl=http://192.168.1.100:8004/v1/%(tenant_id)s, adminurl=http://192.168.1.100:8004/v1/%(tenant_id)s (96b3800145e84e029d5130f0ee1c8b6a)
ERROR: openstack 'NoneType' object does not support item assignment
/usr/lib/python2.7/site-packages/keystoneclient/shell.py:64: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
  'python-keystoneclient.', DeprecationWarning)
Conflict occurred attempting to store role - Duplicate Entry (HTTP 409) (Request-ID: req-26f9b998-7e84-4f6c-8bbf-9e3e4e0ff79e)
database is active @ 192.168.1.100
keystone is active @ http://192.168.1.100:5000/v2.0
using existing tenant admin (6cf3c771c231449ab300a1deeccec2fd)
using existing user heat (35e1cd7e67bf4c09856cdd2c714011d8)
using existing role admin (66186308ee1c4dfc84ef3a676306d4b4)
user heat already has role admin in tenant admin
using existing service heat/orchestration (479b8b0ce23e498685e3f9cfa2bc2fb7)
deleting endpoint internalurl=http://192.168.1.100:8004/v1/%(tenant_id)s, publicurl=http://192.168.1.100:8004/v1/%(tenant_id)s, adminurl=http://192.168.1.100:8004/v1/%(tenant_id)s (96b3800145e84e029d5130f0ee1c8b6a)
created new endpoint internalurl=http://192.168.1.100:8004/v1/%(tenant_id)s, publicurl=http://192.168.1.100:8004/v1/%(tenant_id)s, adminurl=http://192.168.1.100:8004/v1/%(tenant_id)s (dd99723971c24043a7eecfdb99b0310c)
ERROR: openstack 'NoneType' object does not support item assignment
/usr/lib/python2.7/site-packages/keystoneclient/shell.py:64: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
  'python-keystoneclient.', DeprecationWarning)
Conflict occurred attempting to store role - Duplicate Entry (HTTP 409) (Request-ID: req-97e1d1d4-0492-41fb-b6c6-a10ed1bd8df5)
database is active @ 192.168.1.100
keystone is active @ http://192.168.1.100:5000/v2.0
using existing tenant admin (6cf3c771c231449ab300a1deeccec2fd)
using existing user heat (35e1cd7e67bf4c09856cdd2c714011d8)
using existing role admin (66186308ee1c4dfc84ef3a676306d4b4)
user heat already has role admin in tenant admin
using existing service heat/orchestration (479b8b0ce23e498685e3f9cfa2bc2fb7)
deleting endpoint internalurl=http://192.168.1.100:8004/v1/%(tenant_id)s, publicurl=http://192.168.1.100:8004/v1/%(tenant_id)s, adminurl=http://192.168.1.100:8004/v1/%(tenant_id)s (dd99723971c24043a7eecfdb99b0310c)
created new endpoint internalurl=http://192.168.1.100:8004/v1/%(tenant_id)s, publicurl=http://192.168.1.100:8004/v1/%(tenant_id)s, adminurl=http://192.168.1.100:8004/v1/%(tenant_id)s (7b440ddd230a46cdbd5152cbe7db8b73)
ERROR: openstack 'NoneType' object does not support item assignment
/usr/lib/python2.7/site-packages/keystoneclient/shell.py:64: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
  'python-keystoneclient.', DeprecationWarning)
Conflict occurred attempting to store role - Duplicate Entry (HTTP 409) (Request-ID: req-1b8c9416-dff2-41e9-b634-93491332e333)
database is active @ 192.168.1.100
keystone is active @ http://192.168.1.100:5000/v2.0
using existing tenant admin (6cf3c771c231449ab300a1deeccec2fd)
using existing user heat (35e1cd7e67bf4c09856cdd2c714011d8)
using existing role admin (66186308ee1c4dfc84ef3a676306d4b4)
user heat already has role admin in tenant admin
using existing service heat/orchestration (479b8b0ce23e498685e3f9cfa2bc2fb7)
deleting endpoint internalurl=http://192.168.1.100:8004/v1/%(tenant_id)s, publicurl=http://192.168.1.100:8004/v1/%(tenant_id)s, adminurl=http://192.168.1.100:8004/v1/%(tenant_id)s (7b440ddd230a46cdbd5152cbe7db8b73)
created new endpoint internalurl=http://192.168.1.100:8004/v1/%(tenant_id)s, publicurl=http://192.168.1.100:8004/v1/%(tenant_id)s, adminurl=http://192.168.1.100:8004/v1/%(tenant_id)s (5d8a72e0f69e48d584b5ab6428cbca92)
ERROR: openstack 'NoneType' object does not support item assignment
/usr/lib/python2.7/site-packages/keystoneclient/shell.py:64: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
  'python-keystoneclient.', DeprecationWarning)
Conflict occurred attempting to store role - Duplicate Entry (HTTP 409) (Request-ID: req-d0c9c4d7-4c44-4a75-a414-f8cc981dce3f)

Steven Dake (sdake)
Changed in kolla:
importance: Undecided → Critical
status: New → Triaged
assignee: nobody → Steven Dake (sdake)
milestone: none → liberty-2
Changed in kolla:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (master)

Reviewed: https://review.openstack.org/200298
Committed: https://git.openstack.org/cgit/stackforge/kolla/commit/?id=89176acbbad28b875c74c034cefb3fa6711ff7ac
Submitter: Jenkins
Branch: master

commit 89176acbbad28b875c74c034cefb3fa6711ff7ac
Author: Steven Dake <email address hidden>
Date: Thu Jul 9 15:41:20 2015 -0700

    Add oslo.reports as a global dependency

    oslo.reports is needed by several services. I suspect more services
    will need this package as time passes.

    Change-Id: I306d03bb9fb62e2aed16113c1b547257a398cd1d
    Closes-Bug: #1473232

Changed in kolla:
status: In Progress → Fix Committed
Sam Yaple (s8m)
Changed in kolla:
status: Fix Committed → Fix Released
Revision history for this message
Artur Zarzycki (azarzycki) wrote :

In centos binary build neutron_openvswitch_agent and neutron_server doesn't work because of no oslo_reports.

Neutron_openvswitch_agent logs:

INFO:__main__:Kolla config strategy set to: COPY_ONCE
INFO:__main__:The config strategy prevents copying new configs
Running command: 'neutron-openvswitch-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini'
Traceback (most recent call last):
  File "/usr/bin/neutron-openvswitch-agent", line 6, in <module>
    from neutron.cmd.eventlet.plugins.ovs_neutron_agent import main
  File "/usr/lib/python2.7/site-packages/neutron/cmd/__init__.py", line 15, in <module>
    from oslo_reports import guru_meditation_report as gmr
ImportError: No module named oslo_reports

Neutron_server logs:
INFO:__main__:Kolla config strategy set to: COPY_ONCE
INFO:__main__:The config strategy prevents copying new configs
Running command: 'neutron-server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini'
Traceback (most recent call last):
  File "/usr/bin/neutron-server", line 6, in <module>
    from neutron.cmd.eventlet.server import main_wsgi_eventlet
  File "/usr/lib/python2.7/site-packages/neutron/cmd/__init__.py", line 15, in <module>
    from oslo_reports import guru_meditation_report as gmr
ImportError: No module named oslo_reports

The patch from #1 is missing from upstream.

Revision history for this message
Martin André (mandre) wrote :

I noticed it too and opened issue #1531107.
Patch available for review at https://review.openstack.org/#/c/263653/

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.