Ask Your Question

[kolla-ansible] Dimensions in globals.yml not applied [closed]

asked 2019-01-08 08:33:57 -0500

plobo gravatar image

updated 2019-01-08 08:51:24 -0500

Hey all. I'm currently testing a deploy using kolla-ansible. All went fine until HOrizon started acting up and taking 10-15 seconds to display. Doing a little research I quickly arrived at the conclusion that it could be related to memory consumption on my control nodes and in fact, neutron-openvswitch-agent container was using up almost all the memory available. Therefore, I attempted to add some restrictions using dimensions and reconfigured services with kolla-ansible -i multinode reconfigure but when inspecting the container I can see that no constraints were applied.

    mem_limit: "3g"
    memswap_limit: "4g"
    mem_reservation: "2g"

_globals.yml excerpt_

After changing globals.yml, I tried reconfigure, upgrade and even deploy but the containers don't seem to apply the constraints:

# docker container inspect neutron_openvswitch_agent --format='{{json .HostConfig}}' | jq
"Memory": 0,
"MemoryReservation": 0,
"MemorySwap": 0,

Most likely I'm doing something incorrectly here and may have misread how the constraints are supposed to be applied, so any indication in the right direct will be greatly appreciated.


edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by plobo
close date 2019-01-25 10:30:00.284278

1 answer

Sort by ยป oldest newest most voted

answered 2019-01-10 03:01:30 -0500

Hi, the variable used is incorrect, here is the proper variable:

    mem_limit: "3g"
    memswap_limit: "4g"
    mem_reservation: "2g"

Note that ansible don't support variables with (-) symbol.


edit flag offensive delete link more


Thanks Eduardo! Still fresh with ansible so totally missed that.

plobo gravatar imageplobo ( 2019-01-10 03:21:31 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2019-01-08 08:33:57 -0500

Seen: 54 times

Last updated: Jan 10