| Posted | Nick | Remark | |
|---|---|---|---|
| #openstack-nova - 2017-07-24 | |||
| 15:12:59 | s-dean | they exist | |
| 15:13:07 | jangutter | sean-k-mooney: thanks, I and that clears up the other questions I also had. I had wondered why there seemed to be two sets of tests in test_vif.py | |
| 15:13:11 | mriedem | or whatever you called it, but it would be defined by the [api_database]connection url in nova.conf | |
| 15:13:13 | openstackgerrit | Takashi NATSUME proposed openstack/nova master: Enable cold migration with target host(2/2) https://review.openstack.org/408964 | |
| 15:13:26 | mriedem | s-dean: how do the cell_mappings entries exist if you don't have a nova_api db? | |
| 15:13:33 | mriedem | oh you said you have it | |
| 15:13:34 | stvnoyes | mriedem good morning Matt, when you get some time, please take a look at the updated cinder v3 migrate review. thanks. - https://review.openstack.org/#/c/463987/ | |
| 15:13:37 | openstackgerrit | Takashi NATSUME proposed openstack/nova master: api-ref: Add parameters in cold migrate action https://review.openstack.org/410042 | |
| 15:13:49 | mriedem | s-dean: is [api_database]connection set in nova.conf when running nova-manage db sync? | |
| 15:13:54 | s-dean | I have created it, Is this a potential bug | |
| 15:14:13 | s-dean | yes my connection string is correct | |
| 15:14:40 | mriedem | s-dean: just to be clear, so you have both [database]/connection and [api_database]/connection set in nova.conf? | |
| 15:14:44 | mriedem | and they are different values, yes? | |
| 15:14:45 | s-dean | yes | |
| 15:14:48 | s-dean | yes | |
| 15:15:08 | s-dean | one for nova_api | |
| 15:15:10 | mriedem | ok, and you ran nova-manage api_db sync ? | |
| 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 | I have run Step 3,4,5,6 at step 6 following error | |
| 15:17:06 | s-dean | ERROR: could not access cell mapping database - has api db been created? | |
| 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 | mriedem | there are 3 dbs involved | |
| 15:18:45 | s-dean | yeah | |
| 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 | s-dean | fresh install | |
| 15:29:27 | mriedem | https://launchpad.net/bugs/1673613 | |
| 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 | 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:49 | mriedem | https://bugs.launchpad.net/nova/ | |
| 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 | |