[Openstack] [trove] Request needs authorization error

Vimal Kumar vimal7370 at gmail.com
Wed Sep 19 08:56:06 UTC 2018


Hi,

Trove install on OpenStack Pike shows error in logs related to
"Manager.publish_exists_event". Has anyone managed to install Trove on Pike
without getting this error? Any help would be appreciated. Logs and config
included below.

Thank you!

Regards,
Vimal




Trove Log:

2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task [-] Error
during Manager.publish_exists_event: Unauthorized: The request you have
made requires authentication. (HTTP 401) (Request-ID:
req-5dece909-c107-491a-91fc-9eaa8c7b8a91)
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task Traceback
(most recent call last):
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task   File
"/usr/lib/python2.7/site-packages/oslo_service/periodic_task.py", line 220,
in run_periodic_tasks
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task
 task(self, context)
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task   File
"/usr/lib/python2.7/site-packages/trove/taskmanager/manager.py", line 433,
in publish_exists_event
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task
 self.admin_context)
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task   File
"/usr/lib/python2.7/site-packages/trove/extensions/mgmt/instances/models.py",
line 176, in publish_exist_events
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task
 notifications = transformer()
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task   File
"/usr/lib/python2.7/site-packages/trove/extensions/mgmt/instances/models.py",
line 268, in __call__
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task
 client=self.nova_client)
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task   File
"/usr/lib/python2.7/site-packages/trove/extensions/mgmt/instances/models.py",
line 38, in load_mgmt_instances
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task
 mgmt_servers = client.servers.list(search_opts={'all_tenants': 1})
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task   File
"/usr/lib/python2.7/site-packages/novaclient/v2/servers.py", line 884, in
list
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task     "servers")
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task   File
"/usr/lib/python2.7/site-packages/novaclient/base.py", line 254, in _list
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task     resp,
body = self.api.client.get(url)
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task   File
"/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 288, in
get
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task     return
self.request(url, 'GET', **kwargs)
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task   File
"/usr/lib/python2.7/site-packages/novaclient/client.py", line 77, in request
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task     **kwargs)
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task   File
"/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 447, in
request
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task     resp =
super(LegacyJsonAdapter, self).request(*args, **kwargs)
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task   File
"/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 192, in
request
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task     return
self.session.request(url, method, **kwargs)
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task   File
"/usr/lib/python2.7/site-packages/positional/__init__.py", line 101, in
inner
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task     return
wrapped(*args, **kwargs)
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task   File
"/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 578, in
request
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task
 auth_headers = self.get_auth_headers(auth)
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task   File
"/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 905, in
get_auth_headers
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task     return
auth.get_headers(self, **kwargs)
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task   File
"/usr/lib/python2.7/site-packages/keystoneauth1/plugin.py", line 90, in
get_headers
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task     token =
self.get_token(session)
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task   File
"/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 89,
in get_token
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task     return
self.get_access(session).auth_token
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task   File
"/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line
135, in get_access
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task
 self.auth_ref = self.get_auth_ref(session)
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task   File
"/usr/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.py",
line 198, in get_auth_ref
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task     return
self._plugin.get_auth_ref(session, **kwargs)
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task   File
"/usr/lib/python2.7/site-packages/keystoneauth1/identity/v2.py", line 65,
in get_auth_ref
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task
 authenticated=False, log=False)
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task   File
"/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 853, in
post
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task     return
self.request(url, 'POST', **kwargs)
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task   File
"/usr/lib/python2.7/site-packages/positional/__init__.py", line 101, in
inner
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task     return
wrapped(*args, **kwargs)
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task   File
"/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 742, in
request
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task     raise
exceptions.from_response(resp, method, url)
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task Unauthorized:
The request you have made requires authentication. (HTTP 401) (Request-ID:
req-5dece909-c107-491a-91fc-9eaa8c7b8a91)
2018-09-19 16:42:31.337 8681 ERROR oslo_service.periodic_task


Keystone Log:

