Earlier  
Posted Nick Remark
#openstack-nova - 2017-07-24
15:15:15 s-dean and on for nova db
15:15:19 s-dean yes
15:15:28 sean-k-mooney jangutter: i think its a legacy thing. but generally when writhing unit test you should mock any fuction call to other modules in the current project and test only how the output of the fuction is used and test the internals of that fuction in a seperate test in that modules test file
15:15:43 mriedem did you run nova-manage cell_v2 map_cell0
15:16:26 openstackgerrit Gábor Antal proposed openstack/nova master: Transform HostAPI-set_enabled notifications https://review.openstack.org/482622
15:16:27 sean-k-mooney jangutter: but in all cases the convention of the file you are extending take presedence over teh convetions of the project as a whole though one would hope they more or less agree
15:16:36 mriedem stephenfin: fyi, docs theme is jacked here https://docs.openstack.org/nova/latest/cells.html
15:17:06 s-dean ERROR: could not access cell mapping database - has api db been created?
15:17:06 s-dean I have run Step 3,4,5,6 at step 6 following error
15:17:19 jangutter sean-k-mooney: yep. No joke "writhing unit test" is pretty accurate.
15:17:53 mriedem s-dean: steps in which doc? the install guide?
15:17:59 s-dean ubuntu 16.04
15:18:12 s-dean ocata install guide
15:18:40 mriedem s-dean: so you have a nova_cell0 database as well?
15:18:45 s-dean yeah
15:18:45 mriedem there are 3 dbs involved
15:18:47 mriedem ok
15:18:50 s-dean nova_api
15:18:52 s-dean nova
15:18:58 s-dean _cell0
15:19:24 s-dean nova_cell0
15:19:35 mriedem ok and the cell_mappings.database_connection url for the cell_0 entry in the nova_api database is correct?
15:19:36 s-dean all exist
15:19:38 knikolla o/ is the rbd information for the ephemeral disks only in the nova,ceph.conf files? We've changed monitor IPs but old VMs still have the old information with old IPs.
15:20:06 s-dean i shall check
15:21:20 s-dean transport url for cell1 exists, cell0 has the following none:///
15:21:33 mriedem for the database_connection/
15:21:34 mriedem ?
15:21:41 s-dean no
15:21:55 s-dean database connection on both cell0 and cell1 are the same
15:22:09 mriedem except one should point at cell0 and one should point at cell1
15:22:18 mriedem well, the cell0 mapping should point at the nova_cell0 db,
15:22:25 mriedem and the cell1 mapping should point at the nova db
15:23:08 s-dean mysql+pymysql://nova:mypassword@my_ip/nova?charset=utf8&ssl_ca=/etc/nova/tls/mysql/ca-cert.pem&ssl_cert=/etc/nova/tls/mysql/server-cert.pem&ssl_key=/etc/nova/tls/mysql/server-key.pemnova_cell0
15:23:27 s-dean is this the issue > nova_cell0
15:23:39 s-dean is this the issue > server-key.pemnova_cell
15:23:45 sdague mriedem / dansmith - is there a new timing issue where GET right after POST is going to 404 - https://bugs.launchpad.net/nova/+bug/1682423 ?
15:23:46 openstack Launchpad bug 1682423 in OpenStack Compute (nova) "create instance with dashbaord / 404 returned" [Undecided,New]
15:24:48 mriedem s-dean: i think the issue is that's pointing at the nova db
15:24:52 mriedem nova?
15:25:02 mriedem i think that should be nova_cell0?
15:25:14 s-dean why is it on the end of the connection string ?
15:25:20 dansmith sdague: in ocata?
15:25:37 mriedem s-dean: my guess is a string substitution bug in map_cell0
15:25:45 mriedem s-dean: do you have the latest stable/ocata code? or 15.0.0?
15:25:55 s-dean from the cloud archive
15:25:56 sdague dansmith: yeh, I was wondering if the cells v2 transition opens up a window there
15:26:10 dansmith sdague: it's not supposed to, no
15:26:27 dansmith if it was master just now I'd suspect some quota thing
15:26:39 openstackgerrit Takashi NATSUME proposed openstack/nova master: Stop using mox stubs in test_console_auth_tokens.py https://review.openstack.org/477374
15:27:02 mriedem s-dean: what's the version of nova?
15:27:08 s-dean to seconds
15:27:10 s-dean two
15:27:42 s-dean nova-api | 2:13.0.0-0ubuntu2
15:27:51 mriedem s-dean: whoa that's mitaka
15:27:57 mriedem ocata is 15.0.0
15:28:13 s-dean wait
15:28:14 s-dean sorry
15:28:15 s-dean nova-api | 2:15.0.5-0ubuntu1~cloud0
15:28:45 mriedem ok that's better
15:29:19 mriedem s-dean: did you run map_cell0 with 15.0.5 or earlier?
15:29:21 mriedem because https://docs.openstack.org/releasenotes/nova/ocata.html
15:29:27 mriedem https://launchpad.net/bugs/1673613
15:29:27 s-dean fresh install
15:29:28 openstack Launchpad bug 1673613 in OpenStack Compute (nova) ocata "Special characters are not allowed in connection string" [High,Fix committed] - Assigned to Matt Riedemann (mriedem)
15:30:09 mriedem if your an map_cell0 at 15.0.5 then my guess is the ssl stuff in the url got messed up and put nova_cell0 at the end of the URL
15:30:14 mriedem *if you ran
15:30:16 s-dean ok
15:30:21 s-dean that makes more sense
15:30:43 s-dean I've been scratching my head over this for over a week
15:31:01 s-dean im required to implement TLS throughout openstack
15:31:39 mriedem s-dean: ok can you file a bug?
15:31:43 s-dean of course
15:31:47 s-dean happy to help
15:31:49 mriedem https://bugs.launchpad.net/nova/
15:31:49 openstackgerrit Matt Riedemann proposed openstack/nova master: Provide hints when nova-manage db sync fails to sync cell0 https://review.openstack.org/486660
15:31:50 mriedem thanks
15:31:54 mriedem s-dean: also ^
15:31:58 mriedem should help with that crappy error message
15:32:39 s-dean ok in the mean time to get this fixed, can i just modify the database_connection string,
15:33:21 s-dean do both cell0 and cell1 need to point at the nova_cell0 ?
15:33:53 mriedem s-dean: you can modify the db yes, but cell0 points at nova_cell0
15:33:59 mriedem and cell1 points at the 'nova' db
15:34:03 s-dean ok perfect
15:34:07 mriedem cell1 is where your compute services and instances live
15:34:08 openstackgerrit Merged openstack/nova master: Update policy description for 'instance_actions' https://review.openstack.org/484609
15:34:10 mriedem bdm table, etc
15:34:16 s-dean i will file a big report thank you so much for your help
15:34:26 s-dean much appreciated
15:34:35 mriedem yw, just ping me here with the bug number later, i'll be afk for awhile - sorry for the headache here
15:34:51 openstackgerrit Matt Riedemann proposed openstack/python-novaclient master: Microversion 2.53 - services and hypervisors using UUIDs https://review.openstack.org/485435
15:34:52 s-dean will do, take care
15:42:17 ildikov mriedem: hi
15:42:35 ildikov mriedem: so I did some polishing with the tests and I have one single functional test failing
15:42:54 ildikov mriedem: I cannot figure out whether what I do is a completely bad idea or I'm just missing some small thing
15:43:19 ildikov mriedem: ping me if you have a few seconds or just give it a review when you can and then I'll fix things up as you say
15:43:24 ildikov mriedem: either works
15:43:30 ildikov mriedem: thanks in advance
15:44:47 claudiub moshele: eh, it didn't work to whitelist by devname, since the implementation for devname is linux-specific. :)
15:45:13 moshele claudiub: so just add windows support

Earlier   Later