No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Guide for Interworking Between HUAWEI CloudFabric Solution and Redhat OpenStack

Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring the Undercloud Configuration File

Configuring the Undercloud Configuration File

  1. Switch to the stack user. The subsequent commands are all executed by the stack user.

  2. Copy an Undercloud configuration template and name it undercloud.conf.

  3. Open the undercloud.conf file and add content similar to the following:

    [root@nfv stack]$ vi undercloud.conf
    [DEFAULT]
    local_ip = xx.xx.xx.xx/xx
    network_gateway = xx.xx.xx.xx
    undercloud_public_vip = xx.xx.xx.xx
    undercloud_admin_vip = xx.xx.xx.xx
    undercloud_service_certificate =
    generate_service_certificate = true--- Involves installation of Overcloud nodes on the GUI.
    enable_ui = true--- Involves installation of Overcloud nodes on the GUI.
    local_interface = xx
    network_cidr = xx.xx.xx.xx/xx
    masquerade_network = xx.xx.xx.xx
    dhcp_start = xx.xx.xx.xx
    dhcp_end = xx.xx.xx.xx
    inspection_interface = br-ctlplane
    inspection_iprange = xx.xx.xx.xx
    inspection_extras = true
    inspection_runbench = false
    undercloud_debug = true
    enable_tempest = false
    ipxe_deploy = true
    store_events = false
    scheduler_max_attempts = 30
    
    [auth]
    undercloud_db_password = redhat
    undercloud_admin_password = redhat
    undercloud_glance_password = redhat
    undercloud_heat_password = redhat
    undercloud_neutron_password = redhat
    undercloud_nova_password = redhat
    undercloud_ironic_password = redhat
    undercloud_aodh_password = redhat
    undercloud_ceilometer_password = redhat
    undercloud_ceilometer_snmpd_password = redhat
    undercloud_swift_password = redhat
    undercloud_rabbit_password = guest
    undercloud_rabbit_username = guest
    undercloud_heat_stack_domain_admin_password = redhat
    undercloud_haproxy_stats_password = redhat

    The following table describes the parameters.

    Parameter

    Description

    local_ip

    IP address defined for the director's Provisioning NIC. This is also the IP address that the director uses for its DHCP and PXE boot services.

    Undercloud_public_vip

    IP address defined for the director's Public API. Use an IP address on the Provisioning network that does not conflict with any other IP addresses or address ranges.

    Undercloud_admin_vip

    IP address defined for the director's Admin API. Use an IP address on the Provisioning network that does not conflict with any other IP addresses or address ranges.

    local_interface

    Specified interface for the director's Provisioning NIC. This is also the device that the director uses for its DHCP and PXE boot services. Change this value to your required device.

    masquerade_network

    Network to masquerade for external access. The value is the same as that of network_cidr. This provides the Provisioning network with a degree of network address translation (NAT) so that it has external access through the director.

    dhcp_start, dhcp_end

    Start and end of the DHCP allocation range for Overcloud nodes. Ensure this range contains enough IP addresses to allocate to your nodes.

    network_cidr

    Network that the director uses to manage Overcloud instances. This is the Provisioning network, that is, the PXE network

    network_gateway

    Gateway for the Overcloud instances. This is the discovery host, which forwards traffic to the External network.

    discovery_iprange

    A range of IP address that the director's discovery service uses during the PXE boot and provisioning process. Use commas to separate the start and end of the range, for example, 192.0.2.100,192.0.2.120. Ensure that this range contains enough IP addresses for your nodes and does not conflict with the range specified by dhcp_start and dhcp_end.

  4. After the Undercloud is installed in section 3.3.7, the ifcfg-br-ctlplane and ifcfg-xxx files are automatically generated in the /etc/sysconfig/network-scripts directory based on the content in the undercloud.conf configuration file. The files indicate that the xxx NIC is connected to the br-ctlplane bridge, as shown in the following figure.

  5. In this example, the undercloud.conf file content is as follows:

    [stack@localhost ~]$ vi undercloud.conf
    
    [DEFAULT]
    
    #
    # From instack-undercloud
    #
    
    # Local file path to the necessary images. The path should be a
    # directory readable by the current user that contains the full set of
    # images. (string value)
    #image_path = .
    
    # Fully qualified hostname (including domain) to set on the
    # Undercloud. If left unset, the current hostname will be used, but
    # the user is responsible for configuring all system hostname settings
    # appropriately.  If set, the undercloud install will configure all
    # system hostname settings. (string value)
    undercloud_hostname = undercloud.local
    
    # IP information for the interface on the Undercloud that will be
    # handling the PXE boots and DHCP for Overcloud instances.  The IP
    # portion of the value will be assigned to the network interface
    # defined by local_interface, with the netmask defined by the prefix
    # portion of the value. (string value)
    local_ip = 172.24.50.1/24
    
    # Network gateway for the Neutron-managed network for Overcloud
    # instances. This should match the local_ip above when using
    # masquerading. (string value)
    network_gateway = 172.24.50.1
    
    # Virtual IP address to use for the public endpoints of Undercloud
    # services. Only used with SSL. (string value)
    undercloud_public_vip = 172.24.50.2
    
    # Virtual IP address to use for the admin endpoints of Undercloud
    # services. Only used with SSL. (string value)
    undercloud_admin_vip = 172.24.50.3
    
    # Certificate file to use for OpenStack service SSL connections.
    # Setting this enables SSL for the OpenStack API endpoints, leaving it
    # unset disables SSL. (string value)
    #undercloud_service_certificate =
    
    # When set to True, an SSL certificate will be generated as part of
    # the undercloud install and this certificate will be used in place of
    # the value for undercloud_service_certificate.  The resulting
    # certificate will be written to
    # /etc/pki/tls/certs/undercloud-[undercloud_public_vip].pem.  This
    # certificate is signed by CA selected by the
    # "certificate_generation_ca" option. (boolean value)
    #generate_service_certificate = false
    
    # The certmonger nickname of the CA from which the certificate will be
    # requested. This is used only if the generate_service_certificate
    # option is set. Note that if the "local" CA is selected the
    # certmonger's local CA certificate will be extracted to /etc/pki/ca-
    # trust/source/anchors/cm-local-ca.pem and subsequently added to the
    # trust chain. (string value)
    #certificate_generation_ca = local
    
    # The kerberos principal for the service that will use the
    # certificate. This is only needed if your CA requires a kerberos
    # principal. e.g. with FreeIPA. (string value)
    #service_principal =
    
    # Network interface on the Undercloud that will be handling the PXE
    # boots and DHCP for Overcloud instances. (string value)
    local_interface = enp2s0f0
    
    # MTU to use for the local_interface. (integer value)
    #local_mtu = 1500
    
    # Network CIDR for the Neutron-managed network for Overcloud
    # instances. This should be the subnet used for PXE booting. The
    # current default for this value is 192.0.2.0/24, but this is
    # deprecated due to it being a non-routable CIDR under RFC 5737. The
    # default value for this option will be changed in the Ocata release.
    # A different, valid CIDR should be selected to avoid problems. If an
    # overcloud has already been deployed with the 192.0.2.0/24 CIDR and
    # therefore the CIDR cannot be changed, you must set this option to
    # 192.0.2.0/24 explicitly to avoid it changing in future releases, and
    # all other network options related to the CIDR (e.g. local_ip) must
    # also be set to maintain a valid configuration. (string value)
    network_cidr = 172.24.50.0/24
    
    # Network that will be masqueraded for external access, if required.
    # This should be the subnet used for PXE booting. (string value)
    masquerade_network = 172.24.50.0/24
    
    # Start of DHCP allocation range for PXE and DHCP of Overcloud
    # instances. (string value)
    dhcp_start = 172.24.50.5
    
    # End of DHCP allocation range for PXE and DHCP of Overcloud
    # instances. (string value)
    dhcp_end = 172.24.50.50
    
    # Path to hieradata override file. If set, the file will be copied
    # under /etc/puppet/hieradata and set as the first file in the hiera
    # hierarchy. This can be used to custom configure services beyond
    # what undercloud.conf provides (string value)
    #hieradata_override =
    
    # Path to network config override template. If set, this template will
    # be used to configure the networking via os-net-config. Must be in
    # json format. Templated tags can be used within the template, see
    # instack-undercloud/elements/undercloud-stack-config/net-
    # config.json.template for example tags (string value)
    #net_config_override =
    
    # Network interface on which inspection dnsmasq will listen.  If in
    # doubt, use the default value. (string value)
    # Deprecated group/name - [DEFAULT]/discovery_interface
    #inspection_interface = br-ctlplane
    
    # Temporary IP range that will be given to nodes during the inspection
    # process.  Should not overlap with the range defined by dhcp_start
    # and dhcp_end, but should be in the same network. (string value)
    # Deprecated group/name - [DEFAULT]/discovery_iprange
    inspection_iprange = 172.24.50.51,172.24.50.100
    
    # Whether to enable extra hardware collection during the inspection
    # process. Requires python-hardware or python-hardware-detect package
    # on the introspection image. (boolean value)
    #inspection_extras = true
    
    # Whether to run benchmarks when inspecting nodes. Requires
    # inspection_extras set to True. (boolean value)
    # Deprecated group/name - [DEFAULT]/discovery_runbench
    #inspection_runbench = false
    
    # Whether to support introspection of nodes that have UEFI-only
    # firmware. (boolean value)
    #inspection_enable_uefi = true
    
    # Whether to enable the debug log level for Undercloud OpenStack
    # services. (boolean value)
    #undercloud_debug = true
    
    # Whether to install Tempest in the Undercloud. (boolean value)
    #enable_tempest = true
    
    # Whether to install Mistral services in the Undercloud. (boolean
    # value)
    #enable_mistral = true
    
    # Whether to install Zaqar services in the Undercloud. (boolean value)
    #enable_zaqar = true
    
    # Whether to install Telemetry services (ceilometer, aodh) in the
    # Undercloud. (boolean value)
    #enable_telemetry = true
    
    # Whether to install the TripleO UI. (boolean value)
    #enable_ui = true
    
    # Whether to install requirements to run the TripleO validations.
    # (boolean value)
    #enable_validations = true
    
    # Whether to use iPXE for deploy and inspection. (boolean value)
    # Deprecated group/name - [DEFAULT]/ipxe_deploy
    #ipxe_enabled = true
    
    
    # Whether to store events in the Undercloud Ceilometer. (boolean
    # value)
    #store_events = false
    
    # Maximum number of attempts the scheduler will make when deploying
    # the instance. You should keep it greater or equal to the number of
    # bare metal nodes you expect to deploy at once to work around
    # potential race condition when scheduling. (integer value)
    # Minimum value: 1
    #scheduler_max_attempts = 30
    
    # Whether to clean overcloud nodes (wipe the hard drive) between
    # deployments and after the introspection. (boolean value)
    #clean_nodes = false
    
    
    [auth]
    
    #
    # From instack-undercloud
    #
    
    # Password used for MySQL databases. If left unset, one will be
    # automatically generated. (string value)
    #undercloud_db_password = <None>
    
    # Keystone admin token. If left unset, one will be automatically
    # generated. (string value)
    #undercloud_admin_token = <None>
    
    # Keystone admin password. If left unset, one will be automatically
    # generated. (string value)
    #undercloud_admin_password = <None>
    
    # Glance service password. If left unset, one will be automatically
    # generated. (string value)
    #undercloud_glance_password = <None>
    
    # Heat db encryption key(must be 16, 24, or 32 characters. If left
    # unset, one will be automatically generated. (string value)
    #undercloud_heat_encryption_key = <None>
    
    # Heat service password. If left unset, one will be automatically
    # generated. (string value)
    #undercloud_heat_password = <None>
    
    # Neutron service password. If left unset, one will be automatically
    # generated. (string value)
    #undercloud_neutron_password = <None>
    
    # Nova service password. If left unset, one will be automatically
    # generated. (string value)
    #undercloud_nova_password = <None>
    
    # Ironic service password. If left unset, one will be automatically
    # generated. (string value)
    #undercloud_ironic_password = <None>
    
    # Aodh service password. If left unset, one will be automatically
    # generated. (string value)
    #undercloud_aodh_password = <None>
    
    # Ceilometer service password. If left unset, one will be
    # automatically generated. (string value)
    #undercloud_ceilometer_password = <None>
    
    # Ceilometer metering secret. If left unset, one will be automatically
    # generated. (string value)
    #undercloud_ceilometer_metering_secret = <None>
    
    # Ceilometer snmpd read-only user. If this value is changed from the
    # default, the new value must be passed in the overcloud environment
    # as the parameter SnmpdReadonlyUserName. This value must be between 1
    # and 32 characters long. (string value)
    #undercloud_ceilometer_snmpd_user = ro_snmp_user
    
    # Ceilometer snmpd password. If left unset, one will be automatically
    # generated. (string value)
    #undercloud_ceilometer_snmpd_password = <None>
    
    # Swift service password. If left unset, one will be automatically
    # generated. (string value)
    #undercloud_swift_password = <None>
    
    # Mistral service password. If left unset, one will be automatically
    # generated. (string value)
    #undercloud_mistral_password = <None>
    
    # Rabbitmq cookie. If left unset, one will be automatically generated.
    # (string value)
    #undercloud_rabbit_cookie = <None>
    
    # Rabbitmq password. If left unset, one will be automatically
    # generated. (string value)
    #undercloud_rabbit_password = <None>
    
    # Rabbitmq username. If left unset, one will be automatically
    # generated. (string value)
    #undercloud_rabbit_username = <None>
    
    # Heat stack domain admin password. If left unset, one will be
    # automatically generated. (string value)
    #undercloud_heat_stack_domain_admin_password = <None>
    
    # Swift hash suffix. If left unset, one will be automatically
    # generated. (string value)
    #undercloud_swift_hash_suffix = <None>
    
    # Sensu service password. If left unset, one will be automatically
    # generated. (string value)
    #undercloud_sensu_password = <None>
    
    # HAProxy stats password. If left unset, one will be automatically
    # generated. (string value)
    #undercloud_haproxy_stats_password = <None>
    
    # Zaqar password. If left unset, one will be automatically generated.
    # (string value)
    #undercloud_zaqar_password = <None>
    
    # Horizon secret key. If left unset, one will be automatically
    # generated. (string value)
    #undercloud_horizon_secret_key = <None>

Download
Updated: 2019-03-25

Document ID: EDOC1100072313

Views: 2351

Downloads: 15

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next