)]}'
{"id":"openstack%2Fopenstack-ansible-plugins~475113","triplet_id":"openstack%2Fopenstack-ansible-plugins~stable%2Focata~I684a11f4380f91b1cb0585f38817859dfaa68f80","project":"openstack/openstack-ansible-plugins","branch":"stable/ocata","topic":"lxc-transport-clear-env-login-shell","hashtags":[],"change_id":"I684a11f4380f91b1cb0585f38817859dfaa68f80","subject":"connection: ssh: Clear environment when connecting to LXC containers","status":"MERGED","created":"2017-06-17 07:06:43.000000000","updated":"2017-06-19 18:52:20.000000000","submitted":"2017-06-19 18:52:20.000000000","submitter":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"total_comment_count":0,"unresolved_comment_count":0,"has_review_started":true,"meta_rev_id":"62f42f08a9731232a4500560d386d3bdc1cf2eb2","_number":475113,"virtual_id_number":475113,"owner":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"actions":{},"labels":{"Verified":{"approved":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"all":[{"value":2,"date":"2017-06-19 18:52:20.000000000","post_submit":true,"_account_id":3,"name":"Jenkins","username":"jenkins"},{"value":0,"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},{"value":0,"_account_id":538,"name":"Major Hayden","email":"major@mhtx.net","username":"rackerhacker"},{"value":0,"_account_id":23163,"name":"Markos Chandras (hwoarang)","email":"markos@chandras.me","username":"mchandras"}],"values":{"-2":"Fails","-1":"Doesn\u0027t seem to work"," 0":"No score","+1":"Works for me","+2":"Verified"},"description":"","default_value":0,"optional":true},"Code-Review":{"approved":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"all":[{"value":0,"_account_id":3,"name":"Jenkins","username":"jenkins"},{"value":2,"date":"2017-06-19 18:49:09.000000000","_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},{"value":2,"date":"2017-06-19 12:55:43.000000000","_account_id":538,"name":"Major Hayden","email":"major@mhtx.net","username":"rackerhacker"},{"value":1,"date":"2017-06-19 08:02:22.000000000","permitted_voting_range":{"min":1,"max":1},"_account_id":23163,"name":"Markos Chandras (hwoarang)","email":"markos@chandras.me","username":"mchandras"}],"values":{"-2":"Do not merge","-1":"This patch needs further work before it can be merged"," 0":"No score","+1":"Looks good to me, but someone else must approve","+2":"Looks good to me (core reviewer)"},"description":"","default_value":0,"optional":true},"Workflow":{"approved":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"all":[{"value":0,"_account_id":3,"name":"Jenkins","username":"jenkins"},{"value":1,"date":"2017-06-19 18:49:09.000000000","_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},{"value":0,"_account_id":538,"name":"Major Hayden","email":"major@mhtx.net","username":"rackerhacker"},{"value":0,"_account_id":23163,"name":"Markos Chandras (hwoarang)","email":"markos@chandras.me","username":"mchandras"}],"values":{"-1":"Work in progress"," 0":"Ready for reviews","+1":"Approved"},"description":"","default_value":0,"optional":true},"Backport-Candidate":{"all":[{"value":0,"_account_id":3,"name":"Jenkins","username":"jenkins"},{"value":0,"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},{"value":0,"_account_id":538,"name":"Major Hayden","email":"major@mhtx.net","username":"rackerhacker"},{"value":0,"_account_id":23163,"name":"Markos Chandras (hwoarang)","email":"markos@chandras.me","username":"mchandras"}],"values":{"-1":"Not A Backport Candidate"," 0":"Backport Review Needed","+1":"Proposed Backport"},"description":"","default_value":0,"optional":true}},"removable_reviewers":[],"reviewers":{"REVIEWER":[{"_account_id":3,"name":"Jenkins","username":"jenkins"},{"_account_id":538,"name":"Major Hayden","email":"major@mhtx.net","username":"rackerhacker"},{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},{"_account_id":23163,"name":"Markos Chandras (hwoarang)","email":"markos@chandras.me","username":"mchandras"}]},"pending_reviewers":{},"reviewer_updates":[{"updated":"2017-06-19 08:02:22.000000000","updated_by":{"_account_id":23163,"name":"Markos Chandras (hwoarang)","email":"markos@chandras.me","username":"mchandras"},"reviewer":{"_account_id":23163,"name":"Markos Chandras (hwoarang)","email":"markos@chandras.me","username":"mchandras"},"state":"REVIEWER"},{"updated":"2017-06-19 12:55:43.000000000","updated_by":{"_account_id":538,"name":"Major Hayden","email":"major@mhtx.net","username":"rackerhacker"},"reviewer":{"_account_id":538,"name":"Major Hayden","email":"major@mhtx.net","username":"rackerhacker"},"state":"REVIEWER"},{"updated":"2017-06-19 18:49:09.000000000","updated_by":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"reviewer":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"state":"REVIEWER"},{"updated":"2017-06-19 18:52:20.000000000","updated_by":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"reviewer":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"state":"REVIEWER"}],"messages":[{"id":"5eda49d2170504f950bb84212a6822f01b380d56","author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"date":"2017-06-17 07:06:43.000000000","message":"Patch Set 1: Cherry Picked from branch master.","accounts_in_message":[],"_revision_number":1},{"id":"11accfe9be771d2d2e7a4f76b413fe7c458b16e1","author":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"date":"2017-06-17 07:09:39.000000000","message":"Patch Set 1: Verified+1\n\nBuild succeeded (check pipeline).\n\n- gate-openstack-ansible-plugins-docs-ubuntu-xenial http://docs-draft.openstack.org/13/475113/1/check/gate-openstack-ansible-plugins-docs-ubuntu-xenial/d9ca706//doc/build/html/ : SUCCESS in 1m 43s\n- gate-openstack-ansible-plugins-linters-ubuntu-xenial http://logs.openstack.org/13/475113/1/check/gate-openstack-ansible-plugins-linters-ubuntu-xenial/37740cb/ : SUCCESS in 1m 09s\n- gate-openstack-ansible-plugins-ansible-func-centos-7 http://logs.openstack.org/13/475113/1/check/gate-openstack-ansible-plugins-ansible-func-centos-7/ba554c9/ : SUCCESS in 2m 36s\n- gate-openstack-ansible-plugins-ansible-func-ubuntu-xenial http://logs.openstack.org/13/475113/1/check/gate-openstack-ansible-plugins-ansible-func-ubuntu-xenial/63047fa/ : SUCCESS in 1m 15s","accounts_in_message":[],"_revision_number":1},{"id":"76f207299136c979e49a43f9f45514f4b9fcfe8b","author":{"_account_id":23163,"name":"Markos Chandras (hwoarang)","email":"markos@chandras.me","username":"mchandras"},"date":"2017-06-19 08:02:22.000000000","message":"Patch Set 1: Code-Review+1","accounts_in_message":[],"_revision_number":1},{"id":"48f914249fa3f9010eb0ff06fef31a005b7612e4","author":{"_account_id":538,"name":"Major Hayden","email":"major@mhtx.net","username":"rackerhacker"},"date":"2017-06-19 12:55:43.000000000","message":"Patch Set 1: Code-Review+2\n\nGood backport.","accounts_in_message":[],"_revision_number":1},{"id":"084e070c85de302fbb01adac4d3b3d7e3f40d3fd","author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"date":"2017-06-19 18:49:09.000000000","message":"Patch Set 1: Code-Review+2 Workflow+1","accounts_in_message":[],"_revision_number":1},{"id":"e6ec668821363a40d47978da32a0cc2bde1f27a3","author":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"date":"2017-06-19 18:49:27.000000000","message":"Patch Set 1: -Verified\n\nStarting gate jobs.\nhttp://status.openstack.org/zuul/","accounts_in_message":[],"_revision_number":1},{"id":"f0b1294c8bb462e5a6e0d5b7332b8d57234169af","date":"2017-06-19 18:52:20.000000000","message":"Change has been successfully merged into the git repository by Jenkins","accounts_in_message":[],"_revision_number":1},{"id":"9eb9d31cfe64b6171afc71993d01ab2cbd441c46","author":{"_account_id":3,"name":"Jenkins","username":"jenkins"},"date":"2017-06-19 18:52:20.000000000","message":"Patch Set 1: Verified+2\n\nBuild succeeded (gate pipeline).\n\n- gate-openstack-ansible-plugins-docs-ubuntu-xenial http://docs-draft.openstack.org/13/475113/1/gate/gate-openstack-ansible-plugins-docs-ubuntu-xenial/8ae345d//doc/build/html/ : SUCCESS in 1m 04s\n- gate-openstack-ansible-plugins-linters-ubuntu-xenial http://logs.openstack.org/13/475113/1/gate/gate-openstack-ansible-plugins-linters-ubuntu-xenial/af7fb23/ : SUCCESS in 1m 47s\n- gate-openstack-ansible-plugins-ansible-func-centos-7 http://logs.openstack.org/13/475113/1/gate/gate-openstack-ansible-plugins-ansible-func-centos-7/f436503/ : SUCCESS in 1m 06s\n- gate-openstack-ansible-plugins-ansible-func-ubuntu-xenial http://logs.openstack.org/13/475113/1/gate/gate-openstack-ansible-plugins-ansible-func-ubuntu-xenial/f86b1d4/ : SUCCESS in 1m 17s","accounts_in_message":[],"_revision_number":1}],"current_revision_number":1,"current_revision":"af204e4418988a4bff3664a70f078c8015dc32d2","revisions":{"af204e4418988a4bff3664a70f078c8015dc32d2":{"kind":"REWORK","_number":1,"created":"2017-06-17 07:06:43.000000000","uploader":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"ref":"refs/changes/13/475113/1","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/openstack-ansible-plugins","ref":"refs/changes/13/475113/1","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/openstack-ansible-plugins refs/changes/13/475113/1 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/openstack-ansible-plugins refs/changes/13/475113/1 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/openstack-ansible-plugins refs/changes/13/475113/1 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/openstack-ansible-plugins refs/changes/13/475113/1"}}},"commit":{"parents":[{"commit":"2fbc4fd08fa9a2bf40189f862aeb63a5ce6348ed","subject":"Connect using physical host\u0027s ansible_host var","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/openstack-ansible-plugins/commit/2fbc4fd08fa9a2bf40189f862aeb63a5ce6348ed"}]}],"author":{"name":"Markos Chandras","email":"mchandras@suse.de","date":"2017-06-07 14:31:16.000000000","tz":60},"committer":{"name":"Jesse Pretorius (odyssey4me)","email":"jesse.pretorius@rackspace.co.uk","date":"2017-06-17 07:06:43.000000000","tz":0},"subject":"connection: ssh: Clear environment when connecting to LXC containers","message":"connection: ssh: Clear environment when connecting to LXC containers\n\nWe should clear the environment before connecting to an LXC container to\navoid inheriting host variables that may break container services like\nthe following failure in rabbitmqctl:\n\nTASK [Get status of rabbitmq] *************************************************************************************************************************************************************************************\nfatal: [container1]: FAILED! \u003d\u003e {\"changed\": true, \"cmd\": [\"rabbitmqctl\", \"status\"], \"delta\": \"0:00:00.705116\", \"end\": \"2017-06-06 20:03:13.771796\", \"failed\": true, \"rc\": 69, \"start\": \"2017-06-06 20:03:13.066680\", \"stderr\": \"Error: unable to connect to node \u0027rabbit@vagrant-openSUSE-Leap\u0027: nodedown\\n\\nDIAGNOSTICS\\n\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\\n\\nattempted to contact: [\u0027rabbit@vagrant-openSUSE-Leap\u0027]\\n\\nrabbit@vagrant-openSUSE-Leap:\\n  * unable to connect to epmd (port 4369) on vagrant-openSUSE-Leap: address (cannot connect to host/port)\\n\\n\\ncurrent node details:\\n- node name: \u0027rabbitmq-cli-82@localhost\u0027\\n- home dir: /var/lib/rabbitmq\\n- cookie hash: NqWRA5RzO5daz4Jb5LJsXg\u003d\u003d\", \"stderr_lines\": [\"Error: unable to connect to node \u0027rabbit@vagrant-openSUSE-Leap\u0027: nodedown\", \"\", \"DIAGNOSTICS\", \"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\", \"\", \"attempted to contact: [\u0027rabbit@vagrant-openSUSE-Leap\u0027]\", \"\", \"rabbit@vagrant-openSUSE-Leap:\", \"  * unable to connect to epmd (port 4369) on vagrant-openSUSE-Leap: address (cannot connect to host/port)\", \"\", \"\", \"current node details:\", \"- node name: \u0027rabbitmq-cli-82@localhost\u0027\", \"- home dir: /var/lib/rabbitmq\", \"- cookie hash: NqWRA5RzO5daz4Jb5LJsXg\u003d\u003d\"], \"stdout\": \"Status of node \u0027rabbit@vagrant-openSUSE-Leap\u0027 ...\", \"stdout_lines\": [\"Status of node \u0027rabbit@vagrant-openSUSE-Leap\u0027 ...\"]}\n\tto retry, use: --limit @/vagrant/tests/test-rabbitmq-server-functional.retry\n\nThe reason for this failure is that the HOSTNAME variable is being\ninherited by the host (vagrant-openSUSE-Leap) and the rabbitmqctl\ncommand uses this variable to guess the host it should try to\nconnect to.\n\nThis is similar to what the upstream lxc connection module is doing.\n\nThis is an attempt to fix problems introduced in\nhttps://review.openstack.org/#/c/471472/ and subsequently\nreverted in https://review.openstack.org/#/c/471713/\n\nThe reason for these failures was that \u0027lxc-attach\u0027 executed commands\nwhich assumed that basic variables like HOME are set properly. However,\n--clear-env didn\u0027t preserve these variables so various operations started\nto fail. In order to fix that, it\u0027s best if we start a real login shell\nusing \u0027su\u0027 in order to mimic an expected user environment when executing\ncommands within the container.\n\nChange-Id: I684a11f4380f91b1cb0585f38817859dfaa68f80\n(cherry picked from commit 1c7cb99fcc172486f482cfdce4058f8c577f82dc)\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/openstack-ansible-plugins/commit/af204e4418988a4bff3664a70f078c8015dc32d2"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/openstack-ansible-plugins/commit/af204e4418988a4bff3664a70f078c8015dc32d2"}]},"branch":"refs/heads/stable/ocata"}},"requirements":[],"submit_records":[],"submit_requirements":[]}
