Skip to content

Instantly share code, notes, and snippets.

@kristiandrucker
Created October 27, 2016 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kristiandrucker/e18e9a45fec7cd7997760ac27f7e393a to your computer and use it in GitHub Desktop.
Save kristiandrucker/e18e9a45fec7cd7997760ac27f7e393a to your computer and use it in GitHub Desktop.
Nova
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
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
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