Wednesday, 2013-11-27

*** rongze has quit IRC00:00
*** jcooley_ has joined #openstack-ironic00:01
*** jcooley_ has quit IRC00:06
*** epim has quit IRC00:07
*** matsuhashi has joined #openstack-ironic00:12
*** epim has joined #openstack-ironic00:19
dkehnNobodyCam: u around00:21
dkehnwhne running the generate_sample.py what env must be there for it to work, running ./tools/conf/generate_sample.sh00:24
dkehndevananda: ^^^^^00:25
dkehnthe error I'm seeing is RuntimeError: Unable to import module ironic.api.app00:26
dkehnok, nevermind I'm debugging it , no modeule named pecan00:32
NobodyCam:) hey dkehn00:55
NobodyCamdidn't see your question00:56
NobodyCamwoo hoo http://paste.openstack.org/show/eQ0aE48buiBznC5DbU2h/00:58
*** rloo has quit IRC01:16
*** nosnos has joined #openstack-ironic01:20
dkehnNobodyCam: nevermind, I'm adding a little better error message to indicate the actual lib that is missing01:25
NobodyCampip install /path/to/ironic/dir01:26
*** rongze has joined #openstack-ironic01:26
NobodyCamdkehn: also https://github.com/NoBodyCam/ironic-element01:27
NobodyCambbiab01:28
*** urulama has joined #openstack-ironic01:31
*** rongze has quit IRC01:31
*** sjing has joined #openstack-ironic01:31
openstackgerritA change was merged to openstack/ironic: Allow FakePower to return node objects power_state  https://review.openstack.org/5833301:32
*** matsuhashi has quit IRC01:34
*** urulama has quit IRC01:35
devanandadkehn: just create teh venv and then run it01:36
devanandadkehn: tox -e venv -- echo 'done'01:36
dkehndevananda: figured it out, added a bit of a finer granularity for the report of import error01:37
dkehndevananda: actually the module missing isn't in either the requirements.txt or the test-requirements.txt (pecan)01:38
*** arata has joined #openstack-ironic01:39
*** matsuhashi has joined #openstack-ironic01:51
devanandadkehn: what module is missing?02:04
devanandadkehn: and where are you getting the import error?02:05
dkehndevananda: pecan, qpid-python, eventlet.green.zmq02:05
devanandadkehn: requirements.txt:pecan>=0.2.002:05
devanandadkehn: requirements.txt:amqplib>=0.6.102:05
dkehndevananda: hmm, I ran the sudo pip install -r .... , something is up02:06
dkehnin my env02:06
devanandadkehn: what commands are you running // what is your environment?02:06
devanandadkehn: did you create the virtual env?02:06
dkehnno env really, letting the gnerate_sample.sh setup it02:06
devanandaeh?02:07
dkehnnope02:07
devanandagenerate_sample.sh doesn't create an environment02:07
devanandait requires a venv02:07
devanandadkehn: run this:02:08
dkehnhmm, interesting, I don't rement runing in a venv when generating for nova or neutron, maybe forgot02:08
devanandatox -evenv -- echo 'done'02:08
dkehngot it02:08
devanandasource .tox/venv/bin/activate02:08
devanandatools/conf/generate_sample.sh02:08
devanandadeactivate02:08
dkehnyes, this is new02:08
devanandayep :)02:08
devanandaironic is a new project. we did some things differently02:09
dkehngetting into a venv to gnerate02:09
dkehnok ok02:09
*** rongze has joined #openstack-ironic02:09
*** arata has quit IRC02:12
*** michchap has quit IRC02:18
dkehndevananda: here is my complete run: http://paste.openstack.org/show/54031/02:21
Haomengdkehn: this is odd02:24
Haomengdkehn: what is your os, redhat?02:24
Haomengdkehn: why qpid is used?02:24
dkehndevananda: this is a vm I've used for nova an neutron dev, maybe time for a fresh vm02:25
Haomengdkehn: by default, it should be rabbit02:25
dkehnHaomeng: ubuntu02:25
Haomengdkehn: ok, let me show you my steps, it works as well without any error message02:25
dkehnHaomeng: k02:25
devanandadkehn: yea, this is rather odd02:26
Haomengdkehn: you can follow this steps - http://docs.openstack.org/developer/ironic/dev/dev-quickstart.html02:26
devanandadkehn: do you have real config files in /etc/ ?02:26
dkehndevananda: yes02:27
Haomengdkehn: and suggest you create new folder to git clone again and have try these steps again02:27
devanandadkehn: also, if you are trying to actually test _using_ ironic with neutron, you probably want NobodyCam's disk-image-builder elements02:27
devanandadkehn: ok. so your global config files are probably (somehow) conflicting with Ironic. why are you trying to generate a new sample config anyway?02:28
dkehndevananda: actually I'm just trying to add the dhcp_option in the pxe.py which caused a cfg option so gnerally you need to re-generate the sample, and thats what I was trying to do02:28
devanandadkehn: instead of just using the existing sample config02:28
dkehndevananda: I think its worth generating a fresh vm for this02:29
devanandaah02:29
devanandadkehn: yea, if you're just doing some dev on ironic -- and you dont need to have neutron, nova, etc in teh same VM -- then a fresh VM is the way to go02:29
devanandadkehn: when you're ready to test with all those things too, use NobodyCam's dib elements. it'll build all that into an image for you :)02:30
dkehndevananda: yeah I was jsut using a dev vm that I used for a bunch of other stuff, my bad02:30
devanandadkehn: i'm really curious now what conflicted! (but dont need to take up your time digging into it)02:30
dkehndevananda: I think for the time being I'll create another vm, and get this in, then move on to the neutron part02:31
dkehnthanks all02:31
Haomengdkehn: welcome02:33
*** jbjohnso has quit IRC02:41
*** epim has quit IRC02:51
*** matsuhashi has quit IRC03:00
*** prekarat has joined #openstack-ironic03:12
*** dguitarbite has joined #openstack-ironic03:15
*** dguitarbite has quit IRC03:22
*** prekarat has quit IRC03:25
*** arata has joined #openstack-ironic03:27
*** urulama has joined #openstack-ironic03:32
*** urulama has quit IRC03:36
*** dguitarbite has joined #openstack-ironic03:38
*** vkozhukalov has joined #openstack-ironic03:55
*** arata has left #openstack-ironic03:57
*** prekarat has joined #openstack-ironic04:00
*** prekarat has quit IRC04:02
*** prekarat has joined #openstack-ironic04:04
*** mihgen has joined #openstack-ironic04:06
*** matsuhashi has joined #openstack-ironic04:23
*** jcooley_ has joined #openstack-ironic04:30
*** vkozhukalov has quit IRC04:42
*** rongze has quit IRC04:48
*** vkozhukalov has joined #openstack-ironic04:55
*** rongze has joined #openstack-ironic05:18
*** rongze has quit IRC05:27
*** michchap has joined #openstack-ironic05:34
*** sjing has quit IRC05:40
*** sjing has joined #openstack-ironic05:42
*** jcooley_ has quit IRC05:59
*** jcooley_ has joined #openstack-ironic05:59
openstackgerritJenkins proposed a change to openstack/ironic: Imported Translations from Transifex  https://review.openstack.org/5843806:00
*** jcooley_ has quit IRC06:05
zigoI have a problem with ironic-dbsync: http://paste.debian.net/67973/06:08
zigoWhat can I do to fix it? Is this known from you guys?06:08
*** vkozhukalov has quit IRC06:09
Haomengzigo: ok, let me check06:09
Haomengzigo: do you use latest code?06:10
zigoHaomeng: FYI, I'm packaging from 20131125 (2 days ago for me), commit sha256 e94e91858906:10
zigoHaomeng: I could get latest version from today if you think there was some fixes since...06:10
Haomengzigo: no, just think about if this is latest code issue or old issue06:11
Haomengzigo: can you help to check /usr/lib/python2.7/dist-packages/ironic/db/sqlalchemy/migrate_repo folder files06:12
zigoHaomeng: Are you in China (with this kind of name...)?06:12
Haomengzigo: yes, I am Chinese06:13
Haomengzigo: :)06:13
*** rongze has joined #openstack-ironic06:13
zigoHaomeng: 我在郑州! :)06:13
zigo(though I'm French...)06:13
Haomengzigo: looks like my IRC can not display Chinese chars06:13
zigoHaomeng: Which town are you in?06:13
Haomengzigo: welcome06:13
zigoI'm in Zhengzhou.06:14
Haomengzigo: In Beijing now, my hometown is JiLin06:14
Haomengzigo: great06:14
zigols  /usr/lib/python2.7/dist-packages/ironic/db/sqlalchemy/migrate_repo06:14
zigo__init__.py  __init__.pyc  manage.py  manage.pyc  versions06:14
Haomengzigo: looks like this is IMPL.db_sync issue06:14
Haomengcan not find IPMI in migrate_repo06:15
Haomengzigo: 2013-11-27 05:58:24.546 7943 TRACE ironic     return IMPL.db_sync(version=version)06:15
zigoRight.06:15
Haomengzigo: IMPL06:15
Haomengnot IPMI06:15
zigoYou've been typing too many times "IPMI" I guess... :P :D06:16
Haomengzigo: :)06:16
zigoSo, what's the fix, any idea?06:16
Haomengzigo: how about French?06:16
Haomengzigo: have to check code - "/usr/lib/python2.7/dist-packages/migrate/versioning/repository.py"06:16
Haomengzigo: exceptions.InvalidRepositoryError06:17
Haomengto see why this exception06:17
HaomengFile "/usr/lib/python2.7/dist-packages/migrate/versioning/repository.py", line 98, in verify06:17
zigoRight.06:17
Haomengzigo: these are not Ironic code06:18
zigoThat's sqlalchemy-migrate...06:19
Haomengzigo: it just checking Ironic File "/usr/lib/python2.7/dist-packages/migrate/versioning/repository.py", line 98, in verify06:19
zigoHaomeng: Is there a chance that you guys are testing with the latest version of that?06:19
Haomengzigo: checking migrate_repo06:19
zigoI mean, I'm still running with sqlalchemy-migrate 0.7.x, the package hasn't been updated to 0.8.x06:19
Haomengzigo: sure, let me have a try06:19
Haomengzigo: to see if it can be recrated and debug it06:20
zigoCool, thanks.06:20
zigoIt's on my todo list to upgrade python-migrate in Debian anyway, but it would be good to know if that's the problem (so we can effectively fix the requirements.txt of Ironic).06:20
devanandaHaomeng: it looks like https://review.openstack.org/#/c/53627/ just expired - you can revive the patch in the gerrit UI before submitting another revision06:20
Haomengdevananda: ok, thank you06:21
Haomengdevananda: so far, I still can not debug out the root cause of "why node.patch_json() isn't populating node.updated_at", maybe it is handled by conductor, but our unittest will mock conductor api I think06:22
devanandazigo: interesting error. what back end are you using (sqlite? mysql?)06:24
zigoMySQL06:24
devanandazigo: and things are configured with valid host, user, pass, etc in ironic.conf?06:24
devanandai would expect different error if not, but just asking anyway06:24
zigodevananda: Yup, it's been configured automatically by dbconfig-common in my package.06:25
devananda"in my package" -- please explain06:25
zigodevananda: I'm the Debian maintainer of OpenStack, I'm trying to package Ironic for Debian here! :)06:26
devanandaoooh!06:26
devanandahi! :)06:26
zigoWhen installing ironic-common, the database is created automatically, and connection = is set with the values configured by dbconfig-common.06:27
devanandazigo: yep yep. makes sense now.06:27
zigoBy the way, it'd be nice if you were using sql_connection rather than connection which only Keystone uses.06:27
zigo(but never mind, not important...)06:27
devanandaat least in my local copy, here's the relevant snippet06:28
devanandahttp://paste.debian.net/67975/06:28
Haomengzigo: I think the issue is that your db is not sync with your Repository06:28
Haomengdevananda: yes, it is this Repository06:29
Haomengdevananda:  InvalidRepositoryError06:29
devanandaHaomeng: it's really a PathNotFound error06:29
Haomengdevananda:  except exceptions.PathNotFoundError06:30
Haomengdevananda: yes06:30
*** nosnos_ has joined #openstack-ironic06:30
Haomengzigo: can you help to run "ls  /usr/lib/python2.7/dist-packages/ironic/db/sqlalchemy/migrate_repo/versions"06:31
devanandazigo: i'm hesitating asking why you're packaging Ironic for Debian when a) we're still in incubation, and b) I haven't officially tagged any releases yet06:31
devanandazigo: more out of curiousity about such things than anything -- i'm actually thrilled that you are looking at this :)06:31
Haomengzigo: yes, it is better that we use ubuntu06:31
Haomengzigo: we did not test with Debian I think06:32
devanandazigo: also, fwiw, Nova uses "connection="06:33
zigohttp://paste.debian.net/67976/ <--- Output of ls06:33
Haomengzigo: looks fine, the files are there as well06:33
zigodevananda: I would like to have both Ironic and TrippleO ready in time for the first Icehouse release (eg: icehouse-1).06:34
*** nosnos has quit IRC06:34
zigodevananda: There's no other ways but to do it *now* before the release happens.06:34
devanandazigo: gotcha. Ironic probably wont' be functional by then, FYI06:35
zigodevananda: For sure, both TrippleO and Ironic are the most interesting incubating projects right now as well...06:35
devanandaby functional I mean, you won't be able to configure nova with an "ironic" driver and say "nova boot ..." and have ironic do all the things06:35
devanandathat baremetal driver can do today06:35
zigodevananda: Doesn't mater, I intend to also do some continuous integration at some point, that'd be a nice way for you guys to test it out for real.06:35
devanandazigo: awesome06:35
devanandazigo: yea, i'm happy to get all the packaging and release stuff lined up earlier. we're aiming for I-2 feature parity06:36
devanandaso having this stuff squared now is great06:36
zigoYou mean parity with nova-baremetal?06:36
devanandayes06:36
zigoKewl! :)06:36
devanandaat a minimum, we should be able to drive deployments with PXE and all that06:37
Haomengzigo: what user you use to run ironic-dbsync06:38
Haomengzigo: not sure if there is permision issue06:38
zigoHaomeng: Root user.06:38
zigo(since that's from the postinst script)06:38
Haomengzigo: root is ok:)06:38
zigoI tried as root from the shell as well.06:38
Haomengzigo: can you help to run sql "select * from migrate_version" to check your db current versions06:40
Haomengzigo: mysql -uroot -pYOURPASSWORD06:40
zigoNop, mysql --defaults-file=/etc/mysql/debian.cnf ! :)06:41
Haomengzigo: then "use ironic"06:41
zigo# mysql --defaults-file=/etc/mysql/debian.cnf -D ironic -e "select * from migrate_version"06:41
zigoERROR 1049 (42000): Unknown database 'ironic'06:41
zigoWoops!06:41
zigoLet me check for that.06:42
zigoMaybe this was my bad...06:42
Haomengzigo:  grep sql_connec /etc/ironic/ironic.conf06:42
zigoAh no...06:42
Haomengzigo: if there is no such ironic06:42
Haomengzigo: database, have to create it before run ironic_dbsync06:42
Haomengzigo: no problem:)06:43
zigo# mysql --defaults-file=/etc/mysql/debian.cnf -D ironicdb -e "select * from migrate_version"06:43
zigoERROR 1146 (42S02) at line 1: Table 'ironicdb.migrate_version' doesn't exist06:43
devanandazigo: s/ironicdb/ironic/06:43
zigoHaomeng: It's "<packagename>db" by default with what I do...06:43
zigoironicdb is fine.06:43
devanandaahh06:43
zigoconnection = mysql://ironic-common:XXXXXX@localhost/ironicdb <--- What I have.06:44
Haomengzigo: ok, so db is fine06:45
Haomengzigo: based on code logic - http://paste.debian.net/67975/06:45
zigoWhat about it?06:46
Haomengzigo: 3 require_found call, not sure which one has exception06:46
Haomengzigo: can you debug with your env?06:46
devanandazigo: pip list | grep migrate06:46
zigoI can install pdb, yeah...06:46
zigoThough there's no such thing as any pip installed packages! :)06:46
zigo# dpkg -l python-migrate06:47
zigoii  python-migrate                    0.7.2-306:47
devanandaheh06:47
devanandaok. so that could be part of the issue06:47
zigoSo, I need a greater sqlalchemy-migrate?06:48
zigoI can try to package it and go back to you guys.06:48
Haomengzigo: add this line "import pdb;pdb.set_trace()" before  "/usr/lib/python2.7/dist-packages/migrate/versioning/repository.py" line 9306:48
devanandahttps://pypi.python.org/pypi/sqlalchemy-migrate06:48
devanandaits been bumped to 0.8.2 recently06:48
devanandawe merged some code, and are about to merge more, depending on that06:48
zigodevananda: Not in the requirements.txt at least!06:48
devanandaeg, https://review.openstack.org/#/c/56516/1106:49
zigoSo that's what's missing...06:49
zigoOk, let's stop here then, I'll try packaging python-imgrate 0.8.2, and let you know how it goes.06:49
devanandazigo: correct - not in requirements YET. the merged code shouldn't need it, but that patch does06:49
devanandawow06:51
Haomengstrange, my env is "sqlalchemy-migrate (0.7.2)", and run ironic_dbsync, no any issue:)06:51
Haomengood06:52
Haomengodd06:52
devanandazigo: so i've had 0.8.1 locally and just downgraded to 0.7.2, now it's rather unhappy. let me rebuild my venv and see if this is just an artefact, or if we somehow broke compat and didn't notice06:52
zigoOk.06:53
zigoI'm rather happy that this is the problem, it's easy to fix. Thanks for helping.06:54
zigoWill address the python-migrate package version issue.06:54
Haomengzigo: welcome06:54
devanandazigo: any time06:54
devanandazigo: sqlalchemy-migrate 0.7.2 also breaks terribly for me locally. that's a problem alright06:59
zigo:)07:00
*** matsuhashi has quit IRC07:05
*** matsuhashi has joined #openstack-ironic07:05
*** nosnos_ has quit IRC07:20
*** nosnos has joined #openstack-ironic07:21
*** urulama has joined #openstack-ironic07:23
*** prekarat has quit IRC07:54
*** matsuhashi has quit IRC08:01
*** matsuhashi has joined #openstack-ironic08:03
openstackgerritYuriy Zveryanskyy proposed a change to openstack/ironic: Allow clean reservation at update node  https://review.openstack.org/5554908:04
*** jistr has joined #openstack-ironic08:07
*** mihgen has quit IRC08:13
*** vkozhukalov has joined #openstack-ironic08:18
*** dguitarbite has quit IRC08:22
openstackgerritYuriy Zveryanskyy proposed a change to openstack/ironic: Allow clean reservation at update node  https://review.openstack.org/5554908:22
Haomengzigo: how about the progress, it working now?08:32
zigoHaomeng: Nop, doing something else right now.08:32
Haomengzigo: ok:)08:32
Haomengzigo: I just run devstack stack.sh and run ironic_dbsync with my ubuntu, no any migration issue08:34
Haomengzigo: so if it is diffcult to fix/workaround, suggest you run these with ubuntu:)08:34
Haomengzigo: I think we need to debug and find the root cause in your env08:35
zigoI'm maintaining packages in *debian*! :)08:35
openstackgerritYuriy Zveryanskyy proposed a change to openstack/ironic: Allow clean reservation at update node  https://review.openstack.org/5554908:35
Haomengzigo: ok, I can help you debug with your debian env if required:)08:38
Haomengzigo: will support you:)08:38
zigoHaomeng: Sorry, but I need to fix this production problem first.08:38
Haomengzigo: ok:)08:39
Haomengzigo: ping me if you need helping from me:)08:39
zigoThanks.08:40
*** ndipanov has joined #openstack-ironic08:41
*** sjing has quit IRC08:41
Haomengzigo: :)08:42
*** martyntaylor has joined #openstack-ironic08:42
*** mihgen has joined #openstack-ironic08:59
*** vkozhukalov has quit IRC09:02
*** jistr has quit IRC09:02
*** derekh has joined #openstack-ironic09:05
GheRiveromorning all09:05
HaomengGheRivero: morning:)09:08
*** romcheg has joined #openstack-ironic09:09
*** vkozhukalov has joined #openstack-ironic09:17
*** jistr has joined #openstack-ironic09:34
*** lucasagomes has joined #openstack-ironic09:37
openstackgerritLucas Alvares Gomes proposed a change to openstack/ironic: Add driver interfaces validation  https://review.openstack.org/5459309:51
*** matsuhashi has quit IRC09:51
*** ben_duyujie has joined #openstack-ironic09:52
*** matsuhas_ has joined #openstack-ironic09:55
*** max_lobur_afk is now known as max_lobur09:55
max_loburmorning Ironic =)09:55
openstackgerritA change was merged to openstack/ironic: Add tftp_server pattern in ironic.conf  https://review.openstack.org/5489110:00
*** matsuhas_ has quit IRC10:11
*** matsuhashi has joined #openstack-ironic10:11
*** rongze has quit IRC10:21
*** vkozhukalov has quit IRC10:24
*** rongze_ has joined #openstack-ironic10:31
*** vkozhukalov has joined #openstack-ironic10:36
openstackgerritMax Lobur proposed a change to openstack/ironic: Do not allow API to expose error stacktrace  https://review.openstack.org/5855811:05
*** rongze_ has quit IRC11:06
*** matsuhashi has quit IRC11:10
*** rongze has joined #openstack-ironic11:15
*** nosnos has quit IRC11:53
lucasagomeswhattaheck, idk if it's my enviroment or not: http://paste.openstack.org/show/54056/12:22
lucasagomesupdates works on the first request and then fail on the next12:23
lucasagomesand it keep going, work and the next fail12:23
lucasagomeshave someone seen this as well/12:28
lucasagomes?*12:28
*** romcheg has left #openstack-ironic12:36
*** lucasagomes is now known as lucas-hungry12:45
*** jistr is now known as jistr|eng12:49
*** jbjohnso has joined #openstack-ironic13:14
*** ben_duyujie has quit IRC13:19
openstackgerritMax Lobur proposed a change to openstack/ironic: Do not allow API to expose error stacktrace  https://review.openstack.org/5855813:40
*** jdob has joined #openstack-ironic13:40
*** romcheg has joined #openstack-ironic13:41
*** romcheg has left #openstack-ironic13:50
*** lucas-hungry is now known as lucasagomes13:58
*** lucas has joined #openstack-ironic13:59
lucasagomesmax_lobur, r u using devstack to build ur dev enviroment?14:02
lucasagomesu asked me yesterday to test the authentication14:03
lucasagomesit's alright14:03
lucasagomeshttp://paste.openstack.org/show/54062/14:03
lucasagomesI built my env again with the last devstack14:03
max_loburhi lucasagomes14:10
max_loburyes I'm using devstack14:10
max_loburbut didn't rebuild for a while14:10
max_loburOK, I'll try to find the reason in my env. TY!14:11
lucasagomesmight be that then :) my env was very old and problematic I built a new one now and things seems to be configured correctly14:11
max_loburhehe =)14:11
* lucasagomes still testing14:11
lucasagomesI let u know if I find out something odd14:11
max_loburyep, thanks14:11
max_loburlucasagomes, have you tried to build stable/havana using devstack? does it work?14:13
lucasagomesyou mean to test nova baremetal? because ironic doesn't have a havanna release14:14
lucasagomesbut anyway, I haven't14:14
max_loburyea, I mean every components from havana, and latest ironic14:15
max_loburOK, I think I'll try14:15
*** michchap has quit IRC14:15
lucasagomesright, no I haven't but would be good to give it a whirl14:15
lucasagomesmax_lobur, right, lemme know please14:15
max_loburk14:16
*** jdob has quit IRC14:20
*** jdob has joined #openstack-ironic14:20
*** jdob has quit IRC14:24
*** jdob has joined #openstack-ironic14:24
*** jistr|eng is now known as jistr14:32
*** jdob has quit IRC14:38
*** darrylms has joined #openstack-ironic14:40
*** jdob has joined #openstack-ironic14:52
openstackgerritLucas Alvares Gomes proposed a change to openstack/python-ironicclient: Add node-validate to cli  https://review.openstack.org/5878815:04
*** yuriyz has joined #openstack-ironic15:10
*** rloo has joined #openstack-ironic15:18
NobodyCamgood morning Ironic15:23
dkehnmorning15:23
rloomorning NobodyCam!15:23
NobodyCammorning dkehn rloo :)15:24
*** prekarat has joined #openstack-ironic15:27
yuriyzmorning Ironic15:28
NobodyCamlucasagomes: good morning yuriyz15:28
NobodyCamlucasagomes: you happend to be around15:29
lucasagomesNobodyCam, morning!15:29
lucasagomesyes15:29
NobodyCamgah15:29
lucasagomesthe validate stuff ^15:29
NobodyCamyuriyz: Morning15:29
NobodyCam:) question about https://github.com/openstack/ironic/blob/master/ironic/api/controllers/v1/utils.py#L50-L51 if you have a second15:29
NobodyCammorining lucasagomes too15:30
lucasagomesyes sure15:30
NobodyCamlucasagomes: if I pass http://paste.openstack.org/show/I7ChWj8lniAGkOFQcdpE/15:33
lucasagomesNobodyCam, https://review.openstack.org/#/c/56984/12/ironic/api/controllers/v1/types.py I use the wsattr from wsme to make the 'op' and 'path' fields mandatory and check if 'op' is one of the valid operations (add, remove, replace)15:33
NobodyCamthat check breaks15:33
lucasagomesNobodyCam, sounds like a bug then15:33
lucasagomesbut I think it's something that the update_node() function on the conductor is doing15:34
lucasagomeslemme check15:34
lucasagomesor it fails on the validation of the patch?15:34
lucasagomesif it fails on the patch validation it shouldn't15:34
*** urulama has quit IRC15:35
lucasagomesNobodyCam, https://github.com/openstack/ironic/blob/9bc8279fa5a2dfc129f3cf5d049896d00babd4ca/ironic/conductor/manager.py#L138-L14115:35
lucasagomessorry, https://github.com/openstack/ironic/blob/master/ironic/conductor/manager.py#L138-L14115:35
NobodyCamthe odd this is if i remove the / from /instance_uuid it passes that checj but then faie the regex15:38
NobodyCams/this/thing/15:39
*** vkozhukalov has quit IRC15:39
lucasagomeshmm can you send me the output?15:41
openstackgerritLucas Alvares Gomes proposed a change to openstack/ironic: Add driver interfaces validation  https://review.openstack.org/5459315:43
devanandamorning, all15:45
lucasagomesNobodyCam, might be something on the update_node method of the conductor15:46
lucasagomeshttp://paste.openstack.org/show/54071/15:46
lucasagomesdevananda, morning15:46
devanandafound something interesting last night15:46
devanandawe managed to break compat with sqla-migrate 0.7.215:46
NobodyCamgood morniong devananda15:46
devanandaeven though our requirements.txt says >= 0.7.215:46
lucasagomesdevananda, ouch15:47
NobodyCam:(15:47
devanandayea. so i need to fix up my sync-db-from-oslo patch and update req.txt15:47
lucasagomesI see15:48
*** jcooley_ has joined #openstack-ironic15:53
*** jistr has quit IRC16:03
*** michchap has joined #openstack-ironic16:08
devanandalucasagomes: also got feedback from the oslo team regarding my fix to lockutils in that patch16:09
devanandaso I'm going to test a different approach now16:09
NobodyCamlucasagomes: http://paste.openstack.org/show/LivqJwvo2G8X7qtLL2D5/ vs. http://paste.openstack.org/show/0ihoXWXdEviOuTnAuIMo/ (sorry big log file :-p)16:13
openstackgerritDevananda van der Veen proposed a change to openstack/ironic: Sync common.db.sqlalchemy changes from olso  https://review.openstack.org/5651616:15
openstackgerritMax Lobur proposed a change to openstack/ironic: Allow Pecan to use 'debuginfo' response field  https://review.openstack.org/5880716:15
devanandai'm not fond of changes this big ... but meh ...16:15
devanandamordred: what do you think of this change: https://review.openstack.org/#/c/56516/12/tox.ini16:15
devanandamordred: it's based on feedback from oslo team when I tried to undo some brokenness in their db/sqhalchemy/test_migrations.py code16:16
lucasagomesdevananda, I see, lemme take a look at ur oslo patch to understand the problem better16:23
lucasagomesNobodyCam, http://paste.openstack.org/show/54081/16:23
lucasagomesNobodyCam, I think that the problem with the first is because ur not sending a list of patches (ironic gets a list of patches)16:23
lucasagomese.g [{"path": "/instance_uuid", "value": "dcac1dd0-15ab-4873-9980-ca8c86fe1426", "op": "replace"}]16:23
lucasagomesalthough urgh it should work anyway16:25
NobodyCamlucasagomes: http://paste.openstack.org/show/7crgmisHnNkJwldrUU9Q/16:28
NobodyCamsorry grabbed the wrong one16:28
*** mihgen has quit IRC16:32
openstackgerritDevananda van der Veen proposed a change to openstack/ironic: Sync common.db.sqlalchemy changes from olso  https://review.openstack.org/5651616:37
max_loburlucasagomes, could you please take a look https://github.com/openstack/ironic/blob/master/ironic/tests/api/test_root.py#L3916:37
max_loburit seems we have outdated tests16:37
max_loburhow do you think do we need to keep it in sync with actual resources? or maybe it's enough to test some of them16:38
*** ndipanov is now known as ndipanov_gone16:41
max_loburI think if we want to keep it in sync we need to implement a check for extra resources, so anyone who adds new resource don't forget to update those test.. I can fix if needed16:41
lucasagomesmax_lobur, i see yea now we added the driver resources there and it's not being tested https://github.com/openstack/ironic/blob/master/ironic/api/controllers/v1/__init__.py#L114-L11716:42
max_loburyep, exactly16:42
lucasagomesyea just thikning hw it can be done, but having a check for that would be really great16:44
lucasagomescause it's so easy to forget to test it once u add more resources16:44
max_loburOK, I'll do, I have some ideas16:45
max_loburyea, the test should shout that it's not updated, instead of silently passing all the time =)16:45
lucasagomes:D right16:46
lucasagomesmaybe having a whitelist with all the fields that should be returned and it would complain if there's something extra there16:47
max_loburyes, something like this data.keys() will carry all the resources16:47
lucasagomesyup16:48
lucasagomesit also returns other things that are auto generated16:48
lucasagomeslinks for e.g16:48
max_loburhmm16:48
max_loburso need to distinguish resources from other stuff16:48
max_loburI'll take a look what we can16:49
max_loburin general - do we need to fill a bug for such work?16:50
devanandalucasagomes: right, so the fix suggested by oslo devs didn't work. I'm goign to hack this patch in half so we can fix the sqla-migrate issue16:50
lucasagomesmax_lobur, https://github.com/openstack/ironic/blob/master/ironic/api/controllers/v1/__init__.py#L55-L7116:50
devanandaafter i get coffee16:50
devananda:)16:50
lucasagomesdevananda, right I think that ben is a redhat guy maybe worth pinging him on IRC and check if he have more suggestions for that problem, his irc name is bnemec16:53
*** yuriyz has quit IRC16:54
max_loburlucasagomes, there are no drivers in __init__, is it OK?16:55
max_loburin V116:55
devanandalucasagomes: thanks16:56
lucasagomesmax_lobur, actually not we should have drivers there since it's a valid resource16:56
lucasagomesbut you can see that today it's very manual16:56
lucasagomesso to add a resource we need to modify the resource, that class and tests16:56
lucasagomesmodify the controller*16:57
max_loburI see why we need to modify V1 and test, but why controller?16:58
max_loburahh, you mean to add some new resource16:58
lucasagomesyea16:58
max_loburI see :)16:58
lucasagomesif we want to add some new resource we would need to modify all that pieces16:58
lucasagomeswhich hmm is not really ideal16:58
max_loburok, to fix that test we need also change V116:58
lucasagomesand 99,99% of chance that ur going to forget something16:58
lucasagomesyes, or the resource won't even appear to that test16:59
* lucasagomes thinking if we could somehow generate the v1 attributes on the fly16:59
max_loburV1 and controller in the same file17:00
max_loburit's easier to keep them in sync than update those test..17:00
max_lobur*easier to remember17:00
lucasagomesyea, maybe the v1.convert method should receive a list of resource names and generate the links for them on the fly17:02
lucasagomessince they r the same17:02
lucasagomesthere's a pattern there17:02
max_loburhttps://github.com/openstack/ironic/blob/master/ironic/api/controllers/v1/__init__.py#L79-L82 and what about this17:03
max_loburit's different:)17:04
openstackgerritDevananda van der Veen proposed a change to openstack/ironic: Update ironic.conf.sample  https://review.openstack.org/5864217:04
lucasagomesmax_lobur, ah, I mean links and media_types are not resources on the controller class17:05
lucasagomesbut if u look at chassis, nodes and ports they are the resources on the controller class and on the convert method of v1 they r generated the same way17:05
openstackgerritDevananda van der Veen proposed a change to openstack/ironic: Bump required version of sqlalchemy-migrate  https://review.openstack.org/5881617:06
openstackgerritDevananda van der Veen proposed a change to openstack/ironic: Sync some db changes from Oslo  https://review.openstack.org/5881717:06
devanandaok -- now I'm really going to get coffee!17:06
devanandabbi30m17:06
NobodyCamsure17:06
NobodyCamhehehe17:06
NobodyCam:-p17:06
*** prekarat has quit IRC17:09
max_loburlucasagomes, true17:09
max_loburthen it turns to be a good idea =)17:10
max_loburI'll take a look tomorrow17:10
max_loburI think it will be 2 patches - one to fix if for drivers, another for autogeneration17:11
max_lobur*fix it17:11
lucasagomes:D right, thanks for looking at it17:12
max_loburEveryone have a nice day =)17:12
lucasagomesmax_lobur, you too :) enjoy it17:12
NobodyCamyou too max_lobur :)17:12
*** max_lobur is now known as max_lobur_afk17:12
NobodyCamseems it is post bbt walkies time. brb17:13
NobodyCamwalkies done17:28
*** vkozhukalov has joined #openstack-ironic17:29
lucasagomes:D wb17:34
NobodyCam:)17:34
*** urulama has joined #openstack-ironic17:35
*** urulama has quit IRC17:40
dkehnNobodyCam: can you take a look http://paste.openstack.org/show/54088/17:41
* NobodyCam looks17:42
dkehnNobodyCam: thx17:43
NobodyCamwow thats kinda odd17:44
dkehnNobodyCam: this is a freash vm , non tainted17:44
dkehnNobodyCam:17:46
dkehn[#openstack-iron]17:46
dkehnNobodyCam: http://paste.openstack.org/show/54089/17:46
dkehnNobodyCam: at the bottom17:46
NobodyCamvery strange17:48
*** jcooley_ has quit IRC17:51
*** derekh has quit IRC17:53
devanandaback17:56
NobodyCamdevananda: http://paste.openstack.org/show/xMi256Gmt58s82cx2NHB/17:57
devanandaNobodyCam: see PM?17:59
*** romcheg1 has joined #openstack-ironic18:05
dkehnNobodyCam: what is expected as the Ubuntu version, if there is an expectation18:07
NobodyCamdkehn: I use dib to build so I use 13.04 I think18:08
dkehnNobodyCam: I'm guessing I'm using a 12.10, I'm building from a seed that I created18:10
openstackgerritDevananda van der Veen proposed a change to openstack/ironic: Update ironic.conf.sample  https://review.openstack.org/5864218:11
openstackgerritDevananda van der Veen proposed a change to openstack/ironic: Sync some db changes from Oslo  https://review.openstack.org/5881718:11
openstackgerritDevananda van der Veen proposed a change to openstack/ironic: Bump required version of sqlalchemy-migrate  https://review.openstack.org/5881618:11
devanandalucasagomes: ^18:11
lucasagomesdevananda, cool, thanks I know it was a nit thing but it's better to keep it consistent18:11
devanandalucasagomes: absolutely18:12
devanandawhole point of that patch was to make it consistent again, heh18:12
lucasagomesyup :D18:12
* devananda wonders if we should create a periodic jenkins job to call generate_sample.sh18:12
* lucasagomes thinks its a good idea18:13
*** romcheg1 has left #openstack-ironic18:15
*** martyntaylor has quit IRC18:19
devanandahttps://bugs.launchpad.net/ironic/+bug/125562118:21
lucasagomes:)18:29
lucasagomesok I'm done for the day18:32
lucasagomeshave a good night everyone18:32
lucasagomesah NobodyCam btw, tomorrow lets talk about the node.deploy() method that you need18:33
*** martyntaylor has joined #openstack-ironic18:33
lucasagomesNobodyCam, I added the validation on today to the ironic and the client lib (https://review.openstack.org/#/c/54593/ https://review.openstack.org/#/c/58788/) take a look if that works for u18:33
*** lucasagomes is now known as lucas-dinner18:34
NobodyCamwill do18:34
NobodyCamnight lucas-dinner18:34
openstackgerritA change was merged to openstack/ironic: Update ironic.conf.sample  https://review.openstack.org/5864218:41
openstackgerritA change was merged to openstack/ironic: Sync common.context changes from olso  https://review.openstack.org/5849018:43
openstackgerritA change was merged to openstack/ironic: Remove openstack.common.uuidutils  https://review.openstack.org/5849218:43
devanandamax_lobur_afk: going to update 58807 ?18:43
*** mihgen has joined #openstack-ironic19:05
*** jdob has quit IRC19:09
*** lucas-dinner has quit IRC19:17
*** jcooley_ has joined #openstack-ironic19:22
*** rloo has quit IRC19:25
*** epim has joined #openstack-ironic19:26
devanandaNobodyCam: consider the possibility of _not_ calling validate() before nova.driver.spawn()19:28
devanandaNobodyCam: could you catch an error, eg if the SSH credentails are wrong, and back out?19:28
NobodyCamand I was just going to +2 https://review.openstack.org/#/c/58788/19:30
*** rongze has quit IRC19:30
devanandaNobodyCam: that one shouldn't land until https://review.openstack.org/#/c/54593/19:30
NobodyCami know .. not +a19:31
devananda:)19:31
*** rongze has joined #openstack-ironic19:31
devanandaNobodyCam: i'm not sayng i dislike exposing /validate/19:31
devanandaNobodyCam: i actually think it's important -- see my comment on 5459319:31
devanandaNobodyCam: but i'm not sure it needs to be called before _every_single_spawn_19:32
NobodyCami kinda think we need both. validate to ensure the driver has everything it needs & and catch errors in the deploy19:34
devanandathat doesn't make sense to me19:34
devanandaif we're EAFP, then we dont need validate() in that code path19:34
NobodyCamie ssh with valid user / pass ... mid deploy the password changes19:34
devanandathere are a hundred other things that could go wrong mid-deploy, too, which we need to catch19:34
devanandaso handling deploy failures => we need to19:35
devanandai think validate() is useful for the cloud admin to be able to ensure he's enrolled things correctly19:35
NobodyCamyes... validate , I thought, was like I'm ready to try a deploy.19:35
devanandaeg, admin creates a bunch of nodes and populates all the data. how does he actually know the passwords are correct? -- he should validate()19:35
NobodyCamnot i can deploy19:36
devanandaright19:36
NobodyCambut I think it should be with every deploy19:36
devanandaso i guess, i'm saying, if the nova scheduler has selected a node for a deployment,w e should assume it's already "ready"19:36
*** rongze has quit IRC19:36
devananda++19:36
devanandaer, ignore the ++19:36
NobodyCamlol19:37
NobodyCamahh ok so the validate logic is in get_available_nodes19:39
NobodyCamso only nodes that "are ready to attempt to deploy" are presented to nova19:41
openstackgerritA change was merged to openstack/ironic: Bump required version of sqlalchemy-migrate  https://review.openstack.org/5881619:42
openstackgerritA change was merged to openstack/ironic: Import uuidutils unit tests from oslo  https://review.openstack.org/5857219:42
*** jcooley_ has quit IRC19:49
*** urulama has joined #openstack-ironic19:51
devanandalifeless: if you've got time for another review, i'd liek your eyes on https://review.openstack.org/#/c/58607/19:55
*** jcooley_ has joined #openstack-ironic19:58
*** rongze has joined #openstack-ironic20:01
openstackgerritDevananda van der Veen proposed a change to openstack/ironic: Implement consistent hashing common methods  https://review.openstack.org/5860720:03
* NobodyCam gets some lunch.. brb20:05
*** rongze has quit IRC20:06
*** jcooley_ has quit IRC20:07
*** mihgen has quit IRC20:08
openstackgerritDevananda van der Veen proposed a change to openstack/ironic: Add conductor_heartbeat_interval option  https://review.openstack.org/5885120:21
*** vkozhukalov has quit IRC20:23
*** jcooley_ has joined #openstack-ironic20:23
*** mihgen has joined #openstack-ironic20:25
openstackgerritDevananda van der Veen proposed a change to openstack/ironic: Implement consistent hashing common methods  https://review.openstack.org/5860720:30
*** rongze has joined #openstack-ironic20:31
devanandalifeless, NobodyCam -- i think I just realized the hash_ring needs to be in ironic/common, because it's going to be used byu the API service as well20:34
devanandaso that API knows where to route RPC messages to20:34
lifelessdevananda: yes20:35
*** urulama has quit IRC20:36
devanandamoved20:38
devanandawow, git review is being slow20:38
openstackgerritDevananda van der Veen proposed a change to openstack/ironic: Implement consistent hashing common methods  https://review.openstack.org/5860720:38
lifelessdevananda: https://review.openstack.org/#/c/57829/20:39
lifelessdevananda: this is getting long in the tooth, wonder if you can eyeball it20:39
devanandalifeless: https://review.openstack.org/#/c/53627/20:40
*** rongze has quit IRC20:40
devanandais the parent patch20:40
devanandaactually, nvm, it's not20:40
devananda57829 is just unit tests. the commit message is a bit misleading20:40
devanandalifeless: copyright header is optional, not required by openstack, AFAIK20:42
devanandalifeless: our employer requires it, but not all do20:42
lifelessdevananda: I had a chat with infra about this20:43
devanandaoh?20:43
devanandalifeless: https://wiki.openstack.org/wiki/LegalIssuesFAQ#Copyright_Headers20:43
lifelessearly this week I asked in -infra20:44
lifelessit's not mandatory to have a copyright claim, but it is strongly encouraged20:45
lifelessdevananda: anyhow, that patch I pointed you at is ready to go AFAICT20:49
lifelessdevananda: it just seemed to have no other cores reviewing it20:50
devanandathanks. those fields aren't actually present in the API return yet20:52
devanandaso it wasn't pressing20:52
devanandait looks like they have already beena dded to the client, actually20:52
devanandawhich is odd20:52
devanandayay for no tempest tests20:53
*** rwsu has quit IRC20:57
openstackgerritA change was merged to openstack/python-ironicclient: Enable created_at/updated_at for port-show/chassis-show  https://review.openstack.org/5782921:22
*** rongze has joined #openstack-ironic21:34
openstackgerritDevananda van der Veen proposed a change to openstack/ironic: Add conductor_heartbeat_interval option  https://review.openstack.org/5885121:35
openstackgerritDevananda van der Veen proposed a change to openstack/ironic: Implement sync_power_state periodic task  https://review.openstack.org/5653021:35
*** mihgen has quit IRC21:36
*** rongze has quit IRC21:39
*** jbjohnso has quit IRC22:04
*** jcooley_ has quit IRC22:06
openstackgerritA change was merged to openstack/ironic: Implement consistent hashing common methods  https://review.openstack.org/5860722:27
*** michchap has quit IRC22:30
*** rloo has joined #openstack-ironic22:31
*** michchap has joined #openstack-ironic22:33
*** rongze has joined #openstack-ironic22:35
*** rongze has quit IRC22:39
* NobodyCam goes for quick afternoon walkies.... brb22:43
rloodevananda, yt?22:44
rloodevananda, scratch that ^^, no need to talk to you. I commented on the review instead.22:52
devanandarloo: hi22:54
devanandarloo: i see your comment. not sure, tbh22:54
rloodevananda: it was a tuple in one of your earlier patches, and I don't see how it could have changed to a list :-)22:55
devanandarloo: i think that was a mistake :)22:59
devanandarloo: http://docs.sqlalchemy.org/en/latest/orm/query.html#sqlalchemy.orm.query.Query.all22:59
devanandaReturn the results represented by this Query as a list22:59
devanandalast line of our _paginate_query --> return query.all()22:59
rloois that the outside list or the inside list? sorry, need to bring up the code.23:00
devanandarloo: the return from get_nodeinfo_list is a list23:00
devanandaah23:00
devanandaso the question is, does that list contain tuples or lists23:00
NobodyCamand back23:01
rloodevananda: yes, sorry, I guess I wasn't clear.23:02
devanandarloo: no, you were. i'm being obtuse :)23:05
rloodevananda. you're probably just wishing for the Thanksgiving holiday to begin! I can barely review this any more, can't imagine it being easy to do revision after revision.23:05
devanandarloo: actually i'm working on the conductor's consistent hash methods23:06
devanandarloo: and this patch is a dependency :p23:06
NobodyCamrloo: ++ for Thanksgiving holiday to begin!23:06
NobodyCamheehhe23:07
devanandaalso, that :)23:07
rloodevananda: ahh. well, seems pretty close to having the patch finished!23:07
rlooNobodyCam. You put aside the xmas holiday cheer for a few days, eh?23:07
NobodyCamlol nope.. still have xmass music and egg nog23:08
*** max_lobur_afk has quit IRC23:08
*** max_lobur_afk has joined #openstack-ironic23:09
devanandarloo: tested in python CLI -- the result is a list of tuples23:09
rloodevananda: good!23:10
*** jcooley_ has joined #openstack-ironic23:14
openstackgerritDevananda van der Veen proposed a change to openstack/ironic: Implement sync_power_state periodic task  https://review.openstack.org/5653023:16
devanandarloo: ^ :)23:16
rloothx devananda!23:18
devanandarloo: thank you for catching that :)23:18
rloodevananda. yw! I'm not even going to look, I'm just going to +1 it. Argh, guess I ought to quickly look...23:19
devananda:p23:19
rloodevananda: nicely worded :-). have a great holiday. I'll 'talk' to you all next week!23:21
*** jcooley_ has quit IRC23:21
*** rloo has left #openstack-ironic23:21
devanandayou too!23:26
*** jbjohnso has joined #openstack-ironic23:34
*** rongze has joined #openstack-ironic23:36
*** rongze has quit IRC23:40

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