2018-09-19 16:42:31.327 938 DEBUG keystone.middleware.auth
[req-5dece909-c107-491a-91fc-9eaa8c7b8a91 - - - - -] There is either no
auth token in the request or the certificate issuer is not trusted. No auth
context will be set. fill_context
/usr/lib/python2.7/site-packages/keystone/middleware/auth.py:203
2018-09-19 16:42:31.329 938 INFO keystone.common.wsgi
[req-5dece909-c107-491a-91fc-9eaa8c7b8a91 - - - - -] POST
http://keystone:35357/v2.0/tokens
2018-09-19 16:42:31.332 938 DEBUG keystone.common.fernet_utils
[req-5dece909-c107-491a-91fc-9eaa8c7b8a91 - - - - -] Loaded 2 Fernet keys
from /etc/keystone/fernet-keys/, but `[fernet_tokens] max_active_keys = 3`;
perhaps there have not been enough key rotations to reach `max_active_keys`
yet? load_keys
/usr/lib/python2.7/site-packages/keystone/common/fernet_utils.py:306
2018-09-19 16:42:31.333 938 WARNING keystone.common.wsgi
[req-5dece909-c107-491a-91fc-9eaa8c7b8a91 - - - - -] Authorization failed.
The request you have made requires authentication. from 10.0.0.1:
Unauthorized: The request you have made requires authentication.


trove.conf:

[DEFAULT]
trove_api_workers = 2
default_datastore = mysql
debug = True
verbose = True
#use_syslog = True
bind_host = 0.0.0.0
bind_port = 8779
rpc_backend = rabbit
control_exchange = trove
db_api_implementation = "trove.db.sqlalchemy.api"
#trove_auth_url = http://keystone:35357/v3
trove_auth_url = http://keystone:35357
nova_compute_url = http://openstack:8774/v2
neutron_url = http://openstack:9696/
notifier_queue_hostname = openstack
trove_volume_support = True
block_device_mapping = vdb
device_path = /dev/vdb
max_accepted_volume_size = 10
max_instances_per_tenant = 5
max_volumes_per_tenant = 100
max_backups_per_tenant = 5
volume_time_out=30
http_get_rate = 200
http_post_rate = 200
http_put_rate = 200
http_delete_rate = 200
http_mgmt_post_rate = 200
trove_dns_support = False
dns_account_id = 123456
dns_auth_url = http://127.0.0.1/identity/v2.0
dns_username = user
dns_passkey = password
dns_ttl = 3600
dns_domain_name = 'trove.com.'
dns_domain_id = 11111111-1111-1111-1111-111111111111
dns_driver = trove.dns.designate.driver.DesignateDriver
dns_instance_entry_factory =
trove.dns.designate.driver.DesignateInstanceEntryFactory
dns_endpoint_url = http://127.0.0.1/v1/
dns_service_type = dns
network_driver = trove.network.neutron.NeutronDriver
default_neutron_networks =
taskmanager_queue = taskmanager
admin_roles = admin
agent_heartbeat_time = 10
agent_call_low_timeout = 5
agent_call_high_timeout = 150
reboot_time_out = 60
api_paste_config = /etc/trove/api-paste.ini
log_file = /var/log/trove/trove.log
auth_strategy = keystone
add_addresses = True
network_label_regex = .*
ip_regex = .*
black_list_regex =
log_dir = /var/log/trove
[keystone_authtoken]
auth_url = http://keystone:5000
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = trove
password = 2ffa4772223b858064e5
memcached_servers = controller01:11211,controller02:11211,controller03:11211
[database]
connection = mysql+pymysql://trove:2ffa4772223b858064e5@controller03/trove
idle_timeout = 3600
[profiler]
[ssl]
[oslo_messaging_rabbit]
rabbit_hosts = openstack
rabbit_userid = trove
rabbit_password = 5c5014aa32cf7999d195
[mysql]
root_on_create = False
tcp_ports = 3306
volume_support = True
device_path = /dev/vdb
ignore_users = os_admin, root
ignore_dbs = mysql, information_schema, performance_schema
[redis]
tcp_ports = 6379, 16379
volume_support = False
[cassandra]
tcp_ports = 7000, 7001, 9042, 9160
volume_support = True
device_path = /dev/vdb
[couchbase]
tcp_ports = 8091, 8092, 4369, 11209-11211, 21100-21199
volume_support = True
device_path = /dev/vdb
[mongodb]
tcp_ports = 2500, 27017, 27019
volume_support = True
device_path = /dev/vdb
num_config_servers_per_cluster = 1
num_query_routers_per_cluster = 1
[vertica]
tcp_ports = 5433, 5434, 22, 5444, 5450, 4803
udp_ports = 5433, 4803, 4804, 6453
volume_support = True
device_path = /dev/vdb
cluster_support = True
cluster_member_count = 3
api_strategy =
trove.common.strategies.cluster.experimental.vertica.api.VerticaAPIStrategy
[cors]
[cors.subdomain]
[oslo_middleware]


trove-taskmanager.conf:

