You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Ignacio Ocampo <na...@gmail.com> on 2018/12/26 05:54:46 UTC
http://$SSHKEY_SERVER_IP/latest/public-keys returns the latest key,
even if I didn't select any
Hi everyone, merry christmas!
I'm using Apache Cloudstack 4.11.2.0.
I've created a Centos 7 VM template (without Network Manager), everything
works properly excepts the keypair, I'm using this script:
https://github.com/apache/cloudstack/blob/4.11.2.0/setup/bindir/cloud-set-guest-sshkey.in
The issue is:
If I create a virtual machine from the UI, without any keypair selected (I
didn't see any keypair from the menu since I deleted all before create the
VM), Cloudstack is anyway returning the latest keypair used for the user.
Before created the VM, I deleted all the keypairs from the UI, and all the
VMs, and then created the new VM.
I also executed curl http://$SSHKEY_SERVER_IP/latest/public-keys within the
VM to confirm I got the latest used key, which isn't expected.
Is this a bug?
Thanks!
--
Ignacio Ocampo
RE: http://$SSHKEY_SERVER_IP/latest/public-keys returns
the latest key, even if I didn't select any
Posted by Paul Angus <pa...@shapeblue.com>.
I suspect that it will be hard to 'find' anything in the code, as I think we're probably missing something that would remove the ssh key when a VM is removed.
paul.angus@shapeblue.comĀ
www.shapeblue.com
Amadeus House, Floral Street, London WC2E 9DPUK
@shapeblue
-----Original Message-----
From: Ignacio Ocampo <na...@gmail.com>
Sent: 30 December 2018 19:20
To: users@cloudstack.apache.org
Subject: Re: http://$SSHKEY_SERVER_IP/latest/public-keys returns the latest key, even if I didn't select any
Sure, I will create the issue.
Also, I would like to take a look at the code, if possible.
The only reference I have is the URL
http://$SSHKEY_SERVER_IP/latest/public-keys,
which refers to the IP address of the virtual router, I guess some kind of webserver is dispatching those requests inside the virtual router, perhaps some kind of cache isn't working properly.
Any advice on where to start and take a look on the code?
Thanks!
On Thu, Dec 27, 2018 at 4:18 AM Paul Angus <pa...@shapeblue.com> wrote:
> Hi Ignacio,
>
> That definitely sounds like a bug.
>
> Would you be able to create a GitHub issue for this?
> https://github.com/apache/cloudstack/issues
>
> And thank you for your involvement!
>
>
> paul.angus@shapeblue.com
> www.shapeblue.com
> Amadeus House, Floral Street, London WC2E 9DPUK @shapeblue
>
>
>
>
> -----Original Message-----
> From: Ignacio Ocampo <na...@gmail.com>
> Sent: 26 December 2018 05:55
> To: users@cloudstack.apache.org
> Subject: http://$SSHKEY_SERVER_IP/latest/public-keys returns the latest
> key, even if I didn't select any
>
> Hi everyone, merry christmas!
>
> I'm using Apache Cloudstack 4.11.2.0.
>
> I've created a Centos 7 VM template (without Network Manager), everything
> works properly excepts the keypair, I'm using this script:
>
> https://github.com/apache/cloudstack/blob/4.11.2.0/setup/bindir/cloud-set-guest-sshkey.in
>
> The issue is:
>
> If I create a virtual machine from the UI, without any keypair selected (I
> didn't see any keypair from the menu since I deleted all before create the
> VM), Cloudstack is anyway returning the latest keypair used for the user.
>
> Before created the VM, I deleted all the keypairs from the UI, and all the
> VMs, and then created the new VM.
>
> I also executed curl http://$SSHKEY_SERVER_IP/latest/public-keys within
> the VM to confirm I got the latest used key, which isn't expected.
>
> Is this a bug?
>
> Thanks!
>
> --
> Ignacio Ocampo
>
--
Ignacio Ocampo
Re: http://$SSHKEY_SERVER_IP/latest/public-keys returns the latest
key, even if I didn't select any
Posted by Ignacio Ocampo <na...@gmail.com>.
Sure, I will create the issue.
Also, I would like to take a look at the code, if possible.
The only reference I have is the URL
http://$SSHKEY_SERVER_IP/latest/public-keys,
which refers to the IP address of the virtual router, I guess some kind of
webserver is dispatching those requests inside the virtual router, perhaps
some kind of cache isn't working properly.
Any advice on where to start and take a look on the code?
Thanks!
On Thu, Dec 27, 2018 at 4:18 AM Paul Angus <pa...@shapeblue.com> wrote:
> Hi Ignacio,
>
> That definitely sounds like a bug.
>
> Would you be able to create a GitHub issue for this?
> https://github.com/apache/cloudstack/issues
>
> And thank you for your involvement!
>
>
> paul.angus@shapeblue.com
> www.shapeblue.com
> Amadeus House, Floral Street, London WC2E 9DPUK
> @shapeblue
>
>
>
>
> -----Original Message-----
> From: Ignacio Ocampo <na...@gmail.com>
> Sent: 26 December 2018 05:55
> To: users@cloudstack.apache.org
> Subject: http://$SSHKEY_SERVER_IP/latest/public-keys returns the latest
> key, even if I didn't select any
>
> Hi everyone, merry christmas!
>
> I'm using Apache Cloudstack 4.11.2.0.
>
> I've created a Centos 7 VM template (without Network Manager), everything
> works properly excepts the keypair, I'm using this script:
>
> https://github.com/apache/cloudstack/blob/4.11.2.0/setup/bindir/cloud-set-guest-sshkey.in
>
> The issue is:
>
> If I create a virtual machine from the UI, without any keypair selected (I
> didn't see any keypair from the menu since I deleted all before create the
> VM), Cloudstack is anyway returning the latest keypair used for the user.
>
> Before created the VM, I deleted all the keypairs from the UI, and all the
> VMs, and then created the new VM.
>
> I also executed curl http://$SSHKEY_SERVER_IP/latest/public-keys within
> the VM to confirm I got the latest used key, which isn't expected.
>
> Is this a bug?
>
> Thanks!
>
> --
> Ignacio Ocampo
>
--
Ignacio Ocampo
RE: http://$SSHKEY_SERVER_IP/latest/public-keys returns
the latest key, even if I didn't select any
Posted by Paul Angus <pa...@shapeblue.com>.
Hi Ignacio,
That definitely sounds like a bug.
Would you be able to create a GitHub issue for this?
https://github.com/apache/cloudstack/issues
And thank you for your involvement!
paul.angus@shapeblue.comĀ
www.shapeblue.com
Amadeus House, Floral Street, London WC2E 9DPUK
@shapeblue
-----Original Message-----
From: Ignacio Ocampo <na...@gmail.com>
Sent: 26 December 2018 05:55
To: users@cloudstack.apache.org
Subject: http://$SSHKEY_SERVER_IP/latest/public-keys returns the latest key, even if I didn't select any
Hi everyone, merry christmas!
I'm using Apache Cloudstack 4.11.2.0.
I've created a Centos 7 VM template (without Network Manager), everything works properly excepts the keypair, I'm using this script:
https://github.com/apache/cloudstack/blob/4.11.2.0/setup/bindir/cloud-set-guest-sshkey.in
The issue is:
If I create a virtual machine from the UI, without any keypair selected (I didn't see any keypair from the menu since I deleted all before create the VM), Cloudstack is anyway returning the latest keypair used for the user.
Before created the VM, I deleted all the keypairs from the UI, and all the VMs, and then created the new VM.
I also executed curl http://$SSHKEY_SERVER_IP/latest/public-keys within the VM to confirm I got the latest used key, which isn't expected.
Is this a bug?
Thanks!
--
Ignacio Ocampo