You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Ricardo Andres Pertuz de las Salas <ri...@kuasar.co> on 2021/12/20 14:21:09 UTC
ssh keypair problems
Hi,
I have a CS 4.15.2.0 with VPCVirtualPrivateRouterand sometimes it pushes the public ssh key to the machines and sometimes it does not work.
I realized that when I don't have any instance running, the virtual router falls in FAULT state then when at least one instance is started, the VR got configured back again but it is not able to push the ssh key to the instances.
How I resolve this or avoid VirtualRouter to got in FAULT Status when no instances are running
Atte,
Ricardo Pertuz
Re: ssh keypair problems
Posted by Wei ZHOU <us...@gmail.com>.
Hi Ricardo,
Could you try to update the vpc tier (network id=224) to the new offering
, and then create a new vpc tier ?
-Wei
On Mon, 20 Dec 2021 at 23:25, Ricardo Andres Pertuz de las Salas <
ricardo.pertuz@kuasar.co> wrote:
> Thank Weiz
>
> I already created a new network offering with Persistent network, however
> when I try to create the tier with that offering I'm receiving the
> following error
>
> (localcloud) kuasar> > create network
> projectid=408271ae-fa1c-44e3-b8d7-50f7dab3100c name=net1 displaytext=net1
> gateway=10.140.0.1 netmask=255.255.255.0
> networkofferingid=5f75ffd3-746f-4bfe-801a-e6fbc191fc1f
> vpcid=ef601c79-e442-4ba6-b81b-cd27cc174584
> zoneid=8ea41e84-b54e-44ed-a6d5-0c0631c219d8
>
> 🙈 Error: (HTTP 431, error code 4350) Public LB service is already
> supported by network Ntwk[224|Guest|11] in VPC [VPC
> [15-co-centro-sandbox-vpc-01]
>
> And when I tried to update
>
>
> (localcloud) kuasar> > update network
> id=9febe0be-01b8-401f-8d19-c5e964b7d72f
> networkofferingid=5f75ffd3-746f-4bfe-801a-e6fbc191fc1f
> {
> "accountid": "c9fbb2dd-4cab-11ec-b8da-a0cec8004c1d",
> "cmd":
> "org.apache.cloudstack.api.command.admin.network.UpdateNetworkCmdByAdmin",
> "completed": "2021-12-20T17:24:17-0500",
> "created": "2021-12-20T17:24:17-0500",
> "jobid": "a2daa38a-fd57-4f8c-bbe6-3e47074ead30",
> "jobprocstatus": 0,
> "jobresult": {
> "errorcode": 431,
> "errortext": "Public LB service is already supported by network
> Ntwk[224|Guest|11] in VPC [VPC [15-co-centro-sandbox-vpc-01]"
> },
> "jobresultcode": 530,
> "jobresulttype": "object",
> "jobstatus": 2,
> "userid": "c9fc3f43-4cab-11ec-b8da-a0cec8004c1d"
> }
>
> Regards
>
> Ricardo Pertuz
>
> On 20/12/21, 10:46 AM, "Wei ZHOU" <us...@gmail.com> wrote:
>
> Hi Ricardo,
>
> You can create a new network offering by checking "Persistent", and
> update
> the vpc tiers to the new network offering.
> Refer to
>
> https://docs.cloudstack.apache.org/en/latest/adminguide/networking/persistent_networks.html
>
> -Wei
>
> On Mon, 20 Dec 2021 at 16:39, Ricardo Andres Pertuz de las Salas <
> ricardo.pertuz@kuasar.co> wrote:
>
> > Hi guys,
> >
> > Basically I want to avoid this behaviour
> >
> > 2021-12-20 10:34:39,011 DEBUG [c.c.v.VirtualMachineManagerImpl]
> > (Network-Scavenger-1:ctx-98a4228e) (logid:d0975ce4) Nic is unplugged
> > successfully for vm VM[DomainRouter|r-120-VM] in network
> Ntwk[224|Guest|11]
> >
> > BR,
> >
> > Ricardo
> >
> > From: Ricardo Andres Pertuz de las Salas <ri...@kuasar.co>
> > Date: Monday, 20 December 2021, 9:21 AM
> > To: "users@cloudstack.apache.org" <us...@cloudstack.apache.org>
> > Subject: ssh keypair problems
> >
> > Hi,
> >
> > I have a CS 4.15.2.0 with VPCVirtualPrivateRouterand sometimes it
> pushes
> > the public ssh key to the machines and sometimes it does not work.
> >
> > I realized that when I don't have any instance running, the virtual
> router
> > falls in FAULT state then when at least one instance is started, the
> VR got
> > configured back again but it is not able to push the ssh key to the
> > instances.
> >
> > How I resolve this or avoid VirtualRouter to got in FAULT Status
> when no
> > instances are running
> >
> >
> > Atte,
> >
> > Ricardo Pertuz
> >
>
>
Re: ssh keypair problems
Posted by Ricardo Andres Pertuz de las Salas <ri...@kuasar.co>.
Thank Weiz
I already created a new network offering with Persistent network, however when I try to create the tier with that offering I'm receiving the following error
(localcloud) kuasar> > create network projectid=408271ae-fa1c-44e3-b8d7-50f7dab3100c name=net1 displaytext=net1 gateway=10.140.0.1 netmask=255.255.255.0 networkofferingid=5f75ffd3-746f-4bfe-801a-e6fbc191fc1f vpcid=ef601c79-e442-4ba6-b81b-cd27cc174584 zoneid=8ea41e84-b54e-44ed-a6d5-0c0631c219d8
🙈 Error: (HTTP 431, error code 4350) Public LB service is already supported by network Ntwk[224|Guest|11] in VPC [VPC [15-co-centro-sandbox-vpc-01]
And when I tried to update
(localcloud) kuasar> > update network id=9febe0be-01b8-401f-8d19-c5e964b7d72f networkofferingid=5f75ffd3-746f-4bfe-801a-e6fbc191fc1f
{
"accountid": "c9fbb2dd-4cab-11ec-b8da-a0cec8004c1d",
"cmd": "org.apache.cloudstack.api.command.admin.network.UpdateNetworkCmdByAdmin",
"completed": "2021-12-20T17:24:17-0500",
"created": "2021-12-20T17:24:17-0500",
"jobid": "a2daa38a-fd57-4f8c-bbe6-3e47074ead30",
"jobprocstatus": 0,
"jobresult": {
"errorcode": 431,
"errortext": "Public LB service is already supported by network Ntwk[224|Guest|11] in VPC [VPC [15-co-centro-sandbox-vpc-01]"
},
"jobresultcode": 530,
"jobresulttype": "object",
"jobstatus": 2,
"userid": "c9fc3f43-4cab-11ec-b8da-a0cec8004c1d"
}
Regards
Ricardo Pertuz
On 20/12/21, 10:46 AM, "Wei ZHOU" <us...@gmail.com> wrote:
Hi Ricardo,
You can create a new network offering by checking "Persistent", and update
the vpc tiers to the new network offering.
Refer to
https://docs.cloudstack.apache.org/en/latest/adminguide/networking/persistent_networks.html
-Wei
On Mon, 20 Dec 2021 at 16:39, Ricardo Andres Pertuz de las Salas <
ricardo.pertuz@kuasar.co> wrote:
> Hi guys,
>
> Basically I want to avoid this behaviour
>
> 2021-12-20 10:34:39,011 DEBUG [c.c.v.VirtualMachineManagerImpl]
> (Network-Scavenger-1:ctx-98a4228e) (logid:d0975ce4) Nic is unplugged
> successfully for vm VM[DomainRouter|r-120-VM] in network Ntwk[224|Guest|11]
>
> BR,
>
> Ricardo
>
> From: Ricardo Andres Pertuz de las Salas <ri...@kuasar.co>
> Date: Monday, 20 December 2021, 9:21 AM
> To: "users@cloudstack.apache.org" <us...@cloudstack.apache.org>
> Subject: ssh keypair problems
>
> Hi,
>
> I have a CS 4.15.2.0 with VPCVirtualPrivateRouterand sometimes it pushes
> the public ssh key to the machines and sometimes it does not work.
>
> I realized that when I don't have any instance running, the virtual router
> falls in FAULT state then when at least one instance is started, the VR got
> configured back again but it is not able to push the ssh key to the
> instances.
>
> How I resolve this or avoid VirtualRouter to got in FAULT Status when no
> instances are running
>
>
> Atte,
>
> Ricardo Pertuz
>
Re: ssh keypair problems
Posted by Wei ZHOU <us...@gmail.com>.
Hi Ricardo,
You can create a new network offering by checking "Persistent", and update
the vpc tiers to the new network offering.
Refer to
https://docs.cloudstack.apache.org/en/latest/adminguide/networking/persistent_networks.html
-Wei
On Mon, 20 Dec 2021 at 16:39, Ricardo Andres Pertuz de las Salas <
ricardo.pertuz@kuasar.co> wrote:
> Hi guys,
>
> Basically I want to avoid this behaviour
>
> 2021-12-20 10:34:39,011 DEBUG [c.c.v.VirtualMachineManagerImpl]
> (Network-Scavenger-1:ctx-98a4228e) (logid:d0975ce4) Nic is unplugged
> successfully for vm VM[DomainRouter|r-120-VM] in network Ntwk[224|Guest|11]
>
> BR,
>
> Ricardo
>
> From: Ricardo Andres Pertuz de las Salas <ri...@kuasar.co>
> Date: Monday, 20 December 2021, 9:21 AM
> To: "users@cloudstack.apache.org" <us...@cloudstack.apache.org>
> Subject: ssh keypair problems
>
> Hi,
>
> I have a CS 4.15.2.0 with VPCVirtualPrivateRouterand sometimes it pushes
> the public ssh key to the machines and sometimes it does not work.
>
> I realized that when I don't have any instance running, the virtual router
> falls in FAULT state then when at least one instance is started, the VR got
> configured back again but it is not able to push the ssh key to the
> instances.
>
> How I resolve this or avoid VirtualRouter to got in FAULT Status when no
> instances are running
>
>
> Atte,
>
> Ricardo Pertuz
>
Re: ssh keypair problems
Posted by Ricardo Andres Pertuz de las Salas <ri...@kuasar.co>.
Hi guys,
Basically I want to avoid this behaviour
2021-12-20 10:34:39,011 DEBUG [c.c.v.VirtualMachineManagerImpl] (Network-Scavenger-1:ctx-98a4228e) (logid:d0975ce4) Nic is unplugged successfully for vm VM[DomainRouter|r-120-VM] in network Ntwk[224|Guest|11]
BR,
Ricardo
From: Ricardo Andres Pertuz de las Salas <ri...@kuasar.co>
Date: Monday, 20 December 2021, 9:21 AM
To: "users@cloudstack.apache.org" <us...@cloudstack.apache.org>
Subject: ssh keypair problems
Hi,
I have a CS 4.15.2.0 with VPCVirtualPrivateRouterand sometimes it pushes the public ssh key to the machines and sometimes it does not work.
I realized that when I don't have any instance running, the virtual router falls in FAULT state then when at least one instance is started, the VR got configured back again but it is not able to push the ssh key to the instances.
How I resolve this or avoid VirtualRouter to got in FAULT Status when no instances are running
Atte,
Ricardo Pertuz
Re: ssh keypair problems
Posted by Wei ZHOU <us...@gmail.com>.
Hi Ricardo,
Do you use VPC with redundant VRs ?
If there is no vpc tier implemented, the VR does not have any guest nic, in
this case, some services in VR (e.g. keepalived) are stopped, which leads
to "FAULT" state. It is an expected result in my opinion.
VR does not push ssh keys to VMs. The ssh keys are stored in VR, and VMs
fetch the ssh key from VR (there is apache2 service on port 80). If the VM
does not get the ssh key, it might be caused by (1) VM does not have the
script to get the ssh key; (2) VM does not have a ip or has a wrong ip; (3)
the request to port 80 on VR is blocked. Please check your VMs.
-Wei
On Mon, 20 Dec 2021 at 15:28, Ricardo Andres Pertuz de las Salas <
ricardo.pertuz@kuasar.co> wrote:
> Hi,
> I have a CS 4.15.2.0 with VPCVirtualPrivateRouterand sometimes it pushes
> the public ssh key to the machines and sometimes it does not work.
>
> I realized that when I don't have any instance running, the virtual router
> falls in FAULT state then when at least one instance is started, the VR got
> configured back again but it is not able to push the ssh key to the
> instances.
>
> How I resolve this or avoid VirtualRouter to got in FAULT Status when no
> instances are running
>
> Atte,
> Ricardo Pertuz
>