swift-proxy-server container crashed on start

Bug #1862765 reported by Christopher Wellie
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Medium
Maksim Malchuk

Bug Description

+ sudo -E kolla_set_configs
INFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json
INFO:__main__:Validating config file
INFO:__main__:Kolla config strategy set to: COPY_ALWAYS
INFO:__main__:Copying service configuration files
INFO:__main__:Copying /var/lib/kolla/swift/account.ring.gz to /etc/swift/account.ring.gz
INFO:__main__:Setting permission for /etc/swift/account.ring.gz
INFO:__main__:Copying /var/lib/kolla/swift/container.ring.gz to /etc/swift/container.ring.gz
INFO:__main__:Setting permission for /etc/swift/container.ring.gz
INFO:__main__:Copying /var/lib/kolla/swift/object.ring.gz to /etc/swift/object.ring.gz
INFO:__main__:Setting permission for /etc/swift/object.ring.gz
INFO:__main__:Copying /var/lib/kolla/config_files/swift.conf to /etc/swift/swift.conf
INFO:__main__:Setting permission for /etc/swift/swift.conf
INFO:__main__:Copying /var/lib/kolla/config_files/proxy-server.conf to /etc/swift/proxy-server.conf
INFO:__main__:Setting permission for /etc/swift/proxy-server.conf
INFO:__main__:Writing out command to execute
++ cat /run_command
+ CMD='swift-proxy-server /etc/swift/proxy-server.conf --verbose'
+ ARGS=
+ sudo kolla_copy_cacerts
Running command: 'swift-proxy-server /etc/swift/proxy-server.conf --verbose'
+ [[ ! -n '' ]]
+ . kolla_extend_start
+ echo 'Running command: '\''swift-proxy-server /etc/swift/proxy-server.conf --verbose'\'''
+ exec swift-proxy-server /etc/swift/proxy-server.conf --verbose
swift-proxy-server: Adding required filter versioned_writes to pipeline at position 16
swift-proxy-server: Adding required filter copy to pipeline at position 12
swift-proxy-server: Adding required filter listing_formats to pipeline at position 4
swift-proxy-server: Pipeline was modified. New pipeline is "catch_errors gatekeeper healthcheck cache listing_formats container_sync bulk tempurl ratelimit authtoken s3api s3token keystoneauth copy container_quotas account_quotas slo dlo versioned_writes ceilometer proxy-server".
Traceback (most recent call last):
  File "/var/lib/kolla/venv/bin/swift-proxy-server", line 23, in <module>
    sys.exit(run_wsgi(conf_file, 'proxy-server', **options))
  File "/var/lib/kolla/venv/lib/python3.6/site-packages/swift/common/wsgi.py", line 1114, in run_wsgi
    loadapp(conf_path, global_conf=global_conf)
  File "/var/lib/kolla/venv/lib/python3.6/site-packages/swift/common/wsgi.py", line 400, in loadapp
    return ctx.create()
  File "/var/lib/kolla/venv/lib/python3.6/site-packages/paste/deploy/loadwsgi.py", line 715, in create
    return self.object_type.invoke(self)
  File "/var/lib/kolla/venv/lib/python3.6/site-packages/paste/deploy/loadwsgi.py", line 213, in invoke
    app = filter(app)
  File "/var/lib/kolla/venv/lib/python3.6/site-packages/swift/common/middleware/s3api/s3token.py", line 413, in auth_filter
    return S3Token(app, conf)
  File "/var/lib/kolla/venv/lib/python3.6/site-packages/swift/common/middleware/s3api/s3token.py", line 159, in __init__
    'Invalid auth_uri; must include scheme and host')
swift.common.wsgi.ConfigFileError: Invalid auth_uri; must include scheme and host

affects: kolla → kolla-ansible
tags: added: swift
removed: swit
affects: kolla-ansible → kolla
Revision history for this message
Christopher Wellie (well100) wrote :

Pls Change in ansible/roles/swift/templates/proxy-server.conf.j2

[filter:s3token]
use = egg:swift#s3token
www_authenticate_uri = {{ keystone_internal_url }}/v3

to

[filter:s3token]
use = egg:swift#s3token
auth_uri = {{ keystone_internal_url }}/v3

affects: kolla → kolla-ansible
Changed in kolla-ansible:
status: New → Confirmed
Changed in kolla-ansible:
assignee: nobody → Christopher Wellie (well100)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (master)

Fix proposed to branch: master
Review: https://review.opendev.org/707354

Changed in kolla-ansible:
status: In Progress → Fix Committed
Changed in kolla-ansible:
status: Fix Committed → In Progress
Revision history for this message
ai_ja_nai (albertomassidda) wrote : Re: ubuntu-source-swift-proxy-server:train Crash on Start

Confirmed that this fixes Swift.
Now I can execute "kolla-ansible/tools/init-runonce", create buckets and upload/download objects.

Revision history for this message
Maksim Malchuk (mmalchuk) wrote :
summary: - ubuntu-source-swift-proxy-server:train Crash on Start
+ swift-proxy-server container crashed on start
Changed in kolla-ansible:
assignee: Christopher Wellie (well100) → Maksim Malchuk (mmalchuk)
Mark Goddard (mgoddard)
Changed in kolla-ansible:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 12.0.0.0rc1

This issue was fixed in the openstack/kolla-ansible 12.0.0.0rc1 release candidate.

Changed in kolla-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 11.1.0

This issue was fixed in the openstack/kolla-ansible 11.1.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 10.3.0

This issue was fixed in the openstack/kolla-ansible 10.3.0 release.

Revision history for this message
Robert Marklund (robert-marklund) wrote (last edit ):

Please backport to updates in old releases that are not EOL.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/train)

Fix proposed to branch: stable/train
Review: https://review.opendev.org/c/openstack/kolla-ansible/+/807059

Revision history for this message
Radosław Piliszek (yoctozepto) wrote :

@Robert - avoiding conflicts, I could only backport down to Train. If CI passes, then we will merge. We generally can't reasonably support Extended Maintenance branches due to the size of the team. But we work with external contributors that want to help.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (stable/train)

Reviewed: https://review.opendev.org/c/openstack/kolla-ansible/+/807059
Committed: https://opendev.org/openstack/kolla-ansible/commit/5e17f619bd8aadf6cecded6e32a753f7e1b63652
Submitter: "Zuul (22348)"
Branch: stable/train

commit 5e17f619bd8aadf6cecded6e32a753f7e1b63652
Author: Maksim Malchuk <email address hidden>
Date: Wed Feb 10 12:57:14 2021 +0300

    Correctly configure S3 Token Middleware for Swift

    According the documentation [1] there need to configure auth_uri in the
    [filter:s3token] section instead of www_authenticate_uri which cause an
    error 'swift.common.wsgi.ConfigFileError: Invalid auth_uri; must
    include scheme and host' during start the swift-proxy-server container.

    1. https://docs.openstack.org/swift/ussuri/middleware.html#s3-token-middleware

    Change-Id: I6b8f5807ebb746428a501dca13eae30763dede8d
    Closes-Bug: 1862765
    Signed-off-by: Maksim Malchuk <email address hidden>
    (cherry picked from commit 835920782fb48c4a750814fedd04126424334856)
    (cherry picked from commit a473d35e04a7e1d18a722fdb2b06176f217d7812)

tags: added: in-stable-train
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible train-eol

This issue was fixed in the openstack/kolla-ansible train-eol release.

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.