Oracle® Solaris에서 OpenStack(Havana) 설치 및 구성

인쇄 보기 종료

업데이트 날짜: 2016년 5월
 
 

Cinder 설치

Cinder 구성에서는 최소한 다음 정보를 지정해야 합니다.

  • Keystone에 대해 인증할 권한 부여 정보

  • 만들 볼륨의 클래스

Cinder를 설치 및 구성하는 방법

  1. Cinder 패키지를 설치합니다.
    controller# pkg install cinder
  2. 인증 구성 정보를 지정합니다.

    /etc/cinder/api-paste.ini 파일에서 다음 매개변수의 주석 처리를 해제하고 해당 매개변수를 설정합니다. 해당 매개변수는 Keystone API 서비스의 위치 및 Cinder 인증 정보를 지정합니다.

    auth_uri = http://controller-name:5000/v2.0
    identity_uri = http://controller-name:35357
    admin_tenant_name = service
    admin_user = cinder
    admin_password = cinder-password
  3. Cinder 볼륨 서비스가 만들어야 할 볼륨의 클래스를 지정합니다.

    /etc/cinder/cinder.conf 파일에서 해당하는 volume_driver 매개변수의 주석 처리를 해제합니다. 다음과 같은 네 가지 볼륨 클래스가 지원됩니다.

    ZFSVolumeDriver

    Cinder 볼륨 서비스와 동일한 노드에서 Nova용 로컬 볼륨을 만들 수 있도록 지원합니다.

    ZFSISCSIDriver

    원격 Nova Compute 노드용 iSCSI 대상을 만들고 내보낼 수 있도록 지원합니다.

    ZFSFCDriver

    원격 Nova Compute 노드용 광 섬유 채널 LUN을 만들고 내보낼 수 있도록 지원합니다.

    ZFSSAISCSIDriver

    원격 Nova Compute 노드용 iSCSI 대상을 만들고 원격 Oracle ZFS Storage Appliance에서 내보낼 수 있도록 지원합니다. 이 드라이버에 대한 추가 매개변수는 /etc/cinder/cinder.conf 파일에서 설정해야 합니다.

    이 장에서 설명되는 예에서 iSCSI는 Nova 인스턴스용 볼륨을 제공하는 데 사용됩니다. ZFSVolumeDriver의 기본 선택 항목을 주석 처리하고 ZFSISCSIDriver 선택 항목의 주석 처리를 해제합니다.

    # Driver to use for volume creation (string value)
    # The local ZFS driver provides direct access to ZFS volumes that it
    # creates. The other listed drivers provide access to ZFS volumes via
    # iSCSI or Fibre Channel and are suitable for cases where block storage
    # for Nova compute instances is shared.
    #volume_driver=cinder.volume.drivers.solaris.zfs.ZFSVolumeDriver
    volume_driver=cinder.volume.drivers.solaris.zfs.ZFSISCSIDriver
    #volume_driver=cinder.volume.drivers.solaris.zfs.ZFSFCDriver
    #volume_driver=cinder.volume.drivers.zfssa.zfssaiscsi.ZFSSAISCSIDriver
  4. 추가 구성 매개변수를 설정합니다.

    /etc/cinder/cinder.conf 파일에서 다음 매개변수의 주석 처리를 해제하고 해당 매개변수를 설정합니다. 이러한 매개변수는 Glance API 서비스, 해당하는 Cinder용 데이터베이스 및 RabbitMQ 서비스의 위치를 지정합니다.

    glance_host=controller-name
    sql_connection=mysql://cinder:cinder@controller-name/cinder
    rabbit_host=controller-name
    volume_driver=cinder.volume.drivers.solaris.zfs.ZFSISCSIDriver
  5. iSCSI 대상이 구성되면 해당하는 SMF 서비스를 사용으로 설정합니다.
    controller# svcadm enable iscsi/target stmf
  6. Cinder SMF 서비스를 사용으로 설정합니다.
    controller# svcadm enable cinder-db
    controller# svcadm enable cinder-api cinder-scheduler
    controller# svcadm enable cinder-volume:default cinder-volume:setup

참조

How to Build OpenStack Block Storage on ZFS를 참조하십시오.

ZFS Storage Appliance iSCSI Cinder 드라이버를 구성하는 방법

Oracle ZFS Storage Appliance iSCSI Cinder 드라이버를 통해 Oracle ZFSSA(ZFS Storage Appliance)를 Cinder용 블록 저장소 리소스로 원활하게 사용할 수 있습니다. 이 드라이버는 Cinder 서버가 Nova 서비스에 의해 인스턴스화된 가상 시스템에 할당할 수 있는 iSCSI 볼륨을 만들 수 있도록 해줍니다. 드라이버는 cloud/openstack/cinder 패키지로 제공됩니다. 사용 중인 어플라이언스에서 ZFSSA 소프트웨어 릴리스 2013.1.2.0 이상이 실행되고 있어야 합니다.

시작하기 전에

Oracle ZFS Storage Appliance에서 풀을 구성하십시오. 기존 풀을 사용하도록 선택할 수 있습니다.

  1. 워크플로우 cinder.akwf를 실행합니다.

    기존 사용자를 사용하거나 Cinder 드라이버 작업을 수행할 수 있는 역할 권한이 부여된 새 사용자를 만들 수 있습니다.

    cinder.akwf 워크플로우는 다음 작업을 수행합니다.

    • 사용자가 없을 경우 사용자를 만듭니다.

    • Cinder 드라이버 작업을 수행할 수 있는 역할 권한 부여를 설정합니다.

    • 현재 서비스가 사용 안함으로 설정된 경우 RESTful 서비스를 사용으로 설정합니다.

    사용 중인 어플라이언스의 CLI(명령줄 인터페이스) 또는 BUI(브라우저 사용자 인터페이스)에서 워크플로우를 실행할 수 있습니다.

    • CLI에서 워크플로우를 실행합니다.
      zfssa:maintenance workflows> download
      zfssa:maintenance workflows download (uncommitted)> show
      Properties:
                                url = (unset)
                               user = (unset)
                           password = (unset)
      
      zfssa:maintenance workflows download (uncommitted)> set url="url to the cinder.akwf file"
                                url = "url to the cinder.akwf file"
      zfssa:maintenance workflows download (uncommitted)> commit
      Transferred 2.64K of 2.64K (100%) ... done
      
      zfssa:maintenance workflows> ls
      Properties:
                         showhidden = false
      
      Workflows:
      
      WORKFLOW     NAME                                      OWNER SETID ORIGIN              VERSION
      workflow-000 Clear locks                               root  false Oracle Corporation  1.0.0
      workflow-001 Configuration for OpenStack Cinder Driver root  false Oracle Corporation  1.0.0
      
      zfssa:maintenance workflows> select workflow-001
      
      zfssa:maintenance workflow-001 execute (uncommitted)> set name=openstack
                               name = openstack
      zfssa:maintenance workflow-001 execute (uncommitted)> set password=openstack-password
                           password = ********
      zfssa:maintenance workflow-001 execute (uncommitted)> commit
      User openstack created.
    • BUI에서 워크플로우를 실행합니다.
      1. Maintenance(유지 관리) -> Workflows(워크플로우)를 선택하고 더하기 아이콘을 사용하여 새 워크플로우를 업로드합니다.
      2. Browse(찾아보기) 버튼을 누르고 cinder.akwf 파일을 선택합니다.
      3. UPLOAD(업로드) 버튼을 눌러 워크플로우 업로드를 완료합니다.
      4. BUI Workflows(BUI 워크플로우) 페이지에 나타나는 새 행을 눌러 Cinder 드라이버 워크플로우를 실행합니다.

        워크플로우에서 사용자 이름 및 암호를 입력하라는 메시지를 표시합니다. 이 사용자 이름 및 암호는 cinder.conf 파일에서 zfssa_auth_userzfssa_auth_password로도 사용됩니다.

  2. cinder.conf 파일에서 매개변수를 설정합니다.

    cinder.conf 파일에서 다음과 같은 필수 등록 정보를 지정합니다.

    • volume_drivercinder.volume.drivers.zfssa.zfssaiscsi.ZFSSAISCSIDriver의 주석 처리가 해제되었는지 확인합니다. 다른 세 가지 선택 항목이 주석 처리되었는지 확인합니다.

    • zfssa_host – ZFSSA 관리 호스트의 이름 또는 IP 주소입니다.

    • zfssa_auth_user – ZFSSA에서 Cinder 사용자의 사용자 이름입니다.

    • zfssa_auth_password – ZFSSA에서 Cinder 사용자의 암호입니다.

    • zfssa_pool – 볼륨 할당에 사용할 풀입니다.

    • zfssa_target_portal – ZFSSA iSCSI 대상 포탈(data-ip:port)입니다. 기본 포트는 3260입니다.

    • zfssa_project – ZFSSA 프로젝트의 이름입니다. 어플라이언스에 프로젝트가 없을 경우 시작 시 드라이버가 해당 이름으로 프로젝트를 만듭니다. 이 프로젝트에는 드라이버가 만든 모든 볼륨이 포함됩니다. 볼륨 특성(예: 블록 크기) 및 액세스(예: 개시자, 대상, 보안) 설정을 위해 추가 ZFSSA 등록 정보가 제공됩니다.

    • zfssa_initiator_group – 개시자 그룹의 이름입니다. 어플라이언스에 개시자 그룹이 없을 경우 시작 시 드라이버가 해당 이름으로 개시자 그룹을 만듭니다. default 개시자 그룹을 사용하려면 이 매개변수의 값을 default로 설정합니다. default 개시자 그룹은 평가 용도로 유용할 수 있습니다. 원치 않거나 충돌하는 개시자에게 볼륨이 노출될 수 있으므로 default 개시자 그룹은 일반적으로 사용되지 않아야 합니다.

    • zfssa_target_interfaces – ZFSSA iSCSI 대상 네트워크 인터페이스입니다. 다음 명령을 사용하여 인터페이스를 확인할 수 있습니다.

      zfssa:configuration net interfaces> show
      Interfaces:
      
        INTERFACE STATE CLASS LINKS    ADDRS          LABEL
        e1000g0   up    ip    e1000g0  1.10.20.30/24  Untitled Interface
    • connectionconnectionsql_connection으로 변경합니다.

      다음 행을 찾습니다.

      connection=mysql://cinder:cinder...

      이 행을 아래와 같이 수정합니다.

      sql_connection=mysql://cinder:cinder...
  3. ZFSSA iSCSI 서비스가 온라인 상태인지 확인합니다.

    ZFSSA iSCSI 서비스가 온라인 상태가 아니면 어플라이언스에서 BUI 또는 CLI를 통해 사용으로 설정합니다. 다음 예에서는 어플라이언스에서 CLI를 사용하는 방법을 보여줍니다.

    zfssa:> configuration services iscsi
    zfssa:configuration services iscsi> enable
    zfssa:configuration services iscsi> show
    Properties:
    <status> = online
    ...
  4. Cinder 볼륨 SMF 서비스를 사용으로 설정합니다.
    controller# svcadm enable cinder-volume:default cinder-volume:setup