subnet "127.0.0.0/8" not found

Bug #1603074 reported by Emsi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Expired
Medium
Unassigned
ceph-osd (Juju Charms Collection)
Invalid
Undecided
Unassigned

Bug Description

While deploying ceph-osd I got the following error:

unit-ceph-osd-0: 2016-07-13 20:19:25 INFO unit.ceph-osd/0.mon-relation-changed logger.go:40 ^MReading state information... 0%^MReading state information... 0%^MReading state information... Done
unit-ceph-osd-0: 2016-07-13 20:19:25 INFO unit.ceph-osd/0.mon-relation-changed logger.go:40 error: cannot get subnet for address "loopback address \"127.0.0.1\" of device \"lo\" on machine \"1\"": subnet "127.0.0.0/8" not found
unit-ceph-osd-0: 2016-07-13 20:19:25 INFO unit.ceph-osd/0.mon-relation-changed logger.go:40 Traceback (most recent call last):
unit-ceph-osd-0: 2016-07-13 20:19:25 INFO unit.ceph-osd/0.mon-relation-changed logger.go:40 File "/var/lib/juju/agents/unit-ceph-osd-0/charm/hooks/mon-relation-changed", line 564, in <module>
unit-ceph-osd-0: 2016-07-13 20:19:25 INFO unit.ceph-osd/0.mon-relation-changed logger.go:40 hooks.execute(sys.argv)
unit-ceph-osd-0: 2016-07-13 20:19:25 INFO unit.ceph-osd/0.mon-relation-changed logger.go:40 File "/var/lib/juju/agents/unit-ceph-osd-0/charm/hooks/charmhelpers/core/hookenv.py", line 717, in execute
unit-ceph-osd-0: 2016-07-13 20:19:25 INFO unit.ceph-osd/0.mon-relation-changed logger.go:40 self._hooks[hook_name]()
unit-ceph-osd-0: 2016-07-13 20:19:25 INFO unit.ceph-osd/0.mon-relation-changed logger.go:40 File "/var/lib/juju/agents/unit-ceph-osd-0/charm/hooks/mon-relation-changed", line 491, in mon_relation
unit-ceph-osd-0: 2016-07-13 20:19:25 INFO unit.ceph-osd/0.mon-relation-changed logger.go:40 emit_cephconf()
unit-ceph-osd-0: 2016-07-13 20:19:25 INFO unit.ceph-osd/0.mon-relation-changed logger.go:40 File "/var/lib/juju/agents/unit-ceph-osd-0/charm/hooks/mon-relation-changed", line 330, in emit_cephconf
unit-ceph-osd-0: 2016-07-13 20:19:25 INFO unit.ceph-osd/0.mon-relation-changed logger.go:40 cephcontext['public_addr'] = get_public_addr()
unit-ceph-osd-0: 2016-07-13 20:19:25 INFO unit.ceph-osd/0.mon-relation-changed logger.go:40 File "/var/lib/juju/agents/unit-ceph-osd-0/charm/hooks/charmhelpers/core/hookenv.py", line 74, in wrapper
unit-ceph-osd-0: 2016-07-13 20:19:25 INFO unit.ceph-osd/0.mon-relation-changed logger.go:40 res = func(*args, **kwargs)
unit-ceph-osd-0: 2016-07-13 20:19:25 INFO unit.ceph-osd/0.mon-relation-changed logger.go:40 File "/var/lib/juju/agents/unit-ceph-osd-0/charm/hooks/utils.py", line 100, in get_public_addr
unit-ceph-osd-0: 2016-07-13 20:19:25 INFO unit.ceph-osd/0.mon-relation-changed logger.go:40 return network_get_primary_address('public')
unit-ceph-osd-0: 2016-07-13 20:19:25 INFO unit.ceph-osd/0.mon-relation-changed logger.go:40 File "/var/lib/juju/agents/unit-ceph-osd-0/charm/hooks/charmhelpers/core/hookenv.py", line 839, in inner_translate_exc2
unit-ceph-osd-0: 2016-07-13 20:19:25 INFO unit.ceph-osd/0.mon-relation-changed logger.go:40 return f(*args, **kwargs)
unit-ceph-osd-0: 2016-07-13 20:19:25 INFO unit.ceph-osd/0.mon-relation-changed logger.go:40 File "/var/lib/juju/agents/unit-ceph-osd-0/charm/hooks/charmhelpers/core/hookenv.py", line 1009, in network_get_primary_address
unit-ceph-osd-0: 2016-07-13 20:19:25 INFO unit.ceph-osd/0.mon-relation-changed logger.go:40 return subprocess.check_output(cmd).strip()
unit-ceph-osd-0: 2016-07-13 20:19:25 INFO unit.ceph-osd/0.mon-relation-changed logger.go:40 File "/usr/lib/python2.7/subprocess.py", line 574, in check_output
unit-ceph-osd-0: 2016-07-13 20:19:25 INFO unit.ceph-osd/0.mon-relation-changed logger.go:40 raise CalledProcessError(retcode, cmd, output=output)
unit-ceph-osd-0: 2016-07-13 20:19:25 INFO unit.ceph-osd/0.mon-relation-changed logger.go:40 subprocess.CalledProcessError: Command '['network-get', '--primary-address', 'public']' returned non-zero exit status 1
unit-ceph-osd-0: 2016-07-13 20:19:25 ERROR juju.worker.uniter.operation runhook.go:107 hook "mon-relation-changed" failed: exit status 1

Revision history for this message
James Page (james-page) wrote :

ouput from "network-get --primary-address public":

unit-ceph-osd-0: 2016-07-13 20:19:25 INFO unit.ceph-osd/0.mon-relation-changed logger.go:40 error: cannot get subnet for address "loopback address \"127.0.0.1\" of device \"lo\" on machine \"1\"": subnet "127.0.0.0/8" not found

Revision history for this message
James Page (james-page) wrote :

A little bewildered as to why juju tried to bind the public extra-binding to the loopback device.

Changed in ceph-osd (Juju Charms Collection):
status: New → Invalid
Revision history for this message
James Page (james-page) wrote :

redirecting bug to juju project (not something charm specific).

Revision history for this message
John A Meinel (jameinel) wrote :

Offhand, I don't think it was trying to use that address, it was probably looking through the addresses it new about, and find what spaces they are associated with. Which then fails because 127.0* isn't in a space.

Revision history for this message
John A Meinel (jameinel) wrote :

(eg, it should be able to find out that 127.0 isn't the space we want, it just is doing a lookup to see what space that subnet is in, but that subnet isn't recorded and got an error. We should just filter it.)

Revision history for this message
John A Meinel (jameinel) wrote :

I could be wrong and it actually did try to run there, which would certainly be broken.

Changed in juju:
status: New → Triaged
importance: Undecided → High
milestone: none → 2.2.0
Curtis Hovey (sinzui)
Changed in juju:
milestone: 2.2-beta1 → 2.2-beta2
Curtis Hovey (sinzui)
Changed in juju:
milestone: 2.2-beta2 → 2.2-beta3
Changed in juju:
milestone: 2.2-beta3 → 2.2-beta4
Changed in juju:
milestone: 2.2-beta4 → 2.2-rc1
Revision history for this message
Tim Penhey (thumper) wrote :

Stop pushing down releases, we'll assign a milestone when we actually start.

James, how often is this a problem? How seriously does it impact you?

tags: added: jujuc network network-get
Changed in juju:
importance: High → Medium
milestone: 2.2-rc1 → none
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 5 years, so we're marking it Expired. If you believe this is incorrect, please update the status.

Changed in juju:
status: Triaged → Expired
tags: added: expirebugs-bot
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.