2025-01-14 06:47:08,946 - INFO - Domain Default found not creating
2025-01-14 06:47:09,091 - INFO - Project ctest-TestBasicPolicy-67445948 not found, creating it
2025-01-14 06:47:09,553 - INFO - Created Project:ctest-TestBasicPolicy-67445948, ID : e566c293-9ddc-4c4c-a25d-66e26db22422
2025-01-14 06:47:11,047 - INFO - ================================================================================
2025-01-14 06:47:11,048 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-14 06:47:11,048 - 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-01-14 06:47:11,303 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.20.0.10': '0'}} with
2025-01-14 06:47:11,303 - INFO - Initial checks done. Running the testcase now
2025-01-14 06:47:11,303 - INFO -
2025-01-14 06:47:11,869 - DEBUG - Response for create_network : {'network': {'id': '369c4efa-2e8f-4b5f-b342-90732c586a31', 'name': 'ctest-vn-34148577', 'tenant_id': 'e566c2939ddc4c4ca25d66e26db22422', 'project_id': 'e566c2939ddc4c4ca25d66e26db22422', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67445948', 'ctest-vn-34148577'], 'port_security_enabled': True, 'description': ''}}
2025-01-14 06:47:12,092 - DEBUG - Response for create_subnet : {'subnet': {'id': 'efb001a5-9145-437a-8712-9340308b80bf', 'name': '', 'tenant_id': 'e566c2939ddc4c4ca25d66e26db22422', 'network_id': '369c4efa-2e8f-4b5f-b342-90732c586a31', 'ip_version': 4, 'cidr': '131.65.145.128/26', 'allocation_pools': [{'start': '131.65.145.130', 'end': '131.65.145.190'}], 'gateway_ip': '131.65.145.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '131.65.145.130', 'tags': [], 'project_id': 'e566c2939ddc4c4ca25d66e26db22422'}}
2025-01-14 06:47:12,111 - INFO - Created VN ctest-vn-34148577
2025-01-14 06:47:12,165 - DEBUG - VN ctest-vn-34148577 UUID is 369c4efa-2e8f-4b5f-b342-90732c586a31
2025-01-14 06:47:12,500 - DEBUG - Response for create_network : {'network': {'id': 'aeac5f6c-71c4-4195-a1c5-07a0fe588c57', 'name': 'ctest-vn-99813500', 'tenant_id': 'e566c2939ddc4c4ca25d66e26db22422', 'project_id': 'e566c2939ddc4c4ca25d66e26db22422', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67445948', 'ctest-vn-99813500'], 'port_security_enabled': True, 'description': ''}}
2025-01-14 06:47:12,748 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd6db97b1-9f6d-4b83-936c-a6f2b8f91e47', 'name': '', 'tenant_id': 'e566c2939ddc4c4ca25d66e26db22422', 'network_id': 'aeac5f6c-71c4-4195-a1c5-07a0fe588c57', 'ip_version': 4, 'cidr': '17.115.92.64/26', 'allocation_pools': [{'start': '17.115.92.66', 'end': '17.115.92.126'}], 'gateway_ip': '17.115.92.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '17.115.92.66', 'tags': [], 'project_id': 'e566c2939ddc4c4ca25d66e26db22422'}}
2025-01-14 06:47:12,769 - INFO - Created VN ctest-vn-99813500
2025-01-14 06:47:12,821 - DEBUG - VN ctest-vn-99813500 UUID is aeac5f6c-71c4-4195-a1c5-07a0fe588c57
2025-01-14 06:47:12,948 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-67445948:ctest-vn-34148577, 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-67445948:ctest-vn-99813500, 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-01-14 06:47:13,262 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '369c4efa-2e8f-4b5f-b342-90732c586a31', 'name': 'ctest-vn-34148577', 'tenant_id': 'e566c2939ddc4c4ca25d66e26db22422', 'project_id': 'e566c2939ddc4c4ca25d66e26db22422', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['efb001a5-9145-437a-8712-9340308b80bf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67445948', 'ctest-vn-34148577'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67445948', 'ctest-policy-allow-all-95253037']], 'subnet_ipam': [{'subnet_cidr': '131.65.145.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-14 06:47:13,486 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aeac5f6c-71c4-4195-a1c5-07a0fe588c57', 'name': 'ctest-vn-99813500', 'tenant_id': 'e566c2939ddc4c4ca25d66e26db22422', 'project_id': 'e566c2939ddc4c4ca25d66e26db22422', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d6db97b1-9f6d-4b83-936c-a6f2b8f91e47'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67445948', 'ctest-vn-99813500'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67445948', 'ctest-policy-allow-all-95253037']], 'subnet_ipam': [{'subnet_cidr': '17.115.92.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-14 06:47:13,649 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2025-01-14 06:47:13,962 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2025-01-14 06:47:13,996 - DEBUG - Requesting: http://10.0.0.32:8082/domain/db0522b5-5f3c-4f5a-a864-653cc5a74461
2025-01-14 06:47:14,011 - DEBUG - Requesting: http://10.0.0.32:8082/project/e566c293-9ddc-4c4c-a25d-66e26db22422
2025-01-14 06:47:14,091 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/369c4efa-2e8f-4b5f-b342-90732c586a31
2025-01-14 06:47:14,102 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/369c4efa-2e8f-4b5f-b342-90732c586a31
2025-01-14 06:47:14,112 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/326958bc-1205-4981-a0fd-a98f3d571730
2025-01-14 06:47:14,119 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/326958bc-1205-4981-a0fd-a98f3d571730
2025-01-14 06:47:14,127 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/9deeb053-b77d-4bb2-8dd8-1334e7f8e0ae
2025-01-14 06:47:14,134 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-14 06:47:14,135 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/369c4efa-2e8f-4b5f-b342-90732c586a31
2025-01-14 06:47:14,145 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/326958bc-1205-4981-a0fd-a98f3d571730
2025-01-14 06:47:14,161 - INFO - Verified VN network id 8 for VN 369c4efa-2e8f-4b5f-b342-90732c586a31
2025-01-14 06:47:14,161 - INFO - Verifications in API Server for VN ctest-vn-34148577 passed
2025-01-14 06:47:14,161 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/369c4efa-2e8f-4b5f-b342-90732c586a31
2025-01-14 06:47:14,172 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/326958bc-1205-4981-a0fd-a98f3d571730
2025-01-14 06:47:14,181 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/326958bc-1205-4981-a0fd-a98f3d571730
2025-01-14 06:47:14,188 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/9deeb053-b77d-4bb2-8dd8-1334e7f8e0ae
2025-01-14 06:47:14,202 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67445948:ctest-vn-34148577', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67445948', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3935107010844904287', 'uuid-lslong': '12917045505591634481'}, 'enable': 'true', 'created': '2025-01-14T06:47:11', 'last-modified': '2025-01-14T06:47:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.963003'}
2025-01-14 06:47:14,208 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-14 06:47:14,208 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34148577 passed
2025-01-14 06:47:14,209 - DEBUG - ====Verifying policy data for ctest-vn-34148577 in API_Server ======
2025-01-14 06:47:14,209 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2025-01-14 06:47:14,214 - DEBUG - Requesting: http://10.0.0.32:8082/domain/db0522b5-5f3c-4f5a-a864-653cc5a74461
2025-01-14 06:47:14,225 - DEBUG - Requesting: http://10.0.0.32:8082/project/e566c293-9ddc-4c4c-a25d-66e26db22422
2025-01-14 06:47:14,298 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/369c4efa-2e8f-4b5f-b342-90732c586a31
2025-01-14 06:47:14,310 - DEBUG - ==>Verifying data for policy with id: ad4975fb-1e13-4175-abc5-682033ddf507, fqn: ['default-domain', 'ctest-TestBasicPolicy-67445948', 'ctest-policy-allow-all-95253037']
2025-01-14 06:47:14,310 - INFO - VN ctest-vn-34148577 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-14 06:47:14,310 - DEBUG - Verifying the vn in opserver
2025-01-14 06:47:14,310 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67445948:ctest-vn-34148577 virtual network link through opserver 10.0.0.32
2025-01-14 06:47:14,310 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2025-01-14 06:47:14,606 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2025-01-14 06:47:14,672 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67445948:ctest-vn-34148577', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67445948:ctest-vn-34148577?flat'}
2025-01-14 06:47:14,672 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67445948:ctest-vn-34148577 is found in opserver
2025-01-14 06:47:14,684 - DEBUG - Do not have enough data to verify VN in agent
2025-01-14 06:47:14,689 - DEBUG - VRF ids for VN ctest-vn-34148577: {}
2025-01-14 06:47:14,689 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2025-01-14 06:47:14,697 - DEBUG - Requesting: http://10.0.0.32:8082/domain/db0522b5-5f3c-4f5a-a864-653cc5a74461
2025-01-14 06:47:14,709 - DEBUG - Requesting: http://10.0.0.32:8082/project/e566c293-9ddc-4c4c-a25d-66e26db22422
2025-01-14 06:47:14,780 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/aeac5f6c-71c4-4195-a1c5-07a0fe588c57
2025-01-14 06:47:14,793 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/aeac5f6c-71c4-4195-a1c5-07a0fe588c57
2025-01-14 06:47:14,804 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/14ba865d-7fcb-4bb3-90aa-9c5ed288fd34
2025-01-14 06:47:14,814 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/14ba865d-7fcb-4bb3-90aa-9c5ed288fd34
2025-01-14 06:47:14,821 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/035b2d81-5cfc-4cb8-a3c9-939ec819acbb
2025-01-14 06:47:14,829 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-14 06:47:14,829 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/aeac5f6c-71c4-4195-a1c5-07a0fe588c57
2025-01-14 06:47:14,838 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/14ba865d-7fcb-4bb3-90aa-9c5ed288fd34
2025-01-14 06:47:14,854 - INFO - Verified VN network id 9 for VN aeac5f6c-71c4-4195-a1c5-07a0fe588c57
2025-01-14 06:47:14,854 - INFO - Verifications in API Server for VN ctest-vn-99813500 passed
2025-01-14 06:47:14,854 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/aeac5f6c-71c4-4195-a1c5-07a0fe588c57
2025-01-14 06:47:14,865 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/14ba865d-7fcb-4bb3-90aa-9c5ed288fd34
2025-01-14 06:47:14,872 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/14ba865d-7fcb-4bb3-90aa-9c5ed288fd34
2025-01-14 06:47:14,880 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/035b2d81-5cfc-4cb8-a3c9-939ec819acbb
2025-01-14 06:47:14,897 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67445948:ctest-vn-99813500', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67445948', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12586539977963487637', 'uuid-lslong': '11656731598561774679'}, 'enable': 'true', 'created': '2025-01-14T06:47:12', 'last-modified': '2025-01-14T06:47:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.423398'}
2025-01-14 06:47:14,904 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-14 06:47:14,904 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99813500 passed
2025-01-14 06:47:14,904 - DEBUG - ====Verifying policy data for ctest-vn-99813500 in API_Server ======
2025-01-14 06:47:14,904 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2025-01-14 06:47:14,912 - DEBUG - Requesting: http://10.0.0.32:8082/domain/db0522b5-5f3c-4f5a-a864-653cc5a74461
2025-01-14 06:47:14,926 - DEBUG - Requesting: http://10.0.0.32:8082/project/e566c293-9ddc-4c4c-a25d-66e26db22422
2025-01-14 06:47:14,998 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/aeac5f6c-71c4-4195-a1c5-07a0fe588c57
2025-01-14 06:47:15,009 - DEBUG - ==>Verifying data for policy with id: ad4975fb-1e13-4175-abc5-682033ddf507, fqn: ['default-domain', 'ctest-TestBasicPolicy-67445948', 'ctest-policy-allow-all-95253037']
2025-01-14 06:47:15,009 - INFO - VN ctest-vn-99813500 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-14 06:47:15,009 - DEBUG - Verifying the vn in opserver
2025-01-14 06:47:15,009 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67445948:ctest-vn-99813500 virtual network link through opserver 10.0.0.32
2025-01-14 06:47:15,009 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2025-01-14 06:47:15,020 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67445948:ctest-vn-99813500', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67445948:ctest-vn-99813500?flat'}
2025-01-14 06:47:15,020 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67445948:ctest-vn-99813500 is found in opserver
2025-01-14 06:47:15,032 - DEBUG - Do not have enough data to verify VN in agent
2025-01-14 06:47:15,038 - DEBUG - VRF ids for VN ctest-vn-99813500: {}
2025-01-14 06:47:15,092 - DEBUG - Services list from nova: [