Thursday, 2016-08-11

*** uck has quit IRC00:01
*** prashantD_ has quit IRC00:11
openstackgerritSridhar Ramaswamy proposed openstack/tacker: Add blueprint only tacker development process  https://review.openstack.org/35266300:19
*** prashantD_ has joined #tacker00:19
*** vishnoianil has quit IRC00:32
*** trozet has quit IRC00:54
sridhar_ramsripriya: ping01:01
sripriyasridhar_ram: pong01:06
sridhar_ramsripriya: need ur opinion on https://review.openstack.org/#/c/331130 .. making name mandatory01:06
*** trozet has joined #tacker01:06
sridhar_ramsripriya: fix works fine, now shd we deprecate "--name" instead of removing it.. ?01:07
sridhar_ramsripriya: thoughts ?01:07
sridhar_ramworried many CLI users will trip with newton release01:07
*** bobh has joined #tacker01:07
sridhar_rambobh: ^^^01:07
sripriyasridhar_ram: on the api level, we did not deprecate it, we just made it mandatory in master01:07
sridhar_rambobh: i remember u insisted on making name mandatory..01:08
bobhsridhar_ram: I missed the line above the ^^^01:08
sridhar_ramsripriya: okay, so API and Horizon are indeed mandatory.. looks CLI is the only hold out..01:08
sripriyasridhar_ram: yes…01:08
sridhar_rambobh: will replay..01:08
sridhar_rambobh: need ur opinion on https://review.openstack.org/#/c/331130 .. making name mandatory01:09
sridhar_rambobh: fix works fine, now shd we deprecate "--name" instead of removing it.. ?01:09
sridhar_rambobh: thoughts?01:09
sridhar_rambobh: worried many CLI users will trip with newton release01:09
bobhsridhar_ram: reminds me a lot of https://review.openstack.org/#/c/211232/  :-)01:09
sridhar_ramsripriya: i'm hearing to not both deprecation.. instead go ahead w/ making it mandatory ?01:09
sridhar_rambobh: indeed.. remember, i came a full circle on this..01:10
bobhsridhar_ram: good ideas never die...01:11
sridhar_rambobh: LOL01:11
sripriyasridhar_ram: yes, in this case it would just prompt the user to enter the name if not provided. the general too few arguments error01:11
sripriyasridhar_ram: not very hard to figure out the typical optional vs positional arguments01:12
sridhar_ramsripriya: okay.. let's proceed then01:12
sridhar_rambobh: sripriya: thanks!01:12
sridhar_rami can imagine bobh brimming being vindicated01:13
* bobh grin01:13
*** s3wong has quit IRC01:35
*** dkushwaha has quit IRC01:50
openstackgerritSripriya Seetharam proposed openstack/tacker: Introduce uniqueness constraint on resource names  https://review.openstack.org/32975902:04
openstackgerritSripriya Seetharam proposed openstack/tacker: Introduce uniqueness constraint on resource names  https://review.openstack.org/32975902:08
*** sripriya has quit IRC02:12
*** gongysh has joined #tacker02:15
*** prashantD_ has quit IRC02:17
vishwanathjgongysh good morning02:21
gongyshvishwanathj, hi02:22
vishwanathjgongysh need your help ....02:22
gongyshvishwanathj,  my honour, what is that?02:22
vishwanathjgongysh I see that as part of patchset https://review.openstack.org/#/c/325089/4/tacker/db/api.py by you....02:23
openstackgerritMerged openstack/python-tackerclient: Make VNFD/VNF/VIM Name Mandatory in Tacker CLI  https://review.openstack.org/33113002:23
vishwanathjgongysh refer  https://github.com/openstack/tacker/blob/master/tacker/db/api.py#L29....02:24
openstackgerritMerged openstack/tacker: Password Mask for debug logs.  https://review.openstack.org/34848002:24
vishwanathjgongysh can you explain how cfg.CONF.database is used?02:25
openstackgerritLu lei proposed openstack/tacker: Fix formats for doc's information  https://review.openstack.org/34128102:25
gongyshvishwanathj,   context_manager needs these information to connect db.02:27
gongyshvishwanathj, are you meaning why  it is cfg.CONF.database instead of cfg.CONF.others?02:28
vishwanathjDo i need to update the tacker.conf file or someother file to provide that information? and what would that information look like?02:28
gongyshvishwanathj, no, it is already there by oslo db.02:28
vishwanathjgongysh I dont know anything about that...however, I am making get_engine() call in my patchset at L129 https://review.openstack.org/#/c/329652/14/tacker/db/api.py ....02:29
vishwanathjI am getting the error -> 'oslo_config.cfg.NoSuchOptError: no such option database in group [DEFAULT]'...not sure what I need to do to fix it02:29
gongyshvishwanathj, [database]02:29
gongyshconnection = mysql+pymysql://root:root@127.0.0.1/tacker?charset=utf802:29
gongyshwhich patchset?02:30
vishwanathjhttps://review.openstack.org/#/c/329652/14/tacker/db/api.py L12902:30
vishwanathjin which file is the entry above expected?02:31
vishwanathjgongysh the /etc/tacker/tacker.conf already has the entry that you are referring above - connection = mysql+pymysql://root:devstack@127.0.0.1/tacker?charset=utf8 in the database section02:32
gongyshvishwanathj, by the way, can you organize your patchset in their order? for example part1: xxxx, part2: yyy, if yyy depends on xxxx and both are used to finish one feature. so that reviewer can follow the order.02:32
gongyshvishwanathj, let's have a look.02:33
vishwanathjgongysh there is an inbuilt ordering in patchsets as well...if you click on the parent gitweb you will know the parent of the patchset02:33
vishwanathjalso clicking on the topic will show all the related patchsets02:34
gongyshas a reviewers, I like to click on the related patchsets which will not leave the gerrit site.02:36
gongyshbut the related patchsets show no dependencies.02:36
vishwanathjok02:37
vishwanathjper the http://docs.openstack.org/infra/manual/developers.html depends-on is used for cross-repo dependencies.....however, I dont mind using that to see if it would make it better for reviewers02:39
gongyshvishwanathj, I am not asking for depends-on. and my idea is just a suggestion.02:41
vishwanathjgongysh good suggestion, definitely your suggestion would make it easy for reviewers no doubt...if I was a reviewer, I would be confused too02:42
vishwanathjgongysh the error message seems to indicate that it is looking for the entry in [DEFAULT] section02:43
gongyshvishwanathj, give me a while02:44
vishwanathjgongysh sure...thanks a lot02:45
vishwanathjgongysh the full stack trace is here http://paste.openstack.org/show/553740/02:47
*** vishwanathj_ has joined #tacker02:54
*** sripriya has joined #tacker02:55
gongyshvishwanathj, in general, you are using different cfg.CONF in cli and api.02:56
vishwanathjHhmmmm....this is the first time I am working with the CLI...how were you able to figure that out?02:57
vishwanathjgongysh the command I am trying to test out is 'tacker-db-manage purge_deleted vnf'03:00
gongyshvishwanathj, what do you mean by  'tacker-db-manage purge_deleted vnf'?03:01
vishwanathjgongysh let me step back and provide background on what I am trying to do......the patchset https://review.openstack.org/#/c/329652/ is to support purging of deleted entries in VNF, VNFD and VIM databases that are aged over a certain period of time03:03
vishwanathjthe changes in the api.py and cli.py are to support that effort03:03
gongyshvishwanathj, I got it. you are trying to purge the old records in vnf and its related tables.03:04
vishwanathjyes03:04
vishwanathjgongysh the cli.py and api.py are both importing "from oslo_config import cfg"03:07
gongyshvishwanathj, you can pass in the CONF from cli to api03:09
gongyshvishwanathj, and let https://github.com/openstack/tacker/blob/master/tacker/db/api.py#L29 to use your passed CONF instead of system global cfg.CONF.03:11
openstackgerritLu lei proposed openstack/python-tackerclient: Base OpenStackClient(OSC) plugin support  https://review.openstack.org/34812403:11
vishwanathjlooks like the cli.py is using cfg.ConfigOpts() and the api.py is using cfg.CONF.....03:12
vishwanathjgongysh, let me try your suggestion....thanks for your guidance03:12
gongyshvishwanathj, you are welcome03:12
vishwanathjWill be out for a while, be back in 2 hours and try it out03:12
*** sripriya has quit IRC03:13
openstackgerritTim Rozet proposed openstack/tacker: [WIP] Implements VNFFG into NFVO  https://review.openstack.org/34452203:15
trozetsridhar_ram: I just pushed a new revision of hte patch03:16
trozetsridhar_ram: I removed the cylical constraint, fixed some bugs, added some unit tests.  Next will add more unit tests and then fix the things we talked about today03:18
*** dkushwaha has joined #tacker03:31
*** trozet has quit IRC03:32
*** links has joined #tacker03:37
*** amotoki has quit IRC03:39
*** KanagarajM has joined #tacker03:40
*** sridhar_ram has quit IRC03:47
*** KanagarajM has quit IRC03:49
*** sridhar_ram has joined #tacker03:50
*** bobh has quit IRC03:51
openstackgerritvenkatamahesh proposed openstack/tacker: Name of the exception is corrected  https://review.openstack.org/35382804:04
*** vishwanathj has quit IRC04:20
*** vishwanathj has joined #tacker04:21
*** sripriya has joined #tacker04:22
*** KanagarajM has joined #tacker04:23
gongyshsripriya, hi04:24
gongyshcan you help to review the three parts of device renaming?04:24
sripriyagongysh: sure04:24
gongyshsripriya, it is a big change, if we hold it a long time,  it will conflict with many other patchsets newly merged.04:25
*** janki has joined #tacker04:27
sridhar_ramtrozet: ack, good progress...!04:33
sripriyagongysh: yes, features are getting reviewed as a priority but will keep this in review queue.04:34
sridhar_ramgongysh: what is your take on this? There are 3 patchsets associated with this bug. Is this something you can help to wrap ?04:46
openstackgerritLu lei proposed openstack/python-tackerclient: Base OpenStackClient(OSC) plugin support  https://review.openstack.org/34812404:50
*** vishnoianil has joined #tacker04:50
*** sripriya has quit IRC04:52
*** dkushwaha has quit IRC05:00
*** vishnoianil has quit IRC05:05
*** vishnoianil has joined #tacker05:17
openstackgerritLu lei proposed openstack/python-tackerclient: Base OpenStackClient(OSC) plugin support  https://review.openstack.org/34812405:28
*** vishwanathj_ has quit IRC05:36
*** afranc has quit IRC05:48
*** afranc has joined #tacker05:49
gongyshsridhar_ram, hi05:49
sridhar_ramgongysh: hi05:51
gongyshsridhar_ram,  I just want to make it simple and integration unit on one patch.05:52
gongyshsridhar_ram, those three parts, first is on db name from device into vnf, device_template into vnfd.05:52
gongyshsridhar_ram, second part is to remove unused one file which is heavily using device and device_template in codes.05:53
gongyshsridhar_ram, third part is rename all of device, device_template into vnf, vnfd in codes and test codes.05:53
gongyshsridhar_ram, with all these three parts, we will have no device and device template in our codes.05:54
gongyshsridhar_ram, then we come to vnf, vnfd world.05:54
sridhar_ramgongysh: those 3 patchsets looks reasonable05:54
sridhar_ramgongysh: Sorry, I meant to ask you about unit test refactor bug - https://bugs.launchpad.net/tacker/+bug/157916705:55
openstackLaunchpad bug 1579167 in tacker "Refactor Tacker unit tests to remove neutron specific logic and device/servicevm extensions" [Low,In progress] - Assigned to Tin Lam (tl3438)05:55
* sridhar_ram face palm05:55
sridhar_ramgongysh: now, re-read my question :)05:56
sridhar_ramgongysh: I thought after your 3 patchset db rename u can help with this unit test cleanup / refactor05:57
gongyshsridhar_ram, sure05:58
sridhar_ramgongysh: gr8, thanks05:58
sridhar_ramgongysh: keep in mind, there is already some code from Tin & Trevor...u don't need to start from scratch05:59
gongyshsridhar_ram, sure, I will help to review06:00
gongyshsridhar_ram, In fact, I prefer to help, than to do myself.06:00
sridhar_ramgongysh: well I don't think original authors are actively working, but we can check..06:01
*** manikanta_ has joined #tacker06:01
*** manikanta_tadi has joined #tacker06:01
sridhar_ramgongysh: again, if there are low hanging area, we can knock them off first06:01
sridhar_ramgongysh: like this https://review.openstack.org/#/c/320546/06:02
sridhar_ramgongysh: thanks for ur help06:02
*** saju_m has joined #tacker06:03
gongyshsridhar_ram, after cleanup, we will enable the whole code testing06:05
sridhar_ramgongysh: yep06:06
*** tbh has joined #tacker06:07
*** saju_m has quit IRC06:12
*** vishwanathj has quit IRC06:15
*** vishwanathj has joined #tacker06:15
*** dkushwaha has joined #tacker06:47
jankilulei, ping07:14
*** mbound has joined #tacker07:31
vishwanathjgongysh hi07:38
gongyshvishwanathj, en07:44
vishwanathjgongysh your recommendation of passing from cli to api the CONF may break tests and other calls to get_engine().....is there not a way to import opts?07:46
gongyshvishwanathj, you can use default args, for example get_engine(conf=none)07:48
vishwanathjbut isnt importing the opts a better way though? ofcourse I do not know the mechanism of how to import them07:50
gongyshvishwanathj, ok, you can use: cfg.CONF.register_cli_opts(__db_opts, 'database')07:52
gongyshafter the line 40 in cli07:52
gongyshand then call it  cfg.CONF() after line 15107:53
vishwanathj_create_facade_lazily and get_session will also have to change in api.py, right?07:55
gongyshvishwanathj, with changes in cli, no change needed in api.py08:00
vishwanathjgongysh I see...so only change after line 151 change is needed?08:01
vishwanathjgongysh let me give it a try08:01
gongyshvishwanathj, change under 40 is also needed08:01
vishwanathjWhat about the existing CONF.register_cli_opts(_db_opts, 'database') already in L41....should we continue to keep that and move it to L4208:03
openstackgerritManikantha Srinivas Tadi proposed openstack/python-tackerclient: Add "Description" parameter while creating VNF with CLI.  https://review.openstack.org/33031808:04
openstackgerritManikantha Srinivas Tadi proposed openstack/python-tackerclient: Created nfvo directory for nfvo specific unit tests.  https://review.openstack.org/34593908:07
vishwanathjgongysh, do you mind putting this comment in the patchset so that I can copy and paste correctly without error...thanks08:07
*** tbh has quit IRC08:08
openstackgerritManikantha Srinivas Tadi proposed openstack/tacker: Store the right description of VNF given from Horizon/CLI.  https://review.openstack.org/33103908:10
vishwanathjgongysh please see snippet of changes that I made per my understanding of your suggestion and the error that I get at http://paste.openstack.org/show/554027/ ... looks like I maybe doing something wrong ... let me know what I am doing wrong...thanks08:16
openstackgerritManikantha Srinivas Tadi proposed openstack/python-tackerclient: Add "Description" parameter while creating VNF with CLI.  https://review.openstack.org/33031808:18
gongyshvishwanathj, can you push a patchset?08:25
gongyshor put your whole cli.py on paste08:25
*** vishwanathj_ has joined #tacker08:26
vishwanathjgongysh here is the link http://paste.openstack.org/show/554071/08:31
vishwanathjsee changes at L41 and L153 that you recommended (per my understanding)08:31
vishwanathjalso see the output at L180 to 184 when command 'tacker-db-manage purge_delete vnf' is executed08:33
gongyshvishwanathj, 153 is not there, after CONF()08:34
gongyshso it is at line 174 in your paste text.08:35
vishwanathjgongysh sorry...I did not get you ... is L153 wrong?08:36
gongyshvishwanathj, yes08:37
vishwanathjgongysh are you using this https://review.openstack.org/#/c/329652/14/tacker/db/migration/cli.py for reference08:37
vishwanathjIn the paste link, I see *cfg.CONF at L153...what should it be?08:39
vishwanathjcorrection -> *cfg.CONF()08:39
gongyshcfg.CONF() no '*'08:40
vishwanathjif I remove the * I get the error in L1 to 10 at http://paste.openstack.org/show/554073/08:42
*** mbound has quit IRC08:43
*** saju_m has joined #tacker08:45
gongyshvishwanathj, I am downloading your patchset, and have a try08:45
vishwanathj_Thanks08:46
*** saju_m has quit IRC08:52
*** dkushwaha has quit IRC08:58
*** saju_m has joined #tacker09:09
openstackgerritsajuptpm proposed openstack/tacker: doc change default vim registration via CLI  https://review.openstack.org/34309709:12
openstackgerritLu lei proposed openstack/python-tackerclient: Fix ImportError when Jenkins check gate-python-tackerclient-python34  https://review.openstack.org/35392409:17
openstackgerritgongysh proposed openstack/tacker: Support purge of soft-deleted resources from DB tables  https://review.openstack.org/32965209:19
gongyshvishwanathj, have a look at the new patchset.09:20
*** vishnoianil has quit IRC09:20
*** vishnoianil has joined #tacker09:23
openstackgerritManikantha Srinivas Tadi proposed openstack/tacker: 'Getting Started' doc change for name mandatory fix.  https://review.openstack.org/35393509:40
openstackgerritManikantha Srinivas Tadi proposed openstack/tacker: doc changes for name mandatory fix.  https://review.openstack.org/35393509:49
*** tbh has joined #tacker09:49
openstackgerritLu lei proposed openstack/python-tackerclient: Fix ImportError when Jenkins check gate-python-tackerclient-python34  https://review.openstack.org/35392410:25
*** mbound has joined #tacker10:33
*** amotoki has joined #tacker10:35
*** mbound has quit IRC10:38
*** amotoki has quit IRC10:40
*** gongysh has quit IRC11:01
*** saju_m has quit IRC11:02
*** vishwanathj_ has quit IRC11:06
*** KanagarajM has quit IRC12:09
*** gongysh has joined #tacker12:09
*** vishnoianil has quit IRC12:10
openstackgerritLu lei proposed openstack/python-tackerclient: Base OpenStackClient(OSC) plugin support  https://review.openstack.org/34812412:14
openstackgerritLu lei proposed openstack/tacker: Fix formats for doc's information  https://review.openstack.org/34128112:24
*** LamT_ has joined #tacker12:28
*** gongysh has quit IRC12:28
*** gongysh has joined #tacker12:35
*** gongysh has quit IRC12:41
*** bobh has joined #tacker12:57
*** KanagarajM has joined #tacker13:06
openstackgerritJanki Chhatbar proposed openstack/python-tackerclient: Creates details API to fetch VNF detials  https://review.openstack.org/35405713:10
*** bobh has quit IRC13:15
*** KanagarajM has quit IRC13:16
openstackgerritJanki Chhatbar proposed openstack/tacker: Add VNF resource details to get vnf API  https://review.openstack.org/34083813:19
openstackgerritJanki Chhatbar proposed openstack/python-tackerclient: Creates details API to fetch VNF detials  https://review.openstack.org/35405713:21
*** haiwei has quit IRC13:26
jankiHI, I am facing error in returning a value to client. Details at https://review.openstack.org/#/c/340838/. Any guidance would be appreciated13:28
*** KanagarajM has joined #tacker13:54
*** bobh has joined #tacker13:54
*** KanagarajM has quit IRC14:02
*** manikanta_tadi has quit IRC14:02
*** manikanta_ has quit IRC14:02
*** trozet has joined #tacker14:13
*** vishwanathj_ has joined #tacker14:26
*** uck has joined #tacker14:27
*** amotoki has joined #tacker14:31
*** LamT_ has quit IRC14:31
*** Vijayendra has quit IRC14:35
*** Vijayendra has joined #tacker14:35
openstackgerritJanki Chhatbar proposed openstack/tacker: Add VNF resource details to get vnf API  https://review.openstack.org/34083814:49
*** janki has quit IRC15:06
*** vishnoianil has joined #tacker15:09
*** uck has quit IRC15:21
*** prashantD_ has joined #tacker15:41
*** links has quit IRC15:43
*** lulei has quit IRC16:03
*** lulei has joined #tacker16:03
trozetsridhar_ram: ping?16:30
*** vishwanathj_ has quit IRC16:36
*** bobh has quit IRC16:58
*** s3wong has joined #tacker17:06
sridhar_ramtrozet: pong17:23
*** sripriya has joined #tacker17:27
trozetsridhar_ram: did you see my updates from last night?17:27
sridhar_ramtrozet: yeah, i saw that..17:28
sridhar_ramtrozet: looks like a good progress17:28
trozetsridhar_ram: yeah so i am also able to move the clear_tables back in the db clean, and now it works17:29
trozetsridhar_ram: since i removed the cyclic constraint17:29
sridhar_ramtrozet: cool...17:29
trozetsridhar_ram: the create_vnffg with abstract types unit test passes which is cool17:29
trozetsridhar_ram: I just need to add more unit tests, fix up the vim auth stuff, add the tosca parsing and I think it is ready17:30
sridhar_ramtrozet: can u recap the cyclic constraints? between which to table/attrs ? just for my understanding17:30
trozetsridhar_ram: it was like this:17:30
sridhar_rams/to/two/17:30
trozetnfp table --orm relationship---> sfc table17:30
trozetnfp had column, sfc.id17:31
trozetand sfc table had column nfp.id17:31
trozetso a double constraint17:31
sridhar_ramah.. got it17:31
trozettypically in the tacker code, the parent table (nfp) wouldn't have sfc_id, and would just use orm to query into it and find the id17:31
trozetand that is done in the make_dict functions17:32
trozetsridhar_ram: so i just switched to that method...it is just much more simple17:32
sridhar_ramtrozet: got it..17:32
trozetsridhar_ram: when do you think you will have some time to go through the whole patch?17:33
sridhar_ramtrozet: i'm prioritizing call client patches...17:33
sridhar_ramtrozet: i believe .. xu-haiwei doing the client for vnffg ..17:34
sridhar_ramtrozet: so my initial plan to look at ur RESTapi and haiwei's client code and sign that off first..17:34
sridhar_ramtrozet: i'll send some comments back by EOD tomorrow17:35
trozetsridhar_ram: i see, i wrote the client also before I knew he had already done part of it17:35
trozetsridhar_ram: so i can review his patch17:35
sridhar_ramtrozet: ah, yeah.. make sure it is something to ur liking :)17:35
*** tbh has quit IRC17:49
*** bobh has joined #tacker17:59
*** bobh has quit IRC18:03
*** amotoki has quit IRC18:15
openstackgerritSripriya Seetharam proposed openstack/tacker: Introduce uniqueness constraint on resource names  https://review.openstack.org/32975918:21
*** amotoki has joined #tacker18:22
*** vishnoianil has quit IRC18:30
*** bobh has joined #tacker18:35
openstackgerritvishwanath jayaraman proposed openstack/tacker: Adds event plugin for audit support  https://review.openstack.org/32610218:45
*** sripriya has quit IRC18:48
*** sripriya has joined #tacker18:58
*** vishnoianil has joined #tacker19:33
*** sripriya has quit IRC19:55
*** amotoki has quit IRC20:20
openstackgerritTim Rozet proposed openstack/tacker: [WIP] Implements VNFFG into NFVO  https://review.openstack.org/34452220:43
*** sripriya has joined #tacker20:45
*** bobh has quit IRC21:20
*** prashantD has joined #tacker21:24
*** prashantD_ has quit IRC21:26
*** bobh has joined #tacker21:33
*** bobh has quit IRC21:37
openstackgerritvishwanath jayaraman proposed openstack/tacker: Logs events for VIM, VNFD and VNF operations  https://review.openstack.org/34915321:38
*** sripriya has quit IRC21:43
*** prashantD_ has joined #tacker21:45
*** sripriya has joined #tacker21:48
*** prashantD has quit IRC21:48
*** danielraj has joined #tacker23:05
*** danielraj has quit IRC23:05
*** dkushwaha has joined #tacker23:08

Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!