Skip to content

zi1611061206/senlin-roles

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

1.1 Khởi tạo database SQL

$ mysql > CREATE DATABASE senlin CHARACTER SET utf8; $ mysql > GRANT ALL PRIVILEGES ON senlin.* TO ‘senlin’@’localhost’ IDENTIFIED BY ‘<senlin_database_password>’; $ mysql > GRANT ALL PRIVILEGES ON senlin.* TO ‘senlin’@’%’ IDENTIFIED BY ‘<senlin_database_password>’;

1.2 Khởi tạo thông tin project senlin

Tạo user và gán quyền cho project service $ openstack user create --password-promt senlin User Password: <senlin_keystone_password> Repeat User Password: <senlin_keystone_password> $ openstack role add --project service --user senlin admin

Tạo service senlin và endpoint $ openstack service create --name senlin --description “senlin high availability” instance-ha $ openstack endpoint create --region senlin public https://:8778 $ openstack endpoint create --region senlin internal http://<vip_internal>:8778 $ openstack endpoint create --region senlin admin http://<vip_internal>:8778

1.3 Khởi tạo config trên internal haproxy

Thêm file sau vào config haproxy "/etc/kolla/haproxy/services.d/senlin-api.cfg" và restart lại haproxy container

frontend senlin_api_front mode http http-request del-header X-Forwarded-Proto option httplog option forwardfor http-request set-header X-Forwarded-Proto https if { ssl_fc } bind <vip_internal>:8778 default_backend senlin_api_back

backend senlin_api_back mode http server ctl1 :8778 check inter 2000 rise 2 fall 5 server ctl2 :8778 check inter 2000 rise 2 fall 5 server ctl3 :8778 check inter 2000 rise 2 fall 5

frontend senlin_api_external_front mode http http-request del-header X-Forwarded-Proto option httplog option forwardfor http-request set-header X-Forwarded-Proto https if { ssl_fc } bind <vip_external>:8778 ssl crt /etc/haproxy/haproxy.pem default_backend senlin_api_external_back

backend senlin_api_external_back mode http server ctl1 :8778 check inter 2000 rise 2 fall 5 server ctl2 :8778 check inter 2000 rise 2 fall 5 server ctl3 :8778 check inter 2000 rise 2 fall 5

1.4 Sync DB

$ docker exec -it -u0 senlin_api bash => senlin-manage db sync

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jinja 100.0%