unit fails when changing rpc_interface config option

Bug #1713688 reported by Gábor Mészáros
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cassandra Juju Charm
Fix Released
High
Stuart Bishop

Bug Description

When changing the rpc interface to another network, the charm does not restart cassandra and fails to connect to the new interface:port, because cassandra is still listening on the old interface (but the configuration file gets rendered just fine).
Upon issueing `service cassandra restart`, the charm can continue and finishes the change.

Tags: 4010
Revision history for this message
Gábor Mészáros (gabor.meszaros) wrote :
Revision history for this message
Gábor Mészáros (gabor.meszaros) wrote :
Stuart Bishop (stub)
Changed in cassandra-charm:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Stuart Bishop (stub) wrote :

The charm correctly noticed the IP address change and made a restart request to the leader. However, later in the hook the reset_auth_keyspace_replication handler failed, and it dies with a traceback (see the end of the attached charm.log). This is the real failure, which stopped the restart request being sent to the leader and should have put the unit into an error state. The reason it failed is most likely that the charm is attempting to contact the local cassandra server on the new interface, but because the restart hasn't happened yet the server is still listening on the old interface.

Are you able to confirm that the 100.70.0.134 IP address was the new interface?

Revision history for this message
Gábor Mészáros (gabor.meszaros) wrote :

Yes, I confirm. Furthermore manually restarting Cassandra let's the charm to continue.

Revision history for this message
Stuart Bishop (stub) wrote :

New version with the fix has been published.

Changed in cassandra-charm:
status: Confirmed → Fix Released
assignee: nobody → Stuart Bishop (stub)
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.