Controller Node installieren und konfigurieren

Controller Node installieren und konfigurieren

Dieser Abschnitt beschreibt, wie der Compute-Dienst auf dem Controller-Node zu installieren und zu konfigurieren ist, der Codename lautet Nova.

Installieren und konfigurieren von Komponenten

Bemerkung

Default configuration files vary by distribution. You might need to add these sections and options rather than modifying existing sections and options. Also, an ellipsis (...) in the configuration snippets indicates potential default configuration options that you should retain.

  1. Installieren Sie die Pakete:

    # apt-get install nova-api nova-conductor nova-consoleauth \
      nova-consoleproxy nova-scheduler python-novaclient
    

    Aufforderungen von debconf beantworten.

    Bemerkung

    nova-api-metadata is included in the nova-api package, and can be selected through debconf.

    Bemerkung

    A unique nova-consoleproxy package provides the nova-novncproxy, nova-spicehtml5proxy, and nova-xvpvncproxy packages. To select packages, edit the /etc/default/nova-consoleproxy file or use the debconf interface. You can also manually edit the /etc/default/nova-consoleproxy file, and stop and start the console daemons.

  1. Bearbeiten Sie die Datei /etc/nova/nova.conf und führen folgende Schritte durch:

    • In the [DEFAULT] section, enable only the compute and metadata APIs:

      [DEFAULT]
      ...
      enabled_apis = osapi_compute,metadata
      
    • The .config and .postinst maintainer scripts of the nova-common package detect automatically the IP address which goes in the my_ip directive of the [DEFAULT] section. This value will normally still be prompted, and you can check that it is correct in the nova.conf after nova-common is installed:

      [DEFAULT]
      ...
      my_ip = 10.0.0.11
      
    • Aktivieren Sie die Unterstützung für den Netzwerkdienst in der [DEFAULT] Sektion:

      [DEFAULT]
      ...
      use_neutron = True
      firewall_driver = nova.virt.firewall.NoopFirewallDriver
      

      Bemerkung

      By default, Compute uses an internal firewall driver. Since the Networking service includes a firewall driver, you must disable the Compute firewall driver by using the nova.virt.firewall.NoopFirewallDriver firewall driver.

    • In the [vnc] section, configure the VNC proxy to use the management interface IP address of the controller node:

      [vnc]
      ...
      vncserver_listen = $my_ip
      vncserver_proxyclient_address = $my_ip
      
    • Konfigurieren Sie den Ort der Abbilddienst API in der Sektion [glance]:

      [glance]
      ...
      api_servers = http://controller:9292
      

Installation abschließen

  • Restart des Compute Servcies:

    # service nova-api restart
    # service nova-consoleauth restart
    # service nova-scheduler restart
    # service nova-conductor restart
    # service nova-novncproxy restart
    
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.