/srv/nodes static reference instead of conf.get
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Undecided
|
Kun Huang |
Bug Description
Currently there is a few part of swift that has /srv/nodes references instead of having a conf.get('devices', '/srv/node'):
swift$ git grep /srv|egrep -v '(etc|doc|
bin/swift-
bin/swift-
bin/swift-
test/unit/
test/unit/
Would it make sense to patch it to make it consistent with the others?
Changed in swift: | |
assignee: | nobody → boddepalli srikanth (boddepalli-srikanth) |
Changed in swift: | |
status: | New → Confirmed |
Changed in swift: | |
assignee: | boddepalli srikanth (boddepalli-srikanth) → nobody |
Changed in swift: | |
milestone: | none → 1.9.1 |
status: | Fix Committed → Fix Released |
Hi, Chmouel Boudjnah
https:/ /bugs.launchpad .net/swift/ +bug/907908
These two bugs talk about the same thing.
I have a solution by pid.
The swift-get-node command from swift (apt-get or yum) is installed in every node in cluster. The command wants know every path from each node. We can search /var/run/swift for that pid. If we get pid of proxy-server, we can get which command and its args is working by ps or other tools. If we only get pid of account-server/1, we can get the config file of that account server and then know where is proxy server.
This is stable for SAIO or swift cluster in my mind.
A case:
swift@storage- hk:/var/ run/swift$ ps 55509 bin/swift- proxy-server /etc/swift/ proxy-server. conf verbose
PID TTY STAT TIME COMMAND
55509 ? Ss 0:00 /usr/bin/python /usr/local/