From: Giuseppe Lettieri Date: Sun, 16 Dec 2012 18:12:29 +0000 (+0100) Subject: Merge branch 'hotfix' into make-improv X-Git-Tag: sliver-openvswitch-1.9.90-2~10 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=7c690f462fec1af60d76c67fac226fc648ea9149;hp=c73c1d169d14c411a1571a3783f9b89aafc54577;p=sliver-openvswitch.git Merge branch 'hotfix' into make-improv Conflicts: sliver-openvswitch.spec --- diff --git a/planetlab/exp-tool/Makefile b/planetlab/exp-tool/Makefile index ec8787115..2ec1bc183 100644 --- a/planetlab/exp-tool/Makefile +++ b/planetlab/exp-tool/Makefile @@ -3,6 +3,9 @@ # HOST_ and IP_ for all nodes involved, as well as # LINKS as a list of - elements +# should work with any shell, but we have only tested bash +SHELL=/bin/bash + # run make CONF=anotherconfig.mk if you need several configs CONF ?= conf.mk @@ -142,7 +145,7 @@ del-controllers: $(foreach id,$(ALL_NODE_IDS),del-controller-$(id)) ### node-oriented targets # check ssh connectivity sshcheck-%: FORCE - @if $(SSH) $(HOST_$*) hostname &> /dev/null; then echo "ssh on" $(call display,$*) "OK" ; \ + @if $(SSH) $(HOST_$*) hostname > /dev/null 2>&1; then echo "ssh on" $(call display,$*) "OK" ; \ else echo "ssh on" $(call display,$*) "KO !!!"; fi ovsversion-%: FORCE @@ -172,21 +175,21 @@ cache/host.%: cache/db.%: @echo "Starting db server on $(call display,$*) - logs in $(call log,$@)" - @$(SSH) $(HOST_$*) $(SUDO) sliver-ovs start-db &> $(call log,$@) && touch $@ + @$(SSH) $(HOST_$*) $(SUDO) sliver-ovs start-db > $(call log,$@) 2>&1 && touch $@ cache/switch.%: | cache/db.% @echo "Starting vswitchd on $(call display,$*) - logs in $(call log,$@)" - @$(SSH) $(HOST_$*) $(SUDO) sliver-ovs start-switch &> $(call log,$@) && touch $@ + @$(SSH) $(HOST_$*) $(SUDO) sliver-ovs start-switch > $(call log,$@) 2>&1 && touch $@ cache/bridge.%: | cache/db.% @echo "Creating bridge on $(call display,$*) - logs in $(call log,$@)" @$(SSH) $(HOST_$*) $(SUDO) \ - sliver-ovs create-bridge $(BRIDGE) $(IP_$*) $(call default,BROPTIONS,$*) &> $(call log,$@) \ + sliver-ovs create-bridge $(BRIDGE) $(IP_$*) $(call default,BROPTIONS,$*) > $(call log,$@) 2>&1 \ && { echo "IP_$*=$(IP_$*)"; echo "BROPTIONS_$*=$(call default,BROPTIONS,$*)"; } > $@ cache/controller.%: cache/bridge.% @echo "Setting controller $(call default,CONTROLLER,$*) on $(call display,$*) - logs in $(call log,$@)" - @$(SSH) $(HOST_$*) $(SUDO) ovs-vsctl set-controller $(BRIDGE) $(call default,CONTROLLER,$*) &> $(call log,$@) \ + @$(SSH) $(HOST_$*) $(SUDO) ovs-vsctl set-controller $(BRIDGE) $(call default,CONTROLLER,$*) > $(call log,$@) 2>&1 \ && echo "CONTROLLER_$*=$(call default,CONTROLLER,$*)" > $@ # xxx this probably needs a more thorough cleanup in cache/ @@ -355,7 +358,7 @@ del-iface.%: | cache/db.$$(call get,%) cache/iface.%: cache/bridge.$$(call get,%) | cache/db.$$(call get,%) @echo "Creating interface for link $(call linkpart,$(*F)) on $(call display,$(call get,$(*F))) - logs in $(call log,$@)" @$(SSH) $(call solve,$(call get,$(*F))) $(SUDO) sliver-ovs create-port $(BRIDGE) \ - L$(call linkpart,$(*F)) &> $(call log,$@) \ + L$(call linkpart,$(*F)) > $(call log,$@) 2>&1 \ && touch $@ # cache/port.-@: diff --git a/sliver-openvswitch.spec b/sliver-openvswitch.spec index 5fe2b717d..ace55964b 100644 --- a/sliver-openvswitch.spec +++ b/sliver-openvswitch.spec @@ -49,6 +49,9 @@ rm -rf $RPM_BUILD_ROOT %postun %changelog +* Fri Nov 23 2012 Thierry Parmentelat - sliver-openvswitch-1.8.90-6 +- fixes in the exp-tool makefile (bash redirections, scp with key..) + * Tue Oct 16 2012 Thierry Parmentelat - sliver-openvswitch-1.8.90-5 - numerous additional make targets for finer control (use make help) - including gprobe for reporting traffic to an ndnmap instance