Skip to content

Issue during upgrade (happened when upgrading Red Hat AMQ from 7.12.4 to 7.13.0) #238

@cmasopust

Description

@cmasopust
SUMMARY

When upgrading the broker it usually (?) is expected to run "artemis upgrade " but this hasn't happened when I've upgraded version 7.12.4 to 7.13.0, task has been skipped

- name: "Update instance {{ activemq.instance_name }} of {{ activemq.service_name }}"
  ansible.builtin.command:
    cmd: "{{ activemq.home }}/bin/artemis upgrade {{ activemq.instance_home }}"
  environment:
    PATH: "{{ rpm_java_home | default(activemq_rpm_java_home, true) }}/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
    JAVA_HOME: "{{ rpm_java_home }}"
  become: "{{ activemq_install_requires_become | default(true) }}"
  become_user: "{{ activemq_service_user }}"
  changed_when: true
  register: broker_updated
  when:
    - not instance_directory.stat.exists

Doesn't this when condition mean to run the artemis upgrade only in case when the instance_directory is not yet existing, i.e. a fresh installation?

ISSUE TYPE
  • Bug Report
COLLECTION VERSION
redhat.amq_broker                        2.3.2
STEPS TO REPRODUCE

upgrade a fresh installed 7.12.4 broker to version 7.13.0

EXPECTED RESULTS

broker completely updated to version 7.13.0, which does some changes to artemis.profile and bootstrap.xml and adds artemis-utility.profile and log4j2-utility.properties

ACTUAL RESULTS

Errors because of wrong bootstrap.xml, e.g.:

2025-06-11 10:34:09,896 WARN  [org.eclipse.jetty.ee9.webapp.WebAppContext] Failed startup of context oeje9w.WebAppContext@3af58f76{/redhat-branding,/redhat-branding,null,false,@Connector-0}{/opt/amq/amq-broker-7.13.0/web/redhat-branding.war}
java.io.FileNotFoundException: /opt/amq/amq-broker-7.13.0/web/redhat-branding.war
...
2025-06-11 10:34:09,907 WARN  [org.eclipse.jetty.ee9.webapp.WebAppContext] Failed startup of context oeje9w.WebAppContext@5b47731f{/artemis-plugin,/artemis-plugin,null,false,@Connector-0}{/opt/amq/amq-broker-7.13.0/web/artemis-plugin.war}
java.io.FileNotFoundException: /opt/amq/amq-broker-7.13.0/web/artemis-plugin.war
...
2025-06-11 10:34:09,910 WARN  [org.eclipse.jetty.ee9.webapp.WebAppContext] Failed startup of context oeje9w.WebAppContext@53ce2392{/console,/console,null,false,@Connector-0}{/opt/amq/amq-broker-7.13.0/web/hawtio.war}
java.io.FileNotFoundException: /opt/amq/amq-broker-7.13.0/web/hawtio.war
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfixesFixes that resolve issues. SHOULD not be used for minor enhancements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions