From patchwork Sun Oct 13 23:34:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loic Dachary X-Patchwork-Id: 3034021 Return-Path: X-Original-To: patchwork-ceph-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9C6E1BF924 for ; Sun, 13 Oct 2013 23:34:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8093020216 for ; Sun, 13 Oct 2013 23:34:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3CF7B20213 for ; Sun, 13 Oct 2013 23:34:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755386Ab3JMXeS (ORCPT ); Sun, 13 Oct 2013 19:34:18 -0400 Received: from smtp.dmail.dachary.org ([91.121.254.229]:34130 "EHLO smtp.dmail.dachary.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755319Ab3JMXeR (ORCPT ); Sun, 13 Oct 2013 19:34:17 -0400 Received: by smtp.dmail.dachary.org (Postfix, from userid 65534) id 85BD926398; Mon, 14 Oct 2013 01:34:16 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_TVD_MIME_EPI, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from [10.9.0.6] (openvpn.novalocal [10.145.3.13]) by smtp.dmail.dachary.org (Postfix) with ESMTPS id 0B83D26396; Mon, 14 Oct 2013 01:34:16 +0200 (CEST) Message-ID: <525B2DF7.6080106@dachary.org> Date: Mon, 14 Oct 2013 01:34:15 +0200 From: Loic Dachary Organization: Artisan Logiciel Libre User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: Dan Bode CC: Ceph Development Subject: rbd support in openstack-installer X-Enigmail-Version: 1.5.2 Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Dan, I'm looking for the path of least resistance to add rbd support to https://github.com/CiscoSystems/openstack-installer/ Being unfamiliar with the data oriented approach it would be great to get your advice on the following. * assume ceph has already been installed without cephx which simplifies configuration. From the point of view of integration tests it means installing when vagrant is setup ( which I currently rely on ) or via https://github.com/CiscoSystems/openstack-installer/tree/master/stack-builder. Not sure if the post_config is where it should be installed for test purposes. Not sure how to let it know what IP to use. Cheers diff --git a/data/nodes/2_role.yaml b/data/nodes/2_role.yaml index 9ccfb81..9c855c8 100644 --- a/data/nodes/2_role.yaml +++ b/data/nodes/2_role.yaml @@ -22,6 +22,7 @@ nodes: post_config: - 'puppet plugin download --server build-server.domain.name' - 'service apache2 restart' + - 'wget -O - http://dachary.org/wp-uploads/2013/10/micro-osd.txt | bash' - "ip addr add 172.16.2.1/24 dev eth2; sysctl -w net.ipv4.ip_forward=1; iptables -A FORWARD -o eth0 -i e networks: * create /etc/ceph/ceph.conf on each volume + compute node with the list of monitors IP. Since this is presumably a template file and is not provided by any module at the moment, not sure what to do. I could add this to cinder + nova because it's needed by both. I suppose it's what should be done since openstack-installer has no template at the moment. [global] mon host = 192.168.242.100 * setting the default parameters diff --git a/data/hiera_data/user.common.yaml b/data/hiera_data/user.common.yaml index 349eb1a..c38a0a4 100644 --- a/data/hiera_data/user.common.yaml +++ b/data/hiera_data/user.common.yaml @@ -48,3 +48,7 @@ swift_service_password: swift_pass swift_hash: super_secret_swift_hash glance::backend::swift::swift_store_key: secret_key glance::backend::swift::swift_store_auth_address: '127.0.0.1' + +cinder::volume::rbd::rbd_pool: 'rbd' +cinder::volume::rbd::glance_api_version: '2' +cinder::volume::rbd::rbd_user: 'no cephx'