/var/log/containers missing on Swift standalone storage nodes

Bug #1736109 reported by Christian Schwede
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Christian Schwede

Bug Description

This directory is missing when deploying standalone Swift storage nodes, and thus the following Ansible task to create a link fails. OC deployment was started with parameter --swift-storage-scale 1.

2017-12-04 09:52:35Z [AllNodesDeploySteps.ObjectStorageHostPrepDeployment]: CREATE_FAILED Resource CREATE failed: Error: resources[0]: Deployment to server failed: deploy_status_code : Deployment exited with non-zero status code: 2
2017-12-04 09:52:35Z [AllNodesDeploySteps.ObjectStorageHostPrepDeployment]: CREATE_FAILED Error: resources.ObjectStorageHostPrepDeployment.resources[0]: Deployment to server failed: deploy_status_code: Deployment exited with non-zero status code: 2
2017-12-04 09:52:35Z [AllNodesDeploySteps]: CREATE_FAILED Resource CREATE failed: Error: resources.ObjectStorageHostPrepDeployment.resources[0]: Deployment to server failed: deploy_status_code: Deployment exited with non-zero status code: 2
2017-12-04 09:52:36Z [AllNodesDeploySteps]: CREATE_FAILED Error: resources.AllNodesDeploySteps.resources.ObjectStorageHostPrepDeployment.resources[0]: Deployment to server failed: deploy_status_code: Deployment exited with non-zero status code: 2
2017-12-04 09:52:36Z [overcloud]: UPDATE_FAILED Resource CREATE failed: Error: resources.AllNodesDeploySteps.resources.ObjectStorageHostPrepDeployment.resources[0]: Deployment to server failed: deploy_status_code: Deployment exited with non-zero status code: 2

 Stack overcloud UPDATE_FAILED

overcloud.AllNodesDeploySteps.ObjectStorageHostPrepDeployment.0:
  resource_type: OS::Heat::SoftwareDeployment
  physical_resource_id: 847a92e7-e42c-464e-9add-308e541fb038
  status: CREATE_FAILED
  status_reason: |
    Error: resources[0]: Deployment to server failed: deploy_status_code : Deployment exited with non-zero status code: 2
  deploy_stdout: |
    ...
    changed: [localhost] => (item=/srv/node)
    ok: [localhost] => (item=/var/log/swift)

    TASK [Create swift logging symlink] ********************************************
    fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Error while linking: [Errno 2] No such file or directory", "path": "/var/log/containers/swift", "state": "absent"}
     to retry, use: --limit @/var/lib/heat-config/heat-config-ansible/0ceb4f06-ae1b-4c3d-ae8d-16e2f02581ff_playbook.retry

    PLAY RECAP *********************************************************************
    localhost : ok=2 changed=1 unreachable=0 failed=1

    (truncated, view all with --long)
  deploy_stderr: |

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)

Fix proposed to branch: master
Review: https://review.openstack.org/525124

Changed in tripleo:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.openstack.org/525124
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=d76092184e16ba8081bd82acb577949c56435682
Submitter: Zuul
Branch: master

commit d76092184e16ba8081bd82acb577949c56435682
Author: Christian Schwede <email address hidden>
Date: Mon Dec 4 11:10:45 2017 +0100

    Create /var/log/containers on Swift storage-only nodes

    This directory is missing when deploying standalone Swift storage nodes,
    and thus the following Ansible task to create a link fails.

    Closes-Bug: 1736109
    Change-Id: If09f3b9942e4f44e398563c044e9c70101fef367

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 8.0.0.0b2

This issue was fixed in the openstack/tripleo-heat-templates 8.0.0.0b2 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/563895

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/pike)

Reviewed: https://review.openstack.org/563895
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=c05be4aefd785c7e66f1687314c296f9e4ec692b
Submitter: Zuul
Branch: stable/pike

commit c05be4aefd785c7e66f1687314c296f9e4ec692b
Author: Christian Schwede <email address hidden>
Date: Mon Dec 4 11:10:45 2017 +0100

    Create /var/log/containers on Swift storage-only nodes

    This directory is missing when deploying standalone Swift storage nodes,
    and thus the following Ansible task to create a link fails.

    Closes-Bug: 1736109
    Change-Id: If09f3b9942e4f44e398563c044e9c70101fef367
    (cherry picked from commit d76092184e16ba8081bd82acb577949c56435682)

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 7.0.13

This issue was fixed in the openstack/tripleo-heat-templates 7.0.13 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.