2025-04-11 18:44:36,757 - INFO - Domain Default found not creating
2025-04-11 18:44:36,921 - INFO - Project ctest-TestBasicPolicy-70496452 not found, creating it
2025-04-11 18:44:37,413 - INFO - Created Project:ctest-TestBasicPolicy-70496452, ID : 854f5629-9b9b-4149-8217-049798acb2a6
2025-04-11 18:44:38,905 - INFO - ================================================================================
2025-04-11 18:44:38,905 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-11 18:44:38,905 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2025-04-11 18:44:39,173 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-04-11 18:44:39,173 - INFO - Initial checks done. Running the testcase now
2025-04-11 18:44:39,173 - INFO -
2025-04-11 18:44:39,764 - DEBUG - Response for create_network : {'network': {'id': '93ab7622-15c7-4a4e-afde-518d4e8c1c41', 'name': 'ctest-vn-96462392', 'tenant_id': '854f56299b9b41498217049798acb2a6', 'project_id': '854f56299b9b41498217049798acb2a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70496452', 'ctest-vn-96462392'], 'port_security_enabled': True, 'description': ''}}
2025-04-11 18:44:39,922 - DEBUG - Response for create_subnet : {'subnet': {'id': '349169d6-62e4-4c78-9451-fe8c5c4c4c9a', 'name': '', 'tenant_id': '854f56299b9b41498217049798acb2a6', 'network_id': '93ab7622-15c7-4a4e-afde-518d4e8c1c41', 'ip_version': 4, 'cidr': '159.185.170.128/26', 'allocation_pools': [{'start': '159.185.170.130', 'end': '159.185.170.190'}], 'gateway_ip': '159.185.170.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '159.185.170.130', 'tags': [], 'project_id': '854f56299b9b41498217049798acb2a6'}}
2025-04-11 18:44:39,941 - INFO - Created VN ctest-vn-96462392
2025-04-11 18:44:39,994 - DEBUG - VN ctest-vn-96462392 UUID is 93ab7622-15c7-4a4e-afde-518d4e8c1c41
2025-04-11 18:44:40,363 - DEBUG - Response for create_network : {'network': {'id': '9cc02731-59b3-404c-8384-c15eff2b4688', 'name': 'ctest-vn-97041847', 'tenant_id': '854f56299b9b41498217049798acb2a6', 'project_id': '854f56299b9b41498217049798acb2a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70496452', 'ctest-vn-97041847'], 'port_security_enabled': True, 'description': ''}}
2025-04-11 18:44:40,598 - DEBUG - Response for create_subnet : {'subnet': {'id': '13361202-e991-4ea9-a957-827510cdc70d', 'name': '', 'tenant_id': '854f56299b9b41498217049798acb2a6', 'network_id': '9cc02731-59b3-404c-8384-c15eff2b4688', 'ip_version': 4, 'cidr': '29.215.22.192/26', 'allocation_pools': [{'start': '29.215.22.194', 'end': '29.215.22.254'}], 'gateway_ip': '29.215.22.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29.215.22.194', 'tags': [], 'project_id': '854f56299b9b41498217049798acb2a6'}}
2025-04-11 18:44:40,618 - INFO - Created VN ctest-vn-97041847
2025-04-11 18:44:40,674 - DEBUG - VN ctest-vn-97041847 UUID is 9cc02731-59b3-404c-8384-c15eff2b4688
2025-04-11 18:44:40,797 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-70496452:ctest-vn-96462392, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-70496452:ctest-vn-97041847, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2025-04-11 18:44:41,109 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '93ab7622-15c7-4a4e-afde-518d4e8c1c41', 'name': 'ctest-vn-96462392', 'tenant_id': '854f56299b9b41498217049798acb2a6', 'project_id': '854f56299b9b41498217049798acb2a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['349169d6-62e4-4c78-9451-fe8c5c4c4c9a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70496452', 'ctest-vn-96462392'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70496452', 'ctest-policy-allow-all-53915064']], 'subnet_ipam': [{'subnet_cidr': '159.185.170.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-11 18:44:41,425 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9cc02731-59b3-404c-8384-c15eff2b4688', 'name': 'ctest-vn-97041847', 'tenant_id': '854f56299b9b41498217049798acb2a6', 'project_id': '854f56299b9b41498217049798acb2a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['13361202-e991-4ea9-a957-827510cdc70d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70496452', 'ctest-vn-97041847'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70496452', 'ctest-policy-allow-all-53915064']], 'subnet_ipam': [{'subnet_cidr': '29.215.22.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-11 18:44:41,582 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-11 18:44:41,882 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-11 18:44:41,920 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7700637e-0d00-448f-8654-b69969c0b71a
2025-04-11 18:44:41,940 - DEBUG - Requesting: http://10.0.0.254:8082/project/854f5629-9b9b-4149-8217-049798acb2a6
2025-04-11 18:44:42,033 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/93ab7622-15c7-4a4e-afde-518d4e8c1c41
2025-04-11 18:44:42,044 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/93ab7622-15c7-4a4e-afde-518d4e8c1c41
2025-04-11 18:44:42,059 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ff0d6036-da2a-4ac7-8dcd-58add812ee7c
2025-04-11 18:44:42,070 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ff0d6036-da2a-4ac7-8dcd-58add812ee7c
2025-04-11 18:44:42,079 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4d950a6e-ae74-4083-be44-81881063bc2f
2025-04-11 18:44:42,087 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-11 18:44:42,087 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/93ab7622-15c7-4a4e-afde-518d4e8c1c41
2025-04-11 18:44:42,097 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ff0d6036-da2a-4ac7-8dcd-58add812ee7c
2025-04-11 18:44:42,113 - INFO - Verified VN network id 7 for VN 93ab7622-15c7-4a4e-afde-518d4e8c1c41
2025-04-11 18:44:42,113 - INFO - Verifications in API Server for VN ctest-vn-96462392 passed
2025-04-11 18:44:42,114 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/93ab7622-15c7-4a4e-afde-518d4e8c1c41
2025-04-11 18:44:42,125 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ff0d6036-da2a-4ac7-8dcd-58add812ee7c
2025-04-11 18:44:42,133 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ff0d6036-da2a-4ac7-8dcd-58add812ee7c
2025-04-11 18:44:42,141 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4d950a6e-ae74-4083-be44-81881063bc2f
2025-04-11 18:44:42,155 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70496452:ctest-vn-96462392', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70496452', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10640728433359276622', 'uuid-lslong': '12672656068817198145'}, 'enable': 'true', 'created': '2025-04-11T18:44:39', 'last-modified': '2025-04-11T18:44:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.073976'}
2025-04-11 18:44:42,161 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-11 18:44:42,161 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96462392 passed
2025-04-11 18:44:42,162 - DEBUG - ====Verifying policy data for ctest-vn-96462392 in API_Server ======
2025-04-11 18:44:42,162 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-11 18:44:42,168 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7700637e-0d00-448f-8654-b69969c0b71a
2025-04-11 18:44:42,184 - DEBUG - Requesting: http://10.0.0.254:8082/project/854f5629-9b9b-4149-8217-049798acb2a6
2025-04-11 18:44:42,268 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/93ab7622-15c7-4a4e-afde-518d4e8c1c41
2025-04-11 18:44:42,280 - DEBUG - ==>Verifying data for policy with id: 8fc475c2-8e68-4221-a354-aede35e23a07, fqn: ['default-domain', 'ctest-TestBasicPolicy-70496452', 'ctest-policy-allow-all-53915064']
2025-04-11 18:44:42,280 - INFO - VN ctest-vn-96462392 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-11 18:44:42,280 - DEBUG - Verifying the vn in opserver
2025-04-11 18:44:42,280 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70496452:ctest-vn-96462392 virtual network link through opserver 10.0.0.254
2025-04-11 18:44:42,281 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-11 18:44:42,580 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-11 18:44:42,654 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70496452:ctest-vn-96462392', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70496452:ctest-vn-96462392?flat'}
2025-04-11 18:44:42,654 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70496452:ctest-vn-96462392 is found in opserver
2025-04-11 18:44:42,666 - DEBUG - Do not have enough data to verify VN in agent
2025-04-11 18:44:42,673 - DEBUG - VRF ids for VN ctest-vn-96462392: {}
2025-04-11 18:44:42,674 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-11 18:44:42,681 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7700637e-0d00-448f-8654-b69969c0b71a
2025-04-11 18:44:42,695 - DEBUG - Requesting: http://10.0.0.254:8082/project/854f5629-9b9b-4149-8217-049798acb2a6
2025-04-11 18:44:42,776 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9cc02731-59b3-404c-8384-c15eff2b4688
2025-04-11 18:44:42,788 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9cc02731-59b3-404c-8384-c15eff2b4688
2025-04-11 18:44:42,800 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/83be8593-90bf-423f-9a98-98d3d84906ee
2025-04-11 18:44:42,810 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/83be8593-90bf-423f-9a98-98d3d84906ee
2025-04-11 18:44:42,818 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4df827b0-bc7a-4dbc-a5c9-2192e229c79c
2025-04-11 18:44:42,826 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-11 18:44:42,826 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9cc02731-59b3-404c-8384-c15eff2b4688
2025-04-11 18:44:42,837 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/83be8593-90bf-423f-9a98-98d3d84906ee
2025-04-11 18:44:42,853 - INFO - Verified VN network id 8 for VN 9cc02731-59b3-404c-8384-c15eff2b4688
2025-04-11 18:44:42,853 - INFO - Verifications in API Server for VN ctest-vn-97041847 passed
2025-04-11 18:44:42,853 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9cc02731-59b3-404c-8384-c15eff2b4688
2025-04-11 18:44:42,865 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/83be8593-90bf-423f-9a98-98d3d84906ee
2025-04-11 18:44:42,876 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/83be8593-90bf-423f-9a98-98d3d84906ee
2025-04-11 18:44:42,886 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4df827b0-bc7a-4dbc-a5c9-2192e229c79c
2025-04-11 18:44:42,903 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70496452:ctest-vn-97041847', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70496452', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11295070958357004364', 'uuid-lslong': '9476912129646478984'}, 'enable': 'true', 'created': '2025-04-11T18:44:40', 'last-modified': '2025-04-11T18:44:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.562095'}
2025-04-11 18:44:42,910 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-11 18:44:42,910 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97041847 passed
2025-04-11 18:44:42,910 - DEBUG - ====Verifying policy data for ctest-vn-97041847 in API_Server ======
2025-04-11 18:44:42,910 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-11 18:44:42,916 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7700637e-0d00-448f-8654-b69969c0b71a
2025-04-11 18:44:42,928 - DEBUG - Requesting: http://10.0.0.254:8082/project/854f5629-9b9b-4149-8217-049798acb2a6
2025-04-11 18:44:43,007 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/9cc02731-59b3-404c-8384-c15eff2b4688
2025-04-11 18:44:43,019 - DEBUG - ==>Verifying data for policy with id: 8fc475c2-8e68-4221-a354-aede35e23a07, fqn: ['default-domain', 'ctest-TestBasicPolicy-70496452', 'ctest-policy-allow-all-53915064']
2025-04-11 18:44:43,019 - INFO - VN ctest-vn-97041847 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-11 18:44:43,019 - DEBUG - Verifying the vn in opserver
2025-04-11 18:44:43,019 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70496452:ctest-vn-97041847 virtual network link through opserver 10.0.0.254
2025-04-11 18:44:43,019 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-11 18:44:43,030 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70496452:ctest-vn-97041847', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70496452:ctest-vn-97041847?flat'}
2025-04-11 18:44:43,030 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70496452:ctest-vn-97041847 is found in opserver
2025-04-11 18:44:43,042 - DEBUG - Do not have enough data to verify VN in agent
2025-04-11 18:44:43,049 - DEBUG - VRF ids for VN ctest-vn-97041847: {}
2025-04-11 18:44:43,104 - DEBUG - Services list from nova: [