将设为首页浏览此站
开启辅助访问 天气与日历 收藏本站联系我们切换到窄版

易陆发现论坛

 找回密码
 开始注册
查看: 1893|回复: 0
收起左侧

install openstack on ubuntu 14.04

[复制链接]
发表于 2016-9-6 18:51:15 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?开始注册

x
Installation
( y/ [4 o$ W. f# QAssuming a fresh install of Ubuntu 14.04 LTS Desktop, you'll need to locally login to each rig and install the openssh-server to allow remote ssh access:
( m/ s# U( o4 ^4 ?) L1 z; R& N- J% L  T8 |( F+ s$ T5 N& r
sudo apt-get install openssh-server# M2 s$ o& v8 x: r6 F" l6 ~
Remotely log into your new server and install git with aptitude:
* F4 D$ c3 ~* F$ ?, x& L, ?8 T3 L7 n/ w( ~
sudo su
/ Q# y- o: y( J- c& Eapt-get -y install git& U  I$ R8 |0 e
Checkout the StackGeek openstack setup scripts from Github:
, C6 b$ b' C4 j& d1 a
0 p7 W- ?( ]* }- Q& R& t4 Rgit clone git://github.com/StackGeek/openstackgeek.git
2 k/ Q2 X, m* o! c- I' rcd openstackgeek/icehouse
* ]5 D' ]2 _3 a# C8 [" l4 {Network Interfaces
. H9 |4 _# P$ T" j) B) lYou need to manually configure your ethernet interface to support a non-routable static IPv4 address and an auto configured IPv6 address.
  g7 o( _+ q' [! x3 ~3 D. n8 J  s0 g0 {8 Q0 R2 {5 p
./openstack_networking.sh
# \8 _* n, B3 k9 pThe script will output a short configuration block which should be placed manually in /etc/network/interfaces. Be sure to edit the IP adddress before you save the file! I suggest you use an ordered set of IPs like .100, .101, .102, etc. for your rigs.. K2 P! K. ^" J1 X
+ W$ e1 d5 S  x; [
# loopback
9 \5 Q5 ^# e; n. e1 v' [auto lo* U% ~  K4 z3 {7 b4 m
iface lo inet loopback
% k& a5 T0 R: |2 l
: V0 [: p8 G0 d! P& K# primary interface
2 p' |- C# D: f( L& h, R( M" ?auto eth0
# J: f! |# `3 z6 Y# {1 [iface eth0 inet static
( O( a, |: `& i; h1 n& i  address 10.0.1.100/ |4 V* C+ _6 _# b6 o" m, O  ^
  netmask 255.255.255.0
; K( B  D6 X* ]9 N. N  gateway 10.0.1.12 O; y3 ?. F, u. i" B
  dns-nameservers 8.8.8.87 U4 }" \. d, |: M
: s+ O; u  @$ T. j6 w" l
# ipv6 configuration: d9 x. R2 m) y
iface eth0 inet6 auto$ ]' R' v/ I9 Q. a5 ~# z) b" s6 M- I
You will also need to edit your /etc/hosts file to contain an entry for your controller and any compute rigs. Here's an example:
& j% m4 A. b; r/ k2 O- G+ Z7 b# d8 @
127.0.0.1   localhost7 ]. C3 u5 j" b9 v
10.0.1.100  hanoman
3 ^& R6 ~: U) Z10.0.1.101  ravana. n3 O* C/ \/ o: v
Reboot the rig after saving the file.1 K- b8 N6 k/ a$ |) a4 M
# O1 |6 r/ a) a+ \6 P- N
Privacy and Tracking Notice
" B8 J% M: D- R. B! Q' q% zA few of these scripts contain tracking pings and are used to analyze the install process flow. The IP address of the machine(s) you are installing will be reported to https://www.stackmonkey.com/. No other personal information is transmitted by the tracking pings. You may examine the Open Source code for handling the ping requests here.8 w4 k& l) C/ S* D

& w' P8 n- g- sYou may run the following script if you would like to disable the tracking pings in these scripts:
3 d- [; ^( \/ t% D) X/ M6 y
( l8 c; ]# [+ C! b8 @9 D( P+ X' u! {./openstack_disable_tracking.sh! |& ^2 U, w/ C& t1 [5 S( c
Another Note: Please also be aware that the openstack_setup.sh script below sends your configuration file to a pastebin knockoff hosted on stackgeek.com and keeps it until you delete it (instructions below). If you don't want this functionality, please edit the openstack_setup.sh script to your liking.( F4 t8 E# ?" S. ]

7 D" |0 C- O. M9 z1 ~' UTest and Update) V' x* L5 T, O2 |- m; J* O
After editing the network, you'll need to test your rig for virtualization support:
& d. n0 [/ n7 W' p1 z% v9 v* y
./openstack_server_test.sh+ l: R+ g$ M$ n, c
If your rig doesn't support virtualization, you will need to check your virtualization settings in bios or upgrade your hardware. If it does support virtualization, you'll be prompted to update your Ubuntu install:
) X: g* t. G  a2 i8 m
' y! R# p% o% l' |2 u* x/ Z./openstack_system_update.sh; D5 |) F0 x$ {* ?! \
The update should come back pretty quick as you've already updated the system.
. n5 {# O5 @7 p+ u  H4 |
1 M$ x8 A6 r2 o. ~Setup6 P! E, ]2 U" d( t  X
Note: Be sure to take a look at the scripts before you run them. Keep in mind the setup scripts will periodically prompt you for input, either for confirming installation of a package, or asking you for information for configuration.( M5 P% h" H8 ~5 s
. o  T0 Z) u: y$ T
Start the installation by running the setup script:' p  z2 w% c$ \
0 z4 F4 A; l: {+ c8 E5 r
./openstack_setup.sh
1 g: P* W/ N  j1 E, PYou will be asked whether or not this rig is to be configured as a controller. If you answer yes, the result of the setup will be a setuprc file in the install directory. The setup script will also output a URL which is used to copy the existing setup to a compute rig. Here's an example URL:% p6 m4 {$ W% v% k! s
/ E9 Y) r+ [4 e4 D; L. q, J- q
https://sgsprunge.appspot.com/I2DIkNZxJyPhhIJc
6 H; y8 _* {, u8 T8 V) i- Z, rIf you indicated the rig is not a controller node, you will be prompted for the URL spit out by the controller installation as mentioned above. Paste this URL in and hit enter to start the compute rig install.8 y! R" C& Z  ?' _4 N3 v: Y) y

; A& i8 y8 l5 ]' b8 ]1 }1 D7 X& yNote: If you are installing a compute rig, you may skip to the Cinder Setup section below.
6 J! n( z1 {1 j; B. o; w
; W% s% u# v' d! q5 E4 y( lInstall Splunk (Controller Only)
. I( d4 @. U* R3 M' ]: a6 S" IIf you would like to use Splunk for debugging and monitoring purposes, install it now:5 f. y2 y# W7 l
2 A  Z2 v6 k% w4 ~
./openstack_splunk.sh
. n& Q3 \( R. K7 G( l3 ]2 oSplunk will be configured to monitor the OpenStack packages logfiles. You may access splunk through the following URL (assuming you use the controller's correct IP address):
" K" u' K0 z* Z  Q/ H( l( w0 v( C: l( y' t# X
http://10.0.1.100:80008 u. I) |2 y" U2 b6 x
Database Setup (Controller Only); {7 I7 W" |( n& W- G) N4 M/ P9 e: k) f4 y
The next part of the setup installs MySQL and RabbitMQ. This is only required for the controller rig. Skip this step if you are setting up a compute rig for your cluster. Start the install on the controller rig by typing:- Y3 x' q$ l9 _# Z
% `5 k- K! `6 m# k$ r) S2 r9 K
./openstack_mysql.sh2 ]6 Z' M5 k* D; I: }* k0 y
The install script will install Rabbit and MySQL. During the MySQL install you will be prompted for the MySQL password you entered earlier to set a password for the MySQL root user. You'll be prompted again toward the end of the script when it creates the databases.
7 o# `$ J1 U  `4 W' j4 U% o3 I$ W$ ^- q4 E; _$ v
The MySQL install script now runs the command 'mysql_secure_installation' to secure your MySQL install. Answer the questions this script presents to you to secure your install properly.
" V- X2 M1 _$ O1 g4 f
4 h6 I8 `* k6 {7 Z& j, eKeystone Setup (Controller Only)7 M6 e. Z, X& \" |/ o
Keystone is used by OpenStack to provide central authentication across all installed services. Start the install of Keystone by typing the following:9 I" x$ b8 H  d% x( }
, f; G  m4 N1 V0 t, X9 P' v3 {
./openstack_keystone.sh7 {/ w( J/ u& d2 j) P# k- k
When the install is done, test Keystone by setting the environment variables using the newly created stackrc file. Note: This file can be sourced any time you need to manage the OpenStack cluster from the command line., V& Y) F: |; l9 V1 e
) M% B# d" x; @+ h7 G: ]  P7 q. \
. ./stackrc
9 R7 t' [; x- Z' g$ vkeystone user-list
9 y! q8 R* Q  f* ~+ J$ nKeystone should output the current user list to the console:
  M" t4 H& s* B1 l& g
3 R$ W( w- i0 F0 y+----------------------------------+---------+---------+--------------------+, n* b& f: B- w  h
|                id                |   name  | enabled |       email        |
4 ^1 h% G- V! q  t+----------------------------------+---------+---------+--------------------+# j" m' {0 F" H& L' \& i, ^: ]
| 5474c43e65c840b5b371d695af72cba4 |  admin  |   True  | xxxxxxxx@gmail.com |- o- w9 V: P8 c: ^8 [
| dec9e0adf6af4066810b922035f24edf |  cinder |   True  | xxxxxxxx@gmail.com |
* W4 G( y$ z" g2 w! y9 w| 936e0e930553423b957d1983d0a29a62 |   demo  |   True  | xxxxxxxx@gmail.com |
6 ~( P( w" k7 b| 665bc14a5da44e86bd5856c6a22866fb |  glance |   True  | xxxxxxxx@gmail.com |6 `/ a+ l2 g% `, E+ \4 c: u" r
| bf435eb480f643058e27520ee3737685 |   nova  |   True  | xxxxxxxx@gmail.com |
8 G1 l$ ?$ C8 y5 u) v| 7fa480363a364d539278613aa7e32875 | quantum |   True  | xxxxxxxx@gmail.com |
& h5 H. g9 U1 H6 x+----------------------------------+---------+---------+--------------------+6 }/ A) z! d% k* \9 j
Glance Setup (Controller Only)$ ~; D0 b9 r6 `  ?
Glance provides image services for OpenStack. Images are comprised of prebuilt operating system images built to run on OpenStack. There is a list of available images on the OpenStack site.
" Q7 P' i( w3 [5 {& E
7 u. C; Q6 Q) s% x; G2 f" ?Start the Glance install by typing:
: B3 C* H2 }1 R# o; _. J' M$ i* _9 F
./openstack_glance.sh) f: Y6 y6 h- M! S- s( a$ O/ G* Q
Once the Glance install completes, you should be able to query the system for the available images:! d& W9 ~  [! v4 f
/ G: @* Z% q, @5 N& g/ ~2 S( C
glance image-list7 A) G! o6 e; N  d! A4 E* `
The output should be something like this:' {1 }* S7 \( e5 F& G: w
0 l! t  w8 u7 v4 L9 P* L
+--------------------------------------+--------------+-------------+--------+---------+--------+- P; X! b* L( g. O
| ID                                   | Name         | Disk Format | Format | Size    | Status |# W+ J; {% t, v/ ~4 h
+--------------------------------------+--------------+-------------+--------+-----------+--------+, `1 R# ]: T, B7 u* N
| df53bace-b5a0-49ba-9b7f-4d43f249e3f3 | Cirros 0.3.0 | qcow2       | bare   | 9761280 | active |
' ~5 |  Q  F7 H8 q; W+--------------------------------------+--------------+-------------+--------+---------+--------+
9 c1 C% H0 w# C0 a. C( t5 zCinder Setup
( ^- M; x! D7 r5 x; w( |7 [Cinder is used to provide additional volume attachments to running instances and snapshot space. Start the install of Cinder by typing:
' ^5 i' o2 c7 y7 h0 A# \
$ j6 h' h( w) i# d5 z3 C./openstack_cinder.sh
, o7 j3 k3 e2 hOnce the install of Cinder is complete, determine your space requirements and run the loopback volume creation script (keep in mind you have to create a loopback file that is at least 1GB in size):& C" q/ d6 L, E( z

. a0 n5 R. A% X. m# |( M* W5 A) M./openstack_loop.sh9 f: r0 c$ a% O! P& b7 P
You should now be able to query installed storage types:
+ q  \+ S) q7 K6 ]- Y
# A6 D! s4 Y9 E; ucinder type-list
2 v8 U7 r) k& B/ e% {. l8 [You may then create a new volume to test:
1 L1 e! W' p& m* z# m7 |/ @1 Q2 B6 k6 D% C
cinder create --volume-type Storage --display-name test 1
; P1 t, h* k. E: {: h( VNote: If you are installing a compute rig, you may skip to the *Nova Compute Setup section below.*0 }/ T$ r7 j. Y$ s0 f2 M

* h4 o, d) o. A3 D" k+ ~1 SNova Setup (Controller Only)
$ F3 K: a% f4 c' R8 `Nova provides multiple services to OpenStack for controlling networking, imaging and starting and stopping instances. If you are installing a compute rig, please skip to the following section to install the base nova-compute methods needed for running a compute rig.. z9 N1 \9 Q. ?# \) C; M

2 N$ c3 C& }% I8 GStart the controller's nova install by typing the following:  ~+ |' R4 }( H4 o- V* i6 I5 {
4 `% T; R( I: j. ^
./openstack_nova.sh! U1 k2 N: V) [7 F+ P7 `* k4 ]1 i
When the install is complete, you may query the running services by doing the following:# O* P; ]2 d; `' u
, o" e9 E. _: {" }1 l1 F& W
nova service-list1 c3 H  [0 u5 R1 Y
You should see output that looks similar to this:2 L1 u0 P( T" R7 `2 ~. c3 z1 d

: I, ~7 n" B# c4 _. @5 i6 |+------------------+--------+----------+---------+-------+----------------------------+' L. `* u) W" A/ }
| Binary           | Host   | Zone     | Status  | State | Updated_at                 |" b: W9 ]9 l: D7 D
+------------------+--------+----------+---------+-------+----------------------------+4 I# m/ Z' x& ?6 ?0 Y3 G
| nova-cert        | tester | internal | enabled | up    | 2014-02-20T10:37:25.000000 |
# M. {$ L+ W" N0 a" Q/ t! r  J* a| nova-conductor   | tester | internal | enabled | up    | 2014-02-20T10:37:17.000000 |
( V% c: C/ i5 f: {+ C| nova-consoleauth | tester | internal | enabled | up    | 2014-02-20T10:37:25.000000 |
' X% J1 l+ l% b5 d/ S( H| nova-network     | tester | internal | enabled | up    | 2014-02-20T10:37:25.000000 |0 q6 u4 o6 n# s2 i$ K
| nova-scheduler   | tester | internal | enabled | up    | 2014-02-20T10:37:24.000000 |& X$ G; ?) }6 k6 a9 ^* K9 |
+------------------+--------+----------+---------+-------+----------------------------+
) G2 e9 h# l. x7 K8 [& S9 i- y+ XNova Compute Setup (Compute Rigs Only); i, ]) b5 u9 [. n# `
If you are installing a controller, this step has already been completed using the Nova Setup section above. You may skip this if you are installing a controller rig.( S: R9 c7 W+ p

" [+ [; ]; q' P7 o, ~) R0 N. m& NYou may run this on any number of compute rigs. Start the Nova Compute setup on a given compute rig by typing the following:6 L! y1 z9 A$ n; z7 [; T
$ I& o2 l; b0 R* ^& f/ E1 l
./openstack_nova_compute.sh
; d5 J# W. d9 y, z+ L6 M2 b, p1 Q0 pOnce the compute rig has been configured, you may log back into the controller rig and run the nova service list command again:; n1 c. j0 Z9 D4 e" c! M
( q( }" _6 `! K: ~
nova service-list
+ }  A" Q! z9 f# N3 eYou should see new entries for the newly added compute rig:' D, `3 ^) @: ?' a+ \+ y

. g7 k' F: D( X2 a+------------------+---------+----------+---------+-------+----------------------------+
/ ]* P' `3 ]4 g! Q6 C8 ^( |- Y| Binary           | Host    | Zone     | Status  | State | Updated_at                 |
' C6 k$ l! Q3 U0 Q* A( i; O" g; Q+------------------+---------+----------+---------+-------+----------------------------+* Q! w; a* T2 v+ d; L; O3 @
| nova-cert        | nero    | internal | enabled | up    | 2014-04-13T17:20:52.000000 |
4 G5 v+ X" \6 D+ |; [& S/ S- F$ b| nova-compute     | booster | nova     | enabled | up    | 2014-04-13T17:20:55.000000 |
! B5 y* Z- s# H! h! x# ?, i| nova-compute     | nero    | nova     | enabled | up    | 2014-04-13T17:20:55.000000 |% ^! |3 V# Y' K$ ?: }
| nova-conductor   | nero    | internal | enabled | up    | 2014-04-13T17:20:52.000000 |
! u# n. h6 ~4 E4 j4 F2 x/ z3 e| nova-consoleauth | nero    | internal | enabled | up    | 2014-04-13T17:20:52.000000 |# \" A" ?/ Y# R- E* B" E
| nova-network     | booster | internal | enabled | up    | 2014-04-13T17:20:52.000000 |! V( c3 o0 v+ K: [, p$ ]9 v: Z
| nova-network     | nero    | internal | enabled | up    | 2014-04-13T17:20:52.000000 |% K7 U0 e9 p! X8 h% J  T
| nova-scheduler   | nero    | internal | enabled | up    | 2014-04-13T17:20:52.000000 |
# X2 v3 _8 m  E9 Z5 d/ B+------------------+---------+----------+---------+-------+----------------------------+
3 u/ q+ R* S2 e6 }' m  sFlat Networking Setup for IPv4 (Controller Only)1 r( I# z, ?) ?% }
This guide completely ignores the Neutron/Quantum project. If you are interested in Neutron, this is not the place to seek help.
$ p) I1 h' t" i+ T! k+ v( u, f) I, g2 k+ I/ P7 j
Note: If you want to run IPv4 + IPv6, please skip to the next section and do NOT run this section's commands.
% t: F1 l9 V! y  |& O& G# i9 D" G, j2 ?$ ?# q+ v
Begin by creating an IPv4 private network range which blocks out the 10.0.47.0 network (assuming the ethernet interface is eth0):; p% l* s$ U# m, q% i0 b3 X$ `

% j( p3 w# y+ x5 ?nova-manage network create private --fixed_range_v4=10.0.47.0/24 --num_networks=1 --bridge=br100 --bridge_interface=eth0 --network_size=255
) v8 c. M3 n- h; J7 O4 I* qYou'll need to add a route in your router to point to the new network managed by the controller (pseudo command here):
" n/ q/ s% M+ U0 {3 [  v) b, F# D7 M! p
route add 10.0.47.0 255.255.255.0 gw 10.0.1.200' X6 C- K2 o0 d9 K1 n7 Z
You can view the networks by querying nova:. C8 V) Z& @( K* y5 \
! ~2 s! j0 ]7 N3 f7 @5 D
nova network-list
3 B8 k7 k5 g; Q  T; ~, VOutput should look like this:) V: b3 U2 v) u( _/ t1 {; W% b. [1 t

3 [8 q7 V" _4 v6 Q+--------------------------------------+---------+---------------+
+ |4 g; |& ?; J9 Y| ID                                   | Label   | CIDR          |, M' `' l: P& |2 ^/ W
+--------------------------------------+---------+---------------+
: u! H5 l( J% D  ^| 22aca431-14b3-43e0-a762-b02914770e6d | private | 10.0.1.224/28 |
6 c9 |. ]- R4 \/ C+--------------------------------------+---------+---------------+
. _& q0 A7 S' h! a" g$ RFlat Networking Setup for IPv4 + IPv6 (Controller Only)7 W: I9 \/ Z" z) X* ]( ^) S
Before you can add an IPv6 prefix to your OpenStack controller, you will need to configure your router to enable IPv6 on your provider. Your milage may vary by router type and provider. We've found the Asus routers + Comcast to be the easiest to configure: simply navigate to the IPv6 settings and then select 'native' or 'native with DHCP-PD' in your router's admin interface to turn on IPv6.$ D! f! {$ S  D; @+ J8 W+ ^& w6 _( v

6 C; J) W+ ^) d# F' P) PNote: If your provider doesn't support IPv6 and you have an IPv6 capable router, you can use Huricane Electric's Tunnel Broker to enable IPv6 on your network.0 v4 s# P# v* s; g7 F, S

% k, m  Z4 k$ f" a2 W% iAfter configuring your router for IPv6, your router interface should show a LAN IPv6 prefix and length. Make note of the address, as you'll use it in a minute to add a prefix to OpenStack.
* k( h" g* N" `, R  Y% e* R( U1 M3 O3 Z! C8 \9 |
Now configure IPv6 forwarding support on the controller:
5 Y7 a  M( T9 u1 Z* a/ x4 L( b8 o
5 }, G$ Y; t& B. U$ R./openstack_ipv6.sh
  E, V3 {% q, p  |7 P4 J; ]Just in case, restart the Nova services to sync up the network:/ M* t! E1 U  S, H2 f. X3 B  K
  v, G0 e+ `, b; P' Y2 \" G6 F
./openstack_restart_nova.sh; |5 H, |# q- [
Create an IPv4 private network range using sample networks of 10.0.47.0 for IPv4 and 2601:9:1380:821::/64 for an IPv6 prefix (again, assuming the ethernet interface is eth0):
( [5 Y/ M; {! e4 L# D" y$ u4 d0 o4 t" e5 F% |+ ~( ^9 F& S" s1 ?
nova-manage network create private --fixed_range_v4=10.0.47.0/24 --fixed_range_v6=2601:9:1380:821::/64 --num_networks=1 --bridge=br100 --bridge_interface=eth0 --network_size=255
' w* N, p5 m% q8 h% D, A4 S/ ?6 EYou'll need to add a route in your router to point to the new network managed by the controller (pseudo command here, using 10.0.1.200 as the controller node):
& C* ?& n7 d# q
7 `2 x- T  O  ?: {route add 10.0.47.0 255.255.255.0 gw 10.0.1.200
6 Y5 O! \* k: |0 l0 s2 L) }6 G- ?You can view the private network by querying nova:3 h( s" A  g) t/ k$ l6 o$ h

: ~! b: ?/ k% Anova network-list
4 \: [$ {6 t& c: pOutput should look like this:3 x7 a* x9 L: s

& H3 b& R) q- b+--------------------------------------+---------+---------------+
7 b# G* H  n( {. ]0 b" g| ID                                   | Label   | CIDR          |, v) R, g# }, e4 c9 ^
+--------------------------------------+---------+---------------+0 j* h* B+ U8 m  T. F( j$ c
| 22aca431-14b3-43e0-a762-b02914770e6d | private | 10.0.1.224/28 |
3 _! M2 }1 A# `# X0 t2 I% V' O+--------------------------------------+---------+---------------+
, P  m( `( c- B: S6 F% j* f& nFloating IP Setup (Controller Only)
5 A1 t, d2 ~  j* C0 E- QIf you have a block of externally routed IP addresses (public IPs) you may create a floating IP entry for OpenStack:; [* z- i% l; ^. F& \

5 u4 d4 T6 X# `8 q5 Xnova-manage floating create 208.128.7.128/254 X) S4 Y0 w! A, A8 y
This example would allow a floating IP address to be assigned to instance from the range of 208.128.7.129 to 208.128.7.254.
7 h8 K) P4 j' u% O9 {9 ^
: m  O  D: s, O/ u9 GIf you added it, you can view the available floating pool addresses by querying nova again:
; I+ t5 T# R9 r6 K& Q6 f$ }" s7 S. O  C1 k. V
nova floating-ip-bulk-list+ B' R* D" {  _1 o2 p: ]& H
Output should look like this (truncated for space):: Y% g' D& I1 i9 H( C7 [8 w$ I
2 _- I, a, m! [8 q( m+ |, K: W) T
+------------+---------------+---------------+------+-----------+4 p( e7 {$ C8 x
| project_id | address       | instance_uuid | pool | interface |$ q& `. _) N8 H
+------------+---------------+---------------+------+-----------+) i% a! I/ x7 e6 [" ^+ e* @4 R; |+ t
| None       | 208.128.7.129 | None          | nova | 10.0.2.15 |3 E3 U" ?( x6 r2 q2 Z  x
| None       | 208.128.7.130 | None          | nova | 10.0.2.15 |
6 [' D/ Z/ @/ s4 ^3 p2 b+------------+---------------+---------------+------+-----------+
: \# K4 i, w& r# HFinally, edit the /etc/nova/nova.conf file to enable assigning the floating IPs to newly launched instances:( s3 K, `8 E+ T( T+ L

4 f) j6 s& F, ^7 n6 R: zauto_assign_floating_ip=true" d) W3 C1 \+ ?( e8 k
Note: As with the private IP space added earlier, you'll need to configure your router to route the external addresses to the controller's IP address. Your mileage will vary, depending on your current network setup.0 h" k4 g9 R" w$ v
: m' Q3 U( Z6 E( z6 F
Horizon Setup (Controller Only)
. F! @0 U( z8 R0 d' ]; L! }Horizon provides OpenStack's managment interface. Install Horizon by typing:
9 G) Q) K3 j2 p7 `% f7 f: l( w& l" q" n" y1 d7 ?8 ]* _# m$ V
./openstack_horizon.sh
0 Y# {# _- Q5 b* W; j- UNow reboot the controller rig:
: C) [" C8 e; O1 s9 x
) r! n' q# V# K+ p: lreboot% p/ f3 a% z( J+ |
Once the rig comes back up, you should be able to log into your OpenStack cluster with the following URL format (changing the IP of course):
' C( M; U6 r$ S: f' j
% p2 i$ z. ]" s1 E! Z: k! Lhttp://10.0.1.100/horizon. ?' J# @. p/ \6 c1 F5 M/ X' b
Your user/pass combination will be 'admin' and whatever you entered for a password earlier. If you accidentally run this command before adding the network above, you may see errors in the UI.6 N6 _3 ~% O# s) F) M. c& y

6 R' X9 X! g- J9 TNote: If you log into the dashboard and get errors regarding quotas, log out of the UI by clicking on 'sign out' at the top right and then reboot the rig. The errors should go away when you log back in.# z; A6 b& w3 S8 j( w9 Z$ ~- ]
3 ^( u! d' d4 t6 k( ^$ x
Install the StackMonkey Virtual Appliance2 h% Y% O. l3 d5 t1 `& O
StackMonkey is a pool instance of a highly distributed cloud framework. If you elect to install the appliance, this OpenStack node will provide a small portion of its compute power to help build a highly distributed cloud. You will earn Bitcoin doing this.
  ?: H& o7 U. n! _' H7 W+ L" b( _/ ~6 N" n3 m
The virtual appliance setup can be run by typing the following command:
3 q, u$ G) y) D/ K) N: l5 M
3 l# M4 ~% D" D4 h  v./openstack_stackmonkey_va.sh% y/ C% j3 S& @# b& s
More information about the project can be viewed on the StackMonkey pool's site (requires auth to Google account). There is also a video guide that walks you through setting up your first appliance.( G" a1 v3 S' f$ g4 Z! r

# V1 |- ]. [) L# J6 g1 pOpenStack Cheat Sheet9 s7 J, l1 C; y! E' w: S
An OpenStack Command Line Cheat Sheet is available on Anystacker's site. Commands can be run once the setuprc file has been sourced:
& Z6 |8 Q. u  e. {5 W, q+ T2 u& \) c
7 }# O2 j0 s2 A3 T: K0 h. ./setuprc2 @1 u. d. r( C, m
Delete the Paste File4 Q1 H# W9 R( ]5 q7 ?0 @
The URL created for a multi-rig install is stored on an AppEngine application based on Rupa's sprunge project. You should delete the paste after you are done with your setup for security's sake:
, N) w" u  J1 l
* g$ Q" X& A2 ^/ F/ fcurl -X DELETE https://sgsprunge.appspot.com/I2DIkNZxJyPhhIJc
2 ?: Y7 S# j/ q4 M' q  E+ q( uIf you have any questions, issues or concerns, please feel free to join IRC, post on the forum, or create a ticket!
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

如有购买积分卡请联系497906712

QQ|返回首页|Archiver|手机版|小黑屋|易陆发现 点击这里给我发消息

GMT+8, 2020-6-1 06:16 , Processed in 0.073388 second(s), 23 queries .

Powered by 龙睿 bbs168x X3.2

© 2001-2020 Comsenz Inc.

快速回复 返回顶部 返回列表