[ovs-discuss] ovs-ctl start question

Gurucharan Shetty shettyg at nicira.com
Wed Mar 5 15:36:06 UTC 2014


On Wed, Mar 5, 2014 at 6:29 AM, Cristina Palomo Regidor
<cristina.palomo.regidor at ericsson.com> wrote:
> Hello,
> Thanks for your answers.
> I see in the rhel init.d service script on the openvswitch git that they are specifying in the start part:
> . /usr/share/openvswitch/scripts/ovs-lib || exit 1
>
> Is it necessary to do this step? Is this step making that ovs-ctl is working without invoking the full path to the script?
Yes. It is needed because the startup script uses some functions from ovs-lib.
>
> Thanks.
>
>
> -----Original Message-----
> From: Gurucharan Shetty [mailto:shettyg at nicira.com]
> Sent: martes, 04 de marzo de 2014 16:41
> To: Cristina Palomo Regidor
> Cc: discuss at openvswitch.org
> Subject: Re: [ovs-discuss] ovs-ctl start question
>
> On Tue, Mar 4, 2014 at 6:17 AM, Cristina Palomo Regidor <cristina.palomo.regidor at ericsson.com> wrote:
>> Hello,
>>
>> Regarding the command ovs-ctl start in the service script under
>> /etc/init.d, if I put the option:
>>
>> --system-id=random
>>
>> Does it matter that this option was not specified when I installed the
>> openvswitch and started it manually using the commands that are
>> specified in
>> openvswitch.org:
>> http://git.openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_pla
>> in;f=INSTALL;hb=HEAD
> It is okay if you started the daemons manually. The system-id is useful for integration with a controller.
>
> The IntegrationGuide has the following information:
>
> The Open_vSwitch table describes the switch as a whole.  The 'system_type' and 'system_version' columns identify the platform to the controller.  The 'external_ids:system-id' key uniquely identifies the physical host.  In XenServer, the system-id will likely be the same as the UUID returned by 'xe host-list'. This key allows controllers to distinguish between multiple hypervisors.
>
> Most of this configuration can be done with the ovs-ctl command at startup.  For example:
>
>   ovs-ctl --system-type="XenServer" --system-version="6.0.0-50762p" \
>           --system-id="${UUID}" "${other_options}" start
>
> Alternatively, the ovs-vsctl command may be used to set a particular value at runtime.  For example:
>
>   ovs-vsctl set open_vswitch . external-ids:system-id='"${UUID}"'
>
>>
>> I mean that if you use that commands you don't specify nothing similar
>> to that option.
>>
>> Thanks and BR/
>>
>>
>>
>>
>> _______________________________________________
>> discuss mailing list
>> discuss at openvswitch.org
>> http://openvswitch.org/mailman/listinfo/discuss
>>



More information about the discuss mailing list