Skip to content

Conversation

@euanh
Copy link
Contributor

@euanh euanh commented Aug 14, 2015

Since change eae565f, starting a VM on a slave host has caused
a 'Pool_role.This_host_is_a_master' exception to be raised in
Rrdd_proxy.push_rrd. The VM will start correctly, but no RRDs will
be available.

The exception is only raised when starting a VM on a slave. In this case,
Rrdd_proxy.push_rrd incorrectly calls Pool_role.get_master_address, which
raises an exception when run on the master. Rrdd_proxy.push_rrd is only
ever run on the master, so the exception is always raised when starting
a VM on the slave.

Signed-off-by: Euan Harris euan.harris@citrix.com

Since change eae565f, starting a VM on a slave host has caused
a 'Pool_role.This_host_is_a_master' exception to be raised in
Rrdd_proxy.push_rrd.   The VM will start correctly, but no RRDs will
be available.

The exception is only raised when starting a VM on a slave.  In this case,
Rrdd_proxy.push_rrd incorrectly calls Pool_role.get_master_address, which
raises an exception when run on the master.  Rrdd_proxy.push_rrd is only
ever run on the master, so the exception is always raised when starting
a VM on the slave.

Signed-off-by: Euan Harris <euan.harris@citrix.com>
@simonjbeaumont
Copy link
Contributor

I think this looks good once we've done a dev-test.

@euanh
Copy link
Contributor Author

euanh commented Aug 14, 2015

Dev test is somewhat positive. This seems to prevent the exception which was being raised when the VM was started on the slave, but it seems that there is a further problem with copying the RRD data back to the master on shutdown. If I start the VM on the slave, stop it and then start it again on the master, the performance graphs don't show any data from the time it was running on the slave.

euanh added a commit that referenced this pull request Aug 14, 2015
CA-177513: Push RRDs to slaves correctly
@euanh euanh merged commit 14e8a43 into xapi-project:master Aug 14, 2015
@euanh euanh deleted the CA-177513 branch September 23, 2015 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants