Skip to content

MAS Update fails at update-kafka task #1990

@Phil-N77

Description

@Phil-N77

MAS CLI version

15.14.0

CLI function used

update

What happened?

Last week I pulled the latest CLI image and updated a mas 9.0 instance with no issue. Today I again pulled the latest CLI image, but this time the mas update pipeline failed twice at the same task when trying to update Kafka. I then switched back to a older CLI version (15.12.0) and the mas update pipeline completed with no issues.

Relevant log output

TASK [ibm.mas_devops.kafka : Verify that the Kafka instance is in ZooKeeper mode] ***
fatal: [localhost]: FAILED! => {"msg": "The conditional check 'kafka_cluster_cr.resources[0].status.kafkaMetadataState == \"ZooKeeper\"' failed. The error was: error while evaluating conditional (kafka_cluster_cr.resources[0].status.kafkaMetadataState == \"ZooKeeper\"): list object has no element 0. list object has no element 0\n\nThe error appears to be in '/opt/app-root/lib64/python3.9/site-packages/ansible_collections/ibm/mas_devops/roles/kafka/tasks/provider/strimzi/upgrade.yml': line 16, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: \"Verify that the Kafka instance is in ZooKeeper mode\"\n ^ here\n"}

Metadata

Metadata

Assignees

Labels

Bug ReportSomething isn't working

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions