We ran into some issues when updating maps1003 from jessie to stretch. There was a config(hieradata) change that make sure we use cassandra-2.2 version. Puppet fails with this error:
Error: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold --force-yes install cassandra=2.2.6-wmf5' returned 100: Reading package lists... Building dependency tree... Reading state information... E: Version '2.2.6-wmf5' for 'cassandra' was not found Error: /Stage[main]/Cassandra/Package[cassandra]/ensure: change from purged to 2.2.6-wmf5 failed: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold --force-yes install cassandra=2.2.6-wmf5' returned 100: Reading package lists... Building dependency tree... Reading state information... E: Version '2.2.6-wmf5' for 'cassandra' was not found
running apt-get update manually fixed this.
We should look at the puppet config to make sure apt-get update runs after any config change. or package version change.