Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1516947 - [UPDATES] Failed to setup heat output: sudo: a password is required
Summary: [UPDATES] Failed to setup heat output: sudo: a password is required
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat
Component: Ceph-Ansible
Version: 2.4
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: 2.5
Assignee: leseb
QA Contact: Yogev Rabl
Aron Gunn
Depends On: 1528431
Blocks: 1536068
TreeView+ depends on / blocked
Reported: 2017-11-23 16:04 UTC by Yurii Prokulevych
Modified: 2018-06-26 23:45 UTC (History)
19 users (show)

Fixed In Version: RHEL: ceph-ansible-3.0.25-1.el7cp Ubuntu: ceph-ansible_3.0.25-2redhat1
Doc Type: Known Issue
Doc Text:
.Failing to set up the Heat output for the Red Hat OpenStack Platform The `ceph-ansible` utility requires that the user running `ceph-ansible` has passwordless `sudo` privileges, otherwise an attempt to use a `ceph-ansible` playbook fails. To work around this issue, make sure that the user running `ceph-ansible` has passowordless `sudo` access configured.
Clone Of:
: 1528431 1536068 (view as bug list)
Last Closed: 2018-02-21 19:46:24 UTC

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0340 normal SHIPPED_LIVE Red Hat Ceph Storage 2.5 bug fix and enhancement update 2018-02-22 00:50:32 UTC
Github ceph ceph-ansible pull 2272 None None None 2017-12-15 16:41:27 UTC

Description Yurii Prokulevych 2017-11-23 16:04:15 UTC
Description of problem:
Attempt to setup heat's output failed:
openstack overcloud update stack --init-minor-update --container-registry-file /home/stack/virt/docker-images.yaml
Waiting for messages on queue '737184d8-0c45-4990-bb26-9acf4f23731e' with no timeout.
Started Mistral Workflow tripleo.package_update.v1.package_update_plan. Execution ID: a5b114d8-7973-4551-891b-0c1b1a067d5f
2017-11-23 15:38:35Z [Networks]: UPDATE_IN_PROGRESS  state changed
2017-11-23 15:38:36Z [overcloud-Networks-oe4at5i7bgvr]: UPDATE_IN_PROGRESS  Stack UPDATE started
2017-11-23 15:51:42Z [overcloud-AllNodesDeHeat Stack update failed.
Heat Stack update failed.
ploySteps-xhntoqtltqqf.WorkflowTasks_Step2_Execution]: CREATE_IN_PROGRESS  state changed
2017-11-23 15:52:51Z [overcloud-AllNodesDeploySteps-xhntoqtltqqf.WorkflowTasks_Step2_Execution]: CREATE_FAILED  resources.WorkflowTasks_Step2_Execution: ERROR
2017-11-23 15:52:52Z [overcloud-AllNodesDeploySteps-xhntoqtltqqf]: UPDATE_FAILED  resources.WorkflowTasks_Step2_Execution: ERROR
2017-11-23 15:52:53Z [AllNodesDeploySteps]: UPDATE_FAILED  resources.AllNodesDeploySteps: resources.WorkflowTasks_Step2_Execution: ERROR
2017-11-23 15:52:54Z [overcloud]: UPDATE_FAILED  resources.AllNodesDeploySteps: resources.WorkflowTasks_Step2_Execution: ERROR

 Stack overcloud UPDATE_FAILED 

  resource_type: OS::Mistral::ExternalResource
  physical_resource_id: ea461a72-48b4-46d7-b21b-0298049bd9ca
  status_reason: |
    resources.WorkflowTasks_Step2_Execution: ERROR

From /var/log/mistral/ceph-install-workflow.log
2017-11-23 10:52:48,775 p=19122 u=mistral |  PLAY [confirm whether user really meant to upgrade the cluster] ****************
2017-11-23 10:52:48,787 p=19122 u=mistral |  TASK [Gathering Facts] *********************************************************
2017-11-23 10:52:49,239 p=19122 u=mistral |  fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "module_stderr": "sudo: a password is required\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 1}
2017-11-23 10:52:49,241 p=19122 u=mistral |  PLAY RECAP *********************************************************************
2017-11-23 10:52:49,241 p=19122 u=mistral |  localhost                  : ok=0    changed=0    unreachable=0    failed=1   

Version-Release number of selected component (if applicable):


Steps to Reproduce:
1. Update uc to 2017-11-22.7
2. Upload later images
3. Try to setup heat's output

Actual results:
Failed to setup heat's output

Additional info:
Virtual setup: 3controllers + 2computes + 3ceph

Comment 2 Amit Ugol 2017-11-23 16:47:36 UTC
Giulio could you please have a look at the SOS report?

Comment 7 leseb 2017-11-27 16:33:34 UTC
One workaround for this is to add the user running ansible to the sudoers file.

Comment 17 leseb 2018-02-05 11:11:59 UTC
done, feel free to re-arrange

Comment 18 Yogev Rabl 2018-02-06 03:19:29 UTC
Failed to update the overcloud with the latest ceph container image with an error in one of the OSDs:

fatal: []: FAILED! => {"changed": false, "cmd": ["docker", "run", "--rm", "--entrypoint", "/usr/bin/ceph", "", "--version"], "delta": "0:00:00.662242", "end": "2018-02-06 03:13:19.996086", "msg": "non-zero return c
ode", "rc": 127, "start": "2018-02-06 03:13:19.333844", "stderr": "container_linux.go:247: starting container process caused \"process_linux.go:258: applying cgroup configuration for process
caused \\\"open /sys/fs/cgroup/pids/system.slice/docker-5f32487f85449859a1d51d2cb12ff2336ffdeeec8876ea7132ce438830f51147.scope/cgroup.procs: no such file or directory\\\"\"\n/usr/bin/docker-c
urrent: Error response from daemon: invalid header field value \"oci runtime error: container_linux.go:247: starting container process caused \\\"process_linux.go:258: applying cgroup configu
ration for process caused \\\\\\\"open /sys/fs/cgroup/pids/system.slice/docker-5f32487f85449859a1d51d2cb12ff2336ffdeeec8876ea7132ce438830f51147.scope/cgroup.procs: no such file or directory\\
\\\\\"\\\"\\n\".", "stderr_lines": ["container_linux.go:247: starting container process caused \"process_linux.go:258: applying cgroup configuration for process caused \\\"open /sys/fs/cgroup
/pids/system.slice/docker-5f32487f85449859a1d51d2cb12ff2336ffdeeec8876ea7132ce438830f51147.scope/cgroup.procs: no such file or directory\\\"\"", "/usr/bin/docker-current: Error response from
daemon: invalid header field value \"oci runtime error: container_linux.go:247: starting container process caused \\\"process_linux.go:258: applying cgroup configuration for process caused \\
\\\\\"open /sys/fs/cgroup/pids/system.slice/docker-5f32487f85449859a1d51d2cb12ff2336ffdeeec8876ea7132ce438830f51147.scope/cgroup.procs: no such file or directory\\\\\\\"\\\"\\n\"."], "stdout"
: "", "stdout_lines": []}

Comment 19 leseb 2018-02-06 14:18:00 UTC
This looks like a Docker error to me. Nothing related to the container image.

Comment 20 leseb 2018-02-06 14:48:55 UTC
Yogev, can you investigate further this error? It looks like the Docker engine is having an issue. Let us know if there is something we can help you with.

But for now, I believe you're hitting an issue that is unrelated to the original bug.
What is your plan? Are you going to test on another env?


Comment 21 Yogev Rabl 2018-02-07 15:37:33 UTC
The controller Ceph image was updated but the Ceph storage nodes (the OSDs) were not updated

[heat-admin@ceph-0 ~]$ sudo docker ps
CONTAINER ID        IMAGE                                                              COMMAND             CREATED             STATUS              PORTS               NAMES
a618c3ca7c97   "/"    About an hour ago   Up About an hour                        ceph-osd-ceph-0-vdb
2826a5b4a576              "kolla_start"       12 hours ago        Up About an hour                        logrotate_crond

[heat-admin@controller-2 ~]$ sudo docker ps | grep ceph
ce5f796336e8   "/"         8 minutes ago       Up 8 minutes                                     ceph-mon-controller-2

Comment 22 Yogev Rabl 2018-02-07 15:41:19 UTC
the version is: ceph-ansible-3.0.23-1.el7cp.noarch

Comment 23 leseb 2018-02-08 09:51:23 UTC
Yogev, this looks like a different issue.
Which test are you running? Why do you expect the image to change?
Anyway, can you provide the playbook logs?
Ideally, an env with the error as well.

Thanks in advance.

Comment 24 Yogev Rabl 2018-02-09 02:08:00 UTC
leseb, the environment is being preserved for you

Comment 25 leseb 2018-02-09 11:02:11 UTC
Thanks, let me know when it's available and send me details so I can login.

Comment 26 Yogev Rabl 2018-02-12 19:45:34 UTC
The environment is ready, available. its detailed have been provided on IRC

Comment 30 leseb 2018-02-14 13:06:53 UTC
This is solved in

Comment 31 Yogev Rabl 2018-02-14 19:36:05 UTC
verified on ceph-ansible-3.0.25-1.el7cp.noarch

Comment 34 errata-xmlrpc 2018-02-21 19:46:24 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

Note You need to log in before you can comment on or make changes to this bug.