File tree Expand file tree Collapse file tree
extensions/network-namespace Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1397,7 +1397,7 @@ dhcp-option=3,${GATEWAY}
13971397dhcp-hostsfile=${dhcp_hosts}
13981398addn-hosts=${hosts}
13991399dhcp-optsfile=${dhcp_opts}
1400- log-facility=/var/log/cloudstack/network-namespace- dnsmasq-${NETWORK_ID} .log
1400+ log-facility=/var/log/cloudstack/extensions/ ${_WRAPPER_EXT_DIR} / dnsmasq-${NETWORK_ID} .log
14011401EOF
14021402 # Add DHCP option 15 (domain-search) when provided by the caller
14031403 if [ -n " ${DOMAIN} " ]; then
@@ -1649,7 +1649,7 @@ ${unixd_line}
16491649${authz_line}
16501650
16511651DocumentRoot ${www}
1652- ErrorLog /var/log/cloudstack/network-namespace- apache2-${NETWORK_ID} .log
1652+ ErrorLog /var/log/cloudstack/extensions/ ${_WRAPPER_EXT_DIR} / apache2-${NETWORK_ID} .log
16531653
16541654<VirtualHost ${listen_ip} :80>
16551655 ServerName metadata
@@ -1718,7 +1718,7 @@ _svc_start_or_reload_passwd_server() {
17181718 local script_f; script_f=$( _passwd_server_script)
17191719 local pid_f; pid_f=$( _passwd_server_pid)
17201720 local passwd_f; passwd_f=$( _passwd_file)
1721- local log_f; log_f=" /var/log/cloudstack/network-namespace- passwd-${NETWORK_ID} .log"
1721+ local log_f; log_f=" /var/log/cloudstack/extensions/ ${_WRAPPER_EXT_DIR} / passwd-${NETWORK_ID} .log"
17221722
17231723 mkdir -p " $( dirname " ${script_f} " ) "
17241724 touch " ${passwd_f} "
Original file line number Diff line number Diff line change 7171
7272_multiprocess_shared_ = True
7373
74- # Base directory on KVM agents where wrapper scripts are installed.
75- # The actual per-extension subdirectory is derived at runtime from the
76- # extension name: /etc/cloudstack/extensions/<ext-name>/
77- EXTENSIONS_BASE_DIR = '/etc/cloudstack/extensions'
74+ # The file names of the scripts to deploy on the management server and KVM hosts.
7875SCRIPT_FILENAME = 'network-namespace-wrapper.sh'
7976ENTRY_POINT_FILENAME = 'network-namespace.sh'
8077
81- # State directory used by network-namespace-wrapper.sh on KVM hosts
82- KVM_STATE_DIR = '/var/lib/cloudstack/network-namespace'
83-
8478# Remote URLs to download the scripts from
8579_GITHUB_BASE = (
8680 'https://raw.githubusercontent.com/apache/cloudstack-extensions'
87- '/refs/heads/network-namespace/Network-Namespace'
81+ '/refs/heads/network-namespace/Network-Namespace/ '
8882)
89- WRAPPER_SCRIPT_URL = _GITHUB_BASE + '/network-namespace-wrapper.sh'
90- ENTRY_POINT_SCRIPT_URL = _GITHUB_BASE + '/network-namespace.sh'
83+ WRAPPER_SCRIPT_URL = _GITHUB_BASE + SCRIPT_FILENAME
84+ ENTRY_POINT_SCRIPT_URL = _GITHUB_BASE + ENTRY_POINT_FILENAME
9185
9286# Local cache paths (downloaded once, reused across test methods)
9387_THIS_DIR = os .path .dirname (os .path .abspath (__file__ ))
You can’t perform that action at this time.
0 commit comments