Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 923580

Summary: ufo: `swift-init all start` fails
Product: [Community] GlusterFS Reporter: lily <junli.li>
Component: object-storageAssignee: Junaid <junaid>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: mainlineCC: cong.han, gluster-bugs, kkeithle, pportant, vagarwal, wheelear
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-21 09:10:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description lily 2013-03-20 06:10:27 UTC
Description of problem:
When installing gluster-swift-ufo-1.1-4.noarch.rpm and openstack-swift rpms(1.7.4 Version) on rhel6.4, swift service failed to start.

Version-Release number of selected component (if applicable):
master branch

How reproducible:
always

Steps to Reproduce:
1.Install gluster-swift-ufo-1.1-4.noarch.rpm which I rpmbuild myself from the master branch
2.Setup swift(using tempauth)
3.`swift-init all start`
  
Actual results:
# swift-init all start
container-updater running (20799 - /etc/swift/container-server.conf)
container-updater already started...
account-auditor running (20800 - /etc/swift/account-server.conf)
account-auditor already started...
object-replicator running (20801 - /etc/swift/object-server.conf)
object-replicator already started...
Starting proxy-server...(/etc/swift/proxy-server.conf)
container-replicator running (20803 - /etc/swift/container-server.conf)
container-replicator already started...
object-auditor running (20804 - /etc/swift/object-server.conf)
object-auditor already started...
Unable to locate config for object-expirer
container-auditor running (20805 - /etc/swift/container-server.conf)
container-auditor already started...
Starting container-server...(/etc/swift/container-server.conf)
Starting account-server...(/etc/swift/account-server.conf)
account-reaper running (20808 - /etc/swift/account-server.conf)
account-reaper already started...
container-sync running (20809 - /etc/swift/container-server.conf)
container-sync already started...
account-replicator running (20810 - /etc/swift/account-server.conf)
account-replicator already started...
object-updater running (20811 - /etc/swift/object-server.conf)
object-updater already started...
Starting object-server...(/etc/swift/object-server.conf)
Error trying to load config /etc/swift/proxy-server.conf: 'module' object has no attribute 'constraints_conf_int'

Error trying to load config /etc/swift/container-server.conf: 'module' object has no attribute 'constraints_conf_int'

Error trying to load config /etc/swift/account-server.conf: 'module' object has no attribute 'constraints_conf_int'

Error trying to load config /etc/swift/object-server.conf: 'module' object has no attribute 'constraints_conf_int'

Expected results:
swift service start successfully

Additional info:
This appears to be due to the fact that this line:
ufo/gluster/swift/common/constraints.py:23:MAX_OBJECT_NAME_COMPONENT_LENGTH = swift.common.constraints.constraints_conf_int(

Comment 1 Junaid 2013-03-21 09:10:44 UTC
Hi Lily,

The code is looking for a patch that is part of current OpenStack master branch. In the mean while we provide custom rpm's, you can prepare rpm's from the OpenStack master branch.

Closing the bug as "not a bug". Reopen it if you face any issues.

--Junaid

Comment 2 Junaid 2013-03-25 07:01:08 UTC
*** Bug 923228 has been marked as a duplicate of this bug. ***

Comment 3 Alex Wheeler 2013-03-25 13:02:15 UTC
Where can I find these custom RPMs, since the 3.4.0Alpha-2 release, the latest RPMs I can find, has this same bug?

Comment 4 Alex Wheeler 2013-03-25 13:12:53 UTC
Or at least, my bug: 923228, about issues with 3.4.0Alpha-2 release was marked as a duplicate of this bug, though I didn't have the same problems this bug describes.

Comment 5 Kaleb KEITHLEY 2013-03-26 15:57:29 UTC
I believe Junaid is referring to RHS rpms

Comment 6 Peter Portante 2013-03-29 02:55:46 UTC
Additionally, one should not be using "swift-init all start", should only use "swift main start/stop/restart".