我正在尝试在Ubuntu 16.04上安装openstack
但我面临一些错误
我已经尝试了这些命令
echo“manual”> /etc/init/keystone.override apt-get -y install keystone python-openstackclient apache2 libapache2-mod-wsgi python-oauth2client
mysql -u root -p MariaDB [(none)]> create database keystone; MariaDB [(none)]>将keystone。*的所有权限授予'Cisco786'标识的keystone @'waheed';
MariaDB [(none)]>将keystone。*的所有权限授予'Cisco786'标识的keystone @'%';
冲洗特权; 出口
vi /etc/keystone/keystone.conf
admin_token = admintoken
connection = mysql + pymysql:// keystone:[email protected]/keystone
[memcache] servers = 20.20.20.122:11211
[代币]供应商= fernet
driver = memcache root @ dlp:〜#su -s / bin / bash keystone -c“keystone-manage db_sync”
root @ dlp:〜#keystone-manage fernet_setup –keystone-user keystone –keystone-group keystone
root @ dlp:〜#vi /etc/apache2/apache2.conf
ServerName waheed.waheed root @ dlp:〜#vi /etc/apache2/sites-available/wsgi-keystone.conf
Listen 5000 Listen 35357
WSGIPaemonProcess keystone-public processes = 5 threads = 1 user = keystone group = keystone display-name =%{GROUP} WSGIProcessGroup keystone-public WSGIScriptAlias // usr / bin / keystone-wsgi-public WSGIApplicationGroup%{GLOBAL} WSGIPassAuthorization On = 2.4> ErrorLogFormat“%{cu} t%M”ErrorLog /var/log/apache2/keystone.log CustomLog /var/log/apache2/keystone_access.log合并
<Directory /usr/bin> <IfVersion >= 2.4> Require all granted </IfVersion> <IfVersion < 2.4> Order allow,deny Allow from all </IfVersion> </Directory>
WSGIDaemonProcess keystone-admin processes = 5 threads = 1 user = keystone group = keystone display-name =%{GROUP} WSGIProcessGroup keystone-admin WSGIScriptAlias / / usr / bin / keystone-wsgi-admin WSGIApplicationGroup%{GLOBAL} WSGIPassAuthorization On = 2.4> ErrorLogFormat“%{cu} t%M”ErrorLog /var/log/apache2/keystone.log CustomLog /var/log/apache2/keystone_access.log合并
<Directory /usr/bin> <IfVersion >= 2.4> Require all granted </IfVersion> <IfVersion < 2.4> Order allow,deny Allow from all </IfVersion> </Directory>
root @ dlp:〜#a2ensite wsgi-keystone
启用网站wsgi-keystone。 要激活新configuration,您需要运行:service apache2 reload
root @ dlp:〜#rm -f /var/lib/keystone/keystone.db
root @ dlp:〜#systemctl restart apache2
现在请重点关注下面的命令
进一步的configuration我必须键入这些命令
root @ dlp:〜#export OS_TOKEN = admintoken
root @ dlp:〜#export OS_URL = http://10.0.0.30:35357/v3
root @ dlp:〜#export OS_IDENTITY_API_VERSION = 3
root @ dlp:〜#openstack domain create –description“默认域”默认
其结果必须是这样的
+ ————- + ———————————- + | 字段| 值| + ————- + ———————————- + | 描述| 默认域| | 启用| True | | id | 780b41cee03242da9ec0c73e1a76dc6e | | 名字| 默认| + ————- + ———————————- +
但是当我input这些命令
root@waheed:/home/waheed# export OS_TOKEN=admintoken root@waheed:/home/waheed# export OS_URL=http://20.20.20.122:35357/v3 root@waheed:/home/waheed# openstack domain create --description "Default Domain" default
我正面临这个错误
意外的错误阻止了服务器履行您的请求。 (HTTP 500)(请求ID:req-80fdf199-84fd-478c-b127-377157b664ac)
我正在关注这些链接
https://www.server-world.info/en/note?os=Ubuntu_16.04&p=openstack_mitaka&f=3
任何解决scheme,请帮助我
非常感谢你