Skip to content

Commit b8f2286

Browse files
committed
Add manila service to configuration
Manila is a service in OpenStack that enables shared filesystems. The modifications add the manila section in nova configuration files enabling the virtiofs feature. Implements: blueprint libvirt-virtiofs-attach-manila-shares Change-Id: Ia17c7a136cbe83efa1ef4e302d1c404034a50cda
1 parent 2e607b0 commit b8f2286

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

lib/nova

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,10 @@ function create_nova_conf {
507507
configure_cinder_access
508508
fi
509509

510+
if is_service_enabled manila; then
511+
configure_manila_access
512+
fi
513+
510514
if [ -n "$NOVA_STATE_PATH" ]; then
511515
iniset $NOVA_CONF DEFAULT state_path "$NOVA_STATE_PATH"
512516
iniset $NOVA_CONF oslo_concurrency lock_path "$NOVA_STATE_PATH"
@@ -652,6 +656,18 @@ function configure_cinder_access {
652656
fi
653657
}
654658

659+
# Configure access to manila.
660+
function configure_manila_access {
661+
iniset $NOVA_CONF manila os_region_name "$REGION_NAME"
662+
iniset $NOVA_CONF manila auth_type "password"
663+
iniset $NOVA_CONF manila auth_url "$KEYSTONE_SERVICE_URI"
664+
iniset $NOVA_CONF manila username nova
665+
iniset $NOVA_CONF manila password "$SERVICE_PASSWORD"
666+
iniset $NOVA_CONF manila user_domain_name "$SERVICE_DOMAIN_NAME"
667+
iniset $NOVA_CONF manila project_name "$SERVICE_TENANT_NAME"
668+
iniset $NOVA_CONF manila project_domain_name "$SERVICE_DOMAIN_NAME"
669+
}
670+
655671
function configure_console_compute {
656672
# If we are running multiple cells (and thus multiple console proxies) on a
657673
# single host, we offset the ports to avoid collisions. We need to

0 commit comments

Comments
 (0)