Re: [openstack-dev] [vitrage] relationship_type in static_datasources

2016-09-05 Thread Afek, Ifat (Nokia - IL)
From: Yujun Zhang Date: Monday, 5 September 2016 at 13:14 On Mon, Sep 5, 2016 at 5:49 PM Afek, Ifat (Nokia - IL) > wrote: From: Yujun Zhang Date: Friday, 2 September 2016 at 08:47 ... Cool. Just please note that you can’t push it to master at

Re: [openstack-dev] [vitrage] relationship_type in static_datasources

2016-09-05 Thread Yujun Zhang
On Mon, Sep 5, 2016 at 5:49 PM Afek, Ifat (Nokia - IL) wrote: > > From: Yujun Zhang > Date: Friday, 2 September 2016 at 08:47 > ... > Cool. > Just please note that you can’t push it to master at the moment, as we are > in feature freeze. Once stable/newton is created we will

Re: [openstack-dev] [vitrage] relationship_type in static_datasources

2016-09-05 Thread Afek, Ifat (Nokia - IL)
From: Yujun Zhang Date: Friday, 2 September 2016 at 08:47 On Fri, Sep 2, 2016 at 2:44 AM Afek, Ifat (Nokia - IL) > wrote: I think you have a point. We can indeed use the templates definitions for the static datasources as well. If agreed by the

Re: [openstack-dev] [vitrage] relationship_type in static_datasources

2016-09-01 Thread Yujun Zhang
On Fri, Sep 2, 2016 at 2:44 AM Afek, Ifat (Nokia - IL) wrote: > I think you have a point. We can indeed use the templates definitions for > the static datasources as well. > If agreed by the team, I will get started to implement it. @all, please share your opinions. All

Re: [openstack-dev] [vitrage] relationship_type in static_datasources

