Bug 1594976 - low-memory-usage.yaml should lower NovaReservedHostMemory to 512MB
Summary: low-memory-usage.yaml should lower NovaReservedHostMemory to 512MB
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: z3
: 13.0 (Queens)
Assignee: Rajesh Tailor
QA Contact: Arik Chernetsky
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-25 21:56 UTC by Andreas Karis
Modified: 2018-11-13 22:27 UTC (History)
12 users (show)

Fixed In Version: openstack-tripleo-heat-templates-8.0.7-2.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-11-13 22:27:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1778597 0 None None None 2018-06-25 22:07:11 UTC
OpenStack gerrit 577938 0 None master: MERGED tripleo-heat-templates: Lower reserved memory for nova-compute (I75635ab99d4d55628f6b32446beb14ae7333575a) 2018-10-15 14:30:05 UTC
OpenStack gerrit 581201 0 None stable/queens: MERGED tripleo-heat-templates: Lower reserved memory for nova-compute (I75635ab99d4d55628f6b32446beb14ae7333575a) 2018-10-15 14:29:59 UTC
Red Hat Product Errata RHBA-2018:3587 0 None None None 2018-11-13 22:27:46 UTC

Description Andreas Karis 2018-06-25 21:56:07 UTC
Description of problem:
Since Queens (perhaps Pike?), nova-compute reserved host memory by default is 4096. This doesn't work out well in low memory environments:
~~~
(overcloud) [stack@undercloud-1 ~]$ grep 4096 -C10 /usr/share/openstack-tripleo-heat-templates/puppet/services/nova-compute.yaml
      processes.
      Ex. NovaVcpuPinSet: ['4-12','^8'] will reserve cores from 4-12 excluding 8
    type: comma_delimited_list
    default: []
    tags:
      - role_specific
  NovaReservedHostMemory:
    description: >
      Reserved RAM for host processes.
    type: number
    default: 4096
    constraints:
      - range: { min: 512 }
    tags:
      - role_specific
  MonitoringSubscriptionNovaCompute:
    default: 'overcloud-nova-compute'
    type: string
  NovaComputeLoggingSource:
    type: json
    default:
~~~

~~~
[root@overcloud-compute-0 ~]# grep reserv /var/lib/config-data/puppet-generated/nova_libvirt -R | egrep -v ':#'
/var/lib/config-data/puppet-generated/nova_libvirt/etc/nova/nova.conf:reserved_host_memory_mb=4096
[root@overcloud-compute-0 ~]# 
~~~

~~~
(overcloud) [stack@undercloud-1 ~]$ nova hypervisor-show d787b5c3-d83f-4246-9338-5083bfbb6058 | grep mb
| free_ram_mb               | -1                                       |
| memory_mb                 | 4095                                     |
| memory_mb_used            | 4096                                     |
(overcloud) [stack@undercloud-1 ~]$ 
~~~

The templates provide a low-memory-usage.yaml file:
/usr/share/openstack-tripleo-heat-templates/environments/low-memory-usage.yaml

Change that .yaml to include NovaReservedHostMemory: 512
~~~
# Lower the memory usage of overcloud.
parameter_defaults:
  CinderWorkers: 1
  GlanceWorkers: 1
  HeatWorkers: 1
  KeystoneWorkers: 1
  NeutronWorkers: 1
  NovaWorkers: 1
  SaharaWorkers: 1
  SwiftWorkers: 1
  GnocchiMetricdWorkers: 1

  ApacheMaxRequestWorkers: 100
  ApacheServerLimit: 100

  ControllerExtraConfig:
      'nova::network::neutron::neutron_url_timeout': '60'

  DatabaseSyncTimeout: 900

  # Override defaults to get HEALTH_OK with 1 OSD (for testing only)
  CephPoolDefaultSize: 1
  CephPoolDefaultPgNum: 32

  NovaReservedHostMemory: 512
~~~

Comment 1 Steve Baker 2018-06-26 00:26:45 UTC
Assigning to Compute DFG for triage

Comment 2 Rajesh Tailor 2018-06-29 10:50:59 UTC
There is a patch submitted upstream [1], which needs to be backported to OSP13.

[1] https://review.openstack.org/#/c/577938/

Comment 14 errata-xmlrpc 2018-11-13 22:27:09 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:3587


Note You need to log in before you can comment on or make changes to this bug.