TechOYAJI 2014 tokyo summer LT; CentOS7 and RDO Icehouse OpenStack

3,458 views
3,345 views

Published on

CentOS7 is OSS of RHEL7. But we had problems RDO Icehouse OpenStack install with packstack.
This behavior is due to the version notation was introduced in CentOS7 called "7.0.1406". So far, in CentOS7, and we use the notation such as "6.5" treated as values in the decimal point, it was also similar even RHEL.
String introduced in CentOS7 called "7.0.1406" can not be treated as a number.
Confuse itself caused the puppet upstream community that said version number is difficult to make out CentOS7 development community.

Published in: Engineering
0 Comments
7 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
3,458
On SlideShare
0
From Embeds
0
Number of Embeds
591
Actions
Shares
0
Downloads
28
Comments
0
Likes
7
Embeds 0
No embeds

No notes for slide

TechOYAJI 2014 tokyo summer LT; CentOS7 and RDO Icehouse OpenStack

  1. 1. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa 1 TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa TechOyaji 2014/Summer Tokyo GMO yours ; 2014/07/26 GMOインターネット株式会社 このはとあんずの仲間たち 詩人 郷古 直仁
  2. 2. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa TechOYAJI な(Age 41)リアルな ConoHaの中の人の最近なわだいを ちょっとLT ! ちょっと文章がラップ調なのは詩人 だから 2
  3. 3. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa おれたちGMOのOpenStacker 3
  4. 4. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa このは と あんず のサービス提供 してます ! このは : 美雲このは ConoHa あんず : 美雲あんず GMO Apps-Cloud 4
  5. 5. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa ほんじつ TechOyaji 2014/Summer Tokyo 5
  6. 6. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa in GMO yours 6
  7. 7. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa Introduce CentOS7 … 7
  8. 8. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa で OpenStack RDO Icehouse 8
  9. 9. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa えっ CentOS7は RHEL7のOSS 9
  10. 10. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa 動かねーはずはない 10
  11. 11. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa BUT 11
  12. 12. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa have Problems!! 12
  13. 13. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa なんでやねん 13
  14. 14. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa すべてはこれからはじまった 14
  15. 15. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa CentOS 7 Release version 7.0.1406 ! ! なんとなく、ubuntuっぽい.1406 15
  16. 16. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa いままで、CentOS6までは 16
  17. 17. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa いままで、CentOS6までは # cat /etc/redhar-release CentOS release 6.5(Final) 17
  18. 18. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa RDOはpuppetでうごいています 18
  19. 19. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa RDOはpackstack puppetでインストール ! puppetはOSのバージョンを何で 判定するのか 19
  20. 20. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa はううっ 20
  21. 21. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa そう、 CentOS7ではこんな感じ ! # cat /etc/redhat-release CentOS Linux release 7.0.1406 (Core) 21
  22. 22. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa こんなのpuppet labは想定外 ! ! (RHEL7ではこれに該当しないので、 ちゃんと動く) でも、CentOS7の7.0.1406は判 別できない 22
  23. 23. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa puppet upsteam大混乱 23
  24. 24. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa Chef, Ansible upsteam大混乱 24
  25. 25. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa で、 CentOS7でRDO Icehouseには いまのところパッチが必要です ! 25
  26. 26. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa rdo-AIO-centos7-patch-for- bug-1117871.diff ! Example) - $::operatingsystemrelease < 7 + $::operatingsystemmajrelease < 7 ! 26
  27. 27. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa https://bugzilla.redhat.com/ show_bug.cgi?id=1117871 27
  28. 28. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa このpatchを $ sudo yum install -y openstack-packstack のあとに当てればダイジョウブ 28
  29. 29. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa $ sudo su - # cd / cat /root/rdo-AIO-centos7- patch-for-bug-1117871.diff ¦ patch -p1 29
  30. 30. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa これで、あなたもCentOS7で OpenStack RDO Icehouse 30
  31. 31. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa Can DO IT!! ((おわり)) 31
  32. 32. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa 32 Can DO IT!! ((おわり)) ! ! はうぁ、ここからはおまけ ! slideshareにupしてから見る用
  33. 33. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa CentOS7 で OpenStack RDO Icehouse all in oneの手順を書いてみる 33
  34. 34. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa step 0) CentOS7準備(泣) (1) ConoHaにLogin (2) 4GBぐらいのvmを作る 34
  35. 35. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa 35
  36. 36. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa 36 TechOYAJIは、4GBぐらいサクッw
  37. 37. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa step 0) CentOS7準備(泣) (3) CentOS 7.0-1406のインストー ラをマウントして、CentOS7を入れ る(パッケージ選択が 仮想化ホスト だと後入れが少ない) 37
  38. 38. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa 38 CentOS7のvgaドライバは画面が…
  39. 39. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa step 1) Software repositories (4) CentOS7起動したら、 $ sudo yum update -y 39
  40. 40. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa step 1) Software repositories (5) RDOリポジトリ設定 $ wget https://repos.fedorapeople.org/ repos/openstack/openstack-icehouse/rdo- release-icehouse-4.noarch.rpm ! $ sudo rpm -ivh rdo-release- icehouse-4.noarch.rpm 40
  41. 41. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa step 2) Install Packstack Installer (6) yumでいれる $ sudo yum install -y openstack-packstack 41
  42. 42. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa step 3.5) Onajinai & patch (7) rootの rsa ssh key をつくって、 self authできるように authorized_keysをつくる $ sudo su - # ssh-keygen -t rsa # cat /root/.ssh/id_rsa.pub > /root/.ssh/ authorized_keys 42
  43. 43. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa step 3.5) Onajinai & patch (8) githubにおいたpatchをぱちっ とあてます $ sudo su - # wget https://raw.githubusercontent.com/ naototty/centos7-rdo-icehouse/master/rdo- AIO-centos7-patch-for-bug-1117871.diff ! # cat /root/AIO-centos7-patch-for- bug-1117871.diff ¦ patch -p1 43
  44. 44. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa step 4) packstack (8) packstackでall in oneインス トールします ! # packstack —allinone! 44
  45. 45. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa step 5) 15分ぐらい待つと… (9) いんすとーるかんりょう ! ! ! ! ! ! 以下、インストールログと画面 45
  46. 46. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa n-gohko@conoha:~/RDO-CentOS7-Icehouse$ ssh n- gohko@icehouse.macpoi.me! The authenticity of host 'icehouse.macpoi.me (157.7.205.108)' can't be established.! ECDSA key fingerprint is 73:e9:14:8a:9c:0c:ae: 21:88:c4:07:45:12:a1:4b:cc.! Are you sure you want to continue connecting (yes/no)? yes! Warning: Permanently added 'icehouse.macpoi.me, 157.7.205.108' (ECDSA) to the list of known hosts.! n-gohko@icehouse.macpoi.me's password:! Last login: Sat Jul 26 17:22:54 2014 from natter.interq.or.jp! [n-gohko@localhost ~]$! 46
  47. 47. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa [n-gohko@localhost ~]$ sudo yum update -y! ! We trust you have received the usual lecture from the local System! Administrator. It usually boils down to these three things:! ! #1) Respect the privacy of others.! #2) Think before you type.! #3) With great power comes great responsibility.! ! [sudo] password for n-gohko:! 読み込んだプラグイン:fastestmirror, langpacks! base | 3.6 kB 00:00:00! << snip >> 47
  48. 48. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa selinux-policy.noarch 0:3.12.1-153.el7_0.10! selinux-policy-targeted.noarch 0:3.12.1-153.el7_0.10! sssd-client.x86_64 0:1.11.2-68.el7_0.5! tuned.noarch 0:2.3.0-11.el7_0.3! tzdata.noarch 0:2014e-1.el7_0! ! 完了しました!! [n-gohko@localhost ~]$ 48
  49. 49. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa [n-gohko@localhost ~]$ wget https://repos.fedorapeople.org/ repos/openstack/openstack-icehouse/rdo-release- icehouse-4.noarch.rpm! --2014-07-26 17:30:14-- https://repos.fedorapeople.org/ repos/openstack/openstack-icehouse/rdo-release- icehouse-4.noarch.rpm! repos.fedorapeople.org (repos.fedorapeople.org) をDNSに問い あわせています... 152.19.134.191, 2610:28:3090:3001:5054:ff:fedb:7f5a! repos.fedorapeople.org (repos.fedorapeople.org)|152.19.134.191|:443 に接続していま す... 接続しました。! HTTP による接続要求を送信しました、応答を待っています... 200 OK! 長さ: 13589 (13K) [application/x-rpm]! `rdo-release-icehouse-4.noarch.rpm' に保存中! 49
  50. 50. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa ! 100%[=====================================================> ] 13,589 78.3KB/s 時間 0.2s! ! 2014-07-26 17:30:15 (78.3 KB/s) - `rdo-release- icehouse-4.noarch.rpm' へ保存完了 [13589/13589]! ! [n-gohko@localhost ~]$! 50
  51. 51. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa [n-gohko@localhost ~]$ sudo rpm -ivh rdo-release- icehouse-4.noarch.rpm! [sudo] password for n-gohko:! 警告: rdo-release-icehouse-4.noarch.rpm: ヘッダー V4 RSA/SHA1 Signature、 ID 0e4fbd28: NOKEY! 準備しています... ################################# [100%]! 更新中 / インストール中...! 1:rdo-release-icehouse-4 ################################# [100%]! [n-gohko@localhost ~]$ 51
  52. 52. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa [n-gohko@localhost ~]$ sudo yum install -y openstack- packstack! 読み込んだプラグイン:fastestmirror, langpacks! openstack-icehouse | 2.9 kB 00:00:00! openstack-icehouse/primary_db | 411 kB 00:00:03! Loading mirror speeds from cached hostfile! * base: www.ftp.ne.jp! * extras: www.ftp.ne.jp! * updates: www.ftp.ne.jp! << snip >> 52
  53. 53. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa インストール:! openstack-packstack.noarch 0:2014.1.1-0.25.dev1208.el7! ! 依存性関連をインストールしました:! libyaml.x86_64 0:0.1.4-10.el7! openstack-packstack-puppet.noarch 0:2014.1.1-0.25.dev1208.el7! openstack-puppet-modules.noarch 0:2014.1-18.el7! python-netaddr.noarch 0:0.7.5-7.el7! ruby.x86_64 0:2.0.0.353-20.el7! ruby-irb.noarch 0:2.0.0.353-20.el7! ruby-libs.x86_64 0:2.0.0.353-20.el7! rubygem-bigdecimal.x86_64 0:1.2.0-20.el7! rubygem-io-console.x86_64 0:0.4.2-20.el7! rubygem-json.x86_64 0:1.7.7-20.el7! rubygem-psych.x86_64 0:2.0.0-20.el7! rubygem-rdoc.noarch 0:4.0.0-20.el7! rubygems.noarch 0:2.0.14-20.el7! ! 完了しました!! [n-gohko@localhost ~]$ 53
  54. 54. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa [n-gohko@localhost ~]$ sudo su -! [root@localhost ~]# ssh-keygen -t rsa! Generating public/private rsa key pair.! Enter file in which to save the key (/root/.ssh/id_rsa):! Created directory '/root/.ssh'.! Enter passphrase (empty for no passphrase):! Enter same passphrase again:! Your identification has been saved in /root/.ssh/id_rsa.! Your public key has been saved in /root/.ssh/id_rsa.pub.! The key fingerprint is:! 6b:31:0e:ca:c8:86:66:c4:cd:b9:f2:3f:5b:64:2c:75 root@localhost.localdomain! The key's randomart image is:! +--[ RSA 2048]----+! | |! | |! | . E |! |. o . o . |! | o + ..+S |! |.o o..+o + |! |.++.o .+ |! |o.o ... |! | ..oo |! +-----------------+! 54
  55. 55. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa [root@localhost ~]# cat /root/.ssh/id_rsa.pub > /root/.ssh/authorized_keys! [root@localhost ~]# ls -l /root/.ssh/authorized_keys! -rw-r--r--. 1 root root 408 7月 26 17:37 /root/.ssh/authorized_keys! [root@localhost ~]# chmod 600 /root/.ssh/authorized_keys! [root@localhost ~]# ls -l /root/.ssh/authorized_keys! -rw-------. 1 root root 408 7月 26 17:37 /root/.ssh/authorized_keys 55
  56. 56. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa [root@localhost ~]# wget https://raw.githubusercontent.com/naototty/centos7-rdo- icehouse/master/rdo-AIO-centos7-patch-for-bug-1117871.diff! --2014-07-26 17:38:44-- https://raw.githubusercontent.com/naototty/centos7-rdo- icehouse/master/rdo-AIO-centos7-patch-for-bug-1117871.diff! raw.githubusercontent.com (raw.githubusercontent.com) をDNSに問いあわせています... 103.245.222.133! raw.githubusercontent.com (raw.githubusercontent.com)|103.245.222.133|:443 に接続していま す... 接続しました。! HTTP による接続要求を送信しました、応答を待っています... 200 OK! 長さ: 4281 (4.2K) [text/plain]! `rdo-AIO-centos7-patch-for-bug-1117871.diff' に保存中! ! 100%[=====================================================>] 4,281 --.-K/s 時間 0s! ! 2014-07-26 17:38:44 (179 MB/s) - `rdo-AIO-centos7-patch-for-bug-1117871.diff' へ保存完了 [4281/4281]! ! [root@localhost ~]# ls -l rdo-AIO-centos7-patch-for-bug-1117871.diff! -rw-r--r--. 1 root root 4281 7月 26 17:38 rdo-AIO-centos7-patch-for-bug-1117871.diff 56
  57. 57. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa [root@localhost /]# yum install -y patch! [root@localhost /]# cat /root/rdo-AIO-centos7-patch-for-bug-1117871.diff | patch -p1! patching file usr/share/openstack-puppet/modules/nova/manifests/compute/libvirt.pp! patching file usr/share/openstack-puppet/modules/nova/manifests/params.pp! patching file usr/share/openstack-puppet/modules/mysql/manifests/params.pp! patching file usr/share/openstack-puppet/modules/apache/manifests/version.pp! patching file usr/lib/python2.7/site-packages/packstack/puppet/templates/amqp.pp! patching file usr/lib/python2.7/site-packages/packstack/puppet/templates/prescript.pp! patching file usr/lib/python2.7/site-packages/packstack/puppet/templates/ mysql_install.pp! [root@localhost /]#! 57
  58. 58. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa 58
  59. 59. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa 59
  60. 60. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa 60
  61. 61. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa 61
  62. 62. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa 62
  63. 63. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa 63
  64. 64. TechOyajiはCentOS7でも… OpenStack RDO Icehouse on ConoHa 64 fin

×