[DEFAULT]
debug = True
verbose = True
#use_syslog = True
rpc_backend = rabbit
control_exchange = trove
update_status_on_fail = True
control_exchange = trove
db_api_implementation = trove.db.sqlalchemy.api
#trove_auth_url = http://keystone:35357/v3
trove_auth_url = http://keystone:35357
nova_compute_url = http://openstack:8774/v2
notifier_queue_hostname = openstack
trove_volume_support = True
block_device_mapping = vdb
device_path = /dev/vdb
mount_point = /var/lib/mysql
volume_time_out=30
server_delete_time_out=480
use_nova_server_config_drive = True
nova_proxy_admin_user = trove
nova_proxy_admin_pass = 2ffa4772223b858064e5
nova_proxy_admin_tenant_name = service
taskmanager_manager=trove.taskmanager.manager.Manager
exists_notification_transformer =
trove.extensions.mgmt.instances.models.NovaNotificationTransformer
exists_notification_ticks = 30
notification_service_id = mysql:2f3ff068-2bfb-4f70-9a9d-a6bb65bc084b
trove_dns_support = False
dns_account_id = 123456
dns_auth_url = http://127.0.0.1/identity/v2.0
dns_username = user
dns_passkey = password
dns_ttl = 3600
dns_domain_name = 'trove.com.'
dns_domain_id = 11111111-1111-1111-1111-111111111111
dns_driver = trove.dns.designate.driver.DesignateDriver
dns_instance_entry_factory =
trove.dns.designate.driver.DesignateInstanceEntryFactory
dns_endpoint_url = http://127.0.0.1/v1/
dns_service_type = dns
network_driver = trove.network.neutron.NeutronDriver
network_label_regex = .*
ip_regex = .*
black_list_regex =
default_neutron_networks =
trove_security_groups_support = True
trove_security_group_rule_cidr = 0.0.0.0/0
agent_heartbeat_time = 10
agent_call_low_timeout = 20
agent_call_high_timeout = 150
agent_replication_snapshot_timeout = 36000
use_nova_server_volume = False
template_path = /etc/trove/templates/
pydev_debug = disabled
[database]
connection = mysql+pymysql://trove:2ffa4772223b858064e5@controller03/trove
idle_timeout = 3600
[profiler]
[oslo_messaging_rabbit]
rabbit_hosts = openstack
rabbit_userid = trove
rabbit_password = 5c5014aa32cf7999d195
[mysql]
icmp = True
tcp_ports = 22, 3306
volume_support = True
device_path = /dev/vdb
[redis]
tcp_ports = 22, 6379, 16379
volume_support = False
[cassandra]
tcp_ports = 22, 7000, 7001, 7199, 9042, 9160
volume_support = True
device_path = /dev/vdb
[couchbase]
tcp_ports = 22, 8091, 8092, 4369, 11209-11211, 21100-21199
volume_support = True
device_path = /dev/vdb
[couchdb]
tcp_ports = 22, 5984
[db2]
tcp_ports = 22, 50000
[mariadb]
tcp_ports = 22, 3306, 4444, 4567, 4568
[mongodb]
volume_support = True
device_path = /dev/vdb
tcp_ports = 22, 2500, 27017, 27019
[percona]
tcp_ports = 22, 3306
[postgresql]
tcp_ports = 22, 5432
[pxc]
tcp_ports = 22, 3306, 4444, 4567, 4568
[vertica]
tcp_ports = 22, 5433, 5434, 22, 5444, 5450, 4803
udp_ports = 5433, 4803, 4804, 6453
volume_support = True
device_path = /dev/vdb
mount_point = /var/lib/vertica
taskmanager_strategy =
trove.common.strategies.cluster.experimental.vertica.taskmanager.VerticaTaskManagerStrategy


trove-conductor.conf:

[DEFAULT]
debug = True
verbose = True
#use_syslog = True
#trove_auth_url = http://keystone:35357/v3
trove_auth_url = http://keystone:35357
nova_compute_url = http://openstack:8774/v2
notifier_queue_hostname = openstack
conductor_manager = trove.conductor.manager.Manager
control_exchange = trove
[profiler]
[database]
connection = mysql+pymysql://trove:2ffa4772223b858064e5@controller03/trove
[oslo_messaging_rabbit]
rabbit_hosts = openstack
rabbit_userid = trove
rabbit_password = 5c5014aa32cf7999d195
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20180919/9bce5e10/attachment.html>


More information about the Openstack mailing list