Configure the Main environment¶
Overview¶
src/main/omnia.env is the initial environment template. During the first OIM
setup, Main installs it as /etc/omnia/omnia.env and creates
/etc/profile.d/omnia-env.sh so that new login shells load the installed
values. After installation, /etc/omnia/omnia.env is authoritative and
subsequent setup runs preserve it.
Prerequisites¶
- Use an Omnia source checkout on the OIM.
- Identify the IPv4 address assigned to the OIM administrative interface.
- Confirm the OIM short hostname with
hostname -s. - Decide whether the default data, project, virtual-environment, domain, and catalog paths are suitable for the deployment.
Procedure¶
-
Change to the Main source directory and open
src/main/omnia.env:Run on: OIM hostcd src/main vi omnia.env -
Set
SYSTEM_ADMIN_NIC_IPV4to an address assigned to the OIM. Review the optional values and keep or replace their supplied defaults:File: src/main/omnia.envSYSTEM_ADMIN_NIC_IPV4=172.16.107.254 OMNIA_DATA_PATH=/opt/omnia OMNIA_PROJECT_NAME=project_default SYSTEM_HOSTNAME=oim SYSTEM_DOMAIN_NAME=omnia.cluster OMNIA_VENV_PATH=/opt/omnia/venv OMNIA_VERSION=2.3.0.0 CATALOG_FILE_PATH=${OMNIA_DATA_PATH}/catalog/catalog_rhel.jsonSYSTEM_ADMIN_NIC_IPV4must be an IPv4 address assigned to a local OIM interface.SYSTEM_HOSTNAMEmust match the value returned byhostname -s. Setup validates this and fails if it does not match.- A mismatch between
SYSTEM_DOMAIN_NAMEandhostname -dproduces a warning but does not block setup.
Note
After the first setup, edit
/etc/omnia/omnia.envfor configuration changes. If you instead updatesrc/main/omnia.env, run./omnia.sh -s --force-envto replace the installed environment with the updated source file. -
Install the environment as part of OIM setup:
Run on: OIM host./omnia.sh --setup-venv -
After setup, load the installed environment and activate the shared virtual environment in the current shell:
Run on: OIM hostsource /opt/omnia/activate-omnia.shIf
OMNIA_DATA_PATHis customized, source<OMNIA_DATA_PATH>/activate-omnia.shinstead.
Verification¶
Verify that Main installed the source configuration and exported the selected values:
source /etc/profile.d/omnia-env.sh
printf '%s\n' "$SYSTEM_ADMIN_NIC_IPV4"
printf '%s\n' "$OMNIA_DATA_PATH"
printf '%s\n' "$OMNIA_PROJECT_NAME"
The printed values must match /etc/omnia/omnia.env.
Next steps¶
- Set up the OIM to install the configured environment and create the shared virtual environment.
Troubleshooting¶
- The administrative address is rejected: Set
SYSTEM_ADMIN_NIC_IPV4to an IPv4 address assigned to a local OIM interface. Setup validates that the address is actually present on a local network interface. - Hostname validation fails: Make
SYSTEM_HOSTNAMEmatchhostname -s. Setup fails if this value does not match the actual system hostname. - Domain name mismatch: A mismatch between
SYSTEM_DOMAIN_NAMEandhostname -dproduces a warning but does not block setup. Fix the domain name or update the system domain if needed. - The installed values did not change: After the first setup, edit
/etc/omnia/omnia.envfor normal configuration changes. To intentionally replace it withsrc/main/omnia.env, run./omnia.sh --setup-venv --force-env. - The activation script is not at
/opt/omnia: Use the configuredOMNIA_DATA_PATHwhen locatingactivate-omnia.sh.