Bug 1662976
| Summary: | errors found while upgrading OSP12 to OSP13 with Octavia | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Eduard Barrera <ebarrera> |
| Component: | rhosp-director | Assignee: | RHOS Maint <rhos-maint> |
| Status: | CLOSED DUPLICATE | QA Contact: | Gurenko Alex <agurenko> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 12.0 (Pike) | CC: | amuller, bhaley, dbecker, jfrancoa, mburns, morazi, tfreger |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-01-03 16:45:46 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
We do not support Octavia on OSP 12. This BZ is valid for 13 and 14, which is one of the version to which the upgrade is being done. However there is a Bugzilla to track the issue https://bugzilla.redhat.com/show_bug.cgi?id=1664403. So I'll mark this as duplicate. *** This bug has been marked as a duplicate of bug 1664403 *** |
Description of problem: Customer attempted an upgrade with octavia included, and got the following errors: 2018-12-22 11:06:18,389 p=7535 u=mistral | fatal: [00001-lab1-controller02]: FAILED! => {"failed": true, "reason": "no action detected in task. This often indicates a misspelled module name, or incorrect module path.\n\nThe error appears to have been in '/var/lib/mistral/548cb73b-c5bb-46f1-89b7-f4a90559cb12/Controller/upgrade_tasks.yaml': line 800, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n- block:\n - common: systemctl is-enabled --quiet openstack-octavia-worker\n ^ here\n\n\nThe error appears to have been in '/var/lib/mistral/548cb73b-c5bb-46f1-89b7-f4a90559cb12/Controller/upgrade_tasks.yaml': line 800, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n- block:\n - common: systemctl is-enabled --quiet openstack-octavia-worker\n ^ here\n\nexception type: <class 'ansible.errors.AnsibleParserError'>\nexception: no action detected in task. This often indicates a misspelled module name, or incorrect module path.\n\nThe error appears to have been in '/var/lib/mistral/548cb73b-c5bb-46f1-89b7-f4a90559cb12/Controller/upgrade_tasks.yaml': line 800, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n- block:\n - common: systemctl is-enabled --quiet openstack-octavia-worker\n ^ here\n"} From code, it seems to be its trying to use “common” ansible module instead of “command”. To fix the issue, I made below change in /usr/share/openstack-tripleo-heat-templates/docker/services/{octavia-housekeeping.yaml, octavia-health-manager.yaml, octavia-worker.yaml} <snip> /usr/share/openstack-tripleo-heat-templates/docker/services/octavia-housekeeping.yaml upgrade_tasks: - when: step|int == 0 tags: common block: - name: Check if octavia_housekeeping is deployed # common: systemctl is-enabled --quiet openstack-octavia-housekeeping command: systemctl is-enabled --quiet openstack-octavia-housekeeping <============= ignore_errors: True register: octavia_housekeeping_enabled_result /usr/share/openstack-tripleo-heat-templates/docker/services/octavia-health-manager.yaml upgrade_tasks: - when: step|int == 0 tags: common block: - name: Check if octavia_health_manager is deployed # common: systemctl is-enabled --quiet openstack-octavia-health-manager command: systemctl is-enabled --quiet openstack-octavia-health-manager <========== ignore_errors: True register: octavia_health_enabled_result /usr/share/openstack-tripleo-heat-templates/docker/services/octavia-worker.yaml upgrade_tasks: - when: step|int == 0 tags: common block: - name: Check if octavia_worker is deployed # common: systemctl is-enabled --quiet openstack-octavia-worker] command: systemctl is-enabled --quiet openstack-octavia-worker <========== ignore_errors: True register: octavia_worker_enabled_result </snip> Version-Release number of selected component (if applicable): OSP12 to OSP13 How reproducible: always ???? Steps to Reproduce: 1. Install OSP12 with octavia 2. Try to upgrade to OSP13 3. Actual results: Errors Expected results: no errors of this time