[Bug 1111883] [NEW] Peer relation listed in relation-ids, but not queryable using relation-list
James Page
james.page at ubuntu.com
Thu Jan 31 22:37:28 UTC 2013
Public bug reported:
Charm branch:
lp:~openstack-charmers/charms/precise/cinder/ha-support
Hook function:
##########################################################################
# Description: Query Cluster peer interface to see if peered
# Returns: 0 if peered, 1 if not peered
##########################################################################
is_peered() {
r_id=$(relation-ids cluster)
if [ -z "$(relation-list -r $r_id)" ]; then
echo "Unit not yet peered"
return 1
else
echo "Unit peered"
return 0
fi
}
relation-ids cluster appears to return "cluster:11"; however the
subsequent relation-list -r cluster:11 prints "Relation not found" and
returns an empty string:
2013-01-31 17:21:02,128 unit:cinder/4: unit.hook.api DEBUG: Listing relation members for cluster:11
2013-01-31 17:21:02,131 unit:cinder/4: unit.deploy DEBUG: Downloading charm local:quantal/hacluster-59 to /var/lib/juju/units/cinder-hacluster-4/charms
2013-01-31 17:21:02,136 unit:cinder/4: juju.state.hook DEBUG: Ignoring partially constructed relation: amqp:26
2013-01-31 17:21:02,145 unit:cinder/4: hook.output INFO: Relation not found
2013-01-31 17:21:02,146 unit:cinder/4: juju.state.hook DEBUG: Ignoring partially constructed relation: cinder-volume-service:27
2013-01-31 17:21:02,148 unit:cinder/4: unit.relation.lifecycle DEBUG: stopped relation:amqp lifecycle
2013-01-31 17:21:02,187 unit:cinder/4: hook.output INFO: Unit not yet peered
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: juju 0.6-1ubuntu1
ProcVersionSignature: Ubuntu 3.5.0-22.34-generic 3.5.7.2
Uname: Linux 3.5.0-22-generic x86_64
ApportVersion: 2.6.1-0ubuntu9
Architecture: amd64
Date: Thu Jan 31 17:33:04 2013
MarkForUpload: True
PackageArchitecture: all
SourcePackage: juju
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: juju (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug quantal uec-images
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to juju in Ubuntu.
https://bugs.launchpad.net/bugs/1111883
Title:
Peer relation listed in relation-ids, but not queryable using
relation-list
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/juju/+bug/1111883/+subscriptions
More information about the Ubuntu-server-bugs
mailing list