puppet-gluster icon indicating copy to clipboard operation
puppet-gluster copied to clipboard

Unable to resolve brick changes if the brick order changes

Open ae-dg opened this issue 7 years ago • 4 comments

Affected Puppet, Ruby, OS and module versions/distributions

Docker image: puppetserver 2.7.2, puppetexplorer 2.0.0, pupperboard 0.2.0, puppetdb 4.3.0, puppet-postgres 0.1.0

  • Module version: 3.0.0

How to reproduce (e.g Puppet code you use)

Doing some stress testing of gluster I killed and rebuilt a node. Before doing this the gluster volume info reported the bricks in the order:

Brick1: server1:/data/voltest1/brick Brick2: server2:/data/voltest1/brick Brick3: server3:/data/voltest1/brick

After the rebuild the order is

Brick1: server2:/data/voltest1/brick Brick2: server3:/data/voltest1/brick Brick3: server1:/data/voltest1/brick

What are you seeing

Subsequent runs of puppet agent report

Notice: unable to resolve brick changes for Gluster volume voltest1! Defined: server1:/data/voltest1/brick server2:/data/voltest1/brick server3:/data/voltest1/brick Current: [server2:/data/voltest1/brick, server3:/data/voltest1/brick, server1:/data/voltest1/brick]

What behaviour did you expect instead

For it to not complain as the only change is the order of reporting. :)

Any additional information you'd like to impart

"server1", "server2" and "server3" above are not the real names of the servers.

The remove of the brick from the rebuilt server, the peer detach, and peer probe were done manually as the puppet module said it doesn't support removal of bricks from a volume.

ae-dg avatar May 16 '17 12:05 ae-dg