Helion OpenStack 1.1.1 Ceph-Installation und -Konfiguration

2015-10-03

Helion OpenStack 1.1.1 Ceph-Installation und -Konfiguration

Machine-translated — the English original is authoritative.

Immer mehr Kunden entscheiden sich für Ceph als offene und einheitliche Speicherlösung für ihre OpenStack-basierten IaaS-Plattformen. Einer der wichtigsten Vorteile, den Ceph bietet, ist die Bereitstellung sowohl von Objektspeicher (z. B. Dropbox, Google Drive) als auch von Blockspeicher (z. B. LUNs, Laufwerke) über eine einzige Schnittstelle. Theoretisch reduziert dies die Anzahl der Produkte, die ein Kunden verwalten und sein Personal darin schulen muss.

Es sind jedoch Einschränkungen zu beachten: Derzeit fehlt es an einer produktionsreifen asynchronen Replikation, wenn versucht wird, Ceph über große Entfernungen zu verteilen. Der Objektspeicher verfügt zudem über viele Funktionen, die derzeit mit dedizierten Produkten wie Swift verfügbar sind, nicht, daher sollten die geschäftlichen Anforderungen eindeutig identifiziert sein.

Alles in allem ist Ceph eine sehr leistungsfähige Speicherlösung, wenn keine Multi-Region-Anforderungen bestehen und die Sicherheit kein primäres Anliegen ist.

ceph
Abbildung 1: HOS Ceph-Kommunikation

Ceph-Installation

Das Verfahren zur Durchführung der Ceph-Installation mit HOS finden Sie hier: http://docs.hpcloud.com/#commercial/GA1/ceph/1.1commercial.ceph-automated-install.html

Die folgenden Konfigurationsdateien wurden in Verbindung mit dem oben genannten Verfahren für eine erfolgreiche Installation verwendet:

Server.json-Datei

Ändern Sie /server/server.json, um die OpenStack-Anmeldeinformationen aus dem Undercloud (stackrc), das Netzwerk und den Schlüsselbund aus Helion OpenStack einzuschließen.


{
"authentication": {
   "HOST": "172.16.0.131",
   "PORT": "8085",
   "OS_VERSION": "2",
   "OS_USER": "admin",
   "OS_PASSWORD": "password",
   "OS_TENANT_NAME": "admin",
   "OS_AUTH_URL": "http://172.16.0.135:5000/v2.0",
   "keypair": "cephadmin",
   "netid": "2ff3d218-86a9-4875-9d38-5f7860c581b1"
    }
}

Orchestration.json-Datei
Diese Datei konfiguriert die Undercloud-Flavors für die physischen Ceph-Knoten.


{
    "authentication": {
        "ws_url": "http://172.16.0.131:8085/"
    },
 
    "api": {
        "imagepath": "/helion-ceph/images/",
        "deploy-image-prefix": "bm-deploy"
    },
 
    "orchestration": {
        "hypervisorsleepduration": "300",
        "hypervisorsmoniteringfrequency": "10",
        "bootsleepduration": "1200",
        "bootinitialwaitduration": "30",
        "hypervisortype": "baremetal",
        "hypervisordriver": "ironic",
        "bootmoniteringfrequency": "5",
        "destinationpath": "/helion-ceph/"
    },
 
 
    "flavor": {
            "001": {
                "ram": "163840",
                "vcpus": "2",
                "disk": "275",
                "architecture": "x86_64",
                "version" : "001"
            },
    "002": {
                "ram": "65536",
                "vcpus": "12",
                "disk": "900",
                "architecture": "x86_64",
                "version" : "001"
            }
    },
 
 
    "ironic": {
        "batchsize": "1",
        "driver": "pxe_ipmitool",
        "cpu_arch": "x86_64",
        "pxe_root_gb": "4"
    },
 
    "logger": {
        "filename": "orchestration.log",
        "filemode": "w",
        "level": 20,
        "format": "%(levelname)s:%(asctime)s:%(message)s"
    }
}

Baremetal.csv-Datei

Wie bei der Bare-Metal-Datei im vorherigen HOS-Abschnitt wird diese Datei verwendet, um die Eigenschaften der physischen Knoten zu definieren, die mit dem Installer integriert werden sollen.


