-
-
Save kristiandrucker/e18e9a45fec7cd7997760ac27f7e393a to your computer and use it in GitHub Desktop.
Nova
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt install nova-compute -y | |
crudini --set /etc/nova/nova.conf DEFAULT transport_url rabbit://openstack:RABBIT_PASS@192.166.0.113 | |
crudini --set /etc/nova/nova.conf DEFAULT auth_strategy keystone | |
crudini --set /etc/nova/nova.conf keystone_authtoken auth_uri = http://163.172.140.46:5000 | |
crudini --set /etc/nova/nova.conf keystone_authtoken auth_url = http://163.172.140.46:35357 | |
crudini --set /etc/nova/nova.conf keystone_authtoken memcached_servers = 163.172.140.46:11211 | |
crudini --set /etc/nova/nova.conf keystone_authtoken auth_type = password | |
crudini --set /etc/nova/nova.conf keystone_authtoken project_domain_name = default | |
crudini --set /etc/nova/nova.conf keystone_authtoken user_domain_name = default | |
crudini --set /etc/nova/nova.conf keystone_authtoken project_name = service | |
crudini --set /etc/nova/nova.conf keystone_authtoken username = nova | |
crudini --set /etc/nova/nova.conf keystone_authtoken password = password | |
crudini --set /etc/nova/nova.conf DEFAULT my_ip 163.172.140.46 | |
crudini --set /etc/nova/nova.conf DEFAULT use_neutron True | |
crudini --set /etc/nova/nova.conf DEFAULT firewall_driver nova.virt.firewall.NoopFirewallDriver | |
crudini --set /etc/nova/nova.conf vnc enabled True | |
crudini --set /etc/nova/nova.conf vnc vncserver_listen = 0.0.0.0 | |
crudini --set /etc/nova/nova.conf vnc vncserver_proxyclient_address = cloud.dkristian.co | |
crudini --set /etc/nova/nova.conf vnc novncproxy_base_url = http://cloud.dkristian.co:6080/vnc_auto.html | |
crudini --set /etc/nova/nova.conf glance api_servers http://163.172.140.46:9292 | |
crudini --set /etc/nova/nova.conf oslo_concurrency lock_path /var/lib/nova/tmp | |
service nova-compute restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql -u root -ppassword -e "CREATE DATABASE nova_api;" | |
mysql -u root -ppassword -e "CREATE DATABASE nova;" | |
mysql -u root -ppassword -e "GRANT ALL PRIVILEGES ON nova_api.* TO 'nova'@'localhost' IDENTIFIED BY 'NOVA_DBPASS';" | |
mysql -u root -ppassword -e "GRANT ALL PRIVILEGES ON nova_api.* TO 'nova'@'%' IDENTIFIED BY 'NOVA_DBPASS';" | |
mysql -u root -ppassword -e "GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'localhost' IDENTIFIED BY 'NOVA_DBPASS';" | |
mysql -u root -ppassword -e "GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'%' IDENTIFIED BY 'NOVA_DBPASS';" | |
. ~/rc | |
openstack user create --domain default \ | |
--password password nova | |
openstack role add --project service --user nova admin | |
openstack service create --name nova \ | |
--description "OpenStack Compute" compute | |
openstack endpoint create --region RegionOne \ | |
compute public http://163.172.140.46:8774/v2.1/%\(tenant_id\)s | |
openstack endpoint create --region RegionOne \ | |
compute internal http://163.172.140.46:8774/v2.1/%\(tenant_id\)s | |
openstack endpoint create --region RegionOne \ | |
compute admin http://163.172.140.46:8774/v2.1/%\(tenant_id\)s | |
apt install nova-api nova-conductor nova-consoleauth nova-novncproxy nova-scheduler -y | |
crudini --set /etc/nova/nova.conf api_database connection mysql+pymysql://nova:NOVA_DBPASS@163.172.140.46/nova_api | |
crudini --set /etc/nova/nova.conf database connection mysql+pymysql://nova:NOVA_DBPASS@163.172.140.46/nova | |
crudini --set /etc/nova/nova.conf DEFAULT transport_url rabbit://openstack:RABBIT_PASS@163.172.140.46 | |
crudini --set /etc/nova/nova.conf DEFAULT auth_strategy keystone | |
crudini --set /etc/nova/nova.conf keystone_authtoken auth_uri = http://163.172.140.46:5000 | |
crudini --set /etc/nova/nova.conf keystone_authtoken auth_url = http://163.172.140.46:35357 | |
crudini --set /etc/nova/nova.conf keystone_authtoken memcached_servers = 163.172.140.46:11211 | |
crudini --set /etc/nova/nova.conf keystone_authtoken auth_type = password | |
crudini --set /etc/nova/nova.conf keystone_authtoken project_domain_name = default | |
crudini --set /etc/nova/nova.conf keystone_authtoken user_domain_name = default | |
crudini --set /etc/nova/nova.conf keystone_authtoken project_name = service | |
crudini --set /etc/nova/nova.conf keystone_authtoken username = nova | |
crudini --set /etc/nova/nova.conf keystone_authtoken password = password | |
crudini --set /etc/nova/nova.conf DEFAULT my_ip 163.172.140.46 | |
crudini --set /etc/nova/nova.conf DEFAULT use_neutron True | |
crudini --set /etc/nova/nova.conf DEFAULT firewall_driver nova.virt.firewall.NoopFirewallDriver | |
crudini --set /etc/nova/nova.conf vnc vncserver_listen 163.172.140.46 | |
crudini --set /etc/nova/nova.conf vnc vncserver_proxyclient_address cloud.dkristian.co | |
crudini --set /etc/nova/nova.conf oslo_concurrency lock_path /var/lib/nova/tmp | |
su -s /bin/sh -c "nova-manage api_db sync" nova | |
su -s /bin/sh -c "nova-manage db sync" nova | |
service nova-api restart | |
service nova-consoleauth restart | |
service nova-scheduler restart | |
service nova-conductor restart | |
service nova-novncproxy restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openstack compute service list | |
Unable to establish connection to http://163.172.140.46:8774/v2.1/264ec2ca590141128907376de4263b83/os-services |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment