openstack

GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost'   IDENTIFIED BY 'keystone';
GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%'   IDENTIFIED BY 'keystone';
admin_token = 66937b8ee45625e0425c
GRANT ALL PRIVILEGES ON glance.* TO 'glance'@'localhost'   IDENTIFIED BY 'glance';
GRANT ALL PRIVILEGES ON glance.* TO 'glance'@'%'   IDENTIFIED BY 'glance';
  GRANT ALL PRIVILEGES ON nova_api.* TO 'nova'@'controller'  IDENTIFIED BY 'nova';
GRANT ALL PRIVILEGES ON nova_api.* TO 'nova'@'%'  IDENTIFIED BY 'nova';
GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'controller'  IDENTIFIED BY 'nova';
GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'%'  IDENTIFIED BY 'nova';

service nova-api restart & service nova-consoleauth restart & service nova-scheduler restart & service nova-conductor restart & service nova-novncproxy restart

GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'controller'   IDENTIFIED BY 'neutron';
GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'localhost'   IDENTIFIED BY 'neutron';
GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'%'   IDENTIFIED BY 'neutron';

GRANT ALL PRIVILEGES ON cinder.* TO 'cinder'@'localhost'  IDENTIFIED BY 'cinder';
GRANT ALL PRIVILEGES ON cinder.* TO 'cinder'@'controller'  IDENTIFIED BY 'cinder';
GRANT ALL PRIVILEGES ON cinder.* TO 'cinder'@'%'  IDENTIFIED BY 'cinder';

GRANT ALL PRIVILEGES ON manila.* TO 'manila'@'localhost'  IDENTIFIED BY 'manila';
GRANT ALL PRIVILEGES ON manila.* TO 'manila'@'%'  IDENTIFIED BY 'manila';
 


neutron net-create --shared --provider:physical_network public  --provider:network_type flat provider、

neutron subnet-create public 192.168.0.1/24 --name public  --allocation-pool start=192.168.0.204,end=192.168.0.210  --dns-nameserver 192.168.0.1 --gateway 192.168.0.1
neutron subnet-create private 192.168.121.211/28 --name private   --dns-nameserver 8.8.4.4 --gateway 192.168.121.211
neutron subnet-create --name selfservice   --dns-nameserver 192.168.1.1 --gateway 172.16.1.1   selfservice 172.16.1.0/24

nova boot --flavor m1.tiny --image cirros --nic net-id=c2943fac-a910-4cf6-b021-e8ab321965c9  --security-group default --key-name mykey private-instance
nova boot --flavor m1.tiny --image cirros --nic net-id=cc070a74-b16a-46a6-b89d-8aebd94a4c13 --security-group default --key-name mykey public-instance

connection = mysql+pymysql://cinder:cinder@controller/cinder

neutron subnet-create --name provider   --allocation-pool start=192.168.0.204,end=192.168.0.208   --dns-nameserver 192.168.0.1 --gateway 192.168.0.1  provider 192.168.0.1/24

openstack server create --flavor m1.tiny --image cirros   --nic net-id=1da11117-a2b5-4b4e-acb6-5b8bbd3801e1 --security-group default  --key-name mykey provider-instance

openstack server create --flavor m4.nano --image ubuntu --nic net-id=1da11117-a2b5-4b4e-acb6-5b8bbd3801e1 --security-group default --key-name mykey test

GRANT ALL PRIVILEGES ON manila.* TO 'manila'@'localhost'   IDENTIFIED BY 'manila';
GRANT ALL PRIVILEGES ON manila.* TO 'manila'@'%'   IDENTIFIED BY 'manila';
openstack server create --flavor m4.nano --image ubuntu --nic net-id= 1da11117-a2b5-4b4e-acb6-5b8bbd3801e1 --security-group default --key-name mykey ros

sudo kvm -m 256 -cdrom Ubuntu-14.04.4-server-amd64.iso -drive file=server.img,if=virtio,index=0 -boot d -net nic -net user -nographic  -vnc 192.168.0.199:0

glance image-create --name rosubuntu --file --disk-format raw --container-format ovf --is-public True --progress

please remove the installation medium,then press enter
sudo kvm -m 256 -drive file=server.img,if=virtio,index=0 -boot c -net nic -net user -nographic -vnc 192.168.0.199:0

neutron subnet-create --name provider   --allocation-pool start=192.168.30.231,end=192.168.30.240   --dns-nameserver 192.168.30.1 --gateway 192.168.30.254  provider 192.168.30.0/24
neutron subnet-create --name selfservice  --dns-nameserver 8.8.8.8 --gateway 172.16.1.1   selfservice 172.16.1.0/24
openstack server create --flavor m1.tiny --image cirros --nic net-id=75ee15e6-05b1-431c-9302-faed00c0ee64 --security-group default  --key-name mykey provider-instance
rabbitmqctl add_user openstack openstack

posted @ 2018-06-08 09:51  李悠然  阅读(357)  评论(0编辑  收藏  举报