2024-09-17 18:31:58,753 - INFO - Domain Default found not creating
2024-09-17 18:31:58,934 - INFO - Project ctest-TestBasicPolicy-76425764 not found, creating it
2024-09-17 18:31:59,435 - INFO - Created Project:ctest-TestBasicPolicy-76425764, ID : 0664ae48-f2f4-4a10-8211-6e01314318df
2024-09-17 18:32:00,939 - INFO - ================================================================================
2024-09-17 18:32:00,939 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-17 18:32:00,940 - 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-09-17 18:32:01,197 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.14': '0'}} with
2024-09-17 18:32:01,197 - INFO - Initial checks done. Running the testcase now
2024-09-17 18:32:01,197 - INFO -
2024-09-17 18:32:01,778 - DEBUG - Response for create_network : {'network': {'id': '3c729da4-dfa5-405f-9c9b-d0923626f0ec', 'name': 'ctest-vn-97895518', 'tenant_id': '0664ae48f2f44a1082116e01314318df', 'project_id': '0664ae48f2f44a1082116e01314318df', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76425764', 'ctest-vn-97895518'], 'port_security_enabled': True, 'description': ''}}
2024-09-17 18:32:01,982 - DEBUG - Response for create_subnet : {'subnet': {'id': '8a8fd266-d53e-448a-90d8-925167dcf95a', 'name': '', 'tenant_id': '0664ae48f2f44a1082116e01314318df', 'network_id': '3c729da4-dfa5-405f-9c9b-d0923626f0ec', 'ip_version': 4, 'cidr': '200.128.122.192/26', 'allocation_pools': [{'start': '200.128.122.194', 'end': '200.128.122.254'}], 'gateway_ip': '200.128.122.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.128.122.194', 'tags': [], 'project_id': '0664ae48f2f44a1082116e01314318df'}}
2024-09-17 18:32:02,004 - INFO - Created VN ctest-vn-97895518
2024-09-17 18:32:02,063 - DEBUG - VN ctest-vn-97895518 UUID is 3c729da4-dfa5-405f-9c9b-d0923626f0ec
2024-09-17 18:32:02,391 - DEBUG - Response for create_network : {'network': {'id': 'ddd5f14d-81ba-42b8-8bb9-4375a602ddd8', 'name': 'ctest-vn-53377482', 'tenant_id': '0664ae48f2f44a1082116e01314318df', 'project_id': '0664ae48f2f44a1082116e01314318df', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76425764', 'ctest-vn-53377482'], 'port_security_enabled': True, 'description': ''}}
2024-09-17 18:32:02,621 - DEBUG - Response for create_subnet : {'subnet': {'id': '03de2d33-1d7b-4485-b3d3-3cd7eab97b37', 'name': '', 'tenant_id': '0664ae48f2f44a1082116e01314318df', 'network_id': 'ddd5f14d-81ba-42b8-8bb9-4375a602ddd8', 'ip_version': 4, 'cidr': '114.153.213.128/26', 'allocation_pools': [{'start': '114.153.213.130', 'end': '114.153.213.190'}], 'gateway_ip': '114.153.213.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.153.213.130', 'tags': [], 'project_id': '0664ae48f2f44a1082116e01314318df'}}
2024-09-17 18:32:02,640 - INFO - Created VN ctest-vn-53377482
2024-09-17 18:32:02,695 - DEBUG - VN ctest-vn-53377482 UUID is ddd5f14d-81ba-42b8-8bb9-4375a602ddd8
2024-09-17 18:32:02,821 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-76425764:ctest-vn-97895518, 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-76425764:ctest-vn-53377482, 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-09-17 18:32:03,174 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3c729da4-dfa5-405f-9c9b-d0923626f0ec', 'name': 'ctest-vn-97895518', 'tenant_id': '0664ae48f2f44a1082116e01314318df', 'project_id': '0664ae48f2f44a1082116e01314318df', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8a8fd266-d53e-448a-90d8-925167dcf95a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76425764', 'ctest-vn-97895518'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76425764', 'ctest-policy-allow-all-80240974']], 'subnet_ipam': [{'subnet_cidr': '200.128.122.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-17 18:32:03,443 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ddd5f14d-81ba-42b8-8bb9-4375a602ddd8', 'name': 'ctest-vn-53377482', 'tenant_id': '0664ae48f2f44a1082116e01314318df', 'project_id': '0664ae48f2f44a1082116e01314318df', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['03de2d33-1d7b-4485-b3d3-3cd7eab97b37'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76425764', 'ctest-vn-53377482'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76425764', 'ctest-policy-allow-all-80240974']], 'subnet_ipam': [{'subnet_cidr': '114.153.213.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-17 18:32:03,611 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-09-17 18:32:03,919 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-09-17 18:32:03,950 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c7e1edbf-9593-415e-90f1-4f17248efcea
2024-09-17 18:32:03,965 - DEBUG - Requesting: http://10.0.0.41:8082/project/0664ae48-f2f4-4a10-8211-6e01314318df
2024-09-17 18:32:04,061 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/3c729da4-dfa5-405f-9c9b-d0923626f0ec
2024-09-17 18:32:04,083 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/3c729da4-dfa5-405f-9c9b-d0923626f0ec
2024-09-17 18:32:04,103 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/ff1935d6-69cd-42c1-b56c-ba00fd974755
2024-09-17 18:32:04,115 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/ff1935d6-69cd-42c1-b56c-ba00fd974755
2024-09-17 18:32:04,126 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/f8d4cdf3-1aae-4c8b-a234-b37af5bca1c3
2024-09-17 18:32:04,134 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-17 18:32:04,134 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/3c729da4-dfa5-405f-9c9b-d0923626f0ec
2024-09-17 18:32:04,147 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/ff1935d6-69cd-42c1-b56c-ba00fd974755
2024-09-17 18:32:04,168 - INFO - Verified VN network id 8 for VN 3c729da4-dfa5-405f-9c9b-d0923626f0ec
2024-09-17 18:32:04,168 - INFO - Verifications in API Server for VN ctest-vn-97895518 passed
2024-09-17 18:32:04,168 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/3c729da4-dfa5-405f-9c9b-d0923626f0ec
2024-09-17 18:32:04,184 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/ff1935d6-69cd-42c1-b56c-ba00fd974755
2024-09-17 18:32:04,193 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/ff1935d6-69cd-42c1-b56c-ba00fd974755
2024-09-17 18:32:04,203 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/f8d4cdf3-1aae-4c8b-a234-b37af5bca1c3
2024-09-17 18:32:04,218 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76425764:ctest-vn-97895518', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76425764', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4355717121073037407', 'uuid-lslong': '11284842617699234028'}, 'enable': 'true', 'created': '2024-09-17T18:32:01', 'last-modified': '2024-09-17T18:32:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.074027'}
2024-09-17 18:32:04,226 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-17 18:32:04,226 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97895518 passed
2024-09-17 18:32:04,227 - DEBUG - ====Verifying policy data for ctest-vn-97895518 in API_Server ======
2024-09-17 18:32:04,227 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-09-17 18:32:04,233 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c7e1edbf-9593-415e-90f1-4f17248efcea
2024-09-17 18:32:04,246 - DEBUG - Requesting: http://10.0.0.41:8082/project/0664ae48-f2f4-4a10-8211-6e01314318df
2024-09-17 18:32:04,330 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/3c729da4-dfa5-405f-9c9b-d0923626f0ec
2024-09-17 18:32:04,356 - DEBUG - ==>Verifying data for policy with id: 3d0dd318-c6dd-4199-8b40-b4b318e28858, fqn: ['default-domain', 'ctest-TestBasicPolicy-76425764', 'ctest-policy-allow-all-80240974']
2024-09-17 18:32:04,356 - INFO - VN ctest-vn-97895518 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-17 18:32:04,356 - DEBUG - Verifying the vn in opserver
2024-09-17 18:32:04,356 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76425764:ctest-vn-97895518 virtual network link through opserver 10.0.0.41
2024-09-17 18:32:04,356 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2024-09-17 18:32:04,654 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2024-09-17 18:32:04,715 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76425764:ctest-vn-97895518', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76425764:ctest-vn-97895518?flat'}
2024-09-17 18:32:04,715 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76425764:ctest-vn-97895518 is found in opserver
2024-09-17 18:32:04,726 - DEBUG - Do not have enough data to verify VN in agent
2024-09-17 18:32:04,731 - DEBUG - VRF ids for VN ctest-vn-97895518: {}
2024-09-17 18:32:04,731 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-09-17 18:32:04,738 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c7e1edbf-9593-415e-90f1-4f17248efcea
2024-09-17 18:32:04,752 - DEBUG - Requesting: http://10.0.0.41:8082/project/0664ae48-f2f4-4a10-8211-6e01314318df
2024-09-17 18:32:04,838 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ddd5f14d-81ba-42b8-8bb9-4375a602ddd8
2024-09-17 18:32:04,854 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ddd5f14d-81ba-42b8-8bb9-4375a602ddd8
2024-09-17 18:32:04,867 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d761666d-8115-46a5-8fd1-ee14e89d7589
2024-09-17 18:32:04,875 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d761666d-8115-46a5-8fd1-ee14e89d7589
2024-09-17 18:32:04,883 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/c040ce6c-a813-41b5-b018-f3df820d0a4b
2024-09-17 18:32:04,890 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-17 18:32:04,891 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ddd5f14d-81ba-42b8-8bb9-4375a602ddd8
2024-09-17 18:32:04,904 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d761666d-8115-46a5-8fd1-ee14e89d7589
2024-09-17 18:32:04,925 - INFO - Verified VN network id 9 for VN ddd5f14d-81ba-42b8-8bb9-4375a602ddd8
2024-09-17 18:32:04,925 - INFO - Verifications in API Server for VN ctest-vn-53377482 passed
2024-09-17 18:32:04,925 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ddd5f14d-81ba-42b8-8bb9-4375a602ddd8
2024-09-17 18:32:04,940 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d761666d-8115-46a5-8fd1-ee14e89d7589
2024-09-17 18:32:04,948 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d761666d-8115-46a5-8fd1-ee14e89d7589
2024-09-17 18:32:04,957 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/c040ce6c-a813-41b5-b018-f3df820d0a4b
2024-09-17 18:32:04,971 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76425764:ctest-vn-53377482', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76425764', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15984947767612687032', 'uuid-lslong': '10068152614538894808'}, 'enable': 'true', 'created': '2024-09-17T18:32:02', 'last-modified': '2024-09-17T18:32:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.562781'}
2024-09-17 18:32:04,977 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-17 18:32:04,978 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53377482 passed
2024-09-17 18:32:04,978 - DEBUG - ====Verifying policy data for ctest-vn-53377482 in API_Server ======
2024-09-17 18:32:04,978 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-09-17 18:32:04,984 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c7e1edbf-9593-415e-90f1-4f17248efcea
2024-09-17 18:32:04,997 - DEBUG - Requesting: http://10.0.0.41:8082/project/0664ae48-f2f4-4a10-8211-6e01314318df
2024-09-17 18:32:05,088 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ddd5f14d-81ba-42b8-8bb9-4375a602ddd8
2024-09-17 18:32:05,102 - DEBUG - ==>Verifying data for policy with id: 3d0dd318-c6dd-4199-8b40-b4b318e28858, fqn: ['default-domain', 'ctest-TestBasicPolicy-76425764', 'ctest-policy-allow-all-80240974']
2024-09-17 18:32:05,102 - INFO - VN ctest-vn-53377482 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-17 18:32:05,102 - DEBUG - Verifying the vn in opserver
2024-09-17 18:32:05,102 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76425764:ctest-vn-53377482 virtual network link through opserver 10.0.0.41
2024-09-17 18:32:05,102 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2024-09-17 18:32:05,114 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76425764:ctest-vn-53377482', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76425764:ctest-vn-53377482?flat'}
2024-09-17 18:32:05,114 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76425764:ctest-vn-53377482 is found in opserver
2024-09-17 18:32:05,127 - DEBUG - Do not have enough data to verify VN in agent
2024-09-17 18:32:05,133 - DEBUG - VRF ids for VN ctest-vn-53377482: {}
2024-09-17 18:32:05,192 - DEBUG - Services list from nova: [