2024-11-09 11:58:33,210 - INFO - Domain Default found not creating
2024-11-09 11:58:33,378 - INFO - Project ctest-TestBasicPolicy-78562672 not found, creating it
2024-11-09 11:58:33,879 - INFO - Created Project:ctest-TestBasicPolicy-78562672, ID : e937c645-78ed-48d9-aa32-b842ada8e509
2024-11-09 11:58:35,451 - INFO - ================================================================================
2024-11-09 11:58:35,451 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-09 11:58:35,451 - 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
2024-11-09 11:58:35,708 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.7': '0'}} with
2024-11-09 11:58:35,708 - INFO - Initial checks done. Running the testcase now
2024-11-09 11:58:35,708 - INFO -
2024-11-09 11:58:36,314 - DEBUG - Response for create_network : {'network': {'id': 'eced5a95-4043-428f-b868-f5a4435f73c9', 'name': 'ctest-vn-83114774', 'tenant_id': 'e937c64578ed48d9aa32b842ada8e509', 'project_id': 'e937c64578ed48d9aa32b842ada8e509', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78562672', 'ctest-vn-83114774'], 'port_security_enabled': True, 'description': ''}}
2024-11-09 11:58:36,523 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b91cd4a0-2633-4db9-833f-6b98fa2ccb06', 'name': '', 'tenant_id': 'e937c64578ed48d9aa32b842ada8e509', 'network_id': 'eced5a95-4043-428f-b868-f5a4435f73c9', 'ip_version': 4, 'cidr': '5.198.229.128/26', 'allocation_pools': [{'start': '5.198.229.130', 'end': '5.198.229.190'}], 'gateway_ip': '5.198.229.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.198.229.130', 'tags': [], 'project_id': 'e937c64578ed48d9aa32b842ada8e509'}}
2024-11-09 11:58:36,545 - INFO - Created VN ctest-vn-83114774
2024-11-09 11:58:36,609 - DEBUG - VN ctest-vn-83114774 UUID is eced5a95-4043-428f-b868-f5a4435f73c9
2024-11-09 11:58:36,934 - DEBUG - Response for create_network : {'network': {'id': '16c7d2a0-57e4-46f0-91df-352406807b22', 'name': 'ctest-vn-73441263', 'tenant_id': 'e937c64578ed48d9aa32b842ada8e509', 'project_id': 'e937c64578ed48d9aa32b842ada8e509', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78562672', 'ctest-vn-73441263'], 'port_security_enabled': True, 'description': ''}}
2024-11-09 11:58:37,094 - DEBUG - Response for create_subnet : {'subnet': {'id': '57e87ecf-38aa-4574-a8b4-9ac9bc6a467b', 'name': '', 'tenant_id': 'e937c64578ed48d9aa32b842ada8e509', 'network_id': '16c7d2a0-57e4-46f0-91df-352406807b22', 'ip_version': 4, 'cidr': '22.6.129.64/26', 'allocation_pools': [{'start': '22.6.129.66', 'end': '22.6.129.126'}], 'gateway_ip': '22.6.129.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.6.129.66', 'tags': [], 'project_id': 'e937c64578ed48d9aa32b842ada8e509'}}
2024-11-09 11:58:37,117 - INFO - Created VN ctest-vn-73441263
2024-11-09 11:58:37,178 - DEBUG - VN ctest-vn-73441263 UUID is 16c7d2a0-57e4-46f0-91df-352406807b22
2024-11-09 11:58:37,309 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-78562672:ctest-vn-83114774, 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-78562672:ctest-vn-73441263, 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]
2024-11-09 11:58:37,643 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eced5a95-4043-428f-b868-f5a4435f73c9', 'name': 'ctest-vn-83114774', 'tenant_id': 'e937c64578ed48d9aa32b842ada8e509', 'project_id': 'e937c64578ed48d9aa32b842ada8e509', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b91cd4a0-2633-4db9-833f-6b98fa2ccb06'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78562672', 'ctest-vn-83114774'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78562672', 'ctest-policy-allow-all-09164738']], 'subnet_ipam': [{'subnet_cidr': '5.198.229.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-09 11:58:37,947 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '16c7d2a0-57e4-46f0-91df-352406807b22', 'name': 'ctest-vn-73441263', 'tenant_id': 'e937c64578ed48d9aa32b842ada8e509', 'project_id': 'e937c64578ed48d9aa32b842ada8e509', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['57e87ecf-38aa-4574-a8b4-9ac9bc6a467b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78562672', 'ctest-vn-73441263'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78562672', 'ctest-policy-allow-all-09164738']], 'subnet_ipam': [{'subnet_cidr': '22.6.129.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-09 11:58:38,106 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-11-09 11:58:38,414 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-11-09 11:58:38,448 - DEBUG - Requesting: http://10.0.0.27:8082/domain/c3305ba4-49fe-4cf7-b6ba-ef3b84a33f2f
2024-11-09 11:58:38,464 - DEBUG - Requesting: http://10.0.0.27:8082/project/e937c645-78ed-48d9-aa32-b842ada8e509
2024-11-09 11:58:38,553 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/eced5a95-4043-428f-b868-f5a4435f73c9
2024-11-09 11:58:38,582 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/eced5a95-4043-428f-b868-f5a4435f73c9
2024-11-09 11:58:38,601 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/61103408-140e-495f-be39-c33351b6fcaa
2024-11-09 11:58:38,612 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/61103408-140e-495f-be39-c33351b6fcaa
2024-11-09 11:58:38,622 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/97e02ee1-26f5-423b-9e70-355c6129fb2b
2024-11-09 11:58:38,631 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-09 11:58:38,631 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/eced5a95-4043-428f-b868-f5a4435f73c9
2024-11-09 11:58:38,646 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/61103408-140e-495f-be39-c33351b6fcaa
2024-11-09 11:58:38,669 - INFO - Verified VN network id 7 for VN eced5a95-4043-428f-b868-f5a4435f73c9
2024-11-09 11:58:38,669 - INFO - Verifications in API Server for VN ctest-vn-83114774 passed
2024-11-09 11:58:38,669 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/eced5a95-4043-428f-b868-f5a4435f73c9
2024-11-09 11:58:38,683 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/61103408-140e-495f-be39-c33351b6fcaa
2024-11-09 11:58:38,693 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/61103408-140e-495f-be39-c33351b6fcaa
2024-11-09 11:58:38,702 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/97e02ee1-26f5-423b-9e70-355c6129fb2b
2024-11-09 11:58:38,718 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78562672:ctest-vn-83114774', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78562672', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17072401359506195087', 'uuid-lslong': '13288140786410419145'}, 'enable': 'true', 'created': '2024-11-09T11:58:36', 'last-modified': '2024-11-09T11:58:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.110325'}
2024-11-09 11:58:38,726 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-09 11:58:38,726 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83114774 passed
2024-11-09 11:58:38,726 - DEBUG - ====Verifying policy data for ctest-vn-83114774 in API_Server ======
2024-11-09 11:58:38,726 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-11-09 11:58:38,734 - DEBUG - Requesting: http://10.0.0.27:8082/domain/c3305ba4-49fe-4cf7-b6ba-ef3b84a33f2f
2024-11-09 11:58:38,749 - DEBUG - Requesting: http://10.0.0.27:8082/project/e937c645-78ed-48d9-aa32-b842ada8e509
2024-11-09 11:58:38,836 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/eced5a95-4043-428f-b868-f5a4435f73c9
2024-11-09 11:58:38,851 - DEBUG - ==>Verifying data for policy with id: 4086235f-6e8b-4920-a115-6d73b1df6e01, fqn: ['default-domain', 'ctest-TestBasicPolicy-78562672', 'ctest-policy-allow-all-09164738']
2024-11-09 11:58:38,851 - INFO - VN ctest-vn-83114774 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-09 11:58:38,852 - DEBUG - Verifying the vn in opserver
2024-11-09 11:58:38,852 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78562672:ctest-vn-83114774 virtual network link through opserver 10.0.0.27
2024-11-09 11:58:38,852 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2024-11-09 11:58:39,155 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2024-11-09 11:58:39,230 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78562672:ctest-vn-83114774', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78562672:ctest-vn-83114774?flat'}
2024-11-09 11:58:39,230 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78562672:ctest-vn-83114774 is found in opserver
2024-11-09 11:58:39,242 - DEBUG - Do not have enough data to verify VN in agent
2024-11-09 11:58:39,247 - DEBUG - VRF ids for VN ctest-vn-83114774: {}
2024-11-09 11:58:39,247 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-11-09 11:58:39,254 - DEBUG - Requesting: http://10.0.0.27:8082/domain/c3305ba4-49fe-4cf7-b6ba-ef3b84a33f2f
2024-11-09 11:58:39,267 - DEBUG - Requesting: http://10.0.0.27:8082/project/e937c645-78ed-48d9-aa32-b842ada8e509
2024-11-09 11:58:39,350 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/16c7d2a0-57e4-46f0-91df-352406807b22
2024-11-09 11:58:39,371 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/16c7d2a0-57e4-46f0-91df-352406807b22
2024-11-09 11:58:39,390 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/210329a5-71ba-46ee-9571-49948fadd67c
2024-11-09 11:58:39,399 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/210329a5-71ba-46ee-9571-49948fadd67c
2024-11-09 11:58:39,410 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/acdd990b-6920-476d-bc95-fe2387ee914d
2024-11-09 11:58:39,418 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-09 11:58:39,418 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/16c7d2a0-57e4-46f0-91df-352406807b22
2024-11-09 11:58:39,432 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/210329a5-71ba-46ee-9571-49948fadd67c
2024-11-09 11:58:39,458 - INFO - Verified VN network id 8 for VN 16c7d2a0-57e4-46f0-91df-352406807b22
2024-11-09 11:58:39,458 - INFO - Verifications in API Server for VN ctest-vn-73441263 passed
2024-11-09 11:58:39,458 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/16c7d2a0-57e4-46f0-91df-352406807b22
2024-11-09 11:58:39,477 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/210329a5-71ba-46ee-9571-49948fadd67c
2024-11-09 11:58:39,488 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/210329a5-71ba-46ee-9571-49948fadd67c
2024-11-09 11:58:39,497 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/acdd990b-6920-476d-bc95-fe2387ee914d
2024-11-09 11:58:39,513 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78562672:ctest-vn-73441263', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78562672', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1641512175311013616', 'uuid-lslong': '10511178484150205218'}, 'enable': 'true', 'created': '2024-11-09T11:58:36', 'last-modified': '2024-11-09T11:58:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.640838'}
2024-11-09 11:58:39,520 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-09 11:58:39,520 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73441263 passed
2024-11-09 11:58:39,520 - DEBUG - ====Verifying policy data for ctest-vn-73441263 in API_Server ======
2024-11-09 11:58:39,520 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2024-11-09 11:58:39,527 - DEBUG - Requesting: http://10.0.0.27:8082/domain/c3305ba4-49fe-4cf7-b6ba-ef3b84a33f2f
2024-11-09 11:58:39,543 - DEBUG - Requesting: http://10.0.0.27:8082/project/e937c645-78ed-48d9-aa32-b842ada8e509
2024-11-09 11:58:39,632 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/16c7d2a0-57e4-46f0-91df-352406807b22
2024-11-09 11:58:39,651 - DEBUG - ==>Verifying data for policy with id: 4086235f-6e8b-4920-a115-6d73b1df6e01, fqn: ['default-domain', 'ctest-TestBasicPolicy-78562672', 'ctest-policy-allow-all-09164738']
2024-11-09 11:58:39,652 - INFO - VN ctest-vn-73441263 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-09 11:58:39,652 - DEBUG - Verifying the vn in opserver
2024-11-09 11:58:39,652 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78562672:ctest-vn-73441263 virtual network link through opserver 10.0.0.27
2024-11-09 11:58:39,652 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2024-11-09 11:58:39,664 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78562672:ctest-vn-73441263', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78562672:ctest-vn-73441263?flat'}
2024-11-09 11:58:39,664 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78562672:ctest-vn-73441263 is found in opserver
2024-11-09 11:58:39,677 - DEBUG - Do not have enough data to verify VN in agent
2024-11-09 11:58:39,683 - DEBUG - VRF ids for VN ctest-vn-73441263: {}
2024-11-09 11:58:39,742 - DEBUG - Services list from nova: [