Earlier  
Posted Nick Remark
#openstack-nova - 2019-06-18
21:56:38 sean-k-mooney so i was just comparing what i changed to determin what could have broken it and then noticed i changed the ordering and asked if it was imporant
22:05:27 sean-k-mooney anyway ill see if i can repoduce the same issue without reordering the filters as a sperate test.
22:06:54 sean-k-mooney the test code and filters seam to be working slightly differently then i thought from first reading
22:36:15 openstackgerrit melanie witt proposed openstack/nova-specs master: Propose showing server status UNKNOWN when host status UNKNOWN https://review.opendev.org/666181
22:58:32 openstackgerrit Sundar Nadathur proposed openstack/nova-specs master: Nova Cyborg interaction specification. https://review.opendev.org/603955
23:06:31 sean-k-mooney dansmith: on i figured out what was confusing me
23:06:44 sean-k-mooney the fitler will work in any order
23:07:12 sean-k-mooney the mock data we are generating in the unit test is not order indepent
23:09:49 sean-k-mooney i missed the fact that if you set the side_effect to an iterable then each time the mocked fucntion is called it will return the next item form that iterable so the results i was seing make sense again.
23:10:32 dansmith this is why I said I'm not aware of any dependencies currently, and that the test expecting that the code runs in a specific order is, you know, pretty common and not a problem to me
23:10:34 dansmith anyway, I gotta run
23:21:32 openstackgerrit Merged openstack/nova master: Validate requested host/node during servers create https://review.opendev.org/661237
23:21:44 openstackgerrit Merged openstack/nova master: docs: Remove references to nova-consoleauth https://review.opendev.org/652965
23:21:53 openstackgerrit Merged openstack/nova master: tests: Stop starting consoleauth in functional tests https://review.opendev.org/652966
#openstack-nova - 2019-06-19
00:43:24 openstackgerrit Brin Zhang proposed openstack/python-novaclient master: Microversion 2.74: Support Specifying AZ to unshelve https://review.opendev.org/665136
01:45:35 openstackgerrit Merged openstack/nova master: Log quota legacy method warning only if counting from placement https://review.opendev.org/665765
01:52:36 openstackgerrit Fan Zhang proposed openstack/nova master: Log disk transfer stats in live migration monitor. https://review.opendev.org/619395
02:04:25 openstackgerrit Fan Zhang proposed openstack/nova master: Retry after hitting libvirt error VIR_ERR_OPERATION_INVALID in live migration. https://review.opendev.org/612272
02:35:21 openstackgerrit Takashi NATSUME proposed openstack/python-novaclient master: Fix duplicate object description error https://review.opendev.org/666203
02:52:50 openstackgerrit Takashi NATSUME proposed openstack/nova master: Add a live migration regression test https://review.opendev.org/641200
03:21:26 openstackgerrit Merged openstack/nova master: Clean up NumInstancesFilter related docs https://review.opendev.org/665768
04:47:18 openstackgerrit Takashi NATSUME proposed openstack/python-novaclient master: Add irrelevant files in dsvm job https://review.opendev.org/666217
05:16:30 openstackgerrit Madhuri Kumari proposed openstack/nova master: Replace deprecated with_lockmode with with_for_update https://review.opendev.org/666221
05:55:19 openstackgerrit melanie witt proposed openstack/nova-specs master: Propose showing server status UNKNOWN when host status UNKNOWN https://review.opendev.org/666181
06:30:10 amotoki gmann: hi
06:30:21 gmann amotoki: hi
06:30:34 amotoki gmann: there is a discussion on exceptions from novaclient in a horizon review https://review.opendev.org/#/c/661526/
06:30:59 amotoki gmann: we are struggling on how to catch a specific exception from nova API and/or novaclient.
06:31:19 amotoki gmann: some suggestion would be appreciated.
06:32:14 amotoki gmann: in case of neutron, neutron returns an exception type in a response body and neutronclient decodes it, so consumers of neutronclient python binding can catch a specific error.
06:34:27 gmann checking
06:34:47 amotoki gmann: thanks. no need to rush :)
06:49:29 gmann amotoki: BadRequest is not generic error. I mean nova API convert the various related exception to HTTP Exception and then raise
06:49:32 gmann like - https://opendev.org/openstack/nova/src/branch/master/nova/api/openstack/compute/volumes.py#L354
06:50:23 gmann HTTPBadRequest can occur due to multiple reason and their details are in error message
06:52:54 gmann amotoki: Horizon showing the error message which include the error details for example: "invalid volume id is request" not enough ? or you want to prepare some addition helpful error msg ?
06:54:00 gmann novaclient also decode them into ClientException - https://github.com/openstack/python-novaclient/blob/003ac57d9af74aa4658a7bf6cc6b6b3bafa58c11/novaclient/exceptions.py#L249
06:56:44 amotoki gmann: thanks for checking. The horizon patch I mentioned above is to try to show a message from nova API as-is instead of showing a generic message "Unable to attach volume".
06:57:29 openstackgerrit Takashi NATSUME proposed openstack/python-novaclient master: Add irrelevant files in dsvm job https://review.opendev.org/666217
06:57:52 amotoki gmann: it is generally a thing avoided in horizon (as messages cannot be translated and sometimes they are not friendly to GUI users) but we don't have a good idea for this case.
06:58:19 gmann amotoki: i see your point.
06:58:24 amotoki gmann: my initial question is whether we can assume BadRequest only for that case.
06:58:55 amotoki gmann: for example, I wonder BadRequest can be raised for input validation or something others.
06:59:23 gmann amotoki: it is hard to say, there can be various other error can be raised by Nova which is API specific and many times we do add/improve the exception
07:00:13 gmann amotoki: how about putting else only in case of 500 error code. ex.htttp_status == 500
07:01:02 gmann and for rest all, horizon can use the ex.msg as it is. which is much reliable because nova API prepare that error msg explicitly.
07:01:19 amotoki gmann: in a best case, we can catch a specific exception and show an appropriate message by horizon.....
07:01:48 amotoki gmann: for example, horizon tries to hide UUID but most API messages include UUID :-(
07:02:01 gmann 2nd option is: include all possible exception per APIs which you can get info from API ref
07:02:48 gmann amotoki: yeah so you can do that. but in that case you need to decode the error message. because error message include the details of "why it is BadRequest"
07:04:28 gmann amotoki: does neutron client hide such info ? or horizon does ?
07:04:33 amotoki gmann: yeah, that's the dilemma.... if English is the only language it would be much much simpler
07:04:53 gmann yeah. it depends on locale
07:05:10 amotoki gmann: this is neutronclient code https://opendev.org/openstack/python-neutronclient/src/branch/master/neutronclient/v2_0/client.py#L65-L73
07:06:33 amotoki gmann: 'type' contains an exception name in neutron server and if a specific exception is defined in https://opendev.org/openstack/python-neutronclient/src/branch/master/neutronclient/common/exceptions.py#L136 neutronclient raises a corresponding exception to callers.
07:06:44 gmann amotoki: so it does include the complete 'error_message' send from neutron API correct ?
07:07:47 gmann amotoki: novaclient does the same - https://opendev.org/openstack/python-novaclient/src/branch/master/novaclient/exceptions.py#L249-L276
07:08:16 amotoki gmann: yes, the general format of an exception message is like: {"type": "fooException", "message": "...."}
07:08:37 amotoki gmann: we add new entries to neutronclient/common/exceptions.py per request from consumers.
07:09:36 amotoki but in this case it looks better to concatenate (translatable) "Unable to attach volume" with a message from nova API.
07:09:50 gmann amotoki: yeah, nova has only high level exception only not so rich like neutronclient
07:10:02 amotoki what I think is to catch exceptions related to multi-attach and send a specific error message.
07:10:26 amotoki so I wonder there is a way to distinguish multi-attached related exceptions from otherr BadRequest.
07:10:39 gmann amotoki: hummm. that is good idea. I am just wondering how many such Client exception we need to add in nova case
07:10:42 amotoki but it looks not easy now.
07:11:08 gmann attach volume has only 5-6 exception which is not so hard
07:12:02 gmann but see the server boot exceptions - https://opendev.org/openstack/nova/src/branch/master/nova/api/openstack/compute/servers.py#L695-L763
07:12:36 amotoki yeah I know it
07:13:15 gmann is it too bad to show UUID in horizon? i mean horizon will be showing it to owner or admin only
07:13:45 gmann or you find nova exception error message include more details which can cause security issue
07:15:54 amotoki in the current impl of horizon, if UUID is shown to users, they sometimes need to fallback into CLI.
07:16:37 amotoki I don't think it can be a security issue. it is just an usability topic.
07:16:47 gmann yeah
07:16:54 amotoki UUID is shown only in the detail page in most cases.
07:22:18 gmann amotoki: i replied to either include all possible exception or check case of 500.
07:22:41 amotoki gmann: thanks.
07:22:46 amotoki gmann: http://specs.openstack.org/openstack/api-sig/guidelines/errors.html might be a candidate (though I don't think it is implemented)
07:23:26 amotoki gmann: neutron API does similar thing in a different way https://opendev.org/openstack/neutron/src/branch/master/neutron/api/api_common.py#L512-L524
07:23:47 amotoki gmann: anyway thanks for the discussion. really appreciated.
07:28:54 gmann amotoki: yeah standard error format is the missing part. NovaException does not provide scuh better way like neutron does. we have only 'code' and 'message'.
07:31:29 gmann amotoki: let me see sometime ( when i will be free) if we can have such wrapper method in NovaException to fetch the data in more standard way.
07:31:38 gmann thanks for reporting it.
08:04:36 openstackgerrit Josephine Seifert proposed openstack/nova-specs master: Spec for the Nova part of Image Encryption https://review.opendev.org/608696
08:15:39 openstackgerrit Josephine Seifert proposed openstack/nova-specs master: Spec for the Nova part of Image Encryption https://review.opendev.org/608696
08:24:17 openstackgerrit jiasirui proposed openstack/nova-specs master: fix the spelling mistakes https://review.opendev.org/666244
08:28:05 shilpasd <efried> i am facing issue in n-cpu start, due to nova/db/sqlalchemy/migrate_repo/versions/397_migrations_cross_cell_move.py
08:28:20 shilpasd efried: this got commited at https://review.opendev.org/#/c/614012/
08:28:36 shilpasd error is:Error starting thread.: RemoteError: Remote error: DBError (pymysql.err.InternalError) (1054, u"Unknown column 'migrations.cross_cell_move' in 'field list'")
08:28:53 shilpasd i have run db manage command, but no success
08:28:59 shilpasd any solution?
08:30:36 shilpasd efried: mriedem: here is the detailed error log, http://paste.openstack.org/show/753170/
08:44:08 openstackgerrit Martin Midolesov proposed openstack/nova master: Implementing graceful shutdown. https://review.opendev.org/666245
09:38:20 openstackgerrit Merged openstack/nova master: Fix wrong assert methods https://review.opendev.org/665897
09:50:45 openstackgerrit zhaixiaojun proposed openstack/python-novaclient master: Modify the url of upper_constraints_file https://review.opendev.org/665934
09:57:53 openstackgerrit Stephen Finucane proposed openstack/nova master: xvp: Start using consoleauth tokens https://review.opendev.org/652967
09:57:54 openstackgerrit Stephen Finucane proposed openstack/nova master: xvp: Remove use of '_LI' marker https://review.opendev.org/665425
09:57:54 openstackgerrit Stephen Finucane proposed openstack/nova master: nova-status: Remove consoleauth workaround check https://review.opendev.org/652968
09:57:55 openstackgerrit Stephen Finucane proposed openstack/nova master: Remove nova-consoleauth https://review.opendev.org/652969
09:57:55 openstackgerrit Stephen Finucane proposed openstack/nova master: objects: Remove ConsoleAuthToken.to_dict https://review.opendev.org/652970
09:57:56 openstackgerrit Stephen Finucane proposed openstack/nova master: docs: Rework nova console diagram https://review.opendev.org/660147

Earlier   Later