[openstack-dev] [E] Re: nova diagnostics in client library/SDK

Gilles Dubreuil gdubreui at redhat.com
Fri Dec 1 00:36:43 UTC 2017



On 01/12/17 03:47, Monty Taylor wrote:
> On 11/29/2017 12:49 PM, Gordon, Kent S wrote:
>>
>> On Tue, Nov 28, 2017 at 2:15 PM, Monty Taylor <mordred at inaugust.com 
>> <mailto:mordred at inaugust.com>> wrote:
>>
>>     On 11/03/2017 11:31 AM, Gordon, Kent S wrote:
>>
>>         Do any of the python client libraries implement the nova
>>         diagnostics API?
>>
>> https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.openstack.org_wiki_Nova-5FVM-5FDiagnostics&d=DwIGaQ&c=udBTRvFvXC5Dhqg7UHpJlPps3mZ3LRxpb6__0PomBTQ&r=Xkn6r0Olgrmyl97VKakpX0o-JiB_old4u22bFbcLdRo&m=p2ULfonZvWd4C82lmFExdHuyh-NeUTzyu-q5M0kTDNg&s=RI4HTKLenL00VdvmCqFfjr5IMJV4HfWW_UkH1R1BWSU&e=
>> <https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.openstack.org_wiki_Nova-5FVM-5FDiagnostics&d=DwIGaQ&c=udBTRvFvXC5Dhqg7UHpJlPps3mZ3LRxpb6__0PomBTQ&r=Xkn6r0Olgrmyl97VKakpX0o-JiB_old4u22bFbcLdRo&m=p2ULfonZvWd4C82lmFExdHuyh-NeUTzyu-q5M0kTDNg&s=RI4HTKLenL00VdvmCqFfjr5IMJV4HfWW_UkH1R1BWSU&e=>
>>
>>
>>     Not to my knowledge, no. However, adding support for it should be
>>     easy enough to accomplish and would be a welcome addition.
>>
>>     This is the API you're talking about?
>>
>> https://urldefense.proofpoint.com/v2/url?u=https-3A__developer.openstack.org_api-2Dref_compute_-23servers-2Ddiagnostics-2Dservers-2Ddiagnostics&d=DwIGaQ&c=udBTRvFvXC5Dhqg7UHpJlPps3mZ3LRxpb6__0PomBTQ&r=Xkn6r0Olgrmyl97VKakpX0o-JiB_old4u22bFbcLdRo&m=p2ULfonZvWd4C82lmFExdHuyh-NeUTzyu-q5M0kTDNg&s=2GH64mANdI_uV67Gt2YvoBJlR7uHHl17EB-URrOMN-E&e=
>> <https://urldefense.proofpoint.com/v2/url?u=https-3A__developer.openstack.org_api-2Dref_compute_-23servers-2Ddiagnostics-2Dservers-2Ddiagnostics&d=DwIGaQ&c=udBTRvFvXC5Dhqg7UHpJlPps3mZ3LRxpb6__0PomBTQ&r=Xkn6r0Olgrmyl97VKakpX0o-JiB_old4u22bFbcLdRo&m=p2ULfonZvWd4C82lmFExdHuyh-NeUTzyu-q5M0kTDNg&s=2GH64mANdI_uV67Gt2YvoBJlR7uHHl17EB-URrOMN-E&e=>
>>
>> yes
>>
>>     If you feel like hacking on it, a patch to
>>     openstack/python-openstacksdk would be the best way to go.
>>
>>     However, this is microversion-protected, and this would be the first
>>     such feature in the SDK. So if diving that far down the rabbithole
>>     sounds like too much, either bug me until I get around to it - or do
>>     as much of it as makes sense (like adding a Resource class based on
>>     openstack.resource2) but ignore the microversion bit and I can help
>>     finish it off.
>>
>>
>> It has been a while since I did a lot of development.  Let me see how 
>> far I can get.
>
> No worries - I can also just knock it out for you ... mostly wanted to 
> be welcoming in case you *wanted* to add it. (it's no fun if I swoop 
> in and steal people's hacking projects)
>
>

Well Misty does:

htps://github.com/flystack/misty/blob/master/lib/misty/openstack/nova/nova_v2_1.rb#L58

Meanwhile I've never tested that part so any feedback more than welcome 
and I'll be happy to promptly help if there are any issues.

Cheers,
Gilles

PS: This is exactly why wee need to get more attention on the `API 
Schema` because of the *desperate* need for more APIs automation!


> __________________________________________________________________________ 
>
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: 
> OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

-- 
Gilles Dubreuil
Senior Software Engineer, Openstack DFG Integration
Mobile: +61 400 894 219
Email: gilles at redhat.com
GitHub/IRC: gildub





More information about the OpenStack-dev mailing list