2016-09-01 Thread Afek, Ifat (Nokia - IL)
. Best Regards, Ifat. From: Yujun Zhang Reply-To: "OpenStack Development Mailing List (not for usage questions)" Date: Thursday, 1 September 2016 at 05:51 To: "OpenStack Development Mailing List (not for usage questions)" Subject: Re: [openstack-dev] [vitrag

Re: [openstack-dev] [vitrage] relationship_type in static_datasources

2016-09-01 Thread Yujun Zhang
t is the problem you are running into with mock_sync? > > Elisha > > > > *From:* Yujun Zhang [mailto:zhangyujun+...@gmail.com] > *Sent:* Tuesday, August 30, 2016 5:09 AM > > > *To:* OpenStack Development Mailing List (not for usage questions) > *Subject:* Re: [openstack-de

Re: [openstack-dev] [vitrage] relationship_type in static_datasources

2016-08-31 Thread Yujun Zhang
Hi, Ifat, The static configuration contains definitions of `entities` and *their* `relationships while the scenario templates contains a definition section which includes `entities` and `relationships` *between them*. An outline of these two format are as below. static configuration - entities

Re: [openstack-dev] [vitrage] relationship_type in static_datasources

2016-08-30 Thread Afek, Ifat (Nokia - IL)
Hi Yujun, From: Yujun Zhang Date: Monday, 29 August 2016 at 11:59 entities: - type: switch name: switch-1 id: switch-1 # should be same as name state: available relationships: - type: nova.host name: host-1 id: host-1 # should be same as name is_source:

Re: [openstack-dev] [vitrage] relationship_type in static_datasources

2016-08-30 Thread Rosensweig, Elisha (Nokia - IL)
isha From: Yujun Zhang [mailto:zhangyujun+...@gmail.com] Sent: Tuesday, August 30, 2016 9:59 AM To: OpenStack Development Mailing List (not for usage questions) Subject: Re: [openstack-dev] [vitrage] relationship_type in static_datasources I added a new key 'is_source' to static physical config

Re: [openstack-dev] [vitrage] relationship_type in static_datasources

2016-08-30 Thread Yujun Zhang
To:* OpenStack Development Mailing List (not for usage questions) > *Subject:* Re: [openstack-dev] [vitrage] relationship_type in > static_datasources > > > > Patch work in progress [1] but local test fails [2]. > > > > It seems to be caused by the mock_sync. > > >

Re: [openstack-dev] [vitrage] relationship_type in static_datasources

2016-08-30 Thread Rosensweig, Elisha (Nokia - IL)
: Friday, August 26, 2016 4:22 AM To: OpenStack Development Mailing List (not for usage questions) Subject: Re: [openstack-dev] [vitrage] relationship_type in static_datasources Lost in the code...It seems the datasource just construct the entities and send them over event bus to entity graph pr

Re: [openstack-dev] [vitrage] relationship_type in static_datasources

2016-08-29 Thread Yujun Zhang
direction_source, and use the new definition from the yaml >> file here to decide the edge direction. >> >> >> >> Is it ok? >> >> >> >> *From:* Yujun Zhang [mailto:zhangyujun+...@gmail.com] >> *Sent:* Friday, August 26, 2016 4:22 AM >&g

Re: [openstack-dev] [vitrage] relationship_type in static_datasources

2016-08-29 Thread Yujun Zhang
t 26, 2016 4:22 AM > > > *To:* OpenStack Development Mailing List (not for usage questions) > *Subject:* Re: [openstack-dev] [vitrage] relationship_type in > static_datasources > > > > Lost in the code...It seems the datasource just construct the entities and > send them

Re: [openstack-dev] [vitrage] relationship_type in static_datasources

2016-08-28 Thread Yujun Zhang
Thanks for replying. See my comments inline. On Sun, Aug 28, 2016 at 8:02 PM Afek, Ifat (Nokia - IL) wrote: > Hi Yujun, > > Regarding the validation – I agree that we should implement it in another > way, but as a first stage I think you can just remove it. > OK > If you

Re: [openstack-dev] [vitrage] relationship_type in static_datasources

2016-08-28 Thread Weyl, Alexey (Nokia - IL)
to decide the edge direction. Is it ok? From: Yujun Zhang [mailto:zhangyujun+...@gmail.com] Sent: Friday, August 26, 2016 4:22 AM To: OpenStack Development Mailing List (not for usage questions) Subject: Re: [openstack-dev] [vitrage] relationship_type in static_datasources Lost in the code

Re: [openstack-dev] [vitrage] relationship_type in static_datasources

2016-08-25 Thread Yujun Zhang
> Alexey > > > > *From:* Yujun Zhang [mailto:zhangyujun+...@gmail.com] > *Sent:* Thursday, August 25, 2016 4:50 AM > *To:* OpenStack Development Mailing List (not for usage questions) > *Subject:* Re: [openstack-dev] [vitrage] relationship_type in > static_datasources > > > &

Re: [openstack-dev] [vitrage] relationship_type in static_datasources

2016-08-24 Thread Weyl, Alexey (Nokia - IL)
Mailing List (not for usage questions) Subject: Re: [openstack-dev] [vitrage] relationship_type in static_datasources Hi, Ifat, I searched for edge_labels in the project. It seems it is validated only in `vitrage/evaluator/template_validation/template_syntax_validator.py`. Where is such restriction

Re: [openstack-dev] [vitrage] relationship_type in static_datasources

2016-08-24 Thread Yujun Zhang
Hi, Ifat, I searched for edge_labels in the project. It seems it is validated only in `vitrage/evaluator/template_validation/template_syntax_validator.py`. Where is such restriction applied in static_datasources? -- Yujun On Wed, Aug 24, 2016 at 3:19 PM Afek, Ifat (Nokia - IL)

Re: [openstack-dev] [vitrage] relationship_type in static_datasources

2016-08-24 Thread Afek, Ifat (Nokia - IL)
Hi Yujun, Indeed, we have some restrictions on the relationship types that can be used in the static datasources. I think we should remove these restrictions, and allow any kind of relationship type. Best regards, Ifat. From: Yujun Zhang Date: Monday, 22 August 2016 at 08:37 I'm following

[openstack-dev] [vitrage] relationship_type in static_datasources

2016-08-21 Thread Yujun Zhang
I'm following the sample configuration in docs [1] to verify how static datasources works. It seems `backup` relationship is not displayed in the entity graph view and neither is it included in topology show. There is an enumeration for edge labels [2]. Should relationship in static datasource