root@hLinux:/helion-ceph/node-provisioner/client# cat baremetal.csv
55:b9:22:92:c0:23,Administrator,password,10.99.10.12,12,65536,1637
55:b9:22:92:c2:cc,Administrator,password,10.99.10.13,12,65536,1637

Ceph-Konfiguration

Das Verfahren zur Durchführung der Ceph-Konfiguration mit HOS finden Sie hier:
http://docs.hpcloud.com/#commercial/GA1/ceph/1.1commercial.ceph-cluster-client-node-configuration-ansible.html

Die folgenden Konfigurationsdateien wurden in Verbindung mit dem oben genannten Verfahren für eine erfolgreiche Konfiguration verwendet:

cluster.csv-Datei
Dies ist die Cluster-Definitionsdatei für Rollen und Festplatten.


hlinux@c1admin-overcloud-ceph-admin:/helion-ceph/cephconfiguration/ansible-playbooks$ cat cephcluster.csv
172.16.0.165,mon-master-1,mon-master,hlinux
172.16.0.165,admin-1,admin,hlinux
172.16.0.165,ceph-osd-1,osd,hlinux,xfs,/dev/sdb,xfs,/dev/sde5
172.16.0.165,ceph-osd-2,osd,hlinux,xfs,/dev/sdc,xfs,/dev/sde6
172.16.0.165,ceph-osd-3,osd,hlinux,xfs,/dev/sdd,xfs,/dev/sde7
172.16.0.164,ceph-osd-4,osd,hlinux,xfs,/dev/sdb,xfs,/dev/sde5
172.16.0.164,ceph-osd-5,osd,hlinux,xfs,/dev/sdc,xfs,/dev/sde6
172.16.0.164,ceph-osd-6,osd,hlinux,xfs,/dev/sdd,xfs,/dev/sde7
172.16.0.149,compute0,computes
172.16.0.150,compute1,computes
172.16.0.151,compute2,computes
172.16.0.141,controller0,controllers
172.16.0.146,controller1,controllers
172.16.0.145,controller2,controllers
172.16.0.131,seed0,seed

[Bitte beachten Sie: Die Dateinamen der Journal-Geräte enthalten die durch den Installationsprozess hinzugefügte Partitionsnummer – beispielsweise wird aus /dev/sdn nach der Installation /dev/sdnX]

Ansible – /group_vars/all-Datei

Definiert Umgebungsvariablen für die Installation.


hlinux@c1admin-overcloud-ceph-admin:/helion-ceph/cephconfiguration/ansible-playbooks$ cat group_vars/all
---
# Variables here are available to all host groups
cephmon_user:   root                                           #Leave this value as is
cephmon_group:  root                                           #Leave this value as is
runrados:       0                                              # Set this to 0 if you do not have rados nodes, to 1 if you have the rados nodes
radosgwHA:      0                                              # Set this to true if you want to setup rados in HA mode where you need min two rados nodes
secretuuid:     123456789123456789123456789           # This the UUID that will be used to setup the helion nodes. Change this prio to running the ceph-client and ceph-admin roles, if you wish to newly generated UUID. The same UUID will work too.
clienttarname:  ceph_client_setup-0.80.7_h1.1.fix7_newdebs.tar # Set this to the tar ball name that is being used for helion client setup. Make sure the tarball has been copied under roles/ceph-client/files folder
passthrough_path: "/helion-ceph/cephconfiguration/ansible-playbooks/roles/helion-seed/files/hp_ceph_passthrough"

Ansible – /group_vars/ceph-cluster


hlinux@c1admin-overcloud-ceph-admin:/helion-ceph/cephconfiguration/ansible-playbooks$ cat group_vars/ceph-cluster
---
# Variables here are applicable to the ceph-cluster host group
osd_journal_size: 10000
mon_master: 172.16.0.165
fsid: 123456789123456789123456789
fssize: 2048
env: baremetal
journal: 1
dependencies:

Ceph-Integration

Das Verfahren zur Durchführung der Ceph-Integration mit HOS finden Sie hier:
http://docs.hpcloud.com/#commercial/GA1/ceph/1.1commercial.ceph-cluster-client-node-configuration-ansible.html

Dieser Prozess wird durch Ansible-Skripte automatisiert. Die manuellen Integrationsschritte sind ebenfalls hier verfügbar: http://docs.hpcloud.com/#commercial/GA1/ceph/1.1commercial.ceph-manual-install.html

Originally published on allthingscloud.eu (2015-10-03).

← All posts