Uploaded image for project: 'CORD'
  1. CORD
  2. CORD-3169

Sync step fails, yet synchronizer framework marks is as successfully synced

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: XOS
    • Labels:
      None

      Description

      It was observed in the ExampleService synchronizer that an ansible-based syncstep failed, yet the Synchronizer did not recognize the failure and marked the object as successfully synced.

      PLAYBOOK END                   ansible_playbook=/opt/xos/synchronizers/exampleservice/sys/ExampleServiceInstance_6 ansible_result={"172.27.0.4": {"unreachable": 0, "skipped": 0, "ok": 0, "changed": 0, "failures": 1}} ansible_status=FAILED ansible_type=playbook stats ansible_uuid=9e6afb50-741a-11e8-944e-3ee81b6d456f playbook=/opt/xos/synchronizers/exampleservice/sys/ExampleServiceInstance_6 xos_type=ansible
      Ran Ansible task               ansible_result={"_ansible_parsed": true, "stderr_lines": ["E: There are problems and -y was used without --force-yes"], "cache_updated": true, "_ansible_no_log": false, "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following extra packages will be installed:\n  apache2-bin apache2-data libapr1 libaprutil1 libaprutil1-dbd-sqlite3\n  libaprutil1-ldap ssl-cert\nSuggested packages:\n  apache2-doc apache2-suexec-pristine apache2-suexec-custom apache2-utils\n  openssl-blacklist\nThe following NEW packages will be installed:\n  apache2 apache2-bin apache2-data libapr1 libaprutil1 libaprutil1-dbd-sqlite3\n  libaprutil1-ldap ssl-cert\n0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.\nNeed to get 1284 kB of archives.\nAfter this operation, 5348 kB of additional disk space will be used.\nWARNING: The following packages cannot be authenticated!\n  apache2-bin apache2-data apache2\n", "changed": false, "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\"     install 'apache2'' failed: E: There are problems and -y was used without --force-yes\n", "stderr": "E: There are problems and -y was used without --force-yes\n", "rc": 100, "invocation": {"module_args": {"dpkg_options": "force-confdef,force-confold", "upgrade": null, "force": false, "force_apt_get": false, "install_recommends": null, "package": ["apache2"], "autoclean": false, "purge": false, "allow_unauthenticated": false, "state": "present", "autoremove": false, "update_cache": true, "default_release": null, "only_upgrade": false, "cache_valid_time": 0, "deb": null, "name": "apache2"}}, "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "The following extra packages will be installed:", "  apache2-bin apache2-data libapr1 libaprutil1 libaprutil1-dbd-sqlite3", "  libaprutil1-ldap ssl-cert", "Suggested packages:", "  apache2-doc apache2-suexec-pristine apache2-suexec-custom apache2-utils", "  openssl-blacklist", "The following NEW packages will be installed:", "  apache2 apache2-bin apache2-data libapr1 libaprutil1 libaprutil1-dbd-sqlite3", "  libaprutil1-ldap ssl-cert", "0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.", "Need to get 1284 kB of archives.", "After this operation, 5348 kB of additional disk space will be used.", "WARNING: The following packages cannot be authenticated!", "  apache2-bin apache2-data apache2"], "cache_update_time": 1485895621} ansible_status=OK model_name=ExampleServiceInstance pk=6 task=TASK: install_apache : Install apache using apt xos_type=ansible
      playbook execution time        model_name=ExampleServiceInstance pk=6 time=64
      Synced object                  model_name=ExampleServiceInstance pk=6 synchronizer_name=exampleservice thread_id=140678158624512
      Saved sync object, new enacted enacted=1529451828.0 synchronizer_name=exampleservice thread_id=140678158624512
      Cohort completed               cohort=[<ExampleServiceInstance: exampletenant1>] deletion=False synchronizer_name=exampleservice thread_id=140678158624512 

       

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            scottb Scott Baker
            Reporter:
            scottb Scott Baker
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes