ubuntu14.04安裝openstack_mitaka

我已經幫你們脫了很多坑,別擔心,可以安裝成功

圖片顯示有問題,如果有意者想要圖片,可以加我微信:patrickstar12358,我有圖文

關於Ubuntu的安裝需要注意兩點;

1、設置LVM

2、設置/boot、/、Swap的大小

 

 節點1:controller,用戶名密碼爲haoyun,123456

參考http://jingpin.jikexueyuan.com/article/35461.html進行lvm分區!

節點2:compute 用戶名密碼爲haoyun,123456

進入root:

Ubuntu系統,在Linux終端輸入命令回車:
  sudo su - root

210.72.145.44 (國家授時中心服務器IP地址)

關閉iptables防火牆: sudo ufw disable和selinux: selinux默認ubuntu不安裝,iptables默認也是全開放的.

MariaDB密碼是123456

 

安裝到sql database時:出現

那個三個點是不是要查看之前版本來進行配置?這裏先忽略

                                                           

重啓mysql報錯: Checking for corrupt, notcleanly closed and upgrade

needingtables,這個不知道要不要處理,網上說這個只是個提示,告訴你在做什麼。不管它?查閱到貌似這指令不知道能不能處理: 經過幾個小時的折騰,發現下面的這個命令有用:

dpkg-reconfigure mysql-server-5.1

配置數據庫的時候,以下是配置過程,我總覺得對後面會有影響

 



root@controller:~#mysql_secure_installation

/usr/bin/mysql_secure_installation:379: /usr/bin/mysql_secure_installation: find_mysql_client: not found

 

NOTE: RUNNINGALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB

      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

 

In order to loginto MariaDB to secure it, we'll need the current

password forthe root user.  If you've just installedMariaDB, and

you haven't setthe root password yet, the password will be blank,

so you shouldjust press enter here.

 

Enter currentpassword for root (enter for none):

OK,successfully used password, moving on...

 

Setting theroot password ensures that nobody can log into the MariaDB

root userwithout the proper authorisation.

 

You alreadyhave a root password set, so you can safely answer 'n'.

 

Change the rootpassword? [Y/n] Y

 ... skipping.

 

By default, aMariaDB installation has an anonymous user, allowing anyone

to log intoMariaDB without having to have a user account created for

them.  This is intended only for testing, and tomake the installation

go a bitsmoother.  You should remove them beforemoving into a

productionenvironment.

 

Removeanonymous users? [Y/n]Y

 ... Success!

 

Normally, rootshould only be allowed to connect from 'localhost'.  This

ensures thatsomeone cannot guess at the root password from the network.

 

Disallow rootlogin remotely? [Y/n] Y

 ... skipping.

 

By default,MariaDB comes with a database named 'test' that anyone can

access.  This is also intended only for testing, andshould be removed

before movinginto a production environment.

 

Remove testdatabase and access to it? [Y/n] Y

 ... skipping.

 

Reloading theprivilege tables will ensure that all changes made so far

will takeeffect immediately.

 

Reloadprivilege tables now? [Y/n]

 ... Success!

 

Cleaning up...

 

All done!  If you've completed all of the above steps,your MariaDB

installationshould now be secure.

 

Thanks forusing MariaDB!

 

NoSql服務我們不裝,這個針對計費服務纔要裝的

 

Rabbit消息隊列的密碼是123456,用戶爲openstack

 

驗證服務,建議開啓防火牆.


裝身份認證的時候,你肯定會遇到坑:

connection = mysql+pymysql://keystone:KEYSTONE_DBPASS@controller/keystone
把controller改爲你的管理網絡即可!


身份服務:LDAP

三個組件:

提供身份驗證服務的服務器

驅動:?

中間件模塊:

When installing OpenStack Identityservice, you must register each service in your OpenStack installation.Identity service can then track which OpenStack services are installed, andwhere they are located on the network.

執行數據庫操作,感覺沒生效

GRANT ALL PRIVILEGES ON keystone.* TO'keystone'@'%' IDENTIFIED BY '123456';

Query OK, 0 rows affected (0.00 sec)

第一次的管理員token值:b765cd316d0385c24e33

 

This guide uses the Apache HTTPserver with mod_wsgi to serve Identity service requestson ports 5000 and 35357. By default, the keystone service still listens onthese ports. Therefore, this guide manually disables the keystone service.應該是keystone在安裝過後佔用了端口。

 

報錯:

 

1.    Each service that you add to yourOpenStack environment requires one or more service entities and three APIendpoint variants in the Identity service.

admin user密碼爲123456

demo密碼123456

Any roles that you create must map to roles specified inthepolicy.json file in the configuration file directory of eachOpenStack service. The default policy for most services grants administrativeaccess to theadmin role. For more information, see theOperations Guide - Managing Projects and Users.

 

 

鏡像文件路徑:/var/lib/glance/images/

GLANCE_DBPASS密碼123456

Create the glance user:密碼123456

 

報錯:懷疑是需要在裝identic服務時要註冊進去

When installing OpenStack Identity service,you must register each service in your OpenStack installation. Identity servicecan then track which OpenStack services are installed, and where they arelocated on the network.

這個就是下面的操作啊。

Before you install and configure the Image service, youmust create a database, service credentials, and API endpoints.

 

感覺有坑,我就建了admin-openrc.sh注意後綴

 

Comment out or remove any other options in the [keystone_authtoken] section.然而並沒有

 

報錯,原來自己不是root來執行。

 

This section describes how to install and configure theCompute service on a compute node

 

配置compute主機,我用的myipcomputeip

 

By default, Compute uses an internal firewall service.Since Networking includes a firewall service, you must disable the Computefirewall service by using thenova.virt.firewall.NoopFirewallDriver firewall driver.

 

o   In the[vnc] section, enable and configure remoteconsole access:

o   [vnc]

o   ...

o   enabled = True

o   vncserver_listen = 0.0.0.0

o   vncserver_proxyclient_address = $my_ip

o   novncproxy_base_url =http://controller:6080/vnc_auto.html

The servercomponent listens on all IP addresses and the proxy component only listens onthe management interface IP address of the compute node. The base URL indicatesthe location where you can use a web browser to access remote consoles ofinstances on this compute node.感覺有深度,好像說的是你可以使用代理url連接遠程控制檯。

 

neutron user密碼123456

 

Replace PROVIDER_INTERFACE_NAME with the name of the underlying provider physical networkinterface. SeeHost networking for more information.我設置爲PROVIDER,後來檢查發現,如果你這裏沒配置正確,後面neutron agent-list會異常,所以這裏的PROVIDER是指你的物理網卡!

 

Replace METADATA_SECRET with a suitable secret for the metadata proxy.我改爲123456

 

驗證網絡1的時候:The output should indicate threeagents on the controller node and one agent on each compute node.

我缺乏了兩項!懷疑是我主機網絡問題!

 

如果配置UTC不正確,會導致dashboard500錯誤

 

o   SESSION_ENGINE ='django.contrib.sessions.backends.cache'

o    

o   CACHES = {

o       'default': {

o            'BACKEND':'django.core.cache.backends.memcached.MemcachedCache',

o            'LOCATION': 'controller:11211',

o       }

o   }

這個本身是有的,CACHES開始,否則會報錯

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章