记一次云计算测试实验-openstack-icehouse-安装nova

cd

source admin-openrc.sh


yum install -y openstack-nova-api openstack-nova-cert openstack-nova-conductor openstack-nova-console openstack-nova-novncproxy openstack-nova-scheduler python-novaclient


openstack-config --set /etc/nova/nova.conf database connection mysql://nova:000000@controller/nova


openstack-config --set /etc/nova/nova.conf DEFAULT rpc_backend qpid

openstack-config --set /etc/nova/nova.conf DEFAULT qpid_hostname controller


openstack-config --set /etc/nova/nova.conf DEFAULT my_ip 192.168.100.10

openstack-config --set /etc/nova/nova.conf DEFAULT vncserver_listen 192.168.100.10

openstack-config --set /etc/nova/nova.conf DEFAULT vncserver_proxyclient_address 192.168.100.10


su -s /bin/sh -c "nova-manage db sync" nova


keystone user-create --name=nova --pass=000000 --email=nova@localhost

keystone user-role-add --user=nova --tenant=service --role=admin


openstack-config --set /etc/nova/nova.conf DEFAULT auth_strategy keystone

openstack-config --set /etc/nova/nova.conf keystone_authtoken auth_uri http://controller:5000

openstack-config --set /etc/nova/nova.conf keystone_authtoken auth_host controller

openstack-config --set /etc/nova/nova.conf keystone_authtoken auth_protocol http

openstack-config --set /etc/nova/nova.conf keystone_authtoken auth_port 35357

openstack-config --set /etc/nova/nova.conf keystone_authtoken admin_user nova

openstack-config --set /etc/nova/nova.conf keystone_authtoken admin_tenant_name service

openstack-config --set /etc/nova/nova.conf keystone_authtoken admin_password 000000


keystone service-create --name=nova --type=compute --description="OpenStack Compute"


keystone endpoint-create \

   --service-id=$(keystone service-list | awk '/ compute / {print $2}') \

   --publicurl=http://controller:8774/v2/%\(tenant_id\)s \

   --internalurl=http://controller:8774/v2/%\(tenant_id\)s \

   --adminurl=http://controller:8774/v2/%\(tenant_id\)s


service openstack-nova-api restart

service openstack-nova-cert restart

service openstack-nova-consoleauth restart

service openstack-nova-scheduler restart

service openstack-nova-conductor restart

service openstack-nova-novncproxy restart

chkconfig openstack-nova-api on

chkconfig openstack-nova-cert on

chkconfig openstack-nova-consoleauth on

chkconfig openstack-nova-scheduler on

chkconfig openstack-nova-conductor on

chkconfig openstack-nova-novncproxy on


nova image-list


nova service-list   #等会配置完compute节点的nova以后,再次在controller执行一遍  。


现在,我们该对compute节点做点什么了。

你可能感兴趣的:(记一次云计算测试实验-openstack-icehouse-安装nova)