CI Storage tests failed because tmpfs now has life data

Bug #1669821 reported by Curtis Hovey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-ci-tools
Fix Released
Critical
Curtis Hovey

Bug Description

As seen at
    http://reports.vapour.ws/releases/issue/58b988f5749a562867f5003e

The storage test fails because there is a new life key deep in the data that does not meet expectations. The expected data is there, but the extra key cause a failure of matching the dict.

JujuAssertionError: Found: {u'storage': {u'data/0': {u'kind': u'filesystem', u'attachments': {u'units': {u'dummy-storage-fs/0': {u'life': u'alive', u'location': u'/srv/data'}}}, u'life': u'alive'}}, u'filesystems': {u'0/0': {u'status': {u'current': u'attached', u'since': u'03 Mar 2017 08:25:07Z'}, u'life': u'alive', u'provider-id': u'0/0', u'Attachments': {u'units': {u'dummy-storage-fs/0': {u'machine': u'0', u'life': u'alive', u'location': u'/srv/data'}}, u'machines': {u'0': {u'mount-point': u'/srv/data', u'life': u'alive', u'read-only': False}}}, u'storage': u'data/0', u'pool': u'rootfs', u'size': 7924}}}
Expected: {'storage': {'data/0': {'kind': 'filesystem', 'attachments': {'units': {'dummy-storage-fs/0': {'location': '/srv/data'}}}}}}

Revision history for this message
Curtis Hovey (sinzui) wrote :

Juju 2.2 officially includes the "life" field to inform users about the state of the storage. CI should fail Juju if the storge life is in a bad state. We do not want to change the test to ignore "life", when the client is 2.2+, it should expect "life: alive".

Revision history for this message
Curtis Hovey (sinzui) wrote :

Support for block/disk life also landed. The test needs to expect life: alive for both filesystem and block types.

Changed in juju-ci-tools:
status: Triaged → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-ci-tools:
status: Fix Committed → Fix Released
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.