LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-10-2018, 08:01 AM   #1
abukapsoun
LQ Newbie
 
Registered: Mar 2018
Posts: 11

Rep: Reputation: Disabled
HTTP Timeout


Hi,

Can you please help,

I am not able to run openstack swift service commands. All other openstack commands are working fine except swift.

for example:

[root@localhost ~(keystone_admin)]#openstack container list
Unable to establish connection to http://192.168.187.129:8080/v1/AUTH_...1ab5200c65fa9: HTTPConnectionPool(host='192.168.187.129', port=8080): Max retries exceeded with url: /v1/AUTH_6ccefe26d415442aaff1ab5200c65fa9?format=json (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x441e650>: Failed to establish a new connection: [Errno 111] Connection refused',))

All other openstack commands are working fine.

my /etc/swift/proxy-server.conf have the following,

[filter:authtoken]
paste.filter_factory = keystonemiddleware.auth_token:filter_factory
admin_tenant_name = %SERVICE_TENANT_NAME%
admin_user = %SERVICE_USER%
admin_password = %SERVICE_PASSWORD%
auth_host = 127.0.0.1
auth_port = 35357
auth_protocol = http
signing_dir = /var/cache/swift
log_name=swift
auth_uri=http://192.168.187.129:5000/v3
auth_url=http://192.168.187.129:35357
auth_plugin=password
project_domain_id=default
user_domain_id=default
project_name=services
username=swift
password=7515a970e2454511
delay_auth_decision=1
cache=swift.cache
include_service_catalog=False
 
Old 03-10-2018, 08:24 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by abukapsoun View Post
Hi,
Can you please help, I am not able to run openstack swift service commands. All other openstack commands are working fine except swift. for example:

[root@localhost ~(keystone_admin)]#openstack container list
Unable to establish connection to http://192.168.187.129:8080/v1/AUTH_...1ab5200c65fa9: HTTPConnectionPool(host='192.168.187.129', port=8080): Max retries exceeded with url: /v1/AUTH_6ccefe26d415442aaff1ab5200c65fa9?format=json (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x441e650>: Failed to establish a new connection: [Errno 111] Connection refused',))

All other openstack commands are working fine. my /etc/swift/proxy-server.conf have the following,
Code:
[filter:authtoken]
paste.filter_factory = keystonemiddleware.auth_token:filter_factory
admin_tenant_name = %SERVICE_TENANT_NAME%
admin_user = %SERVICE_USER%
admin_password = %SERVICE_PASSWORD%
auth_host = 127.0.0.1
auth_port = 35357
auth_protocol = http
signing_dir = /var/cache/swift
log_name=swift
auth_uri=http://192.168.187.129:5000/v3
auth_url=http://192.168.187.129:35357
auth_plugin=password
project_domain_id=default
user_domain_id=default
project_name=services
username=swift
password=7515a970e2454511
delay_auth_decision=1
cache=swift.cache
include_service_catalog=False
Please use CODE tags when posting config files, and please read the "Question Guidelines" link in my posting signature; basic research should be done first before posting. Because just putting "openstack [Errno 111] Connection refused'" into Google pulls up many solutions from the openstack site:
https://ask.openstack.org/en/questio...ction-refused/
 
Old 03-10-2018, 08:34 AM   #3
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Maybe you should bind port 80 instead of 8080. I take it there's more to the conf file than what you posted. You also might want to check your endpoints. Also, try to ping the endpoint.
 
Old 03-10-2018, 09:06 AM   #4
abukapsoun
LQ Newbie
 
Registered: Mar 2018
Posts: 11

Original Poster
Rep: Reputation: Disabled
I just found out that the swift-proxy is not active... but why is that?

