Configuring Junos Space Virtual Appliances and Databases
This section describes procedures that you may need to perform after you provision the Junos Space VMs, depending on your Junos Space configuration and how you provisioned the Junos Space VMs.
Configuring a Junos Space Cluster
If you use a Junos Space cluster, you must configure the cluster after you provision the VMs manually or with the provisioning tool.
To configure the Junos Space cluster:
- Log in to the Junos Space Network Management Web GUI.
The default login credentials are:
- Username—super
- Password—juniper123
The dashboard and the Password Expiry dialog box appear.
- Click Yes in the Password Expiry dialog box
to change the default password.
The Change User Settings dialog box appears.
- Specify a new password and click OK.
The password is updated.
- Log out, then log in again with your new password.
- In the left navigation bar, select Administration > Fabric.
The Administration > Fabric page appears.
- In the toolbar, click Add Node.
The Add Node to fabric dialog box appears.
- For the Node Type field, select DB Node.
- Specify the hostname and IP address of the VMs for the primary and secondary Junos Space databases.
- For the primary database, specify the IP address of the VM for the primary Junos Space Virtual Appliance.
- Click Add.
- In the toolbar, click Add Node.
The Add Node to fabric dialog box appears.
- For the Node Type field, select JBoss.
- Specify the hostname and IP address of the VM for the secondary Junos Space Virtual Appliance.
- Click Add.
The Administration > Fabric page appears.
- Wait approximately 30 minutes for the nodes in the cluster to become active.
Configuring MySQL for the Junos Space Databases
You must complete this procedure for a Junos Space cluster or a standalone virtual appliance, whether you provisioned the VMs manually or with the provisioning tool.
To configure MySQL for the Junos Space database:
- Using the credentials you
specified when you provisioned the VMs, log in to the appropriate
VM:
- For a Junos Space cluster, log in to the VM for the primary Junos Space database.
- For a standalone Junos Space Virtual Appliance, log in to the VM for the Junos Space Virtual Appliance.
- Open the file
/var/chroot/mysql/etc/my.cnf
with a text editor. - in the [mysqld] section, add the following lines:
bind-address = 0.0.0.0 innodb_large_prefix=on innodb_file_format=barracuda innodb_file_per_table=true
- Save the file.
- Restart the MySQL database.
For example:
admin@space-db1:~/# /etc/init.d/mysql restart
The MySQL database restarts.
- For a Junos Space cluster, repeat Steps 1 through 5 for the secondary MySQL database.
Configuring MySQL to Communicate with the Contrail Service Orchestration Components
You must complete this procedure for a Junos Space cluster or a standalone virtual appliance, whether you provisioned the VMs manually or with the provisioning tool.
To configure MySQL to communicate with the Contrail Service orchestration components:
- Using the credentials you specified when you provisioned
the VMs, log in to the appropriate VM:
- For a Junos Space cluster, log in to the VM for the primary Junos Space database.
- For a standalone Junos Space Virtual Appliance, log in to the VM for Junos Space.
- Configure access to MySQL through remote authentication.
For example, if the MySQL remote authentication username is admin
and the remote authentication password is secret123, type:
admin@space1:~/# mysql -h localhost -uroot -pnetscreen -e "grant all on *.* to 'admin'@'%' identified by 'secret123'"
- Assign privileges for all MySQL operations to components
with access to MySQL.
admin@space1:~/# mysql -h localhost -uroot -pnetscreen -e "grant all privileges ON *.* TO 'admin'@'%' WITH GRANT OPTION"
Disabling the Firewall on the Junos Space Virtual Appliances
If you provisioned the Junos Space VMs manually and not with the provisioning tool, you must disable the firewall on each Junos Space Virtual Appliance in the Cloud CPE Centralized Deployment Model. For information on this procedure, see the Junos Space Virtual Appliance documentation at https://www.juniper.net/techpubs/en_US/release-independent/junos-space/index.html.