Skip to content

Commit ca5f919

Browse files
committed
Clean up n-net remnants
In I90316208d1af42c1659d3bee386f95e38aaf2c56 support for nova-network was removed, but some bits remained, fix this up. Change-Id: Iba7e1785fd0bdf0a6e94e5e03438fc7634621e49
1 parent 90e5479 commit ca5f919

5 files changed

Lines changed: 3 additions & 27 deletions

File tree

files/debs/nova

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
conntrack
22
curl
3-
dnsmasq-base
4-
dnsmasq-utils # for dhcp_release
53
ebtables
64
genisoimage # required for config_drive
75
iptables

files/rpms-suse/nova

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
cdrkit-cdrtools-compat # dist:sle12
22
conntrack-tools
33
curl
4-
dnsmasq
5-
dnsmasq-utils # dist:opensuse-12.3,opensuse-13.1
64
ebtables
75
iptables
86
iputils

files/rpms/nova

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
conntrack-tools
22
curl
3-
dnsmasq # for q-dhcp
4-
dnsmasq-utils # for dhcp_release
53
ebtables
64
genisoimage # not:rhel9 required for config_drive
75
iptables

lib/nova

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -107,20 +107,6 @@ NOVA_FILTERS="AvailabilityZoneFilter,ComputeFilter,ComputeCapabilitiesFilter,Ima
107107

108108
QEMU_CONF=/etc/libvirt/qemu.conf
109109

110-
# Set default defaults here as some hypervisor drivers override these
111-
PUBLIC_INTERFACE_DEFAULT=br100
112-
# Set ``GUEST_INTERFACE_DEFAULT`` to some interface on the box so that
113-
# the default isn't completely crazy. This will match ``eth*``, ``em*``, or
114-
# the new ``p*`` interfaces, then basically picks the first
115-
# alphabetically. It's probably wrong, however it's less wrong than
116-
# always using ``eth0`` which doesn't exist on new Linux distros at all.
117-
GUEST_INTERFACE_DEFAULT=$(ip link \
118-
| grep 'state UP' \
119-
| awk '{print $2}' \
120-
| sed 's/://' \
121-
| grep ^[ep] \
122-
| head -1)
123-
124110
# ``NOVA_VNC_ENABLED`` can be used to forcibly enable VNC configuration.
125111
# In multi-node setups allows compute hosts to not run ``n-novnc``.
126112
NOVA_VNC_ENABLED=$(trueorfalse False NOVA_VNC_ENABLED)

stack.sh

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,8 @@ fi
11521152
# ----
11531153

11541154
if is_service_enabled q-dhcp; then
1155-
# Delete traces of nova networks from prior runs
1155+
# TODO(frickler): These are remnants from n-net, check which parts are really
1156+
# still needed for Neutron.
11561157
# Do not kill any dnsmasq instance spawned by NetworkManager
11571158
netman_pid=$(pidof NetworkManager || true)
11581159
if [ -z "$netman_pid" ]; then
@@ -1212,12 +1213,7 @@ if is_service_enabled nova; then
12121213
echo_summary "Configuring Nova"
12131214
init_nova
12141215

1215-
# Additional Nova configuration that is dependent on other services
1216-
# TODO(stephenfin): Is it possible for neutron to *not* be enabled now? If
1217-
# not, remove the if here
1218-
if is_service_enabled neutron; then
1219-
async_runfunc configure_neutron_nova
1220-
fi
1216+
async_runfunc configure_neutron_nova
12211217
fi
12221218

12231219

0 commit comments

Comments
 (0)