Skip to content
Snippets Groups Projects
  • Mark Goddard's avatar
    3af28d21
    Fix nova compute addition with limit · 3af28d21
    Mark Goddard authored
    Deploy a small cloud. Add one host to the compute group in the
    inventory, and scale out:
    
    $ kolla-ansible deploy --limit <new compute host>
    
    The command succeeds, but creating an instance fails with the following:
    
        Host 'compute0' is not mapped to any cell
    
    This happens because we only discover computes on the first host in the
    cell's nova conductor group. If that host is not in the specified limit,
    the discovery will not happen.
    
    This change fixes the issue by running compute discovery when any ironic
    or virtualised compute hosts are in the play batch, and delegating it to
    a conductor.
    
    Change-Id: Ie984806240d147add825ffa8446ae6ff55ca4814
    Closes-Bug: #1869371
    3af28d21
    History
    Fix nova compute addition with limit
    Mark Goddard authored
    Deploy a small cloud. Add one host to the compute group in the
    inventory, and scale out:
    
    $ kolla-ansible deploy --limit <new compute host>
    
    The command succeeds, but creating an instance fails with the following:
    
        Host 'compute0' is not mapped to any cell
    
    This happens because we only discover computes on the first host in the
    cell's nova conductor group. If that host is not in the specified limit,
    the discovery will not happen.
    
    This change fixes the issue by running compute discovery when any ironic
    or virtualised compute hosts are in the play batch, and delegating it to
    a conductor.
    
    Change-Id: Ie984806240d147add825ffa8446ae6ff55ca4814
    Closes-Bug: #1869371