[root@localhost ~(keystone_admin)]# systemctl status openstack-swift-proxy.service
● openstack-swift-proxy.service - OpenStack Object Storage (swift) - Proxy Server
Loaded: loaded (/usr/lib/systemd/system/openstack-swift-proxy.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sat 2018-03-10 16:54:03 EET; 7min ago
Process: 1551 ExecStart=/usr/bin/swift-proxy-server /etc/swift/proxy-server.conf (code=exited, status=1/FAILURE)
Main PID: 1551 (code=exited, status=1/FAILURE)

Mar 10 16:54:02 localhost.localdomain swift-proxy-server[1551]: File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py"...wsgi
Mar 10 16:54:02 localhost.localdomain swift-proxy-server[1551]: error_msg = strategy.bind_ports()
Mar 10 16:54:02 localhost.localdomain swift-proxy-server[1551]: File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py"...orts
Mar 10 16:54:02 localhost.localdomain swift-proxy-server[1551]: drop_privileges(self.conf.get('user', 'swift'))
Mar 10 16:54:02 localhost.localdomain swift-proxy-server[1551]: File "/usr/lib/python2.7/site-packages/swift/common/utils.py...eges
Mar 10 16:54:02 localhost.localdomain swift-proxy-server[1551]: user = pwd.getpwnam(user)
Mar 10 16:54:02 localhost.localdomain swift-proxy-server[1551]: KeyError: 'getpwnam(): name not found: admin'
Mar 10 16:54:03 localhost.localdomain systemd[1]: openstack-swift-proxy.service: main process exited, code=exited, status=1/FAILURE
Mar 10 16:54:03 localhost.localdomain systemd[1]: Unit openstack-swift-proxy.service entered failed state.
Mar 10 16:54:03 localhost.localdomain systemd[1]: openstack-swift-proxy.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
[root@localhost ~(keystone_admin)]#
 
Old 03-10-2018, 09:26 AM   #5
abukapsoun
LQ Newbie
 
Registered: Mar 2018
Posts: 11

Original Poster
Rep: Reputation: Disabled
Below server proxy config


Quote:
[filter:crossdomain]
use=egg:swift#crossdomain
cross_domain_policy=<allow-access-from domain="*" secure="false" />

[filter:staticweb]
use=egg:swift#staticweb

[filter:account_quotas]
use=egg:swift#account_quotas

[filter:formpost]
use=egg:swift#formpost

[filter:container_quotas]
use=egg:swift#container_quotas

[filter:ceilometer]
topic=notifications
driver=messaging
url=rabbit://guest:guest@192.168.187.129:5672/
control_exchange=swift
paste.filter_factory=ceilometermiddleware.swift:filter_factory
nonblocking_notify=False
ignore_projects=services
auth_uri=http://127.0.0.1:5000
auth_url=http://127.0.0.1:35357
auth_type=password
project_domain_name=Default
user_domain_name=Default
project_name=services
username=swift
password=password
[root@localhost ~(keystone_admin)]# clear
[root@localhost ~(keystone_admin)]# cat /etc/swift/proxy-server.conf
[DEFAULT]
#bindport was 8080
bind_port = 8080
#worker was 2
workers = 2
user = admin
bind_ip=192.168.187.129
log_name=proxy-server
log_facility=LOG_LOCAL2
log_level=INFO
log_headers=False
log_address=/dev/log

[pipeline:main]
# Our traditional pipeline produces a cluster without any authentication,
# open to access by any client. This is almost always a very bad idea, and
# it's overridden by OSP Director, so it is likely to go away some time
# after Newton.
pipeline = catch_errors bulk healthcheck cache crossdomain ratelimit authtoken keystone formpost staticweb tempurl slo account_quotas container_quotas ceilometer proxy-server

# This sample pipeline uses tempauth and is used for SAIO dev work and
# testing. See below for a pipeline using keystone.
#pipeline = catch_errors gatekeeper healthcheck proxy-logging cache container_sync bulk tempurl ratelimit tempauth copy container-quotas account-quotas slo dlo versioned_writes proxy-logging proxy-server

# The following pipeline shows keystone integration. Comment out the one
# above and uncomment this one. Additional steps for integrating keystone are
# covered further below in the filter sections for authtoken and keystoneauth.
#pipeline = catch_errors gatekeeper healthcheck proxy-logging cache container_sync bulk tempurl ratelimit authtoken keystone copy container-quotas account-quotas slo dlo versioned_writes proxy-logging proxy-server

[approxy-server]
use = egg:swift#proxy
allow_account_management = True
account_autocreate = True

# This is a sample used for functional tests in SAIO. Contains well-known
# passwords.
#[filter:tempauth]
#use = egg:swift#tempauth
#user_admin_admin = admin .admin .reseller_admin
#user_test_tester = testing .admin
#user_test2_tester2 = testing2 .admin
#user_test_tester3 = testing3
#user_test5_tester5 = testing5 service
set log_name=proxy-server
set log_facility=LOG_LOCAL2
set log_level=INFO
set log_address=/dev/log
log_handoffs=True

[filter:healthcheck]
use = egg:swift#healthcheck

[filter:cache]
use = egg:swift#memcache
memcache_servers = 127.0.0.1:11211

[filter:ratelimit]
use = egg:swift#ratelimit
clock_accuracy=1000
max_sleep_time_seconds=60
log_sleep_time_seconds=0
rate_buffer_seconds=5
account_ratelimit=0

[filter:catch_errors]
use = egg:swift#catch_errors

[filter:tempurl]
use = egg:swift#tempurl

[filterroxy-logging]
use = egg:swift#proxy_logging

[filter:bulk]
use = egg:swift#bulk
max_containers_per_extraction=10000
max_failed_extractions=1000
max_deletes_per_request=10000
yield_frequency=60

[filter:slo]
use = egg:swift#slo
max_manifest_segments=1000
max_manifest_size=2097152
min_segment_size=1048576
rate_limit_after_segment=10
rate_limit_segments_per_sec=0
max_get_time=86400

[filter:dlo]
use = egg:swift#dlo

[filter:container-quotas]
use = egg:swift#container_quotas

[filter:account-quotas]
use = egg:swift#account_quotas

[filter:gatekeeper]
use = egg:swift#gatekeeper

[filter:container_sync]
use = egg:swift#container_sync

[filter:versioned_writes]
use = egg:swift#versioned_writes

[filter:copy]
use = egg:swift#copy
object_post_as_copy = false

#was [filter:keystone]
[filter:keystoneauth]
use = egg:swift#keystoneauth
operator_roles = admin, SwiftOperator, _member_
cache = swift.cache
reseller_prefix=AUTH_

[filter:authtoken]
paste.filter_factory = keystonemiddleware.auth_token:filter_factory
admin_tenant_name = %SERVICE_TENANT_NAME%
admin_user = %SERVICE_USER%
admin_password = %SERVICE_PASSWORD%
auth_host = 127.0.0.1
auth_port = 35357
auth_protocol = http
signing_dir = /var/cache/swift
log_name=swift
auth_uri=http://192.168.187.129:5000/v3
auth_url=http://192.168.187.129:35357
auth_plugin=password
project_domain_id=default
user_domain_id=default
project_name=services
username=swift
password=7515a970e2454511
delay_auth_decision=1
cache=swift.cache
include_service_catalog=False

[filter:crossdomain]
use=egg:swift#crossdomain
cross_domain_policy=<allow-access-from domain="*" secure="false" />

[filter:staticweb]
use=egg:swift#staticweb

[filter:account_quotas]
use=egg:swift#account_quotas

[filter:formpost]
use=egg:swift#formpost

[filter:container_quotas]
use=egg:swift#container_quotas

[filter:ceilometer]
topic=notifications
driver=messaging
url=rabbit://guest:guest@192.168.187.129:5672/
control_exchange=swift
paste.filter_factory=ceilometermiddleware.swift:filter_factory
nonblocking_notify=False
ignore_projects=services
auth_uri=http://127.0.0.1:5000
auth_url=http://127.0.0.1:35357
auth_type=password
project_domain_name=Default
user_domain_name=Default
project_name=services
username=swift
password=password
[root@localhost ~(keystone_admin)]#
 
Old 03-10-2018, 10:23 AM   #6
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
OK, thanks. Look in the swift log for what's happening.
 
Old 03-10-2018, 10:39 AM   #7
abukapsoun
LQ Newbie
 
Registered: Mar 2018
Posts: 11

Original Poster
Rep: Reputation: Disabled
Here is the debug log

Quote:
login as: root
root@192.168.187.129's password:
Last login: Sat Mar 10 18:35:59 2018
[root@localhost ~]# source keystonerc_admin
[root@localhost ~(keystone_admin)]# openstack container list --debug
START with options: [u'container', u'list', u'--debug']
options: Namespace(access_key='', access_secret='***', access_token='***', access_token_endpoint='', access_token_type='', aodh_endpoint='', auth_type='', auth_url='http://192.168.187.129:5000/v3', cacert=None, cert='', client_id='', client_secret='***', cloud='', code='', consumer_key='', consumer_secret='***', debug=True, default_domain='default', default_domain_id='', default_domain_name='', deferred_help=False, discovery_endpoint='', domain_id='', domain_name='', endpoint='', identity_provider='', identity_provider_url='', insecure=None, interface='', key='', log_file=None, old_profile=None, openid_scope='', os_alarming_api_version='2', os_beta_command=False, os_compute_api_version='', os_data_processing_api_version='1.1', os_data_processing_url='', os_database_api_version='1', os_dns_api_version='2', os_identity_api_version='3', os_image_api_version='', os_key_manager_api_version='1', os_metrics_api_version='1', os_network_api_version='', os_object_api_version='', os_orchestration_api_version='1', os_project_id=None, os_project_name=None, os_volume_api_version='', os_workflow_api_version='2', passcode='', password='***', profile=None, project_domain_id='', project_domain_name='Default', project_id='', project_name='admin', protocol='', redirect_uri='', region_name='', roles='', timing=False, token='***', trust_id='', url='', user='', user_domain_id='', user_domain_name='Default', user_id='', username='admin', verbose_level=3, verify=None)
Auth plugin password selected
auth_config_hook(): {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'metrics_api_version': '1', 'data_processing_api_version': '1.1', 'auth_url': 'http://192.168.187.129:5000/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'admin', u'container_infra_api_version': u'1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'user_domain_name': 'Default', 'project_name': 'admin', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': '1', 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', 'workflow_api_version': '2', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'status': u'active', 'alarming_api_version': '2', 'debug': True, u'interface': None, u'disable_vendor_agent': {}}
defaults: {u'auth_type': 'password', u'status': u'active', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'api_timeout': None, u'baremetal_api_version': u'1', u'image_api_version': u'2', u'container_infra_api_version': u'1', u'metering_api_version': u'2', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', 'cacert': None, u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', u'application_catalog_api_version': u'1', u'key_manager_api_version': u'v1', 'verify': True, u'identity_api_version': u'2.0', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'dns_api_version': u'2', u'object_store_api_version': u'1', u'interface': None, u'disable_vendor_agent': {}}
cloud cfg: {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'metrics_api_version': '1', 'data_processing_api_version': '1.1', 'auth_url': 'http://192.168.187.129:5000/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'admin', u'container_infra_api_version': u'1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'user_domain_name': 'Default', 'project_name': 'admin', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': '1', 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', 'workflow_api_version': '2', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'status': u'active', 'alarming_api_version': '2', 'debug': True, u'interface': None, u'disable_vendor_agent': {}}
compute API version 2, cmd group openstack.compute.v2
network API version 2, cmd group openstack.network.v2
image API version 2, cmd group openstack.image.v2
volume API version 2, cmd group openstack.volume.v2
identity API version 3, cmd group openstack.identity.v3
object_store API version 1, cmd group openstack.object_store.v1
neutronclient API version 2, cmd group openstack.neutronclient.v2
key_manager API version 1, cmd group openstack.key_manager.v1
dns API version 2, cmd group openstack.dns.v2
database API version 1, cmd group openstack.database.v1
data_processing API version 1.1, cmd group openstack.data_processing.v1
orchestration API version 1, cmd group openstack.orchestration.v1
workflow_engine API version 2, cmd group openstack.workflow_engine.v2
metric API version 1, cmd group openstack.metric.v1
alarming API version 2, cmd group openstack.alarming.v2
Auth plugin password selected
auth_config_hook(): {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'metrics_api_version': '1', 'data_processing_api_version': '1.1', 'auth_url': 'http://192.168.187.129:5000/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'admin', u'container_infra_api_version': u'1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'user_domain_name': 'Default', 'project_name': 'admin', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': '1', 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', 'workflow_api_version': '2', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'status': u'active', 'alarming_api_version': '2', 'debug': True, u'interface': None, u'disable_vendor_agent': {}}
Auth plugin password selected
auth_config_hook(): {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'metrics_api_version': '1', 'data_processing_api_version': '1.1', 'auth_url': 'http://192.168.187.129:5000/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'admin', u'container_infra_api_version': u'1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'user_domain_name': 'Default', 'project_name': 'admin', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': '1', 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', 'workflow_api_version': '2', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'status': u'active', 'alarming_api_version': '2', 'debug': True, u'interface': None, u'disable_vendor_agent': {}}
command: container list -> openstackclient.object.v1.container.ListContainer
Auth plugin password selected
auth_config_hook(): {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'metrics_api_version': '1', 'data_processing_api_version': '1.1', 'auth_url': 'http://192.168.187.129:5000/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'admin', u'container_infra_api_version': u'1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'user_domain_name': 'Default', 'project_name': 'admin', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': '1', 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', 'workflow_api_version': '2', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'status': u'active', 'ala
"POST /v3/auth/tokens HTTP/1.1" 201 7864
{"token": {"is_domain": false, "methods": ["password"], "roles": [{"id": "503778692bea448e8479ed27ac4c2e90", "name": "admin"}], "expires_at": "2018-03-10T17:38:52.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "6ccefe26d415442aaff1ab5200c65fa9", "name": "admin"}, "catalog": [{"endpoints": [{"url": "http://192.168.187.129:8080/v1/AUTH_6ccefe26d415442aaff1ab5200c65fa9", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "d2bc1b21570f48b2aaa02fa794edfa5c"}, {"url": "http://192.168.187.129:8080/v1/AUTH_6ccefe26d415442aaff1ab5200c65fa9", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "e3aa809cfeea4156b0c5a0a6539acecb"}, {"url": "http://192.168.187.129:8080/v1/AUTH_6ccefe26d415442aaff1ab5200c65fa9", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "fd67f9f835ac40efa2ff71669005f3a3"}], "type": "object-store", "id": "10f50e27de3d4781b3b6839681b7ddbb", "name": "swift"}, {"endpoints": [{"url": "http://192.168.187.129:35357/v3", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "a1cebd24a36c4850984209a5788118f0"}, {"url": "http://192.168.187.129:5000/v3", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "bca024f07318470785df58e7a85cae1c"}, {"url": "http://192.168.187.129:5000/v3", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "d42ea3103aaa45cc8f6c574f17315308"}], "type": "identity", "id": "11009e2bc12e44b5aecbeb967dc3b55b", "name": "keystone"}, {"endpoints": [{"url": "http://192.168.187.129:8776/v3/6ccefe26d415442aaff1ab5200c65fa9", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "1e8a5f8e1d2d4ebe88b9dbcf1446e29e"}, {"url": "http://192.168.187.129:8776/v3/6ccefe26d415442aaff1ab5200c65fa9", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "5d4db1cdf0734468b48f7334023e539c"}, {"url": "http://192.168.187.129:8776/v3/6ccefe26d415442aaff1ab5200c65fa9", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "b4521e8476684865910eb85d391c7840"}], "type": "volumev3", "id": "117c32cff05c40579d7073d244de1a3c", "name": "cinderv3"}, {"endpoints": [{"url": "http://192.168.187.129:8774/v2.1/6ccefe26d415442aaff1ab5200c65fa9", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "257d3280c0c74b3da16b6bb966b2bb67"}, {"url": "http://192.168.187.129:8774/v2.1/6ccefe26d415442aaff1ab5200c65fa9", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "2ce150184f1b410ea7b37c469180b688"}, {"url": "http://192.168.187.129:8774/v2.1/6ccefe26d415442aaff1ab5200c65fa9", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "f1d602031250407fab8208582762709a"}], "type": "compute", "id": "142e63e8bdc347e8ba879419e698a3d9", "name": "nova"}, {"endpoints": [{"url": "http://192.168.187.129:8778/placement", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "476fea8d7e944d51aacc66053fe49c3e"}, {"url": "http://192.168.187.129:8778/placement", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "a31dbb25c60943b393dc9ab9e3990cc4"}, {"url": "http://192.168.187.129:8778/placement", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "d60cc61bd802481e94f906a6648ac6df"}], "type": "placement", "id": "2ecd489470424ae2a3ecf47421200ec2", "name": "placement"}, {"endpoints": [{"url": "http://192.168.187.129:8042", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "b84d6183737647079c16d8cad4cd21fc"}, {"url": "http://192.168.187.129:8042", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "cb14a84055464f41a66c0612c634581b"}, {"url": "http://192.168.187.129:8042", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "f628c3a279664a1ca3e87844bd7326b9"}], "type": "alarming", "id": "59186f85a8404a0d8b563b967ce328b6", "name": "aodh"}, {"endpoints": [{"url": "http://192.168.187.129:9292", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "146b4d9025e842a2928e697e4df17359"}, {"url": "http://192.168.187.129:9292", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "2e4b133bf37744deb071bc716fd588a5"}, {"url": "http://192.168.187.129:9292", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "7e1f9ca7811440e5a72957546d03547b"}], "type": "image", "id": "5a4c2b222dd64d2094c64f412b5cc7d0", "name": "glance"}, {"endpoints": [{"url": "http://192.168.187.129:9696", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "1547c8cb926b416d9fb78c32855822d8"}, {"url": "http://192.168.187.129:9696", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "2acaa1c8b1734b0b8409527ae2b2d3a7"}, {"url": "http://192.168.187.129:9696", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "4ad352ae70c14c4486b39e37ffde2628"}], "type": "network", "id": "9bd2012ca55e41d08dc4fb70c8b48929", "name": "neutron"}, {"endpoints": [{"url": "http://192.168.187.129:8041", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "00f7ad4837004b4ea8e334558537ac52"}, {"url": "http://192.168.187.129:8041", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "71ee34e16e6442bc8aad68c946bf6979"}, {"url": "http://192.168.187.129:8041", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "f198755cff5e41fe9f82ae9e93b1f300"}], "type": "metric", "id": "a392acc12da64c92952b500de55cfa76", "name": "gnocchi"}, {"endpoints": [{"url": "http://192.168.187.129:8776/v1/6ccefe26d415442aaff1ab5200c65fa9", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "248e15a286604052a883905129d239e9"}, {"url": "http://192.168.187.129:8776/v1/6ccefe26d415442aaff1ab5200c65fa9", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "54c4baaaef2048cea0caffa2cb40b7ce"}, {"url": "http://192.168.187.129:8776/v1/6ccefe26d415442aaff1ab5200c65fa9", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "e10ffef11f794df3b28c01b8468c3d3b"}], "type": "volume", "id": "a53a46699b054247a2ba1456df1c7b78", "name": "cinder"}, {"endpoints": [{"url": "http://192.168.187.129:8776/v2/6ccefe26d415442aaff1ab5200c65fa9", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "05dcd6aae2634c72aa4329a793c6d73a"}, {"url": "http://192.168.187.129:8776/v2/6ccefe26d415442aaff1ab5200c65fa9", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "0bb228838e92485d96fdd8de8c7d575e"}, {"url": "http://192.168.187.129:8776/v2/6ccefe26d415442aaff1ab5200c65fa9", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "4b22f32d16e848cfbb7fe8f7f63874e1"}], "type": "volumev2", "id": "b5172eb7eb8b426b933aa130330c62ce", "name": "cinderv2"}, {"endpoints": [{"url": "http://192.168.187.129:8777", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "0c562e1b68ca4db6b1cea756ad4e7be8"}, {"url": "http://192.168.187.129:8777", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "21f18ab8e72f4f688361571d25701b54"}, {"url": "http://192.168.187.129:8777", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "dee5bd41c6384a9cbbf62cdc310c8d5f"}], "type": "metering", "id": "e0e03b5bf6174488a48e361ddebdfd0a", "name": "ceilometer"}], "user": {"domain": {"id": "default", "name": "Default"}, "password_expires_at": null, "name": "admin", "id": "bc5938e16a6c4a5a925eaccd47808cb8"}, "audit_ids": ["LrZocsbCRpiPMyAUtf7KtA"], "issued_at": "2018-03-10T16:38:52.000000Z"}}
REQ: curl -g -i -X GET "http://192.168.187.129:8080/v1/AUTH_6ccefe26d415442aaff1ab5200c65fa9?format=json" -H "User-Agent: osc-lib/1.3.0 keystoneauth1/2.18.0 python-requests/2.11.1 CPython/2.7.5" -H "X-Auth-Token: {SHA1}390f24862a071a318d171f5067e1fb7dda7ed84c"
Starting new HTTP connection (1): 192.168.187.129
Unable to establish connection to http://192.168.187.129:8080/v1/AUTH_...1ab5200c65fa9: HTTPConnectionPool(host='192.168.187.129', port=8080): Max retries exceeded with url: /v1/AUTH_6ccefe26d415442aaff1ab5200c65fa9?format=json (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x2cdf590>: Failed to establish a new connection: [Errno 111] Connection refused',))
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/cliff/app.py", line 400, in run_subcommand
result = cmd.run(parsed_args)
File "/usr/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run
return super(Command, self).run(parsed_args)
File "/usr/lib/python2.7/site-packages/cliff/display.py", line 112, in run
column_names, data = self.take_action(parsed_args)
File "/usr/lib/python2.7/site-packages/openstackclient/object/v1/container.py", line 160, in take_action
**kwargs
File "/usr/lib/python2.7/site-packages/openstackclient/api/object_store_v1.py", line 124, in container_list
return self.list('', **params)
File "/usr/lib/python2.7/site-packages/openstackclient/api/api.py", line 198, in list
params=params,
File "/usr/lib/python2.7/site-packages/openstackclient/api/api.py", line 84, in _request
return session.request(url, method, **kwargs)
File "/usr/lib/python2.7/site-packages/osc_lib/session.py", line 40, in request
resp = super(TimingSession, self).request(url, method, **kwargs)
File "/usr/lib/python2.7/site-packages/positional/__init__.py", line 101, in inner
return wrapped(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 616, in request
resp = send(**kwargs)
File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 690, in _send_request
raise exceptions.ConnectFailure(msg)
ConnectFailure: Unable to establish connection to http://192.168.187.129:8080/v1/AUTH_...1ab5200c65fa9: HTTPConnectionPool(host='192.168.187.129', port=8080): Max retries exceeded with url: /v1/AUTH_6ccefe26d415442aaff1ab5200c65fa9?format=json (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x2cdf590>: Failed to establish a new connection: [Errno 111] Connection refused',))
clean_up ListContainer: Unable to establish connection to http://192.168.187.129:8080/v1/AUTH_...1ab5200c65fa9: HTTPConnectionPool(host='192.168.187.129', port=8080): Max retries exceeded with url: /v1/AUTH_6ccefe26d415442aaff1ab5200c65fa9?format=json (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x2cdf590>: Failed to establish a new connection: [Errno 111] Connection refused',))
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 135, in run
ret_val = super(OpenStackShell, self).run(argv)
File "/usr/lib/python2.7/site-packages/cliff/app.py", line 279, in run
result = self.run_subcommand(remainder)
File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 180, in run_subcommand
ret_value = super(OpenStackShell, self).run_subcommand(argv)
File "/usr/lib/python2.7/site-packages/cliff/app.py", line 400, in run_subcommand
result = cmd.run(parsed_args)
File "/usr/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run
return super(Command, self).run(parsed_args)
File "/usr/lib/python2.7/site-packages/cliff/display.py", line 112, in run
column_names, data = self.take_action(parsed_args)
File "/usr/lib/python2.7/site-packages/openstackclient/object/v1/container.py", line 160, in take_action
**kwargs
File "/usr/lib/python2.7/site-packages/openstackclient/api/object_store_v1.py", line 124, in container_list
return self.list('', **params)
File "/usr/lib/python2.7/site-packages/openstackclient/api/api.py", line 198, in list
params=params,
File "/usr/lib/python2.7/site-packages/openstackclient/api/api.py", line 84, in _request
return session.request(url, method, **kwargs)
File "/usr/lib/python2.7/site-packages/osc_lib/session.py", line 40, in request
resp = super(TimingSession, self).request(url, method, **kwargs)
File "/usr/lib/python2.7/site-packages/positional/__init__.py", line 101, in inner
return wrapped(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 616, in request
resp = send(**kwargs)
File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 690, in _send_request
raise exceptions.ConnectFailure(msg)
ConnectFailure: Unable to establish connection to http://192.168.187.129:8080/v1/AUTH_...1ab5200c65fa9: HTTPConnectionPool(host='192.168.187.129', port=8080): Max retries exceeded with url: /v1/AUTH_6ccefe26d415442aaff1ab5200c65fa9?format=json (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x2cdf590>: Failed to establish a new connection: [Errno 111] Connection refused',))

END return value: 1
[root@localhost ~(keystone_admin)]#
 
Old 03-10-2018, 10:43 AM   #8
abukapsoun
LQ Newbie
 
Registered: Mar 2018
Posts: 11

Original Poster
Rep: Reputation: Disabled
swift log file

#ss
and swift.log , keystone.log
attached.
Attached Files
File Type: txt swift debug.txt (122.2 KB, 14 views)
File Type: txt ss.txt (36.4 KB, 10 views)
File Type: txt keystone.txt (139.6 KB, 12 views)

Last edited by abukapsoun; 03-10-2018 at 10:47 AM.
 
Old 03-10-2018, 10:52 AM   #9
abukapsoun
LQ Newbie
 
Registered: Mar 2018
Posts: 11

Original Poster
Rep: Reputation: Disabled
In keystone log file i can see the following,

Quote:
2018-03-10 17:46:07.465 9778 WARNING keystone.common.controller [req-82d6d589-cac1-42b3-bfea-3f810c23f4c9 - - - - -] RBAC: Bypassing authorization
2018-03-10 17:46:07.475 9777 INFO keystone.common.wsgi [req-bfb75ef4-b404-4735-9f07-ea705ba420a0 - - - - -] GET http://127.0.0.1:35357/v3/users/swift
2018-03-10 17:46:07.475 9777 WARNING keystone.common.controller [req-bfb75ef4-b404-4735-9f07-ea705ba420a0 - - - - -] RBAC: Bypassing authorization
2018-03-10 17:46:07.485 9777 WARNING keystone.common.wsgi [req-bfb75ef4-b404-4735-9f07-ea705ba420a0 - - - - -] Could not find user: swift.
Could not find user: swift

but if i list them

Quote:
[root@localhost keystone(keystone_admin)]# openstack user list
+----------------------------------+------------+
| ID | Name |
+----------------------------------+------------+
| 36bf58868f93415586825aca332328e1 | gnocchi |
| 397854c2a315476aaf95a33fc0045f29 | aodh |
| 607c5fc4f3274828949b3e6ea1ebca74 | glance |
| 708f1fcefb4340e2a13996859e8749ce | ceilometer |
| 730fd5ee738c429db5d30baf1fcd1d73 | neutron |
| 8512c08f2fc341f3bdf0674cf9583358 | swift |
| bc5938e16a6c4a5a925eaccd47808cb8 | admin |
| c73468e84ccf47c8b06b1ee1d356f774 | nova |
| f59e5b9310a54f718d810960ec7ec42c | cinder |
| febb14c00e4d4c0fa1f508890ae95e46 | placement |
+----------------------------------+------------+
[root@localhost keystone(keystone_admin)]#
and something pointing to authentication problem, but what could it be?

Quote:
2018-03-10 17:48:09.815 9778 INFO keystone.common.wsgi [req-d53f5223-6dc3-407a-98f4-86041b4a1eb4 - - - - -] GET http://192.168.187.129:35357/
2018-03-10 17:48:09.822 9777 INFO keystone.common.wsgi [req-d505c326-dd9f-48e2-a6fa-47bed0e0a22a - - - - -] POST http://192.168.:35357/v3/auth/tokens
2018-03-10 17:48:10.283 9777 INFO keystone.common.wsgi [req-eaa95028-335e-400b-b1e1-1fdc67cd1055 - - - - -] GET http://192.168.187.129:35357/v3/
2018-03-10 17:48:10.444 9778 INFO keystone.common.wsgi [req-f578e13b-a419-45e1-b136-3797714878fa 730fd5ee738c429db5d30baf1fcd1d73 5cac30d9dcea4810a38e86bb177fc65e - default default] GET http://192.168.187.129:35357/v3/auth/tokens
2018-03-10 17:48:10.589 9778 WARNING keystone.common.wsgi [req-f578e13b-a419-45e1-b136-3797714878fa 730fd5ee738c429db5d30baf1fcd1d73 5cac30d9dcea4810a38e86bb177fc65e - default default] Failed to validate token
2018-03-10 17:48:10.761 9778 INFO keystone.common.wsgi [req-97ab0b19-f060-45d0-8013-8bbe89e0c602 - - - - -] POST http://192.168.187.129:35357/v3/auth/tokens
2018-03-10 17:48:11.071 9778 WARNING keystone.common.wsgi [req-97ab0b19-f060-45d0-8013-8bbe89e0c602 - - - - -] Authorization failed. The request you have made requires authentication. from 192.168.187.129
 
Old 03-10-2018, 12:04 PM   #10
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
I think swift can't be authenticated, so it says the user is not found. The swift log is too long to go through. So, just tail the log file when you try to connect and post just the part that applies to the the connection attempt.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VPNC seems to timeout quickly- how do I lengthen the timeout? spiffytech Linux - Software 30 10-05-2018 04:04 AM
LXer: Apache HTTP Server Adds HTTP/2 Support for Speed and Security LXer Syndicated Linux News 0 10-19-2015 11:21 PM
[SOLVED] Adding package sources fails saying "http://http not found skykooler Ubuntu 2 07-02-2010 09:32 AM
http timeout - files larger than 5 KB iokepa Linux - Networking 4 12-10-2007 11:48 AM
HTTP error: 500 read timeout precioso77 Linux - Software 0 11-17-2003 04:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration