On 7/16/21 12:20 AM, Slavka Peleva wrote:
> Hi Joshua,
>
> Yes, I saw your previous email - and from what I understand, you're talking
> about the virtual router in UI `Zones -> Zona-A ->PhysicalNetworkInBasicZone
> -> Network Service Providers -> Virtual Router`, which is disabled, and
> you're trying to enable it. Is that right?
Yes, that is correct.
> This information corresponds to
> DB table `physical_network_service_providers`. I'm talking about another
> table - `virtual_router_providers` in which the virtual router is missing
> or is disabled. The `virtual_router_providers` has a relation with the
> `physical_network_service_providers` table. Here is a reproduction of the
> exception you got:
Thanks for the detailed explanation, that cleared things up for me. The
virtual_router_providers were disabled in the database. I enabled them and was
then able to then enable the network service provider. This in turn led to me
seeing the other service providers for my shared networks.
>
>
> (localcloud) 🐱 > update networkserviceprovider
> id=e6bae6cd-a701-4798-ac7a-8f073567c345 state=Disabled
> {
> "networkserviceprovider": {
> "canenableindividualservice": true,
> "id": "e6bae6cd-a701-4798-ac7a-8f073567c345",
> "name": "VirtualRouter",
> "physicalnetworkid": "39cb8051-8b36-4bac-b71b-8a04d6979856",
> "servicelist": [
> "Vpn",
> "Dhcp",
> "Dns",
> "Gateway",
> "Firewall",
> "Lb",
> "SourceNat",
> "StaticNat",
> "PortForwarding",
> "UserData"
> ],
> "state": "Disabled"
> }
> }
> (localcloud) 🐱 > configure virtualrouterelement
> id=3883f5da-a284-4984-8016-00dfdee703bf enabled=false
> {
> "virtualrouterelement": {
> "enabled": false,
> "id": "3883f5da-a284-4984-8016-00dfdee703bf",
> "nspid": "e6bae6cd-a701-4798-ac7a-8f073567c345"
> }
> }
> (localcloud) 🐱 > update networkserviceprovider
> id=e6bae6cd-a701-4798-ac7a-8f073567c345 state=Enabled
> {
> "accountid": "8d16cd0d-3574-11eb-8b84-02000a02019c",
> "cmd":
> "org.apache.cloudstack.api.command.admin.network.UpdateNetworkServiceProviderCmd",
> "completed": "2021-07-16T09:14:56+0300",
> "created": "2021-07-16T09:14:56+0300",
> "jobid": "e5fd2c8e-7152-43e1-bae1-3c8b378fce9d",
> "jobprocstatus": 0,
> "jobresult": {
> "errorcode": 530,
> "errortext": "Provider is not ready, cannot Enable the provider, please
> configure the provider first"
> },
> "jobresultcode": 530,
> "jobresulttype": "object",
> "jobstatus": 2,
> "userid": "8d16eccb-3574-11eb-8b84-02000a02019c"
> }
> 🙈 Error: async API failed for job e5fd2c8e-7152-43e1-bae1-3c8b378fce9d
> (localcloud) 🐱 > configure virtualrouterelement
> id=3883f5da-a284-4984-8016-00dfdee703bf enabled=true
> {
> "virtualrouterelement": {
> "enabled": true,
> "id": "3883f5da-a284-4984-8016-00dfdee703bf",
> "nspid": "e6bae6cd-a701-4798-ac7a-8f073567c345"
> }
> }
> (localcloud) 🐱 > update networkserviceprovider
> id=e6bae6cd-a701-4798-ac7a-8f073567c345 state=Enabled
> {
> "networkserviceprovider": {
> "canenableindividualservice": true,
> "id": "e6bae6cd-a701-4798-ac7a-8f073567c345",
> "name": "VirtualRouter",
> "physicalnetworkid": "39cb8051-8b36-4bac-b71b-8a04d6979856",
> "servicelist": [
> "Vpn",
> "Dhcp",
> "Dns",
> "Gateway",
> "Firewall",
> "Lb",
> "SourceNat",
> "StaticNat",
> "PortForwarding",
> "UserData"
> ],
> "state": "Enabled"
> }
> }
Thanks for the examples this really helps. I've just used the UI, but will give
cloudmonkey a try.
>
> I'm talking about how to fix the problem with the exception. The problem
> with the network offerings I couldn't help, because I'm with a Basic
> network and don't have those options.
>
> Best regards,
> Slavka
>
>
--
Thanks,
Joshua Schaeffer