lxc_hosts dynamic inventory group adds non-lxc hosts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Fix Released
|
Undecided
|
Jesse Pretorius |
Bug Description
In the inventory below only lsn-mc1006, lsn-mc1007, and lsn-mc1008 host lxc containers. The rest only contain on_metal: true services.
ubuntu@
localhost | SUCCESS => {
"msg": [
"lsn-d5659"
]
}
ubuntu@
localhost | FAILED! => {
"failed": true,
"msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'dict object' has no attribute 'lsn-d5659_
}
ubuntu@
lsn-d5659 | SUCCESS => {
"msg": [
"ceph-osd",
"ceph_all",
"hosts",
"lxc_hosts"
]
}
ubuntu@
component_skel:
ceph-mon:
belongs_to:
- ceph_all
ceph-osd:
belongs_to:
- ceph_all
ceph-rgw:
belongs_to:
- ceph_all
container_skel:
ceph-
belongs_to:
- shared-
contains:
- ceph-mon
properties:
service_name: ceph-mon
ceph-
belongs_to:
- ceph-osd_containers
contains:
- ceph-osd
properties:
is_metal: true
service_name: ceph
ceph-
belongs_to:
- ceph-rgw_containers
contains:
- ceph-rgw
properties:
is_metal: true
service_name: ceph
physical_skel:
ceph-osd_hosts:
belongs_to:
- hosts
ceph-rgw_hosts:
belongs_to:
- hosts
Changed in openstack-ansible: | |
status: | Confirmed → In Progress |
Changed in openstack-ansible: | |
assignee: | Nolan Brubaker (nolan-brubaker) → Jesse Pretorius (jesse-pretorius) |
also the output from dynamic_inventory regarding lsn-d5659:
"lsn- d5659": {
"ansible_ host": "10.12.1.144",
"ansible_ ssh_host" : "10.12.1.144",
"bond_ slaves" : {
" bond0": [
"p4p1" ,
"em1"
]
"component" : "ceph-osd",
"container_ address" : "10.12.1.144",
"container_ name": "lsn-d5659",
"container_ networks" : {},
"container_ types": "lsn-d5659- host_containers ",
"is_metal" : true,
"net_ boot": {
" bond0": {
"ip" : "10.10.8.144",
"mac" : "00:25:90:7f:71:f8"
} ,
" dummy1" : {
"ip" : "10.12.1.144",
"type" : "dummy"
}
"physical_ host": "lsn-d5659",
"physical_ host_group" : "ceph-osd_hosts",
"properties" : {
" is_metal" : true,
" service_ name": "ceph"
},
},
}
},