You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Vinod Nair <vi...@juniper.net> on 2013/12/30 20:25:52 UTC
ACS4.2 db goes for a toss if no netmask is specified while
creating a virtual Network
Hi
I have ACS4.2 , If I try creating a virtual network without specifying a netmask, the database goes for a toss.. only way to recover is to delete the entry from the database manually or set the CIDR manually as it is set as NULL. Is there a fix available for this issue.
# cloudmonkey
? Apache CloudStack ?? cloudmonkey 5.0.0. Type help or ? to list commands.
> list networks
: None
select * from networks where id=207;
+-----+------+--------------------------------------+--------------+--------------+-----------------------+---------------+---------+------+------+---------------------+---------------------+----------------+--------------+-------------+---------+-----------+------------+------+------+-----------+------------+----------+----------------+--------------------------------------+------------+------------------+---------------------+---------+-------------------+--------+-------------+----------+--------------+-----------------+----------------+
| id | name | uuid | display_text | traffic_type | broadcast_domain_type | broadcast_uri | gateway | cidr | mode | network_offering_id | physical_network_id | data_center_id | guru_name | state | related | domain_id | account_id | dns1 | dns2 | guru_data | set_fields | acl_type | network_domain | reservation_id | guest_type | restart_required | created | removed | specify_ip_ranges | vpc_id | ip6_gateway | ip6_cidr | network_cidr | display_network | network_acl_id |
+-----+------+--------------------------------------+--------------+--------------+-----------------------+---------------+---------+------+------+---------------------+---------------------+----------------+--------------+-------------+---------+-----------+------------+------+------+-----------+------------+----------+----------------+--------------------------------------+------------+------------------+---------------------+---------+-------------------+--------+-------------+----------+--------------+-----------------+----------------+
| 207 | Vn1 | d1e6ae13-d750-4682-948c-c6545d6c9ace | vn1 | Guest | Lswitch | NULL | NULL | NULL | Dhcp | 15 | 200 | 1 | ContrailGuru | Implemented | 207 | 1 | 2 | NULL | NULL | NULL | 0 | Account | NULL | e7f881be-c9d8-4ff1-8fce-26d207426b45 | Isolated | 0 | 2013-12-30 16:10:46 | NULL | 0 | NULL | NULL | NULL | NULL | 1 | NULL |
+-----+------+--------------------------------------+--------------+--------------+-----------------------+---------------+---------+------+------+---------------------+---------------------+----------------+--------------+-------------+---------+-----------+------------+------+------+-----------+------------+----------+----------------+--------------------------------------+------------+------------------+---------------------+---------+-------------------+--------+-------------+----------+--------------+-----------------+----------------+
1 row in set (0.00 sec)
Thanks
Vinod
RE: ACS4.2 db goes for a toss if no netmask is specified while
creating a virtual Network
Posted by Saksham Srivastava <sa...@citrix.com>.
In general, if you do not specify a gateway and netmask, the values will be taken from the zone level settings.
Check listZones to see your configuration.
Thanks,
Saksham
-----Original Message-----
From: Vinod Nair [mailto:vinodnair@juniper.net]
Sent: Tuesday, December 31, 2013 6:29 AM
To: dev@cloudstack.apache.org
Subject: RE: ACS4.2 db goes for a toss if no netmask is specified while creating a virtual Network
Hi
Root cause is that ACS is allowing to create a VN without a net mask value, Whereas list networks command is checking for if cidr value is present or not for a network while iterating all networks. If it finds a network without cidr it throws Exception and returns empty
Thanks
Vinod
-----Original Message-----
From: Vinod Nair [mailto:vinodnair@juniper.net]
Sent: Monday, December 30, 2013 11:26 AM
To: dev@cloudstack.apache.org
Subject: ACS4.2 db goes for a toss if no netmask is specified while creating a virtual Network
Hi
I have ACS4.2 , If I try creating a virtual network without specifying a netmask, the database goes for a toss.. only way to recover is to delete the entry from the database manually or set the CIDR manually as it is set as NULL. Is there a fix available for this issue.
# cloudmonkey
? Apache CloudStack ?? cloudmonkey 5.0.0. Type help or ? to list commands.
> list networks
: None
select * from networks where id=207;
+-----+------+--------------------------------------+--------------+--------------+-----------------------+---------------+---------+------+------+---------------------+---------------------+----------------+--------------+-------------+---------+-----------+------------+------+------+-----------+------------+----------+----------------+--------------------------------------+------------+------------------+---------------------+---------+-------------------+--------+-------------+----------+--------------+-----------------+----------------+
| id | name | uuid | display_text | traffic_type | broadcast_domain_type | broadcast_uri | gateway | cidr | mode | network_offering_id | physical_network_id | data_center_id | guru_name | state | related | domain_id | account_id | dns1 | dns2 | guru_data | set_fields | acl_type | network_domain | reservation_id | guest_type | restart_required | created | removed | specify_ip_ranges | vpc_id | ip6_gateway | ip6_cidr | network_cidr | display_network | network_acl_id |
+-----+------+--------------------------------------+--------------+--------------+-----------------------+---------------+---------+------+------+---------------------+---------------------+----------------+--------------+-------------+---------+-----------+------------+------+------+-----------+------------+----------+----------------+--------------------------------------+------------+------------------+---------------------+---------+-------------------+--------+-------------+----------+--------------+-----------------+----------------+
| 207 | Vn1 | d1e6ae13-d750-4682-948c-c6545d6c9ace | vn1 | Guest | Lswitch | NULL | NULL | NULL | Dhcp | 15 | 200 | 1 | ContrailGuru | Implemented | 207 | 1 | 2 | NULL | NULL | NULL | 0 | Account | NULL | e7f881be-c9d8-4ff1-8fce-26d207426b45 | Isolated | 0 | 2013-12-30 16:10:46 | NULL | 0 | NULL | NULL | NULL | NULL | 1 | NULL |
+-----+------+--------------------------------------+--------------+--------------+-----------------------+---------------+---------+------+------+---------------------+---------------------+----------------+--------------+-------------+---------+-----------+------------+------+------+-----------+------------+----------+----------------+--------------------------------------+------------+------------------+---------------------+---------+-------------------+--------+-------------+----------+--------------+-----------------+----------------+
1 row in set (0.00 sec)
Thanks
Vinod
ACS 4.2: list networks returns empty, if a VN is created without
net mask
Posted by Vinod Nair <vi...@juniper.net>.
Correcting the subject
Thanks
Vinod
> On Dec 30, 2013, at 4:59 PM, "Vinod Nair" <vi...@juniper.net> wrote:
>
> Hi
>
> Root cause is that ACS is allowing to create a VN without a net mask value, Whereas list networks command is checking for if cidr value is present or not for a network while iterating all networks. If it finds a network without cidr it throws Exception and returns empty
>
> Thanks
> Vinod
>
> -----Original Message-----
> From: Vinod Nair [mailto:vinodnair@juniper.net]
> Sent: Monday, December 30, 2013 11:26 AM
> To: dev@cloudstack.apache.org
> Subject: ACS4.2 db goes for a toss if no netmask is specified while creating a virtual Network
>
> Hi
>
> I have ACS4.2 , If I try creating a virtual network without specifying a netmask, the database goes for a toss.. only way to recover is to delete the entry from the database manually or set the CIDR manually as it is set as NULL. Is there a fix available for this issue.
>
>
>
> # cloudmonkey
> ? Apache CloudStack ?? cloudmonkey 5.0.0. Type help or ? to list commands.
>
>> list networks
> : None
>
>
> select * from networks where id=207;
> +-----+------+--------------------------------------+--------------+--------------+-----------------------+---------------+---------+------+------+---------------------+---------------------+----------------+--------------+-------------+---------+-----------+------------+------+------+-----------+------------+----------+----------------+--------------------------------------+------------+------------------+---------------------+---------+-------------------+--------+-------------+----------+--------------+-----------------+----------------+
> | id | name | uuid | display_text | traffic_type | broadcast_domain_type | broadcast_uri | gateway | cidr | mode | network_offering_id | physical_network_id | data_center_id | guru_name | state | related | domain_id | account_id | dns1 | dns2 | guru_data | set_fields | acl_type | network_domain | reservation_id | guest_type | restart_required | created | removed | specify_ip_ranges | vpc_id | ip6_gateway | ip6_cidr | network_cidr | display_network | network_acl_id |
> +-----+------+--------------------------------------+--------------+--------------+-----------------------+---------------+---------+------+------+---------------------+---------------------+----------------+--------------+-------------+---------+-----------+------------+------+------+-----------+------------+----------+----------------+--------------------------------------+------------+------------------+---------------------+---------+-------------------+--------+-------------+----------+--------------+-----------------+----------------+
> | 207 | Vn1 | d1e6ae13-d750-4682-948c-c6545d6c9ace | vn1 | Guest | Lswitch | NULL | NULL | NULL | Dhcp | 15 | 200 | 1 | ContrailGuru | Implemented | 207 | 1 | 2 | NULL | NULL | NULL | 0 | Account | NULL | e7f881be-c9d8-4ff1-8fce-26d207426b45 | Isolated | 0 | 2013-12-30 16:10:46 | NULL | 0 | NULL | NULL | NULL | NULL | 1 | NULL |
> +-----+------+--------------------------------------+--------------+--------------+-----------------------+---------------+---------+------+------+---------------------+---------------------+----------------+--------------+-------------+---------+-----------+------------+------+------+-----------+------------+----------+----------------+--------------------------------------+------------+------------------+---------------------+---------+-------------------+--------+-------------+----------+--------------+-----------------+----------------+
> 1 row in set (0.00 sec)
>
>
>
> Thanks
> Vinod
>
>
>
>
RE: ACS4.2 db goes for a toss if no netmask is specified while
creating a virtual Network
Posted by Vinod Nair <vi...@juniper.net>.
Hi
Root cause is that ACS is allowing to create a VN without a net mask value, Whereas list networks command is checking for if cidr value is present or not for a network while iterating all networks. If it finds a network without cidr it throws Exception and returns empty
Thanks
Vinod
-----Original Message-----
From: Vinod Nair [mailto:vinodnair@juniper.net]
Sent: Monday, December 30, 2013 11:26 AM
To: dev@cloudstack.apache.org
Subject: ACS4.2 db goes for a toss if no netmask is specified while creating a virtual Network
Hi
I have ACS4.2 , If I try creating a virtual network without specifying a netmask, the database goes for a toss.. only way to recover is to delete the entry from the database manually or set the CIDR manually as it is set as NULL. Is there a fix available for this issue.
# cloudmonkey
? Apache CloudStack ?? cloudmonkey 5.0.0. Type help or ? to list commands.
> list networks
: None
select * from networks where id=207;
+-----+------+--------------------------------------+--------------+--------------+-----------------------+---------------+---------+------+------+---------------------+---------------------+----------------+--------------+-------------+---------+-----------+------------+------+------+-----------+------------+----------+----------------+--------------------------------------+------------+------------------+---------------------+---------+-------------------+--------+-------------+----------+--------------+-----------------+----------------+
| id | name | uuid | display_text | traffic_type | broadcast_domain_type | broadcast_uri | gateway | cidr | mode | network_offering_id | physical_network_id | data_center_id | guru_name | state | related | domain_id | account_id | dns1 | dns2 | guru_data | set_fields | acl_type | network_domain | reservation_id | guest_type | restart_required | created | removed | specify_ip_ranges | vpc_id | ip6_gateway | ip6_cidr | network_cidr | display_network | network_acl_id |
+-----+------+--------------------------------------+--------------+--------------+-----------------------+---------------+---------+------+------+---------------------+---------------------+----------------+--------------+-------------+---------+-----------+------------+------+------+-----------+------------+----------+----------------+--------------------------------------+------------+------------------+---------------------+---------+-------------------+--------+-------------+----------+--------------+-----------------+----------------+
| 207 | Vn1 | d1e6ae13-d750-4682-948c-c6545d6c9ace | vn1 | Guest | Lswitch | NULL | NULL | NULL | Dhcp | 15 | 200 | 1 | ContrailGuru | Implemented | 207 | 1 | 2 | NULL | NULL | NULL | 0 | Account | NULL | e7f881be-c9d8-4ff1-8fce-26d207426b45 | Isolated | 0 | 2013-12-30 16:10:46 | NULL | 0 | NULL | NULL | NULL | NULL | 1 | NULL |
+-----+------+--------------------------------------+--------------+--------------+-----------------------+---------------+---------+------+------+---------------------+---------------------+----------------+--------------+-------------+---------+-----------+------------+------+------+-----------+------------+----------+----------------+--------------------------------------+------------+------------------+---------------------+---------+-------------------+--------+-------------+----------+--------------+-----------------+----------------+
1 row in set (0.00 sec)
Thanks
Vinod