Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
openstack:newton:compute [2016/10/09 09:27] – madko | openstack:newton:compute [2016/10/12 16:47] (Version actuelle) – [Configuration de la partie Neutron] madko | ||
---|---|---|---|
Ligne 7: | Ligne 7: | ||
Pour installer les paquets : | Pour installer les paquets : | ||
- | < | + | < |
+ | yum install openstack-nova-compute | ||
</ | </ | ||
+ | ===== Configuration de Nova ===== | ||
+ | |||
+ | Fichier de configuration / | ||
+ | |||
+ | < | ||
+ | [DEFAULT] | ||
+ | auth_strategy=keystone | ||
+ | my_ip=192.168.2.69 | ||
+ | use_neutron=true | ||
+ | enabled_apis=osapi_compute, | ||
+ | firewall_driver = nova.virt.firewall.NoopFirewallDriver | ||
+ | rpc_backend=rabbit | ||
+ | [api_database] | ||
+ | [barbican] | ||
+ | [cache] | ||
+ | [cells] | ||
+ | [cinder] | ||
+ | [cloudpipe] | ||
+ | [conductor] | ||
+ | [cors] | ||
+ | [cors.subdomain] | ||
+ | [crypto] | ||
+ | [database] | ||
+ | [ephemeral_storage_encryption] | ||
+ | [glance] | ||
+ | api_servers = http:// | ||
+ | [guestfs] | ||
+ | [hyperv] | ||
+ | [image_file_url] | ||
+ | [ironic] | ||
+ | [key_manager] | ||
+ | [keystone_authtoken] | ||
+ | auth_uri = http:// | ||
+ | auth_url = http:// | ||
+ | memcached_servers = controller.internal: | ||
+ | auth_type = password | ||
+ | project_domain_name = default | ||
+ | user_domain_name = default | ||
+ | project_name = service | ||
+ | username = nova | ||
+ | password = nova | ||
+ | [libvirt] | ||
+ | [matchmaker_redis] | ||
+ | [metrics] | ||
+ | [mks] | ||
+ | [neutron] | ||
+ | [osapi_v21] | ||
+ | [oslo_concurrency] | ||
+ | lock_path = / | ||
+ | [oslo_messaging_amqp] | ||
+ | [oslo_messaging_notifications] | ||
+ | [oslo_messaging_rabbit] | ||
+ | rabbit_host = bdd | ||
+ | rabbit_userid = openstack | ||
+ | rabbit_password = RABBIT_PASS | ||
+ | [oslo_messaging_zmq] | ||
+ | [oslo_middleware] | ||
+ | [oslo_policy] | ||
+ | [placement] | ||
+ | [placement_database] | ||
+ | [rdp] | ||
+ | [remote_debug] | ||
+ | [serial_console] | ||
+ | [spice] | ||
+ | [ssl] | ||
+ | [trusted_computing] | ||
+ | [upgrade_levels] | ||
+ | [vmware] | ||
+ | [vnc] | ||
+ | enabled = True | ||
+ | vncserver_listen = 0.0.0.0 | ||
+ | vncserver_proxyclient_address = $my_ip | ||
+ | novncproxy_base_url = http:// | ||
+ | [workarounds] | ||
+ | [wsgi] | ||
+ | [xenserver] | ||
+ | [xvp] | ||
+ | </ | ||
+ | |||
+ | Activer et demarrer les services Nova de l' | ||
+ | |||
+ | < | ||
+ | systemctl enable libvirtd openstack-nova-compute | ||
+ | systemctl start libvirtd openstack-nova-compute | ||
+ | </ | ||
+ | ===== Configuration de la partie Neutron ===== | ||
+ | |||
+ | Installer les paquets des agents nécessaires : | ||
+ | |||
+ | < | ||
+ | yum install openstack-neutron-openvswitch ipset | ||
+ | </ | ||
+ | |||
+ | Configuration de l' | ||
+ | |||
+ | < | ||
+ | [DEFAULT] | ||
+ | [agent] | ||
+ | tunnel_types = gre,vxlan | ||
+ | l2_population = True | ||
+ | [ovs] | ||
+ | local_ip = 192.168.200.4 | ||
+ | bridge_mappings = vlan: | ||
+ | [securitygroup] | ||
+ | firewall_driver = iptables_hybrid | ||
+ | </ | ||
+ | |||
+ | Configuration de la partie Neutron dans / | ||
+ | |||
+ | < | ||
+ | [DEFAULT] | ||
+ | auth_strategy = keystone | ||
+ | rpc_backend = rabbit | ||
+ | [agent] | ||
+ | [cors] | ||
+ | [cors.subdomain] | ||
+ | [database] | ||
+ | [keystone_authtoken] | ||
+ | auth_uri = http:// | ||
+ | auth_url = http:// | ||
+ | memcached_servers = controller.internal: | ||
+ | auth_type = password | ||
+ | project_domain_name = default | ||
+ | user_domain_name = default | ||
+ | project_name = service | ||
+ | username = neutron | ||
+ | password = neutron | ||
+ | [matchmaker_redis] | ||
+ | [nova] | ||
+ | [oslo_concurrency] | ||
+ | lock_path = / | ||
+ | [oslo_messaging_amqp] | ||
+ | [oslo_messaging_notifications] | ||
+ | [oslo_messaging_rabbit] | ||
+ | rabbit_host = bdd | ||
+ | rabbit_userid = openstack | ||
+ | rabbit_password = RABBIT_PASS | ||
+ | [oslo_messaging_zmq] | ||
+ | [oslo_policy] | ||
+ | [qos] | ||
+ | [quotas] | ||
+ | [ssl] | ||
+ | </ | ||
+ | |||
+ | Activer et démarrer les services suivants : | ||
+ | |||
+ | < | ||
+ | systemctl enable neutron-openvswitch-agent openvswitch | ||
+ | systemctl start neutron-openvswitch-agent openvswitch | ||
+ | </ | ||
+ | ===== Configuration de la libvirt ===== | ||
+ | |||
+ | Pour permettre les migrations à chaud, il faut ajouter l' | ||