2024-11-06 18:56:14,769 - INFO - Domain Default found not creating
2024-11-06 18:56:14,947 - INFO - Project ctest-TestBasicPolicy-89428423 not found, creating it
2024-11-06 18:56:15,465 - INFO - Created Project:ctest-TestBasicPolicy-89428423, ID : 9b5f7321-49fd-4d99-b25c-4a7e1bafa7f9
2024-11-06 18:56:17,135 - INFO - ================================================================================
2024-11-06 18:56:17,135 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-06 18:56:17,135 - 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-06 18:56:17,395 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.8': '0'}} with
2024-11-06 18:56:17,395 - INFO - Initial checks done. Running the testcase now
2024-11-06 18:56:17,395 - INFO -
2024-11-06 18:56:18,064 - DEBUG - Response for create_network : {'network': {'id': 'f71ffced-417b-405f-8e2c-364bc4d6ce69', 'name': 'ctest-vn-04312204', 'tenant_id': '9b5f732149fd4d99b25c4a7e1bafa7f9', 'project_id': '9b5f732149fd4d99b25c4a7e1bafa7f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89428423', 'ctest-vn-04312204'], 'port_security_enabled': True, 'description': ''}}
2024-11-06 18:56:18,283 - DEBUG - Response for create_subnet : {'subnet': {'id': '237941f7-1189-404d-8374-52699259f54f', 'name': '', 'tenant_id': '9b5f732149fd4d99b25c4a7e1bafa7f9', 'network_id': 'f71ffced-417b-405f-8e2c-364bc4d6ce69', 'ip_version': 4, 'cidr': '218.31.181.192/26', 'allocation_pools': [{'start': '218.31.181.194', 'end': '218.31.181.254'}], 'gateway_ip': '218.31.181.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.31.181.194', 'tags': [], 'project_id': '9b5f732149fd4d99b25c4a7e1bafa7f9'}}
2024-11-06 18:56:18,306 - INFO - Created VN ctest-vn-04312204
2024-11-06 18:56:18,365 - DEBUG - VN ctest-vn-04312204 UUID is f71ffced-417b-405f-8e2c-364bc4d6ce69
2024-11-06 18:56:18,694 - DEBUG - Response for create_network : {'network': {'id': '325df4d2-b5cf-46ce-bcbe-3b070bedb8fe', 'name': 'ctest-vn-06346398', 'tenant_id': '9b5f732149fd4d99b25c4a7e1bafa7f9', 'project_id': '9b5f732149fd4d99b25c4a7e1bafa7f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89428423', 'ctest-vn-06346398'], 'port_security_enabled': True, 'description': ''}}
2024-11-06 18:56:18,946 - DEBUG - Response for create_subnet : {'subnet': {'id': 'affc483e-003b-434c-8059-30b6c529398b', 'name': '', 'tenant_id': '9b5f732149fd4d99b25c4a7e1bafa7f9', 'network_id': '325df4d2-b5cf-46ce-bcbe-3b070bedb8fe', 'ip_version': 4, 'cidr': '14.25.165.64/26', 'allocation_pools': [{'start': '14.25.165.66', 'end': '14.25.165.126'}], 'gateway_ip': '14.25.165.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.25.165.66', 'tags': [], 'project_id': '9b5f732149fd4d99b25c4a7e1bafa7f9'}}
2024-11-06 18:56:18,969 - INFO - Created VN ctest-vn-06346398
2024-11-06 18:56:19,028 - DEBUG - VN ctest-vn-06346398 UUID is 325df4d2-b5cf-46ce-bcbe-3b070bedb8fe
2024-11-06 18:56:19,155 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89428423:ctest-vn-04312204, 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-89428423:ctest-vn-06346398, 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-06 18:56:19,506 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f71ffced-417b-405f-8e2c-364bc4d6ce69', 'name': 'ctest-vn-04312204', 'tenant_id': '9b5f732149fd4d99b25c4a7e1bafa7f9', 'project_id': '9b5f732149fd4d99b25c4a7e1bafa7f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['237941f7-1189-404d-8374-52699259f54f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89428423', 'ctest-vn-04312204'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89428423', 'ctest-policy-allow-all-40162076']], 'subnet_ipam': [{'subnet_cidr': '218.31.181.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-06 18:56:19,776 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '325df4d2-b5cf-46ce-bcbe-3b070bedb8fe', 'name': 'ctest-vn-06346398', 'tenant_id': '9b5f732149fd4d99b25c4a7e1bafa7f9', 'project_id': '9b5f732149fd4d99b25c4a7e1bafa7f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['affc483e-003b-434c-8059-30b6c529398b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89428423', 'ctest-vn-06346398'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89428423', 'ctest-policy-allow-all-40162076']], 'subnet_ipam': [{'subnet_cidr': '14.25.165.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-06 18:56:19,948 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-11-06 18:56:20,299 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-11-06 18:56:20,338 - DEBUG - Requesting: http://10.0.0.24:8082/domain/20a27cbe-f4d5-4ecf-b349-d15d04b07438
2024-11-06 18:56:20,361 - DEBUG - Requesting: http://10.0.0.24:8082/project/9b5f7321-49fd-4d99-b25c-4a7e1bafa7f9
2024-11-06 18:56:20,449 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/f71ffced-417b-405f-8e2c-364bc4d6ce69
2024-11-06 18:56:20,466 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/f71ffced-417b-405f-8e2c-364bc4d6ce69
2024-11-06 18:56:20,482 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/a582a599-f043-4301-aa42-164398547c5f
2024-11-06 18:56:20,492 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/a582a599-f043-4301-aa42-164398547c5f
2024-11-06 18:56:20,502 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/b7bea891-61bc-4cdb-a616-32cbfee58b51
2024-11-06 18:56:20,511 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-06 18:56:20,511 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/f71ffced-417b-405f-8e2c-364bc4d6ce69
2024-11-06 18:56:20,527 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/a582a599-f043-4301-aa42-164398547c5f
2024-11-06 18:56:20,550 - INFO - Verified VN network id 7 for VN f71ffced-417b-405f-8e2c-364bc4d6ce69
2024-11-06 18:56:20,550 - INFO - Verifications in API Server for VN ctest-vn-04312204 passed
2024-11-06 18:56:20,550 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/f71ffced-417b-405f-8e2c-364bc4d6ce69
2024-11-06 18:56:20,567 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/a582a599-f043-4301-aa42-164398547c5f
2024-11-06 18:56:20,576 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/a582a599-f043-4301-aa42-164398547c5f
2024-11-06 18:56:20,585 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/b7bea891-61bc-4cdb-a616-32cbfee58b51
2024-11-06 18:56:20,600 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89428423:ctest-vn-04312204', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89428423', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17807229547582275679', 'uuid-lslong': '10244622951413894761'}, 'enable': 'true', 'created': '2024-11-06T18:56:18', 'last-modified': '2024-11-06T18:56:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.135598'}
2024-11-06 18:56:20,607 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-06 18:56:20,607 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04312204 passed
2024-11-06 18:56:20,607 - DEBUG - ====Verifying policy data for ctest-vn-04312204 in API_Server ======
2024-11-06 18:56:20,607 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-11-06 18:56:20,615 - DEBUG - Requesting: http://10.0.0.24:8082/domain/20a27cbe-f4d5-4ecf-b349-d15d04b07438
2024-11-06 18:56:20,631 - DEBUG - Requesting: http://10.0.0.24:8082/project/9b5f7321-49fd-4d99-b25c-4a7e1bafa7f9
2024-11-06 18:56:20,718 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/f71ffced-417b-405f-8e2c-364bc4d6ce69
2024-11-06 18:56:20,734 - DEBUG - ==>Verifying data for policy with id: 1855843e-0ba5-4466-9fed-0b648bdf5838, fqn: ['default-domain', 'ctest-TestBasicPolicy-89428423', 'ctest-policy-allow-all-40162076']
2024-11-06 18:56:20,734 - INFO - VN ctest-vn-04312204 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-06 18:56:20,734 - DEBUG - Verifying the vn in opserver
2024-11-06 18:56:20,734 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89428423:ctest-vn-04312204 virtual network link through opserver 10.0.0.24
2024-11-06 18:56:20,734 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2024-11-06 18:56:21,081 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2024-11-06 18:56:21,155 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89428423:ctest-vn-04312204', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89428423:ctest-vn-04312204?flat'}
2024-11-06 18:56:21,155 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89428423:ctest-vn-04312204 is found in opserver
2024-11-06 18:56:21,169 - DEBUG - Do not have enough data to verify VN in agent
2024-11-06 18:56:21,175 - DEBUG - VRF ids for VN ctest-vn-04312204: {}
2024-11-06 18:56:21,175 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-11-06 18:56:21,181 - DEBUG - Requesting: http://10.0.0.24:8082/domain/20a27cbe-f4d5-4ecf-b349-d15d04b07438
2024-11-06 18:56:21,197 - DEBUG - Requesting: http://10.0.0.24:8082/project/9b5f7321-49fd-4d99-b25c-4a7e1bafa7f9
2024-11-06 18:56:21,278 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/325df4d2-b5cf-46ce-bcbe-3b070bedb8fe
2024-11-06 18:56:21,300 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/325df4d2-b5cf-46ce-bcbe-3b070bedb8fe
2024-11-06 18:56:21,316 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/a8f5b904-23a4-498e-bc0d-a37b0420297c
2024-11-06 18:56:21,327 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/a8f5b904-23a4-498e-bc0d-a37b0420297c
2024-11-06 18:56:21,339 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/be2fbc63-30a4-4797-9598-238a723387ef
2024-11-06 18:56:21,349 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-06 18:56:21,349 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/325df4d2-b5cf-46ce-bcbe-3b070bedb8fe
2024-11-06 18:56:21,365 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/a8f5b904-23a4-498e-bc0d-a37b0420297c
2024-11-06 18:56:21,392 - INFO - Verified VN network id 8 for VN 325df4d2-b5cf-46ce-bcbe-3b070bedb8fe
2024-11-06 18:56:21,392 - INFO - Verifications in API Server for VN ctest-vn-06346398 passed
2024-11-06 18:56:21,393 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/325df4d2-b5cf-46ce-bcbe-3b070bedb8fe
2024-11-06 18:56:21,415 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/a8f5b904-23a4-498e-bc0d-a37b0420297c
2024-11-06 18:56:21,428 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/a8f5b904-23a4-498e-bc0d-a37b0420297c
2024-11-06 18:56:21,438 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/be2fbc63-30a4-4797-9598-238a723387ef
2024-11-06 18:56:21,456 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89428423:ctest-vn-06346398', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89428423', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3629326060561057486', 'uuid-lslong': '13600372826156415230'}, 'enable': 'true', 'created': '2024-11-06T18:56:18', 'last-modified': '2024-11-06T18:56:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.710776'}
2024-11-06 18:56:21,464 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-06 18:56:21,464 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06346398 passed
2024-11-06 18:56:21,465 - DEBUG - ====Verifying policy data for ctest-vn-06346398 in API_Server ======
2024-11-06 18:56:21,465 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-11-06 18:56:21,471 - DEBUG - Requesting: http://10.0.0.24:8082/domain/20a27cbe-f4d5-4ecf-b349-d15d04b07438
2024-11-06 18:56:21,486 - DEBUG - Requesting: http://10.0.0.24:8082/project/9b5f7321-49fd-4d99-b25c-4a7e1bafa7f9
2024-11-06 18:56:21,572 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/325df4d2-b5cf-46ce-bcbe-3b070bedb8fe
2024-11-06 18:56:21,590 - DEBUG - ==>Verifying data for policy with id: 1855843e-0ba5-4466-9fed-0b648bdf5838, fqn: ['default-domain', 'ctest-TestBasicPolicy-89428423', 'ctest-policy-allow-all-40162076']
2024-11-06 18:56:21,590 - INFO - VN ctest-vn-06346398 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-06 18:56:21,590 - DEBUG - Verifying the vn in opserver
2024-11-06 18:56:21,590 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89428423:ctest-vn-06346398 virtual network link through opserver 10.0.0.24
2024-11-06 18:56:21,590 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2024-11-06 18:56:21,607 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89428423:ctest-vn-06346398', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89428423:ctest-vn-06346398?flat'}
2024-11-06 18:56:21,607 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89428423:ctest-vn-06346398 is found in opserver
2024-11-06 18:56:21,621 - DEBUG - Do not have enough data to verify VN in agent
2024-11-06 18:56:21,626 - DEBUG - VRF ids for VN ctest-vn-06346398: {}
2024-11-06 18:56:21,685 - DEBUG - Services list from nova: [