Fixes: #2881 Improve Exception message#2889
Conversation
Network.Service and Network.Provider were missing a toString() method. Added this so appending (a list of) them will be understandable.
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
@fmaximus while this looks to improve logging, I'm not sure if it will fix the root cause of #2881 /cc @borisstoyanov can you test? |
|
Packaging result: ✔centos6 ✔centos7 ✖debian. JID-2337 |
|
@blueorangutan test |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-3071)
|
|
yes @rhtyd, let me build env and verify this. |
borisstoyanov
left a comment
There was a problem hiding this comment.
LGTM, now it has meaningful error message.
Description
Network.Service and Network.Provider were missing a toString() method.
Added toString() methods so appending instances, or a collection of instances
to a String, will result in an understandable String.
Before
com.cloud.network.Network$Provider@11763e57 requires services: [com.cloud.network.Network$Service@4f9871a2]
After
Provider Network.Provider[name=NuageVsp] requires services: [Network.Service[name=Connectivity]]
Types of changes
GitHub Issue/PRs
Fixes: #2881
How Has This Been Tested?
Manually, added Unit Test to validate exception message.
Checklist:
Testing