(Go: >> BACK << -|- >> HOME <<)

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

confluent upgrade error 5.5.0 to 6.0.0 #1407

Open
sunny092318 opened this issue May 9, 2023 · 2 comments
Open

confluent upgrade error 5.5.0 to 6.0.0 #1407

sunny092318 opened this issue May 9, 2023 · 2 comments

Comments

@sunny092318
Copy link
sunny092318 commented May 9, 2023

Describe the issue

In our project we have install the confluent Kafka 5.5.0 version with cp-ansible https://github.com/confluentinc/cp-ansible code through automation.
since this version already out of life so we are planning to upgrade with latest confluent Kafka version 6.0.0.

We are following this document https://docs.confluent.io/ansible/6.0/ansible-upgrade.html to upgrade confluent Kafka from 5.5 to 6.0.

We were able to upgrade the zookeeper node successfully but while upgrading the Kafka broker we are getting playbook error.

Zookeeper upgrade:
$ ansible-playbook -i /path/to/hosts.yml upgrade_zookeeper.yml

Kafka broker upgrade:
$ ansible-playbook -i /path/to/hosts.yml upgrade_kafka_broker.yml -e kafka_broker_upgrade_start_version=5.5.0

Please find the below error got while running the broker playbook.

$ ansible-playbook -i /path/to/hosts.yml upgrade_kafka_broker.yml -e kafka_broker_upgrade_start_version=5.5.0

Errors:
TASK [set_fact] *********************************************************************************************************************************************
task path: /automation/kafka-upgrade/confluent-kafka-downgrade/ansible/cp-ansible/cp-ansible/tasks/create_ordered_kafka_groups.yml:17
fatal: [hostname]: FAILED! => {
    "msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'json'\n\nThe error appears to be in '/automation/kafka-upgrade/confluent-kafka-downgrade/ansible/cp-ansible/cp-ansible/tasks/create_ordered_kafka_groups.yml': line 17, 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- set_fact:\n  ^ here\n"
}

To Reproduce
NA

Expected behaviour
Should run the Kafka upgrade playbook without error

Inventory File
N/A

Logs
TASK [set_fact] *********************************************************************************************************************************************
task path: /automation/cp-ansible/tasks/create_ordered_kafka_groups.yml:17
fatal: [hostname]: FAILED! => {
    "msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'json'\n\nThe error appears to be in '/automation/cp-ansible/tasks/create_ordered_kafka_groups.yml': line 17, 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- set_fact:\n  ^ here\n"
}

Environment (please complete the following information):

  • OS: centos 7
  • CP-Ansible Branch: 5.5.0
  • Ansible Version: 2.9

Playbook code repo: https://raw.githubusercontent.com/confluentinc/cp-ansible/6.0.0-post/tasks/create_ordered_kafka_groups.yml

Additional context
Add any other context about the problem here.

Any inputs and leads will be really helpful.

@sunny092318
Copy link
Author

Any inputs and leads will be really helpful.

@sunny092318 sunny092318 changed the title confluent upgrade error 5.5.0 to 7.3.1 confluent upgrade error 5.5.0 to 6.0.0 May 15, 2023
@sunny092318
Copy link
Author

any update on this, please help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant