You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Henrique Sato <he...@gmail.com> on 2023/09/29 20:12:07 UTC

[DISCUSS] Block importing VMs without NIC

Hello guys,

As mentioned in PR #7859 [1], I'm opening this thread so we can discuss
whether ACS should allow importing VMs without NIC.

Currently, ACS allows importing VMs without a NIC. However, when creating
new NICs for these VMs, it will not be possible to set them as default.
When using a VM without a default NIC, the gateway is not configured and
without a gateway the VM will not have external connection, which limits
the user to the local network. Although PR #7859 [1] solves this situation,
I do not think ACS should allow this kind of situation. In my opinion, this
behavior should be removed, as ACS does not allow creating VMs without NIC
nor removing the default NIC.

What do you guys think about this scenario? Do you have other
perspectives/opinions on this matter?

Best regards,
Henrique Sato (hsato03)

[1] https://github.com/apache/cloudstack/pull/7859

Re: [DISCUSS] Block importing VMs without NIC

Posted by Daan Hoogland <da...@gmail.com>.
Henrique,
Thanks for bringing this up/
I think both disallowing and creating a default nic on importing are
acceptable behaviours. One could argue for either and operators will
complain either way (I know I probably would ;). I think we can make
disallowing the default and if we want to make this luxurious we can
implement a setting that creates a default NIC if one is missing.

€0,02


On Mon, Oct 2, 2023 at 8:30 AM Henrique Sato <he...@gmail.com>
wrote:

> Hello guys,
>
> As mentioned in PR #7859 [1], I'm opening this thread so we can discuss
> whether ACS should allow importing VMs without NIC.
>
> Currently, ACS allows importing VMs without a NIC. However, when creating
> new NICs for these VMs, it will not be possible to set them as default.
> When using a VM without a default NIC, the gateway is not configured and
> without a gateway the VM will not have external connection, which limits
> the user to the local network. Although PR #7859 [1] solves this situation,
> I do not think ACS should allow this kind of situation. In my opinion, this
> behavior should be removed, as ACS does not allow creating VMs without NIC
> nor removing the default NIC.
>
> What do you guys think about this scenario? Do you have other
> perspectives/opinions on this matter?
>
> Best regards,
> Henrique Sato (hsato03)
>
> [1] https://github.com/apache/cloudstack/pull/7859
>


-- 
Daan

Re: [DISCUSS] Block importing VMs without NIC

Posted by Daan Hoogland <da...@gmail.com>.
Henrique,
Thanks for bringing this up/
I think both disallowing and creating a default nic on importing are
acceptable behaviours. One could argue for either and operators will
complain either way (I know I probably would ;). I think we can make
disallowing the default and if we want to make this luxurious we can
implement a setting that creates a default NIC if one is missing.

€0,02


On Mon, Oct 2, 2023 at 8:30 AM Henrique Sato <he...@gmail.com>
wrote:

> Hello guys,
>
> As mentioned in PR #7859 [1], I'm opening this thread so we can discuss
> whether ACS should allow importing VMs without NIC.
>
> Currently, ACS allows importing VMs without a NIC. However, when creating
> new NICs for these VMs, it will not be possible to set them as default.
> When using a VM without a default NIC, the gateway is not configured and
> without a gateway the VM will not have external connection, which limits
> the user to the local network. Although PR #7859 [1] solves this situation,
> I do not think ACS should allow this kind of situation. In my opinion, this
> behavior should be removed, as ACS does not allow creating VMs without NIC
> nor removing the default NIC.
>
> What do you guys think about this scenario? Do you have other
> perspectives/opinions on this matter?
>
> Best regards,
> Henrique Sato (hsato03)
>
> [1] https://github.com/apache/cloudstack/pull/7859
>


-- 
Daan