netvirt CSIT: fix location of neutron post-config in devstack
[releng/builder.git] / jjb / integration / include-raw-integration-deploy-openstack-run-test.sh
1 #@IgnoreInspection BashAddShebang
2 # Activate robotframework virtualenv
3 # ${ROBOT_VENV} comes from the include-raw-integration-install-robotframework.sh
4 # script.
5 source ${ROBOT_VENV}/bin/activate
6
7 echo "#################################################"
8 echo "##         Deploy Openstack 3-node             ##"
9 echo "#################################################"
10
11
12 SSH="ssh -t -t"
13 function create_control_node_local_conf {
14 local_conf_file_name=${WORKSPACE}/local.conf_control
15 cat > ${local_conf_file_name} << EOF
16 [[local|localrc]]
17 LOGFILE=stack.sh.log
18 SCREEN_LOGDIR=/opt/stack/data/log
19 LOG_COLOR=False
20 RECLONE=yes
21 EOF
22
23 IFS=,
24 for service_name in ${DISABLE_OS_SERVICES}
25 do
26 cat >> ${local_conf_file_name} << EOF
27 disable_service ${service_name}
28 EOF
29 done
30 for service_name in ${ENABLE_OS_SERVICES}
31 do
32 cat >> ${local_conf_file_name} << EOF
33 enable_service ${service_name}
34 EOF
35 done
36 unset IFS
37
38 cat >> ${local_conf_file_name} << EOF
39 HOST_IP=$OPENSTACK_CONTROL_NODE_IP
40 SERVICE_HOST=\$HOST_IP
41
42 NEUTRON_CREATE_INITIAL_NETWORKS=False
43 Q_PLUGIN=ml2
44 Q_ML2_TENANT_NETWORK_TYPE=${TENANT_NETWORK_TYPE}
45 Q_OVS_USE_VETH=True
46
47 ENABLE_TENANT_TUNNELS=True
48
49 MYSQL_HOST=\$SERVICE_HOST
50 RABBIT_HOST=\$SERVICE_HOST
51 GLANCE_HOSTPORT=\$SERVICE_HOST:9292
52 KEYSTONE_AUTH_HOST=\$SERVICE_HOST
53 KEYSTONE_SERVICE_HOST=\$SERVICE_HOST
54
55 MYSQL_PASSWORD=mysql
56 RABBIT_PASSWORD=rabbit
57 SERVICE_TOKEN=service
58 SERVICE_PASSWORD=admin
59 ADMIN_PASSWORD=admin
60
61 enable_plugin networking-odl ${ODL_ML2_DRIVER_REPO} ${ODL_ML2_BRANCH}
62
63 ODL_PORT=8080
64 ODL_MODE=externalodl
65 LIBVIRT_TYPE=qemu
66
67 EOF
68
69 if [ "${ODL_ML2_DRIVER_VERSION}" == "v2" ]; then
70     echo "ODL_V2DRIVER=True" >> ${local_conf_file_name}
71 fi
72
73 if [ "${NUM_ODL_SYSTEM}" -gt 1 ]; then
74 odl_list=${ODL_SYSTEM_1_IP}
75 for i in `seq 2 ${NUM_ODL_SYSTEM}`
76 do
77 odlip=ODL_SYSTEM_${i}_IP
78 odl_list=${odl_list},${!odlip}
79 done
80 if [ "${ENABLE_HAPROXY_FOR_NEUTRON}" == "yes" ]; then
81 HA_PROXY_INDEX=${NUM_OPENSTACK_SYSTEM}
82 odlmgrip=OPENSTACK_COMPUTE_NODE_${HA_PROXY_INDEX}_IP
83 odl_mgr_ip=${!odlmgrip}
84 else
85 odl_mgr_ip=${ODL_SYSTEM_1_IP}
86 fi
87 cat >> ${local_conf_file_name} << EOF
88 ODL_OVS_MANAGERS=${odl_list}
89 ODL_MGR_IP=${odl_mgr_ip}
90 EOF
91 else
92 cat >> ${local_conf_file_name} << EOF
93 ODL_MGR_IP=${ODL_SYSTEM_1_IP}
94 EOF
95 fi
96
97 # if we are using the old netvirt impl, as determined by the feature name
98 # odl-ovsdb-openstack (note: new impl is odl-netvirt-openstack) then we
99 # want ODL_L3 to be True.  New impl wants it False
100 if [[ ${CONTROLLERFEATURES} == *"odl-ovsdb-openstack"* ]]; then
101   ODL_L3=True
102 else
103   ODL_L3=False
104 fi
105
106 if [ "${ODL_ENABLE_L3_FWD}" == "yes" ]; then
107 cat >> ${local_conf_file_name} << EOF
108
109 PUBLIC_BRIDGE=${PUBLIC_BRIDGE}
110 ODL_PROVIDER_MAPPINGS=${PUBLIC_BRIDGE}:br100
111
112 disable_service q-l3
113 Q_L3_ENABLED=True
114 ODL_L3=${ODL_L3}
115 PUBLIC_INTERFACE=br100
116
117 EOF
118
119 if [ "${ODL_ML2_BRANCH}" == "stable/mitaka" ]; then
120 cat >> ${local_conf_file_name} << EOF
121 [[post-config|\$NEUTRON_CONF]]
122 [DEFAULT]
123 service_plugins = networking_odl.l3.l3_odl.OpenDaylightL3RouterPlugin
124
125 EOF
126 fi #check for ODL_ML2_BRANCH
127
128 fi #ODL_ENABLE_L3_FWD check
129
130 cat >> ${local_conf_file_name} << EOF
131 [[post-config|/etc/neutron/plugins/ml2/ml2_conf.ini]]
132 [agent]
133 minimize_polling=True
134
135 [[post-config|/etc/neutron/dhcp_agent.ini]]
136 [DEFAULT]
137 force_metadata = True
138 enable_isolated_metadata = True
139
140 [[post-config|/etc/nova/nova.conf]]
141 [DEFAULT]
142 force_config_drive = False
143
144 EOF
145
146 echo "local.conf Created...."
147 cat ${local_conf_file_name}
148 }
149
150 function create_compute_node_local_conf {
151 HOSTIP=$1
152 local_conf_file_name=${WORKSPACE}/local.conf_compute_${HOSTIP}
153 cat > ${local_conf_file_name} << EOF
154 [[local|localrc]]
155 LOGFILE=stack.sh.log
156 LOG_COLOR=False
157 SCREEN_LOGDIR=/opt/stack/data/log
158 RECLONE=yes
159
160 NOVA_VNC_ENABLED=True
161 MULTI_HOST=1
162 ENABLED_SERVICES=n-cpu
163
164 HOST_IP=${HOSTIP}
165 SERVICE_HOST=${OPENSTACK_CONTROL_NODE_IP}
166
167 Q_PLUGIN=ml2
168 ENABLE_TENANT_TUNNELS=True
169 Q_ML2_TENANT_NETWORK_TYPE=vxlan
170
171 Q_HOST=\$SERVICE_HOST
172 MYSQL_HOST=\$SERVICE_HOST
173 RABBIT_HOST=\$SERVICE_HOST
174 GLANCE_HOSTPORT=\$SERVICE_HOST:9292
175 KEYSTONE_AUTH_HOST=\$SERVICE_HOST
176 KEYSTONE_SERVICE_HOST=\$SERVICE_HOST
177
178 MYSQL_PASSWORD=mysql
179 RABBIT_PASSWORD=rabbit
180 SERVICE_TOKEN=service
181 SERVICE_PASSWORD=admin
182 ADMIN_PASSWORD=admin
183
184 enable_plugin networking-odl ${ODL_ML2_DRIVER_REPO} ${ODL_ML2_BRANCH}
185 ODL_MODE=compute
186 LIBVIRT_TYPE=qemu
187
188 EOF
189
190 if [ "${NUM_ODL_SYSTEM}" -gt 1 ]; then
191 odl_list=${ODL_SYSTEM_1_IP}
192 for i in `seq 2 ${NUM_ODL_SYSTEM}`
193 do
194 odlip=ODL_SYSTEM_${i}_IP
195 odl_list=${odl_list},${!odlip}
196 done
197 if [ "${ENABLE_HAPROXY_FOR_NEUTRON}" == "yes" ]; then
198 HA_PROXY_INDEX=${NUM_OPENSTACK_SYSTEM}
199 odlmgrip=OPENSTACK_COMPUTE_NODE_${HA_PROXY_INDEX}_IP
200 odl_mgr_ip=${!odlmgrip}
201 else
202 odl_mgr_ip=${ODL_SYSTEM_1_IP}
203 fi
204 cat >> ${local_conf_file_name} << EOF
205 ODL_OVS_MANAGERS=${odl_list}
206 ODL_MGR_IP=${odl_mgr_ip}
207 EOF
208 else
209 cat >> ${local_conf_file_name} << EOF
210 ODL_MGR_IP=${ODL_SYSTEM_1_IP}
211 EOF
212 fi
213
214 if [ "${ODL_ENABLE_L3_FWD}" == "yes" ]; then
215 cat >> ${local_conf_file_name} << EOF
216 # Uncomment lines below if odl-compute is to be used for l3 forwarding
217 Q_L3_ENABLED=True
218 ODL_L3=${ODL_L3}
219 PUBLIC_INTERFACE=br100
220 EOF
221 fi
222 echo "local.conf Created...."
223 cat ${local_conf_file_name}
224 }
225
226 function configure_haproxy_for_neutron_requests () {
227 HA_PROXY_INDEX=${NUM_OPENSTACK_SYSTEM}
228 odlmgrip=OPENSTACK_COMPUTE_NODE_${HA_PROXY_INDEX}_IP
229 ha_proxy_ip=${!odlmgrip}
230
231 cat > ${WORKSPACE}/install_ha_proxy.sh<< EOF
232 sudo systemctl stop firewalld
233 sudo yum -y install policycoreutils-python haproxy
234 EOF
235
236 cat > ${WORKSPACE}/haproxy.cfg << EOF
237 global
238   daemon
239   group  haproxy
240   log  /dev/log local0
241   maxconn  20480
242   pidfile  /tmp/haproxy.pid
243   user  haproxy
244
245 defaults
246   log  global
247   maxconn  4096
248   mode  tcp
249   retries  3
250   timeout  http-request 10s
251   timeout  queue 1m
252   timeout  connect 10s
253   timeout  client 1m
254   timeout  server 1m
255   timeout  check 10s
256
257 listen opendaylight
258   bind ${ha_proxy_ip}:8080
259   balance source
260 EOF
261
262 for i in `seq 1 ${NUM_ODL_SYSTEM}`
263 do
264 odlip=ODL_SYSTEM_${i}_IP
265 cat >> ${WORKSPACE}/haproxy.cfg << EOF
266   server controller-$i ${!odlip}:8080 check fall 5 inter 2000 rise 2
267 EOF
268 done
269
270 cat > ${WORKSPACE}/deploy_ha_proxy.sh<< EOF
271 sudo chown haproxy:haproxy /tmp/haproxy.cfg
272 sudo sed -i 's/\\/etc\\/haproxy\\/haproxy.cfg/\\/tmp\\/haproxy.cfg/g' /usr/lib/systemd/system/haproxy.service
273 sudo /usr/sbin/semanage permissive -a haproxy_t
274 sudo systemctl restart haproxy
275 sleep 3
276 sudo netstat -tunpl
277 sudo systemctl status haproxy
278 true
279 EOF
280 scp ${WORKSPACE}/install_ha_proxy.sh ${ha_proxy_ip}:/tmp
281 ${SSH} ${ha_proxy_ip} "sudo bash /tmp/install_ha_proxy.sh"
282 scp ${WORKSPACE}/haproxy.cfg ${ha_proxy_ip}:/tmp
283 scp ${WORKSPACE}/deploy_ha_proxy.sh ${ha_proxy_ip}:/tmp
284 ${SSH} ${ha_proxy_ip} "sudo bash /tmp/deploy_ha_proxy.sh"
285 }
286
287 function collect_logs_and_exit (){
288 set +e  # We do not want to create red dot just because something went wrong while fetching logs.
289 for i in `seq 1 ${NUM_ODL_SYSTEM}`
290 do
291     CONTROLLERIP=ODL_SYSTEM_${i}_IP
292     echo "killing karaf process..."
293     ${SSH} "${!CONTROLLERIP}" bash -c 'ps axf | grep karaf | grep -v grep | awk '"'"'{print "kill -9 " $1}'"'"' | sh'
294 done
295
296 sleep 5
297 # FIXME: Do not create .tar and gzip before copying.
298 for i in `seq 1 ${NUM_ODL_SYSTEM}`
299 do
300     CONTROLLERIP=ODL_SYSTEM_${i}_IP
301     ${SSH} "${!CONTROLLERIP}"  "cp -r /tmp/${BUNDLEFOLDER}/data/log /tmp/odl_log"
302     ${SSH} "${!CONTROLLERIP}"  "tar -cf /tmp/odl${i}_karaf.log.tar /tmp/odl_log/*"
303     scp "${!CONTROLLERIP}:/tmp/odl${i}_karaf.log.tar" "${WORKSPACE}/odl${i}_karaf.log.tar"
304     tar -xvf ${WORKSPACE}/odl${i}_karaf.log.tar -C . --strip-components 2 --transform s/karaf/odl${i}_karaf/g
305     rm ${WORKSPACE}/odl${i}_karaf.log.tar
306 done
307
308 scp ${OPENSTACK_CONTROL_NODE_IP}:/opt/stack/devstack/nohup.out "openstack_control_stack.log"
309 ${SSH} ${OPENSTACK_CONTROL_NODE_IP} "tar -cf /tmp/control_node_openstack_logs.tgz  /opt/stack/logs/*"
310 scp "${OPENSTACK_CONTROL_NODE_IP}:/tmp/control_node_openstack_logs.tgz" control_node_openstack_logs.tgz
311 for i in `seq 1 $((NUM_OPENSTACK_SYSTEM - 1))`
312 do
313     OSIP=OPENSTACK_COMPUTE_NODE_${i}_IP
314     scp "${!OSIP}:/opt/stack/devstack/nohup.out" "openstack_compute_stack_${i}.log"
315     ${SSH} "${!OSIP}" "tar -cf /tmp/compute_node_${i}_openstack_logs.tgz  /opt/stack/logs/*"
316     scp "${!OSIP}:/tmp/compute_node_${i}_openstack_logs.tgz"  "compute_node_${i}_openstack_logs.tgz"
317 done
318 }
319
320 cat > ${WORKSPACE}/disable_firewall.sh << EOF
321 sudo systemctl stop firewalld
322 sudo systemctl stop iptables
323 true
324 EOF
325
326 cat > ${WORKSPACE}/get_devstack.sh << EOF
327 sudo systemctl stop firewalld
328 sudo yum install bridge-utils -y
329 sudo systemctl stop  NetworkManager
330 #Disable NetworkManager and kill dhclient and dnsmasq
331 sudo systemctl stop NetworkManager
332 sudo killall dhclient
333 sudo killall dnsmasq
334 #Workaround for mysql failure
335 echo "127.0.0.1    localhost \${HOSTNAME}" > /tmp/hosts
336 echo "::1   localhost  \${HOSTNAME}" >> /tmp/hosts
337 sudo mv /tmp/hosts /etc/hosts
338 sudo /usr/sbin/brctl addbr br100
339 #sudo ifconfig eth0 mtu 2000 
340 sudo mkdir /opt/stack
341 sudo chmod 777 /opt/stack
342 cd /opt/stack
343 git clone https://git.openstack.org/openstack-dev/devstack
344 cd devstack
345 git checkout $OPENSTACK_BRANCH
346 EOF
347
348 echo "Create HAProxy if needed"
349 if [ "${ENABLE_HAPROXY_FOR_NEUTRON}" == "yes" ]; then
350  echo "Need to configure HAProxy"
351  configure_haproxy_for_neutron_requests
352 fi
353
354 os_node_list=()
355 echo "Stack the Control Node"
356 scp ${WORKSPACE}/get_devstack.sh ${OPENSTACK_CONTROL_NODE_IP}:/tmp
357 ${SSH} ${OPENSTACK_CONTROL_NODE_IP} "bash /tmp/get_devstack.sh"
358 create_control_node_local_conf
359 scp ${WORKSPACE}/local.conf_control ${OPENSTACK_CONTROL_NODE_IP}:/opt/stack/devstack/local.conf
360 ssh ${OPENSTACK_CONTROL_NODE_IP} "cd /opt/stack/devstack; nohup ./stack.sh > /opt/stack/devstack/nohup.out 2>&1 &"
361 ssh ${OPENSTACK_CONTROL_NODE_IP} "ps -ef | grep stack.sh"
362 ssh ${OPENSTACK_CONTROL_NODE_IP} "ls -lrt /opt/stack/devstack/nohup.out"
363 os_node_list+=(${OPENSTACK_CONTROL_NODE_IP})
364
365
366 for i in `seq 1 $((NUM_OPENSTACK_SYSTEM - 1))`
367 do
368     COMPUTEIP=OPENSTACK_COMPUTE_NODE_${i}_IP
369     scp ${WORKSPACE}/get_devstack.sh  ${!COMPUTEIP}:/tmp
370     ${SSH} ${!COMPUTEIP} "bash /tmp/get_devstack.sh"
371     create_compute_node_local_conf ${!COMPUTEIP}
372     scp ${WORKSPACE}/local.conf_compute_${!COMPUTEIP} ${!COMPUTEIP}:/opt/stack/devstack/local.conf
373     ssh ${!COMPUTEIP} "cd /opt/stack/devstack; nohup ./stack.sh > /opt/stack/devstack/nohup.out 2>&1 &"
374     ssh ${!COMPUTEIP} "ps -ef | grep stack.sh"
375     os_node_list+=(${!COMPUTEIP})
376 done
377
378 cat > ${WORKSPACE}/check_stacking.sh << EOF
379 > /tmp/stack_progress
380 ps -ef | grep "stack.sh" | grep -v grep
381 ret=\$?
382 if [ \${ret} -eq 1 ]; then
383   grep "This is your host IP address:" /opt/stack/devstack/nohup.out
384   if [ \$? -eq 0 ]; then
385      echo "Stacking Complete" > /tmp/stack_progress
386   else
387      echo "Stacking Failed" > /tmp/stack_progress
388   fi
389 elif [ \${ret} -eq 0 ]; then
390   echo "Still Stacking" > /tmp/stack_progress
391 fi
392 EOF
393
394 #the checking is repeated for an hour
395 iteration=0
396 in_progress=1
397 while [ ${in_progress} -eq 1 ]; do
398 iteration=$(($iteration + 1))
399 for index in ${!os_node_list[@]}
400 do
401 echo "Check the status of stacking in ${os_node_list[index]}"
402 scp ${WORKSPACE}/check_stacking.sh  ${os_node_list[index]}:/tmp
403 ${SSH} ${os_node_list[index]} "bash /tmp/check_stacking.sh"
404 scp ${os_node_list[index]}:/tmp/stack_progress .
405 #debug
406 cat stack_progress
407 stacking_status=`cat stack_progress`
408 if [ "$stacking_status" == "Still Stacking" ]; then
409   continue
410 elif [ "$stacking_status" == "Stacking Failed" ]; then
411   collect_logs_and_exit
412   exit 1
413 elif [ "$stacking_status" == "Stacking Complete" ]; then
414   unset os_node_list[index]
415   if  [ ${#os_node_list[@]} -eq 0 ]; then
416      in_progress=0
417   fi
418 fi
419 done
420  echo "sleep for a minute before the next check"
421  sleep 60
422  if [ ${iteration} -eq 60 ]; then
423   collect_logs_and_exit
424   exit 1
425  fi
426 done
427
428 #Need to disable firewalld and iptables in control node
429 echo "Stop Firewall in Control Node for compute nodes to be able to reach the ports and add to hypervisor-list"
430 scp ${WORKSPACE}/disable_firewall.sh ${OPENSTACK_CONTROL_NODE_IP}:/tmp
431 ${SSH} ${OPENSTACK_CONTROL_NODE_IP} "sudo bash /tmp/disable_firewall.sh"
432 echo "sleep for a minute and print hypervisor-list"
433 sleep 60
434 ${SSH} ${OPENSTACK_CONTROL_NODE_IP} "cd /opt/stack/devstack; source openrc admin admin; nova hypervisor-list"
435
436 #Need to disable firewalld and iptables in compute nodes as well
437 for i in `seq 1 $((NUM_OPENSTACK_SYSTEM - 1))`
438 do
439     OSIP=OPENSTACK_COMPUTE_NODE_${i}_IP
440     scp ${WORKSPACE}/disable_firewall.sh "${!OSIP}:/tmp"
441     ${SSH} "${!OSIP}" "sudo bash /tmp/disable_firewall.sh"
442 done
443
444 # upgrading pip, urllib3 and httplib2 so that tempest tests can be run on ${OPENSTACK_CONTROL_NODE_IP}
445 # this needs to happen after devstack runs because it seems devstack is pulling in specific versions
446 # of these libs that are not working for tempest.
447 ${SSH} ${OPENSTACK_CONTROL_NODE_IP} "sudo pip install --upgrade pip"
448 ${SSH} ${OPENSTACK_CONTROL_NODE_IP} "sudo pip install urllib3 --upgrade"
449 ${SSH} ${OPENSTACK_CONTROL_NODE_IP} "sudo pip install httplib2 --upgrade"
450
451 echo "Locating test plan to use..."
452 testplan_filepath="${WORKSPACE}/test/csit/testplans/${STREAMTESTPLAN}"
453 if [ ! -f "${testplan_filepath}" ]; then
454     testplan_filepath="${WORKSPACE}/test/csit/testplans/${TESTPLAN}"
455 fi
456
457 echo "Changing the testplan path..."
458 cat "${testplan_filepath}" | sed "s:integration:${WORKSPACE}:" > testplan.txt
459 cat testplan.txt
460
461 SUITES=`egrep -v '(^[[:space:]]*#|^[[:space:]]*$)' testplan.txt | tr '\012' ' '`
462
463 echo "Starting Robot test suites ${SUITES} ..."
464 pybot -N ${TESTPLAN} --removekeywords wuks -c critical -e exclude -v BUNDLEFOLDER:${BUNDLEFOLDER} -v WORKSPACE:/tmp \
465 -v BUNDLE_URL:${ACTUALBUNDLEURL} -v NEXUSURL_PREFIX:${NEXUSURL_PREFIX} -v JDKVERSION:${JDKVERSION} -v ODL_STREAM:${DISTROSTREAM} \
466 -v ODL_SYSTEM_IP:${ODL_SYSTEM_IP} -v ODL_SYSTEM_1_IP:${ODL_SYSTEM_1_IP} -v ODL_SYSTEM_2_IP:${ODL_SYSTEM_2_IP} \
467 -v ODL_SYSTEM_3_IP:${ODL_SYSTEM_3_IP} -v NUM_ODL_SYSTEM:${NUM_ODL_SYSTEM} -v CONTROLLER_USER:${USER} -v OS_USER:${USER} \
468 -v NUM_OS_SYSTEM:${NUM_OPENSTACK_SYSTEM} -v OS_CONTROL_NODE_IP:${OPENSTACK_CONTROL_NODE_IP} \
469 -v OS_COMPUTE_1_IP:${OPENSTACK_COMPUTE_NODE_1_IP} -v OS_COMPUTE_2_IP:${OPENSTACK_COMPUTE_NODE_2_IP} \
470 -v DEVSTACK_DEPLOY_PATH:/opt/stack/devstack -v USER_HOME:${HOME} ${TESTOPTIONS} ${SUITES} || true
471
472 echo "Tests Executed"
473 DEVSTACK_TEMPEST_DIR="/opt/stack/tempest"
474 if $(ssh ${OPENSTACK_CONTROL_NODE_IP} "sudo sh -c '[ -f ${DEVSTACK_TEMPEST_DIR}/.testrepository/0 ]'"); then # if Tempest results exist
475     ssh ${OPENSTACK_CONTROL_NODE_IP} "sudo sh -c '${DEVSTACK_TEMPEST_DIR}/.tox/tempest/bin/subunit-1to2 < ${DEVSTACK_TEMPEST_DIR}/.testrepository/0 > ${DEVSTACK_TEMPEST_DIR}/subunit_log.txt'"
476     ssh ${OPENSTACK_CONTROL_NODE_IP} "sudo sh -c '${DEVSTACK_TEMPEST_DIR}/.tox/tempest/bin/python ${DEVSTACK_TEMPEST_DIR}/.tox/tempest/lib/python2.7/site-packages/os_testr/subunit2html.py ${DEVSTACK_TEMPEST_DIR}/subunit_log.txt ${DEVSTACK_TEMPEST_DIR}/tempest_results.html'"
477     scp ${OPENSTACK_CONTROL_NODE_IP}:${DEVSTACK_TEMPEST_DIR}/tempest_results.html ${WORKSPACE}/
478 fi
479 collect_logs_and_exit
480
481 true  # perhaps Jenkins is testing last exit code
482 # vim: ts=4 sw=4 sts=4 et ft=sh :