glance wsgi config not cleaned by clean.sh

Bug #2057999 reported by huicoffee
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack
Fix Released
Undecided
huicoffee

Bug Description

cause reason:

when start ./stack.sh by mistake twice, without executed ./clean.sh between them. g-api(glance wsgi) was already start in the first time with 60999 random port, and made a apache file (/etc/apache2/sites-enabled/glance-wsgi-api.conf). stack.sh find random port for the second time staring g-api, and avoid port 60999 which was used, write into 'glance-wsgi-api.conf' file. Then restart g-api with 60998(script random port --). And the file 'glance-wsgi-api.conf' which has port config field 60998 is never cleaned by clean.sh.

Then execute stash.sh always occur error : curl -g -k --noproxy '*' -s -o /dev/null -w '%{http_code}' http://10.211.55.3/image , received code 503.

because g-api server used 60999 port, but apache transfer request to port 60998 by 'glance-wsgi-api.conf' file
------------------------------------------------------------------------------------------
other info:

cat /etc/os-release

PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

uname -a

Linux ubuntufrommac 5.15.0-94-generic #104-Ubuntu SMP Tue Jan 9 15:26:57 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux

huicoffee (huicoffee)
Changed in devstack:
assignee: nobody → zecheng liu (huicoffee)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/devstack/+/913302

Changed in devstack:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to devstack (master)

Reviewed: https://review.opendev.org/c/openstack/devstack/+/913302
Committed: https://opendev.org/openstack/devstack/commit/5f5255bc011ef885f254c659009662870499de5a
Submitter: "Zuul (22348)"
Branch: master

commit 5f5255bc011ef885f254c659009662870499de5a
Author: huicoffee <email address hidden>
Date: Fri Mar 15 17:15:33 2024 +0800

    Remove Glance uWSGI config in clean.sh

    Updated clean.sh to remove Glance's Apache uWSGI config files in
    APACHE_CONF_DIR, including /etc/apache2/sites-enabled/ on Ubuntu.

    Test Plan:
    - Run clean.sh.
    - Confirm Glance uWSGI configs are removed from APACHE_CONF_DIR.

    Closes-Bug: #2057999

    Change-Id: I44475b8e084c4b20d7b7cb7f28574f797dbda7a2

Changed in devstack:
status: In Progress → Fix Released
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.