swift-init should check if binary exists before starting

Bug #1079075 reported by Christian Berendt
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Fix Released
Low
Michele Valsecchi

Bug Description

At the moment swift-init simply tries start up all defined services and fails, because some configuration files are not existent.

Unable to locate config for proxy-server
Starting container-replicator...(/etc/swift/container-server.conf)
Starting object-auditor...(/etc/swift/object-server.conf)
Unable to locate config for object-expirer

I think swift-init should check if the needed binary (for example swift-proxy-server) exists on the system before proceeding.

Revision history for this message
clayg (clay-gerrard) wrote :

It seems like the simplest thing would be to check for the bin (something like distutils.spawn.find_executable) when adding the Server's to the Manager.

For clarity, it seems like this applies to status, and stop as much as start. And the bug seems to be the printing of the warning "Unable to locate config for X-server" as it doesn't seem to effect the successful return code when you're starting multiple servers.

Changed in swift:
assignee: nobody → clayg (clay-gerrard)
status: New → In Progress
clayg (clay-gerrard)
Changed in swift:
importance: Undecided → Low
clayg (clay-gerrard)
Changed in swift:
assignee: clayg (clay-gerrard) → nobody
status: In Progress → Confirmed
tags: added: low-hanging-fruit
Changed in swift:
assignee: nobody → Madhuri Kumari (madhuri-rai07)
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix proposed to swift (master)

Fix proposed to branch: master
Review: https://review.openstack.org/91753

Changed in swift:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on swift (master)

Change abandoned by John Dickinson (<email address hidden>) on branch: master
Review: https://review.openstack.org/91753
Reason: Abandoning due to lack of activity since the last negative review. You can restore the change if you want to keep working on it.

Revision history for this message
Jiri Suchomel (jsuchome) wrote :

The proposed patch tries to handle the situation with missing binaries, but not with the config files, mentioned in the report.

Revision history for this message
Harshit (harshit-3) wrote :

I am new to this process.
How do I proceed with fixing the bug?

Revision history for this message
clayg (clay-gerrard) wrote :
Revision history for this message
Harshit (harshit-3) wrote :

Thanks for the response clayg.

I have addressed the comments, but the change is abandoned. So should i push it as a new changeset or can someone un-abandon the changeset .

Changed in swift:
assignee: Madhuri Kumari (madhuri-rai07) → Harshit (harshit-3)
Revision history for this message
Madhuri Kumari (madhuri-rai07) wrote :

Hi harshit,
Thanks for your contribution.

I am in progress of fixing this bug. Review https://review.openstack.org/#/c/91753/ was being released for fix. I am continuing this work.

Changed in swift:
assignee: Harshit (harshit-3) → Madhuri Kumari (madhuri-rai07)
Revision history for this message
Mohit Motiani (mohit-motiani) wrote :

Hi Madhuri,

Are you still woking on this bug?

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by Madhuri Kumari (<email address hidden>) on branch: master
Review: https://review.openstack.org/91753

Changed in swift:
assignee: Madhuri Kumari (madhuri-rai07) → surbhi sarda (surbhisarda)
Changed in swift:
assignee: surbhi sarda (surbhisarda) → nobody
Changed in swift:
assignee: nobody → Michele Valsecchi (mvalsecc)
Changed in swift:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/swift 2.27.0

This issue was fixed in the openstack/swift 2.27.0 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.