Skip to content
Snippets Groups Projects
  • Mark Goddard's avatar
    89df07e8
    Fix kolla-ansible stop with heterogeneous hosts · 89df07e8
    Mark Goddard authored
    The 'kolla-ansible stop' command can be used to stop the services
    running on hosts. However, if you run this command in an environment
    with heterogeneous nodes (most real world scenarios have at least
    control/compute), then it fails. This is because it only checks
    whether a container is enabled, and not whether the host is in the
    correct group. For example, it fails with nova-libvirt:
    
        No such container: nova_libvirt to stop.
    
    This change fixes the issue by only attempting to stop containers on
    hosts to which they are mapped.
    
    Change-Id: Ibecac60d1417269bbe25a280996ca9de6e6d018f
    Closes-Bug: #1868596
    89df07e8
    History
    Fix kolla-ansible stop with heterogeneous hosts
    Mark Goddard authored
    The 'kolla-ansible stop' command can be used to stop the services
    running on hosts. However, if you run this command in an environment
    with heterogeneous nodes (most real world scenarios have at least
    control/compute), then it fails. This is because it only checks
    whether a container is enabled, and not whether the host is in the
    correct group. For example, it fails with nova-libvirt:
    
        No such container: nova_libvirt to stop.
    
    This change fixes the issue by only attempting to stop containers on
    hosts to which they are mapped.
    
    Change-Id: Ibecac60d1417269bbe25a280996ca9de6e6d018f
    Closes-Bug: #1868596