Mailing List Archive

Openstack Version discovery with the cli client.
Hello,

This is maybe a super trivial question bit I have to admit I could not
figure it out.

Can the user with the openstack cli client discover the version of
Openstack that is running ?

For example in kubernetes the kubectl version command returns the
version of the client and the version of the cluster.

For Openstack I never managed to discover the backend version, and
this could be useful when using public clouds.

Anyone knows how to do that ?

thanks

Saverio

_______________________________________________
OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
Re: Openstack Version discovery with the cli client. [ In reply to ]
Hey Saverio,

This answer from ask.openstack.org should have what you're looking for:
https://ask.openstack.org/en/question/45513/how-to-find-out-which-version-of-openstack-is-installed/at

Once you get the release number, you have to look it up here to match
the release date: https://releases.openstack.org/

I had to use this the other day when taking the COA.

Cheers,
Jimmy

Saverio Proto wrote:
> Hello,
>
> This is maybe a super trivial question bit I have to admit I could not
> figure it out.
>
> Can the user with the openstack cli client discover the version of
> Openstack that is running ?
>
> For example in kubernetes the kubectl version command returns the
> version of the client and the version of the cluster.
>
> For Openstack I never managed to discover the backend version, and
> this could be useful when using public clouds.
>
> Anyone knows how to do that ?
>
> thanks
>
> Saverio
>
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators


_______________________________________________
OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
Re: Openstack Version discovery with the cli client. [ In reply to ]
Hello Jimmy,

thanks for your help. If I understand correctly the answer you linked,
that helps if you operate the cloud and you have access to the
servers. Then of course you can call nova-manage.

But being a user of a public cloud without having access the the
infrastructure servers ... how do you do that ?

thanks

Saverio



Il giorno mar 7 ago 2018 alle ore 15:09 Jimmy McArthur
<jimmy@openstack.org> ha scritto:
>
> Hey Saverio,
>
> This answer from ask.openstack.org should have what you're looking for:
> https://ask.openstack.org/en/question/45513/how-to-find-out-which-version-of-openstack-is-installed/at
>
> Once you get the release number, you have to look it up here to match
> the release date: https://releases.openstack.org/
>
> I had to use this the other day when taking the COA.
>
> Cheers,
> Jimmy
>
> Saverio Proto wrote:
> > Hello,
> >
> > This is maybe a super trivial question bit I have to admit I could not
> > figure it out.
> >
> > Can the user with the openstack cli client discover the version of
> > Openstack that is running ?
> >
> > For example in kubernetes the kubectl version command returns the
> > version of the client and the version of the cluster.
> >
> > For Openstack I never managed to discover the backend version, and
> > this could be useful when using public clouds.
> >
> > Anyone knows how to do that ?
> >
> > thanks
> >
> > Saverio
> >
> > _______________________________________________
> > OpenStack-operators mailing list
> > OpenStack-operators@lists.openstack.org
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>

_______________________________________________
OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
Re: Openstack Version discovery with the cli client. [ In reply to ]
Excerpts from Saverio Proto's message of 2018-08-07 15:30:48 +0200:
> Hello Jimmy,
>
> thanks for your help. If I understand correctly the answer you linked,
> that helps if you operate the cloud and you have access to the
> servers. Then of course you can call nova-manage.
>
> But being a user of a public cloud without having access the the
> infrastructure servers ... how do you do that ?

Try the "versions show" command:

$ openstack versions show

It should report the versions of each endpoint it finds.

Doug

_______________________________________________
OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
Re: Openstack Version discovery with the cli client. [ In reply to ]
Hi Saverio,

I think only the API versions supported by some of the endpoint are
discoverable, as described here:
https://wiki.openstack.org/wiki/VersionDiscovery

curl https://x.x.x.x:9292/image
curl https://x.x.x.x:8774/compute


Cheers,
George

On Tue, Aug 7, 2018 at 9:30 AM, Saverio Proto <zioproto@gmail.com> wrote:

> Hello Jimmy,
>
> thanks for your help. If I understand correctly the answer you linked,
> that helps if you operate the cloud and you have access to the
> servers. Then of course you can call nova-manage.
>
> But being a user of a public cloud without having access the the
> infrastructure servers ... how do you do that ?
>
> thanks
>
> Saverio
>
>
>
> Il giorno mar 7 ago 2018 alle ore 15:09 Jimmy McArthur
> <jimmy@openstack.org> ha scritto:
> >
> > Hey Saverio,
> >
> > This answer from ask.openstack.org should have what you're looking for:
> > https://ask.openstack.org/en/question/45513/how-to-find-
> out-which-version-of-openstack-is-installed/at
> >
> > Once you get the release number, you have to look it up here to match
> > the release date: https://releases.openstack.org/
> >
> > I had to use this the other day when taking the COA.
> >
> > Cheers,
> > Jimmy
> >
> > Saverio Proto wrote:
> > > Hello,
> > >
> > > This is maybe a super trivial question bit I have to admit I could not
> > > figure it out.
> > >
> > > Can the user with the openstack cli client discover the version of
> > > Openstack that is running ?
> > >
> > > For example in kubernetes the kubectl version command returns the
> > > version of the client and the version of the cluster.
> > >
> > > For Openstack I never managed to discover the backend version, and
> > > this could be useful when using public clouds.
> > >
> > > Anyone knows how to do that ?
> > >
> > > thanks
> > >
> > > Saverio
> > >
> > > _______________________________________________
> > > OpenStack-operators mailing list
> > > OpenStack-operators@lists.openstack.org
> > > http://lists.openstack.org/cgi-bin/mailman/listinfo/
> openstack-operators
> >
>
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>
Re: Openstack Version discovery with the cli client. [ In reply to ]
Thanks !

I think the command I was looking for is:
"openstack versions show"

But for example for Neutron I get just version v2.0 from Newton to
Pike, that tells me very little.

The use case is when testing Kubernetes on Openstack, a lot of
kubernetes users cannot tell easily the version of Openstack they are
testing on. Because things like the LBaaS are so different between
Openstack releases that version v2.0 tells too little.
Often it is good to know what is the version of the Openstack cloud to
identify bugs on launchpad.

Cheers,

Saverio




Il giorno mar 7 ago 2018 alle ore 15:48 George Mihaiescu
<lmihaiescu@gmail.com> ha scritto:
>
> Hi Saverio,
>
> I think only the API versions supported by some of the endpoint are discoverable, as described here: https://wiki.openstack.org/wiki/VersionDiscovery
>
> curl https://x.x.x.x:9292/image
> curl https://x.x.x.x:8774/compute
>
>
> Cheers,
> George
>
> On Tue, Aug 7, 2018 at 9:30 AM, Saverio Proto <zioproto@gmail.com> wrote:
>>
>> Hello Jimmy,
>>
>> thanks for your help. If I understand correctly the answer you linked,
>> that helps if you operate the cloud and you have access to the
>> servers. Then of course you can call nova-manage.
>>
>> But being a user of a public cloud without having access the the
>> infrastructure servers ... how do you do that ?
>>
>> thanks
>>
>> Saverio
>>
>>
>>
>> Il giorno mar 7 ago 2018 alle ore 15:09 Jimmy McArthur
>> <jimmy@openstack.org> ha scritto:
>> >
>> > Hey Saverio,
>> >
>> > This answer from ask.openstack.org should have what you're looking for:
>> > https://ask.openstack.org/en/question/45513/how-to-find-out-which-version-of-openstack-is-installed/at
>> >
>> > Once you get the release number, you have to look it up here to match
>> > the release date: https://releases.openstack.org/
>> >
>> > I had to use this the other day when taking the COA.
>> >
>> > Cheers,
>> > Jimmy
>> >
>> > Saverio Proto wrote:
>> > > Hello,
>> > >
>> > > This is maybe a super trivial question bit I have to admit I could not
>> > > figure it out.
>> > >
>> > > Can the user with the openstack cli client discover the version of
>> > > Openstack that is running ?
>> > >
>> > > For example in kubernetes the kubectl version command returns the
>> > > version of the client and the version of the cluster.
>> > >
>> > > For Openstack I never managed to discover the backend version, and
>> > > this could be useful when using public clouds.
>> > >
>> > > Anyone knows how to do that ?
>> > >
>> > > thanks
>> > >
>> > > Saverio
>> > >
>> > > _______________________________________________
>> > > OpenStack-operators mailing list
>> > > OpenStack-operators@lists.openstack.org
>> > > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>> >
>>
>> _______________________________________________
>> OpenStack-operators mailing list
>> OpenStack-operators@lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>
>

_______________________________________________
OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators