-
Notifications
You must be signed in to change notification settings - Fork 1.5k
lxc container module is broken in 1.9.6 #2042
Comments
It would seem that the LXC container module in 1.9.6 is broken due to an incompatible change being backported. Is it possible to get a change into 1.9.6 to resolve this issue? At current the OpenStack-Ansible project is unable to use 1.9.6 as is. This is an example of the error: http://logs.openstack.org/09/306609/2/check/gate-openstack-ansible-dsvm-commit/1fd66a3/console.html#_2016-04-15_21_03_52_758
|
Just to confirm everything in devel works fine as is. This issue seems to only effect 1.9.6. Command: ansible '-m' 'lxc_container' '-a' 'name=test-container' 'infra1'
infra1 | SUCCESS => {
"changed": true,
"lxc_container": {
"init_pid": 25918,
"interfaces": [
"eth0",
"lo"
],
"ips": [],
"name": "test-container",
"state": "running"
}
}
ansible '--version'
ansible 2.1.0
config file = /opt/openstack-ansible/playbooks/ansible.cfg
configured module search path = ['/etc/ansible/plugins/library'] |
yepp, seems this was overseen when backporting my patches to 1.9.x |
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: Ib0094bdebdee8566a8ed13ff7d8ae849e92ff5a0 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: I5be4155ef579ae8f68756be46344b9312bb801f0 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: I8b5f5c7580acc35573c631e8c62cedcf2cc89082 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: Ie4e17e64c2bc708ef8090f31fbf8f7f3791517ad Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: I976b2c936d7c8ae78158008b709b125d2a8e222a Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: If7b0722e72040c31b111afdb94027de6912a01c7 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: I19f4af55f33979d4b998021dad3d536201eaa433 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: Iab288bcde98e6974568db82a1c89c6cb159cfcc2 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: Ief412e60d141facea2d56e649d60bb0c6de6270b Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: Ia5fe1d83e0fe0b98039aed1386be8a2d43c83d87 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: Id366caf2af80992b63581133a2c33ba9003ddc86 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: Ic11945007bb7538f2842f70af56158e6a8f72871 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: Idf7250d99c3401e69558736192b85e3ce1004311 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: I78e1923a100b3d8bbaad4881f694c429dc849d95 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: Ifdaa67f1e1a96c56c96732d236b5c6af267219e5 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: I92b3a6c5dd94644e799d128b68badfb856946ed2 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: If351acd94eff879817bd9cfd4c75a85e081bd025 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: Id5087482c3d57190b11873e2abadfbc8cd292771 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: I6f7ce2ff03daaaffd93fc306231cf9e763c4f61a Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: I010e24449169506f625e964d550bc372717a6eb6 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: I031ca33d3150c738f0178323e0a01017b261f2d4 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: Iceeb9c4d2c47f783e90837d908aaa42811d899ad Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: I48188bdf7d602dd30e52de64aed56843bd20cd10 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: Ic9b62a1a3178e8962423ba619b45d31033f86872 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: I5250fee14014529d18ee64c2642f18de7779c849 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: Ib0094bdebdee8566a8ed13ff7d8ae849e92ff5a0 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com> (cherry picked from commit 7016f43)
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: If7b0722e72040c31b111afdb94027de6912a01c7 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com> (cherry picked from commit 5b5eabd)
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: Id366caf2af80992b63581133a2c33ba9003ddc86 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com> (cherry picked from commit 3a04b14)
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: If351acd94eff879817bd9cfd4c75a85e081bd025 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com> (cherry picked from commit 59ffe5e)
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: I78e1923a100b3d8bbaad4881f694c429dc849d95 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com> (cherry picked from commit c76ce3f)
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: Id5087482c3d57190b11873e2abadfbc8cd292771 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com> (cherry picked from commit 6188c6a)
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: I010e24449169506f625e964d550bc372717a6eb6 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com> (cherry picked from commit d0d97ce)
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: I6f7ce2ff03daaaffd93fc306231cf9e763c4f61a Signed-off-by: Kevin Carter <kevin.carter@rackspace.com> (cherry picked from commit e3d39b7)
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: Ifdaa67f1e1a96c56c96732d236b5c6af267219e5 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com> (cherry picked from commit 1a12be6)
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: I031ca33d3150c738f0178323e0a01017b261f2d4 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com> (cherry picked from commit 65d8a90)
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: Iceeb9c4d2c47f783e90837d908aaa42811d899ad Signed-off-by: Kevin Carter <kevin.carter@rackspace.com> (cherry picked from commit 3bc69fd)
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: I5250fee14014529d18ee64c2642f18de7779c849 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com> (cherry picked from commit eb43bc1)
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: Idf7250d99c3401e69558736192b85e3ce1004311 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com> (cherry picked from commit a6a0d02)
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: Ic9b62a1a3178e8962423ba619b45d31033f86872 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com> (cherry picked from commit 0478561)
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: Ieb14430082b0b7e1c52db18eee6dea5d9532886d Signed-off-by: Kevin Carter <kevin.carter@rackspace.com> (cherry picked from commit 8416a65)
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: I48188bdf7d602dd30e52de64aed56843bd20cd10 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com> (cherry picked from commit 76e009d)
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: Iae39f4c5ba5dd26f8272b6728aa1754d931c80ab Signed-off-by: Kevin Carter <kevin.carter@rackspace.com> (cherry picked from commit 9b98745)
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: Ib152a63da6354974752e929cbf5cee71301db5c9 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com> (cherry picked from commit c8b8902)
This version of ansible is broken due to the following upstream Ansible issue: * ansible/ansible-modules-extras#2042 Change-Id: I832073c31f1ea1828ee48a541b03acb9e836e431 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com> (cherry picked from commit 4604950)
@cloudnull looking into this right now. |
@cloudnull -- Yeah, required_if definitely needs to be removed there for 1.9... Looks like the other section of code repeats what required_if does so we don't need both. I'm not sure why you think we need to compare the parameter to BOOLEANS_TRUE, though. Could you explain that portion? |
I'm abadger1999 on freenode if you want to find me in #ansible or #ansible-devel |
@cloudnull -- nevermind I see why it's needed but there's a better way to do that. The arg_spec should be setting type='bool' and setting default=False instead of using choices=BOOLEANS. |
* required_if isn't available in 1.9 so we can't use it in the backport. * Need to specify argument types as boolean otherwise ansible doesn't normalize the values. Fixes #2042
@cloudnull -- know offhand if the fix from @abadger made things happier? |
@robynbergeron At last check the fixes in stable1.9 made things a lot happier. I will reverify and post back shortly. |
@robynbergeron Stable-1.9 installed from github looks good. Command: pip 'install' 'git+https://github.com/ansible/ansible@stable-1.9'
Command: ansible '-m' 'lxc_container' '-a' 'name=test-container2' 'aio1'
aio1 | success >> {
"changed": true,
"lxc_container": {
"init_pid": 14922,
"interfaces": [
"eth0",
"lo"
],
"ips": [],
"state": "running"
}
}
Command: ansible '-m' 'lxc_container' '-a' 'name=test-container2' 'aio1'
aio1 | success >> {
"changed": false,
"lxc_container": {
"init_pid": 14922,
"interfaces": [
"eth0",
"lo"
],
"ips": [
"10.255.255.160"
],
"state": "running"
}
}
Command: ansible '--version'
ansible 1.9.6
configured module search path = /etc/ansible/roles/plugins/library |
Cool. Thanks for reporting and testing! |
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Ubuntu 14.04.04
SUMMARY
The lxc_container module is broken in Ansible "1.9.6". This brokeness comes from the commit 30e0c50 which introduced changes for 2.x which do not exist in ansible "1.9". Specifically the
required_if
function does not exist inlib/ansible/module_utils/basic.py
. Additionally even with that method removed from the module the archive check needs to be adjusted to check to see if the archive option is in the BOOLEANS_TRUE constant.STEPS TO REPRODUCE
EXPECTED RESULTS
The container should build.
ACTUAL RESULTS
The module stops. See command output for action stdout/stderr
FIX FOR ANSIBLE 1.9.6
http://paste.openstack.org/show/494312/
The text was updated successfully, but these errors were encountered: