wget failure while fetching rings from proxy

Bug #1318083 reported by Andreas Hasenack
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
swift-storage (Juju Charms Collection)
Fix Released
High
James Page

Bug Description

(...)
2014-05-09 21:51:34 INFO juju-log swift-storage:22: Registered config file: /etc/swift/swift.conf
2014-05-09 21:51:34 INFO juju-log swift-storage:22: Registered config file: /etc/rsyncd.conf
2014-05-09 21:51:34 INFO juju-log swift-storage:22: Registered config file: /etc/swift/account-server.conf
2014-05-09 21:51:34 INFO juju-log swift-storage:22: Registered config file: /etc/swift/object-server.conf
2014-05-09 21:51:34 INFO juju-log swift-storage:22: Registered config file: /etc/swift/container-server.conf
2014-05-09 21:51:34 INFO juju-log swift-storage:22: Creating choice loader with dirs: [['templates/'], ['/var/lib/juju/agents/unit-swift-storage-0/charm/hooks/charmhelpers/contrib/openstack/templates']]
2014-05-09 21:51:34 INFO juju-log swift-storage:22: Loaded template from templates/swift.conf
2014-05-09 21:51:34 INFO juju-log swift-storage:22: Rendering from template: swift.conf
2014-05-09 21:51:34 INFO juju-log swift-storage:22: Wrote template /etc/swift/swift.conf.
2014-05-09 21:51:34 INFO juju-log swift-storage:22: swift-storage-node: Fetching all swift rings from proxy @ http://10.96.2.36/swift-rings.
2014-05-09 21:51:34 INFO juju-log swift-storage:22: Fetching http://10.96.2.36/swift-rings/account.ring.gz.
2014-05-09 21:51:34 INFO swift-storage-relation-changed --2014-05-09 21:51:34-- http://10.96.2.36/swift-rings/account.ring.gz
2014-05-09 21:51:34 INFO swift-storage-relation-changed Connecting to 10.96.2.36:80... failed: Connection refused.
2014-05-09 21:51:34 INFO swift-storage-relation-changed Traceback (most recent call last):
2014-05-09 21:51:34 INFO swift-storage-relation-changed File "/var/lib/juju/agents/unit-swift-storage-0/charm/hooks/swift-storage-relation-changed", line 91, in <module>
2014-05-09 21:51:34 INFO swift-storage-relation-changed main()
2014-05-09 21:51:34 INFO swift-storage-relation-changed File "/var/lib/juju/agents/unit-swift-storage-0/charm/hooks/swift-storage-relation-changed", line 85, in main
2014-05-09 21:51:34 INFO swift-storage-relation-changed hooks.execute(sys.argv)
2014-05-09 21:51:34 INFO swift-storage-relation-changed File "/var/lib/juju/agents/unit-swift-storage-0/charm/hooks/charmhelpers/core/hookenv.py", line 381, in execute
2014-05-09 21:51:34 INFO swift-storage-relation-changed self._hooks[hook_name]()
2014-05-09 21:51:34 INFO swift-storage-relation-changed File "/var/lib/juju/agents/unit-swift-storage-0/charm/hooks/charmhelpers/core/host.py", line 217, in wrapped_f
2014-05-09 21:51:34 INFO swift-storage-relation-changed f(*args)
2014-05-09 21:51:34 INFO swift-storage-relation-changed File "/var/lib/juju/agents/unit-swift-storage-0/charm/hooks/swift-storage-relation-changed", line 80, in swift_storage_relation_changed
2014-05-09 21:51:34 INFO swift-storage-relation-changed fetch_swift_rings(rings_url)
2014-05-09 21:51:34 INFO swift-storage-relation-changed File "/var/lib/juju/agents/unit-swift-storage-0/charm/hooks/swift_storage_utils.py", line 196, in fetch_swift_rings
2014-05-09 21:51:34 INFO swift-storage-relation-changed check_call(cmd)
2014-05-09 21:51:34 INFO swift-storage-relation-changed File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
2014-05-09 21:51:34 INFO swift-storage-relation-changed raise CalledProcessError(retcode, cmd)
2014-05-09 21:51:34 INFO swift-storage-relation-changed subprocess.CalledProcessError: Command '['wget', u'http://10.96.2.36/swift-rings/account.ring.gz', '-O', '/etc/swift/account.ring.gz']' returned non-zero exit status 4
2014-05-09 21:51:34 ERROR juju.worker.uniter uniter.go:486 hook failed: exit status 1

If I wget that URL later, it works:

root@hgtmw:~# wget http://10.96.2.36/swift-rings/account.ring.gz
--2014-05-09 22:06:48-- http://10.96.2.36/swift-rings/account.ring.gz
Connecting to 10.96.2.36:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 184 [application/x-gzip]
Saving to: ‘account.ring.gz’

100%[===============================================================================================================================>] 184 --.-K/s in 0s

2014-05-09 22:06:48 (12.3 MB/s) - ‘account.ring.gz’ saved [184/184]

juju status output attached.

Full juju log for this unit also attached.

Related branches

Revision history for this message
Andreas Hasenack (ahasenack) wrote :
Revision history for this message
Andreas Hasenack (ahasenack) wrote :
tags: added: landscape
tags: added: cloud-installer
Revision history for this message
Björn Tillenius (bjornt) wrote :

FWIW, an exit status of 4 indicates a network error, so retrying the wget call would make sense.

James Page (james-page)
Changed in swift-storage (Juju Charms Collection):
importance: Undecided → High
status: New → In Progress
assignee: nobody → James Page (james-page)
James Page (james-page)
Changed in swift-storage (Juju Charms Collection):
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.